[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110311803B - Method and device for realizing software defined network, computer equipment and storage medium - Google Patents

Method and device for realizing software defined network, computer equipment and storage medium Download PDF

Info

Publication number
CN110311803B
CN110311803B CN201910420158.7A CN201910420158A CN110311803B CN 110311803 B CN110311803 B CN 110311803B CN 201910420158 A CN201910420158 A CN 201910420158A CN 110311803 B CN110311803 B CN 110311803B
Authority
CN
China
Prior art keywords
instance
network
theme
data information
topic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910420158.7A
Other languages
Chinese (zh)
Other versions
CN110311803A (en
Inventor
易仁杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910420158.7A priority Critical patent/CN110311803B/en
Publication of CN110311803A publication Critical patent/CN110311803A/en
Application granted granted Critical
Publication of CN110311803B publication Critical patent/CN110311803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/20Hop count for routing purposes, e.g. TTL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to network management, in particular to the realization of a software defined network, and provides a method, a device, equipment and a storage medium for realizing the software defined network. The method comprises the following steps: monitoring the created network instance; generating a theme instance based on a message queue model, and establishing a corresponding relation between the theme instance and the network instance; acquiring data information generated by the network instance, and publishing the data information to a theme instance corresponding to the network instance according to the corresponding relation; and subscribing the data information of the theme instance, and finishing the corresponding function of the network instance according to the data information to realize the software defined network. The method can improve the flexibility and reliability of the software defined network.

Description

Method and device for realizing software defined network, computer equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for implementing a software-defined network, a computer device, and a storage medium.
Background
Software Defined Network (SDN) is the most advanced Network technology direction at present, and a Virtual Private Cloud (VPC) implementation scheme based on SDN roughly includes two ways, the first way is to use a centralized controller to perform centralized control on a distributed Virtual switch forwarding platform and issue a flow table, and a disadvantage is that the centralized controller is excessively relied on, and performance of the controller is insufficient or a failure easily occurs, which causes Network delay or Network system crash; the second is that the MP-BGP protocol is used to automatically propagate the content of the Virtual eXtensible LAN (VXLAN) protocol in the network device, and the controller issues configuration and controls the corresponding forwarding rules, although the high reliability of the network is guaranteed, the flexibility of forwarding scheduling is lacking. Therefore, it is necessary to provide a method for implementing a software defined network to improve the reliability and flexibility of the network.
Disclosure of Invention
The application provides a method and a device for realizing a software defined network, a computer device and a storage medium, so as to improve the flexibility and the reliability of the software defined network.
In a first aspect, the present application provides a method for implementing a software-defined network, where the method includes:
monitoring the created network instance;
generating a theme instance based on a message queue model, and establishing a corresponding relation between the theme instance and the network instance;
acquiring data information generated by the network instance, and publishing the data information to a theme instance corresponding to the network instance according to the corresponding relation;
and subscribing the data information of the theme instance, and finishing the corresponding function of the network instance according to the data information to realize the software defined network.
In a second aspect, the present application further provides an apparatus for implementing a software-defined network, where the apparatus includes:
the example monitoring unit is used for monitoring the created network example;
the generation establishing unit is used for generating a theme instance based on a message queue model and establishing the corresponding relation between the theme instance and the network instance;
the acquisition and release unit is used for acquiring the data information generated by the network instance and releasing the data information to the theme instance corresponding to the network instance according to the corresponding relation;
and the subscription realization unit is used for subscribing the data information of the theme instance and finishing the corresponding function of the network instance according to the data information so as to realize the software defined network.
In a third aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the implementation method of the software defined network when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program causes the processor to implement the method for implementing the software-defined network as described above.
The application discloses a method, a device, equipment and a storage medium for realizing a software-defined network, wherein a theme instance is generated based on a message queue model when a created network instance is monitored, a corresponding relation between the theme instance and the network instance is established, and the software-defined network is realized by using the theme instance, so that the flexibility and the reliability of the software-defined network are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of an implementation method of a software defined network provided by an embodiment of the present application;
FIG. 2 is a schematic flow diagram of sub-steps of a method of implementing the software defined network of FIG. 1;
FIG. 3 is a diagram illustrating an example effect corresponding to an implementation of a software-defined network provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of another implementation method of a software defined network provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a deployment effect of an example of a subject matter provided by an embodiment of the present application;
fig. 6 is a schematic block diagram of an implementation apparatus of a software-defined network according to an embodiment of the present application;
FIG. 7 is a schematic block diagram of an apparatus for implementing another software-defined network provided by an embodiment of the present application;
fig. 8 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a method and a device for realizing a software defined network, computer equipment and a storage medium. The method for realizing the software defined network can be applied to a server, the software defined network is realized when a network instance is created based on a message queue model, and compared with a centralized control mode and an extensible virtual local area network mode, the software defined network improves the flexibility and the reliability of the network. The server may be an independent server or a server cluster.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for implementing a software-defined network according to an embodiment of the present application. As shown in fig. 1, the method for implementing the software defined network specifically includes steps S101 to S104.
And S101, monitoring the created network instance.
The network instance includes a Virtual Private Cloud (VPC) and the like, the Virtual Private Cloud is a network product established based on a software-defined network, and the server monitors VPCs established by users based on the software-defined network, and may establish one VPC or multiple VPCs, such as VPC1, VPC2, VPC3 and the like, which will be described in detail below as the network instance.
Specifically, a monitoring creation user defines a network instance created by a network through software according to actual requirements, and obtains a network instance name corresponding to the network instance, a corresponding MAC address or IP address, and the like to determine that the created network instance is monitored.
S102, generating a theme instance based on the message queue model, and establishing a corresponding relation between the theme instance and the network instance.
Wherein the message queue model comprises a point-to-point model and a publish-subscribe model. In the embodiment, a publish-subscribe model is mainly used, and a mechanism of the message queue model is used for realizing the software defined network. In other embodiments, a peer-to-peer model may be used to implement a software defined network.
And generating a theme instance based on the message queue model, specifically triggering and creating the theme instance according to the monitored network instance, wherein the theme instance is a theme (Topic) generated based on the message queue model. The topic represents a set of functions, is a virtual channel connecting a producer and a consumer, and is an important hub for realizing a publish-subscribe message model.
Wherein, the Producers (Producers) are the Producers of the data information and issue the produced data information to the Topic; consumers (Consumers) subscribe to newly added data messages in real time from Topic for users of the data messages.
After the Topic instance is created based on the message queue model according to the monitored network instance trigger, Topic instance identifications of the Topic instance can be further obtained, and the obtained Topic instance identifications are, for example, Topic1, Topic2 and Topic 3. Establishing a corresponding relationship between the Topic instance and the network instance, for example, establishing a corresponding relationship between VPC1 and Topic1, or establishing a corresponding relationship between a MAC address or an IP address of VPC and the Topic instance.
In one embodiment, in order to improve the flexibility of the software-defined network and the implementation efficiency of the software-defined network, the corresponding relationship between the theme instances and the network modules may be established. Specifically, as shown in fig. 2, step S102 includes: sub-steps S102a to S102 c.
And S102a, acquiring the preset module type.
The preset module type is a type corresponding to an object set formed by classifying network objects in the network instance according to the network attribute of the software defined network.
For example, the network object of the created network instance is divided into a two-layer network type and a three-layer network type according to the hierarchical network attribute of the software defined network, wherein the two-layer network type and the three-layer network type correspond to a two-layer network module and a three-layer network module, respectively.
S102b, extracting the objects of the network instance according to the module type to obtain the network module corresponding to the network instance.
For example, the object extraction is performed on the network instance according to the two-layer network type and the three-layer network type to obtain a two-layer network module and a three-layer network module corresponding to the network instance.
Specifically, the network object in the created network instance is abstracted into two modules, which are respectively: the system comprises a two-layer network module and a three-layer network module, wherein the two-layer network module solves the forwarding problem of the Ethernet message, for example, the two-layer network module comprises the functions of port online, Address Resolution Protocol (ARP) learning, two-layer forwarding table synchronization and the like; and the three-layer network module solves the routing forwarding problem of the IP message.
S102c, generating a theme instance corresponding to the module type based on the message queue model, and establishing a corresponding relation between the theme instance and the network module according to the module type.
Specifically, a first type of theme instance and a second type of theme instance are generated based on the message queue model; and establishing a corresponding relation between the theme instance of the first type and a two-layer network module, and establishing a corresponding relation between the theme instance of the second type and a three-layer network module.
The theme instance of the first type may be one theme instance or multiple theme instances; the second type of topic instance may be one topic instance or multiple topic instances.
For example, when the topic instance of the first type and the topic instance of the second type both include a plurality of topic instances, the establishing a correspondence between the topic instance of the first type and a layer-two network module and the establishing a correspondence between the topic instance of the second type and a layer-three network module includes: and establishing a corresponding relation between the network object of the two-layer network module and the plurality of theme instances in the first type of theme instances, and establishing a corresponding relation between the network object of the three-layer network module and the plurality of theme instances in the second type of theme instances. Thereby increasing the flexibility of the software defined network.
S103, acquiring data information generated by the network instance, and publishing the data information to the theme instance corresponding to the network instance according to the corresponding relation.
Specifically, acquiring the data information generated by the network instance refers to acquiring the data information generated by the publishing object of the network instance, and publishing the generated data information to the corresponding Topic so that the subscribing object subscribes to the data information. The publishing object and the subscribing object refer to part of the network objects of the network instance.
Specifically, the acquiring data information generated by the network instance and publishing the data information to the topic instance corresponding to the network instance according to the corresponding relationship includes: and acquiring data information generated by a two-layer network module and a three-layer network module of the network instance, publishing the data information generated by the two-layer network module to the first type of theme instance, and publishing the data information generated by the three-layer network module to the second type of theme instance.
The release object corresponding to the two-layer network module comprises: modules of various layer2, such as bridge, ovs, vSwitch, physical switch, include controller modules, such as VMware vCenter, OpenStack, and so forth.
The subscription object corresponding to the two-layer network module comprises: and layer2 modules of all access networks, such as network elements of vSwitch/OVS/TOR and the like accessing VM or PM Instance, VNI interfaces and the like.
The release object of the three-layer network module comprises: routers, networks, and controllers, etc. The router can actively release various routing entries of a routing table in the router, including static routing and various dynamic routing protocols; the gateway can actively release a route corresponding to the opposite end of the gateway, for example, a default route is arranged on the NAT gateway, a route of an IP address field of the opposite end is arranged on the VPN gateway, and the like; and the routing information actively issued by the user can be issued by the controller.
A subscription object for a three-tier network module, comprising: network elements such as vSwitch/OVS/TOR and the like with flow table forwarding capability; a router class selectively synchronizing the learned routing entries in Topic according to rules; gateway class, routing entries learned in the selective synchronization topic instance.
In one embodiment, the obtaining data information generated by the network instance and publishing the data information to the topic instance corresponding to the network instance according to the corresponding relationship includes:
acquiring a two-layer forwarding table and data information generated by a two-layer network module of the network instance; and converting the data information into a data information table according to the two-layer forwarding table, and issuing the data information table to the first type of subject instance. The data information generated by the two-layer module is converted into the data information table by utilizing the two-layer forwarding table in the two-layer network type and is published to the theme instance of the first type, so that the efficiency of subscribing the data information of the theme instance can be improved, and meanwhile, the later query is facilitated.
Table 1 is a two-layer forwarding table
MAC address Source host machine VTEP IP
MAC1 Host1 IP1
MAC2 Host2 IP2
MAC3 GW Interface IP3
In table 1, the MAC address of the calling procedure and the host from which VTEP IP is derived are recorded, where VTEP IP is the underlying tunnel IP address in the Overlay network scenario.
Therefore, different topics can be flexibly developed for network modules of network instances or network objects in the network modules, and various heterogeneous computing systems can be guaranteed to be accessed into the network, specifically, a two-layer network. For example, both layer2 port online flow and controller online flow are supported.
S104, subscribing the data information of the theme instance, and finishing the corresponding function of the network instance according to the data information to realize the software defined network.
Specifically, a consumer in the network instance subscribes the data information of the Topic, and performs corresponding actions according to the data information to complete corresponding functions, thereby realizing the software defined network. Such as maintaining local two-layer forwarding table information, or implementing applications for various network scenarios.
For example, as shown in fig. 3, the controller issues a message on Topic1, a route (10.0.1.0/24) needs to be added in the network, and the next hop is directed to router 2.
Both router 1 and gateway 1 subscribe to data information in Topic1 (subject instance), and execute corresponding action according to the data information to complete corresponding function, so there are the following logics: router 1 issues a routing table and 10.0.1.0/24 next hop points to the IP of router 2. Gateway 1 is a gateway with some function on router 1, for example, Site to Site VPN, where 10.0.1.0/24 is also set on the VPN gateway and the next hop is directed to router 1.
Therefore, the flexible definition of three-layer network forwarding can be realized through the subscription publishing model, the planning and setting of all networks can be automatically completed in a one-stop mode by a client, and the forwarding of the whole network can be realized as long as a definite routing requirement exists. Meanwhile, seamless connection of various dynamic routing protocols can be realized, languages of various routing protocols are unified into a model of a message queue, and application of various network scenes is realized.
The implementation method of the software defined network provided by the embodiment monitors the created network embodiment; generating a theme instance based on the message queue model, and establishing a corresponding relation between the theme instance and the created network instance; acquiring data information generated by the network instance, and storing the data information generated by the network instance to a corresponding theme instance according to the established corresponding relation; and subscribing the data information of the theme instance, and realizing the software defined network according to the data information. The idea of the centralized controller of the software defined network is dispersed into a plurality of theme instances, and each time one network instance is created, a corresponding theme instance is generated in time, so that the automatic setting of the whole network is realized, the single-point control problem of the system is solved, a fully distributed system consisting of a plurality of theme instances is formed, and the flexibility and the reliability of the software defined network are further improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another implementation method of a software-defined network according to an embodiment of the present application.
As shown in fig. 2, the method for implementing the software defined network specifically includes steps S201 to S206.
S201, monitoring a network instance established by a user based on a software defined network, and acquiring a network instance identifier of the network instance.
Specifically, the monitoring user may establish one VPC or multiple VPCs, such as VPC1, VPC2, VPC3, based on the established virtual private cloud of the software defined network. Network instance identifications, such as VPC1, VPC2, and VPC3, of the network instance are obtained.
S202, generating a theme instance based on the message queue model, and deploying the theme instance in a containerized high-availability cluster.
Specifically, a Topic instance is created according to the monitored network instance trigger, the Topic instance is a Topic (Topic) generated based on a message queue model, and the Topic instance is deployed in a containerized high-availability cluster, so that the reliability of the network is provided.
As shown in fig. 5, multiple Topic instances generated based on the message queue model are deployed in a containerized high availability cluster, for example, Topic1, Topic2 to TopicN are deployed in a container cluster based on a high performance network and a server, that is, a containerized high availability cluster, and are used for implementing data publishing subscription between generators (Producers) and consumers (consumers), thereby improving network performance and reliability.
S203, establishing a master-backup relationship among the theme instances.
After all Topic instances (topics) are realized by containerized high-availability clusters, main-standby high-availability deployment can be formed among a plurality of topics, so that the high availability of the network is further realized, and the reliability of the network is improved.
In one embodiment, in order to improve the high availability of the network, the main-standby relationship is established between the multiple topic instances, specifically: and taking each topic instance generated based on the message queue model as a main topic instance, and selecting at least one other topic instance from the plurality of topic instances as a standby topic instance.
For example, topic instances generated based on the message queue model include: the method comprises the following steps of taking Topic1, Topic2, Topic3, Topic4, Topic5 and Topic6 as main theme examples, and taking Topic1, Topic2, Topic3, Topic4, Topic5 and Topic6 as main theme examples, for example, when Topic1 is a main theme example, the corresponding standby theme examples can be any one or more of Topic2, Topic3, Topic4, Topic5 and Topic 6.
In addition, all producer connections with Topic implement a publisher unconnection legacy mechanism, that is, if a producer of Topic causes unconnection due to an exception, a default code is run on Topic, and the default mechanism without a producer is executed, so as to help a consumer execute a default forwarding rule.
For example, for Topic for a two-layer network module, if there is no producer, all forwarding planes forward based on existing means (i.e., existing means of forwarding for software-defined networking), and broadcast if an unknown MAC is encountered.
Furthermore, when a producer is lost, all Topic cannot update the latest forwarding data. The steps of maintaining forwarding data for the current Topic may be performed; if all producers under the high-availability architecture are monitored to be disconnected, operation and maintenance early warning is automatically initiated to trigger emergency repair. Thereby increasing the high availability of the system.
S204, obtaining the subject instance identification of the subject instance, and correspondingly storing the network instance identification and the subject instance identification in a corresponding relation table to realize the establishment of the corresponding relation.
For example, three network instances, which are VPC1, VPC2, and VPC3, are created, and three Topic instances are generated based on the message queue model and Topic instance identifiers of the Topic instances, which are Topic1, Topic2, and Topic3, respectively, are obtained. And correspondingly storing the network instance identifier and the subject instance identifier in a corresponding relation table to realize the establishment of the corresponding relation, which is specifically shown in table 2.
Table 2 is a correspondence table
Network example Example of subject matter
VPC1 Topic1
VPC2 Topic2
VPC3 Topic3
S205, acquiring data information generated by the network instance, and publishing the data information to the theme instance corresponding to the network instance according to the corresponding relation.
Specifically, acquiring the data information generated by the network instance refers to acquiring the data information generated by the publishing object of the network instance, and publishing the generated data information to the corresponding Topic so that the subscribing object subscribes to the data information.
S206, subscribing the data information of the theme instance, and finishing the corresponding function of the network instance according to the data information to realize the software defined network.
Specifically, a consumer in the network instance subscribes the data information of the Topic, and performs corresponding action according to the data information to complete corresponding functions, thereby realizing the software defined network. Such as maintaining local two-layer forwarding table information, or implementing applications for various network scenarios.
The embodiment provides a method for implementing a software defined network, which disperses the idea of an integrated controller of the software defined network into a plurality of topic instances, generates a corresponding topic instance in time when creating one network instance, and establishes a corresponding relationship, thereby implementing automatic setting of the whole network, solving the single-point control problem of the system, and simultaneously deploying the topic instances by using a containerized high-availability cluster, thereby improving the flexibility and reliability of the software defined network.
Referring to fig. 6, fig. 6 is a schematic block diagram of an implementation apparatus of a software-defined network according to an embodiment of the present application, where the implementation apparatus of the software-defined network is configured to execute the foregoing implementation method of the software-defined network. Wherein, the software defined network implementing device can be configured in the server.
As shown in fig. 6, the apparatus 400 for implementing the software-defined network includes: an instance monitoring unit 401, a generation establishing unit 402, an acquisition publishing unit 403, and a subscription implementing unit 404.
An instance monitoring unit 401 is configured to monitor the created network instance.
A generating and establishing unit 402, configured to generate a topic instance based on the message queue model, and establish a corresponding relationship between the topic instance and the network instance.
In one embodiment, the generation establishing unit 402 includes: a type acquisition sub-unit 4021, an object extraction sub-unit 4022, and an instance generation sub-unit 4023.
The type obtaining subunit 4021 is configured to obtain a preset module type, where the module type is a type corresponding to an object set formed by classifying network objects in a network instance according to network attributes of a software defined network.
In an embodiment, the type obtaining subunit 4021 is specifically configured to perform object extraction on the network instance to obtain a two-layer network module and a three-layer network module corresponding to the network instance.
An object extracting subunit 4022, configured to perform object extraction on the network instance according to the module type to obtain a network module corresponding to the network instance.
An instance generating subunit 4023, configured to generate a topic instance corresponding to the module type based on the message queue model, and establish a correspondence between the topic instance and the network module according to the module type.
Accordingly, the instance generation subunit 4023 is specifically configured to: generating a first type of topic instance and a second type of topic instance based on a message queue model; and establishing a corresponding relation between the theme instance of the first type and a two-layer network module, and establishing a corresponding relation between the theme instance of the second type and a three-layer network module.
An obtaining and publishing unit 403, configured to obtain data information generated by the network instance, and publish the data information to the topic instance corresponding to the network instance according to the corresponding relationship.
In an embodiment, the obtaining and issuing unit 403 is specifically configured to: acquiring a two-layer forwarding table and data information generated by a two-layer network module of the network instance; and converting the data information into a data information table according to the two-layer forwarding table, and issuing the data information table to the first type of subject instance.
A subscription implementing unit 404, configured to subscribe to the data information of the topic instance, and complete a function corresponding to the network instance according to the data information, so as to implement a software-defined network.
Referring to fig. 7, fig. 7 is a schematic block diagram of an implementation apparatus of a software-defined network according to an embodiment of the present application, where the implementation apparatus of the software-defined network is configured to execute the foregoing implementation method of the software-defined network. Wherein, the software defined network implementing device can be configured in the server.
As shown in fig. 7, the apparatus 500 for implementing a software-defined network includes: the system comprises an instance monitoring unit 501, a generation deployment unit 502, a relationship establishing unit 503, a generation establishing unit 504, an acquisition and publishing unit 505 and a subscription realizing unit 506.
An example monitoring unit 501, configured to monitor a network example established by a user based on a software-defined network, and obtain a network example identifier of the network example.
The generating and deploying unit 502 is configured to generate a topic instance based on the message queue model, and deploy the topic instance in the containerized high-availability cluster.
The relationship establishing unit 503 is configured to establish a primary-standby relationship between the plurality of topic instances.
A generating and establishing unit 504, configured to obtain a topic instance identifier of the topic instance, and store the network instance identifier and the topic instance identifier in a corresponding relationship table correspondingly to implement establishing a corresponding relationship.
And an obtaining and publishing unit 505, configured to obtain data information generated by the network instance, and publish the data information to the topic instance corresponding to the network instance according to the corresponding relationship.
A subscription implementing unit 506, configured to subscribe to the data information of the topic instance, and complete a function corresponding to the network instance according to the data information to implement a software-defined network.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application. The computer device may be a terminal.
Referring to fig. 8, the computer device includes a processor, a memory, and a network interface connected through a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the software-defined network implementation methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor causes the processor to perform any of the software-defined network implementations.
The network interface is used for network communication, such as sending assigned tasks and the like. It will be appreciated by those skilled in the art that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
monitoring the created network instance; generating a theme instance based on a message queue model, and establishing a corresponding relation between the theme instance and the network instance; acquiring data information generated by the network instance, and publishing the data information to a theme instance corresponding to the network instance according to the corresponding relation; and subscribing the data information of the theme instance, and finishing the corresponding function of the network instance according to the data information to realize the software defined network.
In one embodiment, when implementing the generating of the topic instance based on the message queue model and establishing the corresponding relationship between the topic instance and the network instance, the processor is configured to implement:
acquiring a preset module type, wherein the module type is a type corresponding to an object set formed by classifying network objects in a network instance according to network attributes of a software defined network; performing object extraction on the network instance according to the module type to obtain a network module corresponding to the network instance; and generating a theme instance corresponding to the module type based on the message queue model, and establishing a corresponding relation between the theme instance and the network module according to the module type.
In an embodiment, when the processor performs the object extraction on the network instance according to the module type to obtain the network module corresponding to the network instance, the processor is configured to:
extracting objects from the network instance to obtain a two-layer network module and a three-layer network module corresponding to the network instance;
correspondingly, when the processor generates the theme instance corresponding to the module type based on the message queue model and establishes the corresponding relationship between the theme instance and the network module according to the module type, the processor is used for realizing that:
generating a first type of subject matter instance and a second type of subject matter instance based on a message queue model;
and establishing a corresponding relation between the theme instance of the first type and a two-layer network module, and establishing a corresponding relation between the theme instance of the second type and a three-layer network module.
In one embodiment, when the processor implements the acquiring of the data information generated by the network instance and the publishing of the data information to the topic instance corresponding to the network instance according to the correspondence, the processor is configured to implement:
acquiring a two-layer forwarding table and data information generated by a two-layer network module of the network instance; and converting the data information into a data information table according to the two-layer forwarding table, and issuing the data information table to the first type of subject instance.
In one embodiment, the processor, when implementing the monitoring of the created network instance, is configured to implement:
monitoring a network instance established by a user based on a software defined network, and acquiring a network instance identifier of the network instance;
accordingly, the processor, when implementing the establishing the corresponding relationship between the topic instance and the network instance, is configured to implement:
obtaining a theme instance identifier of the theme instance; and correspondingly storing the network instance identification and the subject instance identification in a corresponding relation table to realize the establishment of the corresponding relation.
In one embodiment, after implementing the generating of the topic instance based on the message queue model, the processor is further configured to implement:
and deploying the theme instances in a containerized high-availability cluster, and establishing a main-standby relationship among a plurality of theme instances.
In an embodiment, when implementing the establishing of the active-standby relationship between the plurality of topic instances, the processor is configured to implement:
and taking each topic instance in the plurality of topic instances as a main topic instance, and selecting at least one other topic instance from the plurality of topic instances as a standby topic instance.
The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and the processor executes the program instructions to implement the implementation method of any software defined network provided by the embodiment of the application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for implementing a software defined network, comprising:
monitoring the created network instance;
generating a theme instance based on a message queue model, and establishing a corresponding relation between the theme instance and the network instance;
acquiring data information generated by the network instance, and publishing the data information to a theme instance corresponding to the network instance according to the corresponding relation;
and subscribing the data information of the theme instance, and completing the corresponding function of the network instance according to the data information to realize the software defined network.
2. The method according to claim 1, wherein the generating a topic instance based on a message queue model, and establishing a corresponding relationship between the topic instance and the network instance comprises:
acquiring a preset module type, wherein the module type is a type corresponding to an object set formed by classifying network objects in a network instance according to network attributes of a software defined network;
performing object extraction on the network instance according to the module type to obtain a network module corresponding to the network instance;
and generating a theme instance corresponding to the module type based on the message queue model, and establishing a corresponding relation between the theme instance and the network module according to the module type.
3. The method according to claim 2, wherein the extracting the object from the network instance according to the module type to obtain the network module corresponding to the network instance comprises:
extracting objects from the network instance to obtain a two-layer network module and a three-layer network module corresponding to the network instance;
generating a theme instance corresponding to the module type based on the message queue model, and establishing a corresponding relation between the theme instance and a network module according to the module type, wherein the method comprises the following steps:
generating a first type of subject matter instance and a second type of subject matter instance based on a message queue model;
and establishing a corresponding relation between the theme instance of the first type and a two-layer network module, and establishing a corresponding relation between the theme instance of the second type and a three-layer network module.
4. The method according to claim 3, wherein the obtaining the data information generated by the network instance and publishing the data information to the topic instance corresponding to the network instance according to the corresponding relationship comprises:
acquiring a two-layer forwarding table and data information generated by a two-layer network module of the network instance;
and converting the data information into a data information table according to the two-layer forwarding table, and issuing the data information table to the first type of subject instance.
5. The method of claim 1, wherein the monitoring the created network instance comprises:
monitoring a network instance established by a user based on a software defined network, and acquiring a network instance identifier of the network instance;
the establishing of the corresponding relationship between the theme instance and the network instance includes:
obtaining a theme instance identifier of the theme instance; and
and correspondingly storing the network instance identification and the subject instance identification in a corresponding relation table to realize the establishment of the corresponding relation.
6. The method according to any one of claims 1 to 5, wherein after generating the topic instance based on the message queue model, the method further comprises:
and deploying the theme instances in a containerized high-availability cluster, and establishing a main-standby relationship among a plurality of theme instances.
7. The method according to claim 6, wherein the establishing a master-slave relationship between the plurality of topic instances comprises:
and taking each topic instance in the plurality of topic instances as a main topic instance, and selecting at least one other topic instance from the plurality of topic instances as a standby topic instance.
8. An apparatus for implementing a software-defined network, comprising:
the instance monitoring unit is used for monitoring the created network instance;
the generating and establishing unit is used for generating a theme instance based on a message queue model and establishing the corresponding relation between the theme instance and the network instance;
the acquisition and release unit is used for acquiring the data information generated by the network instance and releasing the data information to the theme instance corresponding to the network instance according to the corresponding relation;
and the subscription realization unit is used for subscribing the data information of the theme instance and finishing the corresponding function of the network instance according to the data information so as to realize the software defined network.
9. A computer device, wherein the computer device comprises a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and to implement the method of implementing the software defined network according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the implementation method of the software-defined network according to any one of claims 1 to 7.
CN201910420158.7A 2019-05-20 2019-05-20 Method and device for realizing software defined network, computer equipment and storage medium Active CN110311803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910420158.7A CN110311803B (en) 2019-05-20 2019-05-20 Method and device for realizing software defined network, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910420158.7A CN110311803B (en) 2019-05-20 2019-05-20 Method and device for realizing software defined network, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110311803A CN110311803A (en) 2019-10-08
CN110311803B true CN110311803B (en) 2022-08-26

Family

ID=68075412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910420158.7A Active CN110311803B (en) 2019-05-20 2019-05-20 Method and device for realizing software defined network, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110311803B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114513504B (en) * 2022-04-06 2024-11-05 广联达科技股份有限公司 Message queue multi-cloud adaptation method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN106953848A (en) * 2017-02-28 2017-07-14 浙江工商大学 A kind of software defined network implementation method based on ForCES
CN107888499A (en) * 2017-11-17 2018-04-06 北京邮电大学 A kind of distribution subscription system and message forwarding method based on SDN
CN109688235A (en) * 2019-03-18 2019-04-26 北京金山云网络技术有限公司 Virtual network method for processing business, device and system, controller, storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10565177B2 (en) * 2016-11-14 2020-02-18 At&T Intellectual Property I, L.P. Software defined entities for digital service transactions
US10608895B2 (en) * 2017-03-31 2020-03-31 At&T Intellectual Property I, L.P. Quality of service management for dynamic instantiation of network slices and/or applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN106953848A (en) * 2017-02-28 2017-07-14 浙江工商大学 A kind of software defined network implementation method based on ForCES
CN107888499A (en) * 2017-11-17 2018-04-06 北京邮电大学 A kind of distribution subscription system and message forwarding method based on SDN
CN109688235A (en) * 2019-03-18 2019-04-26 北京金山云网络技术有限公司 Virtual network method for processing business, device and system, controller, storage medium

Also Published As

Publication number Publication date
CN110311803A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
US11704144B2 (en) Creating virtual machine groups based on request
CN114363021B (en) Network target range system, virtual network implementation method and device of network target range system
US10644952B2 (en) VNF failover method and apparatus
EP3327994B1 (en) Virtual network management
CN112398687B (en) Configuration method of cloud computing network, cloud computing network system and storage medium
CN109547349B (en) Virtual routing-based traffic management method, device, terminal and storage medium
CN114500169B (en) Method for establishing VXLAN tunnel, method and device for forwarding message
US11177974B2 (en) Consistent provision of member node group information on virtual overlay network
CN105204812A (en) Plugin-based multi-interface display control system and integrating method thereof
US20160203017A1 (en) Baseboard management controller providing peer system identification
CN112637105B (en) Method, system, device and computer readable storage medium for switching firewall
CN104065553B (en) Virtual network moving method and relevant device
CN113572831A (en) Communication method between Kubernetes clusters, computer equipment and medium
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN103986789A (en) Method for realizing dual redundant of NFS (network file system) nodes in HADOOP HA (home address) cluster based on NFS
CN103631652A (en) Method and system for achieving virtual machine migration
CN109379268B (en) Virtual private network creating method and device and server
He et al. How flexible is dynamic SDN control plane?
CN110311803B (en) Method and device for realizing software defined network, computer equipment and storage medium
EP3439249A1 (en) Network system, management method and device for same, and server
CN108650337B (en) Server detection method, system and storage medium
WO2016198004A1 (en) Network gambit configuration method and apparatus under virtualization technology
CN114157668B (en) Multi-tenant cross-cluster networking method, communication system and readable storage medium
CN113407306B (en) Resource management system, method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant