CN114024921A - Tunnel cooperation method, device, equipment and readable storage medium - Google Patents

Tunnel cooperation method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN114024921A
CN114024921A CN202111199044.8A CN202111199044A CN114024921A CN 114024921 A CN114024921 A CN 114024921A CN 202111199044 A CN202111199044 A CN 202111199044A CN 114024921 A CN114024921 A CN 114024921A
Authority
CN
China
Prior art keywords
tunnel
endpoint
host
switch
information
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.)
Granted
Application number
CN202111199044.8A
Other languages
Chinese (zh)
Other versions
CN114024921B (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.)
Zhengzhou Inspur Data Technology Co Ltd
Original Assignee
Inspur Jinan data Technology 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202111199044.8A priority Critical patent/CN114024921B/en
Publication of CN114024921A publication Critical patent/CN114024921A/en
Application granted granted Critical
Publication of CN114024921B publication Critical patent/CN114024921B/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
    • 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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Landscapes

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

Abstract

The application discloses a tunnel cooperation method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: acquiring host endpoint information of a host tunnel endpoint by using a tunnel cooperation plug-in, and sending the host endpoint information to a switch endpoint; utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint; a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection. In the application, a tunnel cooperative plug-in and a tunnel cooperative drive are provided to realize mutual sensing and tunnel connection establishment between a host tunnel endpoint and a switch endpoint, so that when the hybrid overlay is realized, the hybrid overlay is not limited to equipment of the same manufacturer any more, equipment of different manufacturers can be connected in an abutting mode, and the flexibility of the hybrid overlay can be improved.

Description

Tunnel cooperation method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of computer and network technologies, and in particular, to a tunnel coordination method, apparatus, device, and readable storage medium.
Background
The Overlay is a virtualization technology mode superposed on a network architecture, and the general framework of the Overlay is to realize the load bearing of the application on the network without large-scale modification of the basic network, can be separated from other network services, and is mainly based on the IP-based basic network technology.
The Overlay network is a virtual network established on an existing network and is composed of logical nodes and logical links. The Overlay network has independent control and forwarding planes, and the physical network is transparent to the terminal system connected outside the Overlay edge device. The Overlay network is a deep extension from a physical network to cloud and virtualization, so that the cloud resource pooling capability can get rid of the heavy limitation of the physical network, and the Overlay network is a key for realizing cloud network convergence.
In practical applications, the method mainly includes a host overlay technology, a network overlay technology and a hybrid overlay. The hybrid overlay refers to the use of a host overlay and a network overlay together, the overlay of a two-layer message is encapsulated on each computing node, and the overlay of a three-layer routing flow is encapsulated on an SDN switch. In the tunnel collaboration, i.e., between hosts, between network devices, and between a host and a network device, it is necessary to mutually sense and establish tunnel connection for communication through a tunnel.
At present, some cloud products provide a hybrid overlay scheme, but all cloud products can only be docked with home products and cannot be docked with other home products.
In conclusion, how to effectively solve the problems of product butt joint of different manufacturers in the hybrid overlay and the like is a technical problem which needs to be solved urgently by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a tunnel cooperation method, a tunnel cooperation device, tunnel cooperation equipment and a readable storage medium, which solve the problem of docking products of different manufacturers in a hybrid overlay.
In order to solve the technical problems, the invention provides the following technical scheme:
a tunnel collaboration method, comprising:
acquiring host endpoint information of a host tunnel endpoint by using a tunnel cooperation plug-in, and sending the host endpoint information to a switch endpoint;
utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint;
a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection.
Preferably, the acquiring, by using the tunnel collaboration plug-in, the host endpoint information of the host tunnel endpoint and sending the host endpoint information to the switch endpoint includes:
utilizing the tunnel collaborative plug-in to periodically acquire the full host endpoint information of all host tunnel endpoints;
and calling the tunnel synchronization port of all the tunnel cooperative drives, and sending the full-amount host endpoint information to the software-defined network controller so that the software-defined network forwards the full-amount host endpoint information to the switch endpoint.
Preferably, the acquiring, by using the tunnel cooperative drive, the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint includes:
acquiring the full-scale switch endpoint information of all switch endpoints by utilizing the tunnel cooperative drive;
comparing the endpoint information of the full-scale switch with the last acquired endpoint information of the historical full-scale switch to obtain the endpoint information of the differential switch;
the differential switch endpoint information is sent to the host tunnel endpoint.
Preferably, the acquiring, by using the tunnel cooperative drive, the full-scale switch endpoint information of all the switch endpoints includes:
calling the tunnel endpoint attribute in the tunnel collaborative drive to obtain each return list; the list element number is a dictionary, switch endpoint information is included in the dictionary, and the switch endpoint information includes: tunnel type, tunnel endpoint IP, tunnel endpoint hostname, tunnel endpoint port.
Preferably, the method further comprises the following steps:
monitoring a host terminal agent in a host tunnel endpoint;
and when at least one of the updating behavior, the creating behavior and the removing behavior is monitored, the tunnel cooperative drive is called, and the updating, removing and creating messages of the host tunnel endpoint are sent to the switch endpoint.
Preferably, the method further comprises the following steps:
registering the tunnel collaborative driver to the software defined network;
and registering the tunnel collaboration plug-in to a cloud computing platform management platform.
Preferably, the method further comprises the following steps:
and after the configuration file corresponding to the network service plug-in of the cloud computing platform management platform is modified, loading the tunnel cooperation plug-in.
A tunnel collaboration apparatus, comprising:
the host information sensing module is used for acquiring host endpoint information of a host tunnel endpoint by using the tunnel cooperation plug-in and sending the host endpoint information to the switch endpoint;
the switch information sensing module is used for acquiring switch endpoint information of a switch endpoint by utilizing the tunnel cooperative drive and sending the switch endpoint information to the host tunnel endpoint;
and the tunnel coordination module is used for establishing tunnel connection between the host tunnel endpoint and the switch endpoint by utilizing the host endpoint information and the switch endpoint information so as to facilitate the tunnel communication between the host tunnel endpoint and the switch endpoint through the tunnel connection.
An electronic device, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the tunnel cooperation method when executing the computer program.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-described tunnel coordination method.
By applying the method provided by the embodiment of the invention, the host endpoint information of the host tunnel endpoint is obtained by using the tunnel cooperation plug-in, and the host endpoint information is sent to the switch endpoint; utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint; a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection.
In the application, in order to enable the host tunnel endpoint to be capable of interfacing with switch endpoints of different manufacturers, a tunnel collaboration plug-in and a tunnel collaboration driver are provided to implement mutual sensing and tunnel connection establishment between the host tunnel endpoint and the switch endpoint. Specifically, the tunnel driver plug-in may obtain host endpoint information of the host tunnel endpoint and send the host endpoint information to the switch endpoint, so that the switch endpoint may sense the host tunnel endpoint; the tunnel cooperative drive acquires switch endpoint information of the switch endpoint and sends the switch endpoint information to the host tunnel endpoint, so that the host tunnel endpoint can sense the switch endpoint. Based on the host endpoint information and the switch endpoint information, a tunnel connection may be established between the host tunnel endpoint and the switch endpoint, such that the host tunnel endpoint may tunnel communications with the switch endpoint via the tunnel connection. That is, when the hybrid overlay is realized, the hybrid overlay is not limited to the equipment of the same manufacturer, and the equipment of different manufacturers can be connected, so that the flexibility of the hybrid overlay can be improved.
Accordingly, embodiments of the present invention further provide a tunnel coordination apparatus, a device, and a readable storage medium corresponding to the tunnel coordination method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a tunnel coordination method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a system architecture of a hybrid overlay in an embodiment of the present application;
fig. 3 is a schematic diagram illustrating an embodiment of a tunnel coordination method in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a tunnel coordination apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
Referring to fig. 1 and fig. 2, fig. 1 is a flowchart of a tunnel coordination method in an embodiment of the present invention, and fig. 2 is a schematic diagram of a system architecture of a hybrid overlay in the embodiment of the present invention, where the method may be applied to the system shown in fig. 2, and the method includes the following steps:
s101, acquiring host endpoint information of a host tunnel endpoint by using the tunnel cooperation plug-in, and sending the host endpoint information to a switch endpoint.
The tunnel collaboration plug-in may specifically refer to a plug-in of openstack neutron. The openstack indicates a source cloud computing platform management platform project. Neutron refers to a network structure including an external network, an internal network, and a router. The external network is responsible for connecting to a network environment outside the OpenStack project, also known as public network, and unlike other networks, it is not just a virtual network, and more importantly, it means that the OpenStack network can be accessed and accessed by an external physical network, the external network may be a local area (Intranet) of an enterprise, and may also be the Internet (Internet), such a network is not directly managed by Neutron, and the internal network is completely defined by software, also known as private network. It is the network in which the virtual machine instance resides, and can be directly connected to the virtual machine. Project users may create their own internal networks. By default, the internal networks between items are isolated from each other and cannot be shared. The network is configured and managed directly by Neutron. The router is used to connect an internal network with an external network. The main ones that Neutron needs to implement are internal networks and routers. The internal network is an abstraction of the two-layer (L2) network, emulating the two-layer local area network of the physical network, which is private to the project. The router is an abstraction of the three-layer (L3) network, and simulates a physical router to provide services such as routing and NAT for users.
The host tunnel endpoint (referred to as a host endpoint for short herein) may specifically refer to a node managed by openstack and having a tunnel creation capability. For example, openvswitch-agent node.
A switch endpoint (implemented by hardware and capable of implementing tunnel encapsulation), also called an SDN switch tunnel endpoint, may specifically refer to a third-party hardware SDN, is not managed by Openstack, but has a tunnel creation capability and needs a node that performs tunnel communication with a host endpoint. Such as SDN managed switches, etc. The sdn (software Defined network), a novel network innovation architecture of the Emulex network, is an implementation manner of network virtualization, and the core technology OpenFlow separates a control plane and a data plane of a network device, thereby implementing flexible control of network traffic and making the network as a pipeline more intelligent.
The tunnel driver plug-in may obtain host endpoint information for a host tunnel endpoint and send the host endpoint information to a switch endpoint. The host endpoint information may specifically include: tunnel type (e.g. vxlan), tunnel endpoint IP, tunnel endpoint hostname, and of course, depending on the tunnel type, a tunnel endpoint port may also be included. Specifically, when sending host endpoint information to a switch endpoint, this can be achieved by invoking a tunnel driver.
In a specific embodiment of the present application, the step S101, using a tunnel collaboration plug-in to obtain host endpoint information of a host tunnel endpoint, and sending the host endpoint information to a switch endpoint, includes:
step one, tunnel cooperative plug-in is utilized to periodically obtain the full amount of host end point information of all host tunnel end points;
and step two, calling tunnel synchronization ports of all the tunnel cooperative drives, and sending the full-amount host endpoint information to the software-defined network controller so that the software-defined network can forward the full-amount host endpoint information to the switch endpoint.
That is to say, the tunnel collaboration plug-in can issue the full amount of host endpoint information to the tunnel collaboration drive periodically, so as to perform information verification when data inconsistency occurs in some unknown or complex situations. The specific implementation mode is as follows: when the tunnel collaboration plug-in is started, registering a periodic task and synchronizing endpoint information; the tunnel collaboration plug-in inquires data to sense the full host endpoint information of all host endpoints; sequentially calling tunnel _ sysnc interfaces cooperatively driven by all tunnels; and the cooperative drive plug-in receives the full-amount host endpoint information and informs the SDN controller. And the SDN controller performs more-less compensation on the repeated endpoint information.
The switch endpoint receives the host endpoint information, and the purpose of sensing the host tunnel endpoint can be achieved.
It should be noted that, when the tunnel coordination method is implemented for the first time, before step S101 is executed, registration and loading of the tunnel driver plug-in and the tunnel driver may be completed, that is, the system building shown in fig. 2 is completed, and in fig. 2, the VTEP refers to a virtual tunnel endpoint; ovs is short for openvswitch, an open-source virtual switch software; br-tun is a ovs bridge name, a default agreed name in openstack neutron; the OVS Agent OVS Agent is the name of a component of openstack neutron; ml2 is a two-level management architecture with Driver as the Driver. For the existing plug-in/driver of the control node, specific definitions and functions of the existing plug-in/driver may be referred to, and detailed description is omitted here.
The specific implementation process comprises the following steps:
step one, registering a tunnel collaborative drive to a software defined network;
and step two, registering the tunnel collaboration plug-in to a cloud computing platform management platform.
It should be noted that when the switch endpoint is specifically a third-party hardware SDN, after the configuration file corresponding to the network service plug-in of the cloud computing platform management platform is modified, the tunnel collaboration plug-in is loaded.
That is, Openstack is responsible for implementing the tunnel collaboration plug-in. Service _ plug entries _ point (to implement a registration point loaded in name form). When this functionality is needed, the plugin is loaded by modifying the configuration file of the neutron-server.
The SDN is responsible for realizing tunnel cooperative driving. The tunnel collaboration driver is registered to neutron. tc _ drivers entry _ point (to implement a registration point loaded in the form of a name). And the tunnel collaboration plug-in selects a loading driver according to the configuration. The cooperative driving is realized according to the attribute and interface design, and can be an independent code library.
S102, utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint.
The switch endpoint information of the switch endpoint can be obtained by calling a tunnel cooperative drive mode, and the switch endpoint information is sent to the host tunnel endpoint. The switch endpoint information is similar to the host endpoint information, and is not described in detail herein.
In a specific embodiment of the present application, the step S102, using the tunnel cooperative drive to obtain the switch endpoint information of the switch endpoint, and sending the switch endpoint information to the host tunnel endpoint, includes:
acquiring full-quantity switch endpoint information of all switch endpoints by using tunnel cooperative drive;
comparing the endpoint information of the full-scale switch with the last acquired endpoint information of the historical full-scale switch to obtain the endpoint information of the differential switch;
and step three, sending the endpoint information of the differential switch to the host tunnel endpoint.
That is, the switch endpoint information corresponding to the switch endpoint may be synchronized to the host endpoint periodically. Specifically, the tunnel collaboration plug-in periodically pulls the endpoint information of the full-scale switch, compares the difference and informs the host endpoint. The specific implementation mode is as follows: when the tunnel collaboration plug-in is started, registering a periodic task to pull the endpoint information of the switch, and calling all the tunnel collaboration drivers in sequence to acquire the endpoint information of the switch; and comparing the difference and issuing the change.
In the first step, the tunnel cooperative drive is used to obtain the full-scale switch endpoint information of all the switch endpoints, which may specifically include: calling the tunnel endpoint attribute in the tunnel collaborative drive to obtain each return list; the list element number is a dictionary, switch endpoint information is included in the dictionary, and the switch endpoint information includes: tunnel type, tunnel endpoint IP, tunnel endpoint hostname, tunnel endpoint port. I.e. co-driver support, is invoked for the tunnel endpoint attribute (tunnel _ endpoints). And returning to the list, wherein the list element is a dictionary, and the end point information is in the dictionary. The endpoint information includes: the type of the tunnel: tunnel _ type ═ vxlan; and (3) tunnel endpoint IP: ip _ address; tunnel endpoint hostname: host (guaranteed unique); tunnel endpoint port: port (according to tunnel type, may not be present). Wherein: the tunnel type may be in the support _ channel _ types list.
The host tunnel endpoint receives the switch endpoint information, and the purpose of sensing the switch endpoint can be achieved.
S103, tunnel connection is established between the host tunnel endpoint and the switch endpoint by utilizing the host endpoint information and the switch endpoint information, so that the host tunnel endpoint and the switch endpoint can carry out tunnel communication through the tunnel connection.
After the switch end point and the host tunnel end point complete mutual sensing, tunnel connection can be established between the host tunnel end point and the switch end point by utilizing the host end point information and the switch end point information. After the tunnel connection is established, tunneling between the host tunnel endpoint and the switch endpoint may occur over the tunnel connection. Namely, the hybrid overlay can be realized among cross-producer devices.
In one embodiment of the present application, updates, creation, and overflow of host tunnel endpoints are also effectively sensed and related notifications are completed. The specific implementation process comprises the following steps:
monitoring a host terminal agent in a host tunnel endpoint;
and step two, when at least one of the updating behavior, the creating behavior and the removing behavior is monitored, the tunnel cooperative drive is called, and the updating, removing and creating messages of the host tunnel endpoint are sent to the switch endpoint.
Namely, the tunnel cooperative plug-in can detect the addition of a new host tunnel endpoint and issue the new host tunnel endpoint to the cooperative drive. The specific implementation mode is as follows: the tunnel collaboration plug-in monitors Agent creation behaviors; and receiving the creation notification, sequentially calling the create _ tunnel interfaces of all the collaborative drivers, receiving the endpoint information by the collaborative driver plug-in, and notifying the SDN controller.
And the tunnel cooperative plug-in can detect the update of the tunnel endpoint of the host and send the update to the cooperative drive. The specific implementation mode is as follows: the tunnel is cooperated with the plug-in unit to monitor the update behavior of the Agent; receiving the update notification, and sequentially calling the update _ tunnel interfaces of all the cooperative drives; and the cooperative drive plug-in receives the endpoint information and informs the SDN controller.
And the tunnel cooperative plug-in can detect that the host tunnel endpoint is removed and sends the host tunnel endpoint to the cooperative drive. The specific implementation mode is as follows: the tunnel is cooperated with the plug-in unit to monitor the Agent removal behavior; receiving the removal notification, and sequentially calling delete _ tunnel interfaces of all the cooperative drives; and the cooperative drive plug-in receives the endpoint information and informs the SDN controller.
Wherein the SDN controller may process the duplicate endpoint information.
By applying the method provided by the embodiment of the invention, the host endpoint information of the host tunnel endpoint is obtained by using the tunnel cooperation plug-in, and the host endpoint information is sent to the switch endpoint; utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint; a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection.
In the application, in order to enable the host tunnel endpoint to be capable of interfacing with switch endpoints of different manufacturers, a tunnel collaboration plug-in and a tunnel collaboration driver are provided to implement mutual sensing and tunnel connection establishment between the host tunnel endpoint and the switch endpoint. Specifically, the tunnel driver plug-in may obtain host endpoint information of the host tunnel endpoint and send the host endpoint information to the switch endpoint, so that the switch endpoint may sense the host tunnel endpoint; the tunnel cooperative drive acquires switch endpoint information of the switch endpoint and sends the switch endpoint information to the host tunnel endpoint, so that the host tunnel endpoint can sense the switch endpoint. Based on the host endpoint information and the switch endpoint information, a tunnel connection may be established between the host tunnel endpoint and the switch endpoint, such that the host tunnel endpoint may tunnel communications with the switch endpoint via the tunnel connection. That is, when the hybrid overlay is realized, the hybrid overlay is not limited to the equipment of the same manufacturer, and the equipment of different manufacturers can be connected, so that the flexibility of the hybrid overlay can be improved.
In order to better understand the specific implementation and technical effects of the tunnel coordination method provided in the embodiments of the present application, a detailed description of the tunnel coordination method is provided below with reference to fig. 3.
Fig. 3 is a schematic flowchart of a specific implementation process of a tunnel coordination method in an embodiment of the present application. Wherein rpc notification refers to sending a message to the other party through the messaging middleware.
In this approach, host tunnel endpoints may be periodically synchronized to switch endpoints. Specifically, the tunnel cooperative plug-in can periodically send the endpoint information of the full-scale host to the cooperative drive. And when data inconsistency occurs in some unknown or complex situations, information verification is carried out. The specific implementation process is as follows:
0. and when the tunnel collaboration plug-in is started, registering a periodic task and synchronizing the endpoint information.
1. And the tunnel collaboration plug-in inquires data to acquire all host endpoints.
2. Invoking all cooperatively driven tunnel _ sysnc interfaces in sequence
3. And the cooperative drive plug-in receives the endpoint information and informs the SDN controller.
In this method, switch endpoints are periodically synchronized to host endpoints.
The tunnel cooperative plug-in can periodically pull the endpoint information of the full-scale switch, compare the difference and inform the host endpoint. The specific implementation process is as follows:
0. when the tunnel collaboration plug-in is started, the periodic task is registered, and the endpoint information of the switch is pulled
1. And sequentially calling all the cooperative drives to acquire the endpoint information of the switch.
2. And comparing the difference and issuing the change.
In this approach, host endpoint creation may be perceived to notify switch endpoints.
And the tunnel cooperative plug-in can detect that a new host tunnel endpoint is added and sends the new host tunnel endpoint to the cooperative drive.
The specific implementation process is as follows:
1. and the tunnel is cooperated with the plug-in unit to monitor the Agent creating behavior.
2. A creation notification is received.
3. All cooperatively driven create _ tunnel interfaces are invoked in turn.
4. And the cooperative drive plug-in receives the endpoint information and informs the SDN controller.
In this approach, the switch endpoints may be notified of host endpoint updates.
And the tunnel cooperative plug-in can detect the update of the tunnel endpoint of the host and send the update to the cooperative drive. The specific implementation process is as follows:
1. and the tunnel is cooperated with the plug-in unit to monitor the update behavior of the Agent.
2. An update notification is received.
3. All the cooperatively driven update _ tunnel interfaces are called in turn.
4. And the cooperative drive plug-in receives the endpoint information and informs the SDN controller. .
In this approach, the switch endpoint may be notified of host endpoint removal.
And the tunnel cooperative plug-in can detect that the host tunnel endpoint is removed and sends the host tunnel endpoint to the cooperative drive. The specific implementation process is as follows:
1. and the tunnel cooperates with the plug-in unit to monitor the Agent removal behavior.
2. A removal notification is received.
3. All cooperatively driven delete _ tunnel interfaces are invoked in turn.
4. And the cooperative drive plug-in receives the endpoint information and informs the SDN controller.
The method can provide the collaborative driving attribute and the interface (support _ channel _ types and channel _ endpoints), specifically, the collaborative driving attribute, namely, support _ channel _ types. The collaborative drive support is invoked for this property. And returns the list. The list elements are strings (which may be unified as lower case letters). For example: [ "vxlan" ]. The list element is a dictionary. Within the dictionary is the endpoint information.
The endpoint information includes:
tunnel type tunnel _ type is vxlan;
and (3) tunnel endpoint IP: ip _ address;
tunnel endpoint hostname: host (unique guarantee is needed);
tunnel endpoint port: a port;
note that: the tunnel type should be within the support _ tunnel _ types list.
The tunnel in the method is supported by the cooperative drive, and the create _ tunnel method is called. When the method is called, tunnel type, host name, IP address, port number are transmitted. Reception parameters should be supported.
If the tunneling protocol does not support port numbers, a None will be transmitted.
The delete _ tunnel method is invoked with the support of tunnel co-driver in this method. When the method is called, the tunnel _ type, host, ip _ address, and port are transmitted. Reception parameters should be supported. If the tunneling protocol does not support port numbers, a None will be transmitted.
The tunnel in the method is supported by the cooperative drive, and the update _ tunnel method is called. When the method is called, the channel _ type, host, old _ ip, old _ port, new _ ip, and new _ port are transmitted to the update _ channel method. The tunnel cooperative drive in the method supports the called update _ tunnel method, namely the tunnel cooperative drive supports the receiving parameter. If the tunneling protocol does not support port numbers, None (a special value in python language) will be passed in.
The tunnel collaborative drive support in the method is called a tunnel _ sync method, and a tunnel _ endpoint (a parameter name of the tunnel _ sync method) is transmitted, and fig. 3 the tunnel _ endpoint refers to an attribute value of the tunnel collaborative drive). The parameter tunnel _ ends data structure cooperates with the data structure of the tunnel driving attribute value tunnel _ ends.
The method also supports multiple architectures, namely independent of the bottom CPU architecture, and supports multiple architectures: x86 (a common cpu architecture), arm (a common cpu architecture).
Corresponding to the above method embodiment, an embodiment of the present invention further provides a tunnel coordination apparatus, and the tunnel coordination apparatus described below and the tunnel coordination method described above may be referred to correspondingly.
Referring to fig. 4, the apparatus includes the following modules:
the host information sensing module 101 is configured to acquire host endpoint information of a host tunnel endpoint by using a tunnel collaboration plug-in, and send the host endpoint information to a switch endpoint;
the switch information sensing module 102 is configured to acquire switch endpoint information of a switch endpoint by using tunnel cooperative driving, and send the switch endpoint information to a host tunnel endpoint;
and the tunnel coordination module 103 is configured to establish a tunnel connection between the host tunnel endpoint and the switch endpoint by using the host endpoint information and the switch endpoint information, so that the host tunnel endpoint and the switch endpoint perform tunnel communication through the tunnel connection.
By applying the device provided by the embodiment of the invention, the host endpoint information of the host tunnel endpoint is obtained by utilizing the tunnel cooperation plug-in, and the host endpoint information is sent to the switch endpoint; utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint; a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection.
In the application, in order to enable the host tunnel endpoint to be capable of interfacing with switch endpoints of different manufacturers, a tunnel collaboration plug-in and a tunnel collaboration driver are provided to implement mutual sensing and tunnel connection establishment between the host tunnel endpoint and the switch endpoint. Specifically, the tunnel driver plug-in may obtain host endpoint information of the host tunnel endpoint and send the host endpoint information to the switch endpoint, so that the switch endpoint may sense the host tunnel endpoint; the tunnel cooperative drive acquires switch endpoint information of the switch endpoint and sends the switch endpoint information to the host tunnel endpoint, so that the host tunnel endpoint can sense the switch endpoint. Based on the host endpoint information and the switch endpoint information, a tunnel connection may be established between the host tunnel endpoint and the switch endpoint, such that the host tunnel endpoint may tunnel communications with the switch endpoint via the tunnel connection. That is, when the hybrid overlay is realized, the hybrid overlay is not limited to the equipment of the same manufacturer, and the equipment of different manufacturers can be connected, so that the flexibility of the hybrid overlay can be improved.
In a specific embodiment of the present invention, the host information sensing module 101 is specifically configured to periodically obtain the total host endpoint information of all host tunnel endpoints by using a tunnel collaboration plug-in;
and calling the tunnel synchronization port of all the tunnel cooperative drives, and sending the full-amount host endpoint information to the software-defined network controller so that the software-defined network forwards the full-amount host endpoint information to the switch endpoint.
In a specific embodiment of the present invention, the switch information sensing module 102 is specifically configured to obtain, by using tunnel cooperative driving, full switch endpoint information of all switch endpoints;
comparing the endpoint information of the full-scale switch with the last acquired endpoint information of the historical full-scale switch to obtain the endpoint information of the differential switch;
the differential switch endpoint information is sent to the host tunnel endpoint.
In a specific embodiment of the present invention, the switch information sensing module 102 is specifically configured to invoke a tunnel endpoint attribute in the tunnel collaborative drive to obtain each return list; the list element number is a dictionary, switch endpoint information is included in the dictionary, and the switch endpoint information includes: tunnel type, tunnel endpoint IP, tunnel endpoint hostname, tunnel endpoint port.
In one embodiment of the present invention, the method further comprises:
the monitoring module is used for monitoring a host terminal agent in a host tunnel endpoint;
and when at least one of the updating behavior, the creating behavior and the removing behavior is monitored, the tunnel cooperative drive is called, and the updating, removing and creating messages of the host tunnel endpoint are sent to the switch endpoint.
In one embodiment of the present invention, the method further comprises:
the registration module is used for registering the tunnel collaborative drive to the software defined network;
and registering the tunnel collaboration plug-in to a cloud computing platform management platform.
In a specific embodiment of the present invention, the loading module is configured to load the tunnel collaboration plug-in after modifying a configuration file corresponding to the network service plug-in of the cloud computing platform management platform.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an electronic device, and a reference may be made to an electronic device described below and a tunnel coordination method described above in correspondence with each other.
Referring to fig. 5, the electronic device includes:
a memory 332 for storing a computer program;
a processor 322, configured to implement the steps of the tunnel coordination method of the foregoing method embodiment when executing the computer program.
Specifically, referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device provided in this embodiment, which may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Memory 332 may be, among other things, transient or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a data processing device. Still further, the central processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the electronic device 301.
The electronic device 301 may also include one or more power sources 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341.
The steps in the tunnel coordination method described above may be implemented by the structure of the electronic device.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and a tunnel coordination method described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the tunnel coordination method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A tunnel collaboration method, comprising:
acquiring host endpoint information of a host tunnel endpoint by using a tunnel cooperation plug-in, and sending the host endpoint information to a switch endpoint;
utilizing the tunnel cooperative drive to acquire the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint;
a tunnel connection is established between the host tunnel endpoint and the switch endpoint using the host endpoint information and the switch endpoint information, such that the host tunnel endpoint and the switch endpoint tunnel communications over the tunnel connection.
2. The tunnel collaboration method of claim 1, wherein the obtaining host endpoint information of the host tunnel endpoint and sending the host endpoint information to the switch endpoint by using the tunnel collaboration plug-in comprises:
utilizing the tunnel collaborative plug-in to periodically acquire the full host endpoint information of all host tunnel endpoints;
and calling the tunnel synchronization port of all the tunnel cooperative drives, and sending the full-amount host endpoint information to the software-defined network controller so that the software-defined network forwards the full-amount host endpoint information to the switch endpoint.
3. The tunnel collaboration method of claim 1, wherein the acquiring, by using the tunnel collaboration driver, the switch endpoint information of the switch endpoint and sending the switch endpoint information to the host tunnel endpoint comprises:
acquiring the full-scale switch endpoint information of all switch endpoints by utilizing the tunnel cooperative drive;
comparing the endpoint information of the full-scale switch with the last acquired endpoint information of the historical full-scale switch to obtain the endpoint information of the differential switch;
the differential switch endpoint information is sent to the host tunnel endpoint.
4. The method of claim 3, wherein the obtaining the full-scale switch endpoint information of all switch endpoints by using the tunnel coordination driver comprises:
calling the tunnel endpoint attribute in the tunnel collaborative drive to obtain each return list; the list element number is a dictionary, switch endpoint information is included in the dictionary, and the switch endpoint information includes: tunnel type, tunnel endpoint IP, tunnel endpoint hostname, tunnel endpoint port.
5. The tunnel collaboration method as recited in claim 1, further comprising:
monitoring a host terminal agent in a host tunnel endpoint;
and when at least one of the updating behavior, the creating behavior and the removing behavior is monitored, the tunnel cooperative drive is called, and the updating, removing and creating messages of the host tunnel endpoint are sent to the switch endpoint.
6. The tunnel collaboration method as claimed in any one of claims 1 to 5, further comprising:
registering the tunnel collaborative driver to the software defined network;
and registering the tunnel collaboration plug-in to a cloud computing platform management platform.
7. The tunnel collaboration method as recited in claim 6, further comprising:
and after the configuration file corresponding to the network service plug-in of the cloud computing platform management platform is modified, loading the tunnel cooperation plug-in.
8. A tunnel collaboration apparatus, comprising:
the host information sensing module is used for acquiring host endpoint information of a host tunnel endpoint by using the tunnel cooperation plug-in and sending the host endpoint information to the switch endpoint;
the switch information sensing module is used for acquiring switch endpoint information of a switch endpoint by utilizing the tunnel cooperative drive and sending the switch endpoint information to the host tunnel endpoint;
and the tunnel coordination module is used for establishing tunnel connection between the host tunnel endpoint and the switch endpoint by utilizing the host endpoint information and the switch endpoint information so as to facilitate the tunnel communication between the host tunnel endpoint and the switch endpoint through the tunnel connection.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the tunnel coordination method according to any one of claims 1 to 7 when executing a computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, realizes the steps of the tunnel coordination method according to any one of claims 1 to 7.
CN202111199044.8A 2021-10-14 2021-10-14 Tunnel cooperation method, device, equipment and readable storage medium Active CN114024921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111199044.8A CN114024921B (en) 2021-10-14 2021-10-14 Tunnel cooperation method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111199044.8A CN114024921B (en) 2021-10-14 2021-10-14 Tunnel cooperation method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114024921A true CN114024921A (en) 2022-02-08
CN114024921B CN114024921B (en) 2024-05-28

Family

ID=80056319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111199044.8A Active CN114024921B (en) 2021-10-14 2021-10-14 Tunnel cooperation method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114024921B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282003A (en) * 2014-06-20 2016-01-27 中国电信股份有限公司 Tunnel establishing method and system, tunnel controller and virtual switch
US20160299775A1 (en) * 2015-04-08 2016-10-13 Brocade Communications Systems, Inc. Dynamic orchestration of overlay tunnels
CN106685787A (en) * 2017-01-03 2017-05-17 华胜信泰信息产业发展有限公司 Power VM virtualized network management method and device based on Open Stack
CN107534643A (en) * 2015-03-20 2018-01-02 移动熨斗公司 Mobile service is changed between IP VPN and transport layer VPN
CN108768889A (en) * 2018-05-07 2018-11-06 广州大学华软软件学院 A kind of SDN network multichannel line bandwidth dynamic allocation method
CN109218203A (en) * 2018-09-20 2019-01-15 上海龙弈信息科技有限公司 A kind of Financial Management and risk control processing system and its operation method
CN110601949A (en) * 2019-09-10 2019-12-20 中国人民解放军国防科技大学 Multi-virtual equipment container networking method
CN111385180A (en) * 2018-12-28 2020-07-07 ***通信集团重庆有限公司 Communication tunnel construction method, device, equipment and medium
CN111478846A (en) * 2020-03-18 2020-07-31 浪潮思科网络科技有限公司 Method, device and medium for realizing multi-tenant network in cloud network environment
CN111585900A (en) * 2020-04-30 2020-08-25 平安科技(深圳)有限公司 Multicast method based on SDN controller in host overlay network
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN
CN112291147A (en) * 2020-10-15 2021-01-29 北京直真科技股份有限公司 Dynamic intelligent SR tunnel application method for 5G service
CN112805977A (en) * 2018-08-07 2021-05-14 Dh2I公司 Application transmission control protocol tunnel on public internet
WO2021098727A1 (en) * 2019-11-18 2021-05-27 华为技术有限公司 Network deployment method and system
CN112866075A (en) * 2020-12-21 2021-05-28 网络通信与安全紫金山实验室 In-band network telemetering method, system and related device for Overlay network

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282003A (en) * 2014-06-20 2016-01-27 中国电信股份有限公司 Tunnel establishing method and system, tunnel controller and virtual switch
CN107534643A (en) * 2015-03-20 2018-01-02 移动熨斗公司 Mobile service is changed between IP VPN and transport layer VPN
US20160299775A1 (en) * 2015-04-08 2016-10-13 Brocade Communications Systems, Inc. Dynamic orchestration of overlay tunnels
CN106685787A (en) * 2017-01-03 2017-05-17 华胜信泰信息产业发展有限公司 Power VM virtualized network management method and device based on Open Stack
CN108768889A (en) * 2018-05-07 2018-11-06 广州大学华软软件学院 A kind of SDN network multichannel line bandwidth dynamic allocation method
CN112805977A (en) * 2018-08-07 2021-05-14 Dh2I公司 Application transmission control protocol tunnel on public internet
CN109218203A (en) * 2018-09-20 2019-01-15 上海龙弈信息科技有限公司 A kind of Financial Management and risk control processing system and its operation method
CN111385180A (en) * 2018-12-28 2020-07-07 ***通信集团重庆有限公司 Communication tunnel construction method, device, equipment and medium
CN110601949A (en) * 2019-09-10 2019-12-20 中国人民解放军国防科技大学 Multi-virtual equipment container networking method
WO2021098727A1 (en) * 2019-11-18 2021-05-27 华为技术有限公司 Network deployment method and system
CN111478846A (en) * 2020-03-18 2020-07-31 浪潮思科网络科技有限公司 Method, device and medium for realizing multi-tenant network in cloud network environment
CN111585900A (en) * 2020-04-30 2020-08-25 平安科技(深圳)有限公司 Multicast method based on SDN controller in host overlay network
CN111800329A (en) * 2020-06-28 2020-10-20 浪潮思科网络科技有限公司 Message forwarding method, device and medium based on SDN and OVN
CN112291147A (en) * 2020-10-15 2021-01-29 北京直真科技股份有限公司 Dynamic intelligent SR tunnel application method for 5G service
CN112866075A (en) * 2020-12-21 2021-05-28 网络通信与安全紫金山实验室 In-band network telemetering method, system and related device for Overlay network

Also Published As

Publication number Publication date
CN114024921B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US10545750B2 (en) Distributed upgrade in virtualized computing environments
CN111371706B (en) Cloud network with multiple protocols using virtualization overlays across physical and virtualization workloads
US12047232B2 (en) Initializing network device and server configurations in a data center
CN107947961B (en) SDN-based Kubernetes network management system and method
US11128494B2 (en) Distributed virtual gateway appliance
CN111866053B (en) Software defined network controller, method and computer readable storage medium
US9906407B1 (en) Methods and apparatus for scalable resilient networks
US7761573B2 (en) Seamless live migration of virtual machines across optical networks
US10644952B2 (en) VNF failover method and apparatus
CN107896191B (en) Container-based virtual security component cross-cloud system and method
CN111865641B (en) Initializing server configuration in data center
Barabash et al. A case for overlays in dcn virtualization
CN106302076B (en) Method and system for establishing VXLAN tunnel and SDN controller
US11153228B1 (en) Synchronizing device resources for element management systems
US11650859B2 (en) Cloud environment configuration based on task parallelization
EP3952212B1 (en) Using a programmable resource dependency mathematical model to perform root cause analysis
CN114024921B (en) Tunnel cooperation method, device, equipment and readable storage medium
JP5063726B2 (en) Configuration control method for virtual node device
CN102790690B (en) A kind of distributed business network management method and system
CN116708535A (en) Network device controller, method, electronic device, storage medium and system
KR20180039461A (en) Apparatus and Method for Selecting Backup Service Function of Service Function Chain based on Software Defined Network
CN115189995A (en) Multi-cluster network federal communication establishing method, equipment and storage medium in Kubernets environment
EP3520364A1 (en) Techniques for simplified service modification utilizing a split design-assign framework

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240402

Address after: Room 1801, 18th Floor, Jiyun Investment Building, No. 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450018

Applicant after: Zhengzhou Inspur Data Technology Co.,Ltd.

Country or region after: China

Address before: 250101 room s311, building S05, Inspur Science Park, No. 1036, Inspur Road, Jinan pilot Free Trade Zone, Jinan, Shandong Province

Applicant before: Inspur(Jinan)Data Technology Co.,Ltd

Country or region before: China

GR01 Patent grant
GR01 Patent grant