CN111327509A - Information updating method and device - Google Patents

Information updating method and device Download PDF

Info

Publication number
CN111327509A
CN111327509A CN202010071193.5A CN202010071193A CN111327509A CN 111327509 A CN111327509 A CN 111327509A CN 202010071193 A CN202010071193 A CN 202010071193A CN 111327509 A CN111327509 A CN 111327509A
Authority
CN
China
Prior art keywords
port
host
virtual machine
switch
host name
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
CN202010071193.5A
Other languages
Chinese (zh)
Other versions
CN111327509B (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010071193.5A priority Critical patent/CN111327509B/en
Publication of CN111327509A publication Critical patent/CN111327509A/en
Application granted granted Critical
Publication of CN111327509B publication Critical patent/CN111327509B/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
    • 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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • 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
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The application provides an information updating method and device, and is characterized in that the method is applied to a controller, the controller is in a Software Defined Network (SDN), the SDN further comprises a switch, a first host and a second host, each host establishes physical connection with different ports included in the switch respectively, and the method comprises the following steps: when a virtual machine configured in a first host is online, setting a binding host name attribute value corresponding to the virtual machine as a first host name; receiving an update message sent by a cloud platform control node, wherein the update message comprises a virtual machine identifier and a binding host name attribute corresponding to the virtual machine, and the attribute is a second host name; and updating the set binding host name attribute corresponding to the virtual machine into the second host name according to the virtual machine identifier and the second host name.

Description

Information updating method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an information updating method and apparatus.
Background
In a hierarchical port binding scene of a Software Defined Network (SDN), a Link Layer Discovery Protocol (LLDP) service is configured at a service port of a host (computer), and the service port actively sends an LLDP message to a leaf switch (switch) connected to the service port. And the leaf switch uploads the received LLDP message to a controller in the SDN, so that the controller records the corresponding connection relation of ports between all computers and the leaf switch in the SDN through the received LLDP message.
The cloud platform control node is internally provided with a controller plug-in, the controller plug-in can be used for allocating a corresponding VLAN tag (the VLAN tag corresponds to a VXLAN network to which the computer belongs) to the computer each time, and meanwhile, the controller plug-in can also be used for synchronously informing the allocation result of each time to the controller. And the controller updates the mapping rule between the VLAN of the locally stored computer and the VXLAN according to the distribution result. In this way, when a virtual machine port configured in the computer comes online in the SDN, the controller issues a mapping rule between the VLAN and the VXLAN at a port of the corresponding host connected to the leaf switch, and the virtual machine port traffic can be forwarded normally in the VXLAN network.
When the live migration operation of the virtual machine port is carried out, the controller plug-in updates the binding host identification binding corresponding to the virtual machine port, wherein the host _ id attribute value is the new computer name. However, in the hierarchical port binding scenario, a computer is not managed to the controller, and at this time, the controller cannot identify the attribute value, and cannot update the new computer name corresponding to the migrated virtual machine port. After the information update after the virtual machine port migration still needs to depend on the virtual machine port migration, the information update actively sends an arp message or a rap message to the leaf switch through the service port of the computer so as to trigger the controller to update the information of the virtual machine port.
In the foregoing process, if the virtual machine port does not send an arp packet or a rap packet at a later time, the controller cannot actively update information of the migrated port, and the leaf switch port connected to the new computer is not configured with the mapping rule between the VLAN and the VXLAN corresponding to the virtual machine port, which may cause flow interruption of the virtual machine port and abnormal service.
Disclosure of Invention
In view of this, the present application provides an information updating method and apparatus, so as to solve the problems of flow interruption and abnormal service of a virtual machine port in the prior art.
In a first aspect, the present application provides an information updating method, which is applied to a controller, where the controller is in a software defined network SDN, the SDN further includes a switch, a first host, and a second host, and each host respectively establishes a physical connection with a different port included in the switch, and the method includes:
when a virtual machine port configured in a first host is online, setting a binding host name attribute value corresponding to the virtual machine port as a first host name;
receiving an update message sent by a cloud platform control node, wherein the update message comprises a virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is a second host name;
and updating the binding host name attribute corresponding to the set virtual machine port to be the second host name according to the virtual machine port identifier and the second host name.
With reference to the first aspect, in a first possible implementation manner, when a virtual machine port configured in a first host is online, before setting a binding host name attribute value corresponding to the virtual machine port as a first host name, the method further includes:
receiving a plurality of Link Layer Discovery Protocol (LLDP) messages transmitted by a host and forwarded by a switch, wherein each LLDP message comprises a host name, a switch identifier and a port identifier of the host accessed to the switch;
before setting the binding host name attribute value corresponding to the virtual machine port as the first host name, the method further includes:
receiving a notification message sent by a cloud platform control node, wherein the notification message comprises a virtual machine port identifier, a first host name and a first VLAN (virtual local area network) label distributed to a first host by the cloud platform control node;
when a virtual machine port is online, acquiring a first port identifier of a first host access switch from an LLDP message according to a first host name;
and sending a network mapping rule to the first port according to the first port identifier, so that the first port configures the mapping rule between the VLAN corresponding to the first VLAN tag and the VXLAN to which the virtual machine port belongs at the first port according to the network mapping rule.
With reference to the first aspect, in a second possible implementation manner, after the updating the set binding host name attribute value corresponding to the virtual machine port to the second host name, the method further includes:
according to the name of the second host, obtaining an identifier of the switch and a second port identifier of the switch accessed by the second host from the LLDP message;
updating a virtual machine port table item corresponding to the set virtual machine port according to the second host name, the switch identifier and the second port identifier;
the virtual machine table entry comprises a virtual machine port identifier, a host name, a switch identifier accessed by the host and a port identifier of a switch accessed by the host.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the update packet further includes a second VLAN tag that is allocated by the cloud platform control node to the second host;
after the set virtual machine port entry corresponding to the virtual machine port is updated, the method further includes:
according to the name of the second host, acquiring a second port identifier of the second host access switch from the virtual machine port table entry;
and sending the network mapping rule to the second port according to the second port identifier, so that the second port configures the mapping rule between the VLAN corresponding to the second VLAN tag and the VXLAN to which the virtual machine belongs at the second port according to the network mapping rule.
With reference to the first aspect or the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the first VLAN tag is different from the second VLAN tag.
In a second aspect, the present application provides an information updating apparatus in a software defined network SDN, where the SDN further includes a switch, a first host, and a second host, and each host respectively establishes a physical connection with a different port included in the switch, and the apparatus includes:
the device comprises a setting unit, a first host computer and a second host computer, wherein the setting unit is used for setting a binding host name attribute value corresponding to a virtual machine port as a first host name when the virtual machine port configured in the first host computer is online;
the cloud platform control node comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving an update message sent by the cloud platform control node, the update message comprises a virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is a second host name;
and the updating unit is used for updating the binding host name attribute corresponding to the set virtual machine port into the second host name according to the virtual machine port identifier and the second host name.
With reference to the second aspect, in a first possible implementation manner, the receiving unit is further configured to receive a plurality of link layer discovery protocol LLDP messages sent by a host and forwarded by a switch, where each LLDP message includes a host name, a switch identifier, and a port identifier of a host access switch;
the receiving unit is further configured to receive a notification message sent by the cloud platform control node, where the notification message includes a virtual machine port identifier, a first host name, and a first VLAN tag allocated by the cloud platform control node to the first host;
the device also includes: the first obtaining unit is used for obtaining a first port identifier of a first host access switch from an LLDP message according to a first host name when a virtual machine port is online;
and the sending unit is used for sending the network mapping rule to the first port according to the first port identifier, so that the first port configures the mapping rule between the VLAN corresponding to the first VLAN tag and the VXLAN to which the virtual machine port belongs at the first port according to the network mapping rule.
With reference to the second aspect, in a second possible implementation manner, the apparatus further includes:
the second obtaining unit is used for obtaining the switch identifier and a second port identifier of the second host access switch from the LLDP message according to the second host name;
the updating unit is further configured to update a virtual machine port table entry corresponding to the set virtual machine port according to the second host name, the switch identifier, and the second port identifier;
the virtual machine port table entry comprises a virtual machine port identifier, a host name, a switch identifier accessed by the host and a port identifier of a switch accessed by the host.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the update packet received by the receiving unit further includes a second VLAN tag that is allocated by the cloud platform control node to the second host;
the device also includes:
a third obtaining unit, configured to obtain, according to the name of the second host, a second port identifier of the second host access switch from the virtual machine port entry;
the sending unit is further configured to send the network mapping rule to the second port according to the second port identifier, so that the second port configures, according to the network mapping rule, a mapping rule between the VLAN corresponding to the second VLAN tag and the VXLAN to which the virtual machine belongs at the second port.
With reference to the second aspect or the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the first VLAN tag is different from the second VLAN tag.
In a third aspect, the present application provides an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
In a fourth aspect, the present application provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method provided by the first aspect of the present application.
Therefore, by applying the information updating method and apparatus provided by the present application, when a virtual machine port configured in a first host is online, a controller sets a binding host name attribute value corresponding to the virtual machine port as the first host name; the method comprises the steps that a controller receives an update message sent by a cloud platform control node, wherein the update message comprises a virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute is a second host name; and according to the virtual machine port identification and the second host name, the controller updates the binding host name attribute corresponding to the set virtual machine port to be the second host name.
The controller newly sets a binding host name attribute for the virtual machine port, and updates the locally set attribute value according to the binding host name attribute included in the update message sent by the cloud platform control node, so that the problems of flow interruption and abnormal service of the virtual machine port caused by the fact that the controller cannot actively update the information of the migrated port in the prior art are solved. And after the live migration operation of the virtual machine port is realized, the service is quickly recovered.
Drawings
Fig. 1 is a flowchart of an information updating method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a network before migration of a virtual machine port according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a post-migration network of a virtual machine port according to an embodiment of the present application;
fig. 4 is a structural diagram of an information updating apparatus according to an embodiment of the present application;
fig. 5 is a hardware structure diagram of another information updating apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The information updating method provided by the embodiment of the present application is explained in detail below. Referring to fig. 1, fig. 1 is a flowchart illustrating an information updating method according to an embodiment of the present application. The method is applied to the controller. The information updating method provided by the embodiment of the application can comprise the following steps.
Step 101, when a virtual machine port configured in the first host is online, setting a binding host name attribute value corresponding to the virtual machine port as the first host name.
Specifically, as shown in fig. 2, a schematic diagram of a network before migration of a virtual machine port is provided in an embodiment of the present application. In a hierarchical port binding scenario of SDN, a leaf switch managed by a controller connects two hosts 1 and 2 managed by a cloud platform (subsequently, the hosts are represented by computer1 and computer2, and are also names of the hosts). computer1 establishes a physical connection with a port of a leaf switch (port1, followed by an identification of port1 as the port). computer2 establishes a physical connection with a port of a leaf switch (port 2). A Virtual Machine (VM) port (described by way of example as VMA) is configured in computer 1.
Before this step, the service ports (not shown in fig. 2) of computer1 and computer2 connected to the leaf switch turn on LLDP service. And the service port actively sends the LLDP message to the leaf switch port connected with the service port. For example, port1 receives the first LLDP message sent by port1 (not shown in fig. 2) where computer1 is connected to the leaf switch. Similarly, port2 receives the second LLDP message sent by service port2 (not shown in fig. 2) connected to the leaf switch by computer 1. Each LLDP message includes a host name, a switch identifier, and a port identifier of the host access switch.
The leaf switch sends the received LLDP messages to the controller. The controller records the corresponding connection relationship of the ports between the computer and the leaf switch in the memory data through the received LLDP messages, as shown in table 1.
Table 1 correspondence of ports between computer and leaf switch
system_name dpid port
compute1 dpid_Leaf port1
compute2 dpid_Leaf port2
In this embodiment of the present application, because the cloud platform manages the computer, the cloud platform control node also performs corresponding network configuration on the virtual machine port configured in the computer.
Further, assume that the VXLAN network to which the VMA belongs is VXLAN 20000. At this time, the cloud platform control node assigns a VLAN tag to the compnter1, for example, the assigned VLAN tag is VLAN 10. The cloud platform control node generates a notification message including the VMA identification, the name of computer1, and a first VLAN tag (e.g., VLAN 10) assigned for computer 1.
The controller receives a notification message sent by a cloud platform control node, and when the VMA is online, the controller acquires a port identifier (namely port1) of a leaf switch accessed by the computer1 from a received first LLDP message according to the name of the computer 1; according to port1, the controller issues a network mapping rule to port1, and port1 configures, according to the network mapping rule, a mapping rule between VLAN10 corresponding to the first VLAN tag and VXLAN to which VMA belongs at port1, so that when a subsequent port1 receives a packet carrying VLAN10, the packet is encapsulated by corresponding VXLAN and then forwarded.
The business process of the VMA is normal through the aforementioned mapping rules issued by the controller at port 1.
Further, in this embodiment, the controller sets a property value for storing the binding host name corresponding to the virtual machine port for the VMA. The controller may identify or modify the attribute value.
When the VMA comes online, the controller also sets the bound hostname attribute value corresponding to the VMA to the first hostname, computer 1.
It will be appreciated that the controller may store the bound host name attribute value in a virtual machine port entry corresponding to the VMA, including the virtual machine port identification, the host name, the switch identification of the host access, and the port identification of the switch of the host access.
Step 102, receiving an update message sent by a cloud platform control node, where the update message includes the virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is the second host name.
Specifically, the cloud platform initiates a live migration operation of the virtual machine port to migrate the VMA into a new host (e.g., computer 2), as shown in fig. 3, where fig. 3 is a network diagram after the virtual machine port is migrated, according to an embodiment of the present disclosure. At this time, the cloud platform control node updates the binding host name attribute value corresponding to the VMA, that is, updates the binding _ hostname attribute value binding _ hostname corresponding to the VMA from the previous computer1 to computer 2.
The cloud platform control node generates an update message, where the update message includes a VMA identifier and a binding host name attribute corresponding to the VMA, and the attribute value is the name of computer 2.
The cloud platform control node sends an update message to the controller, and the controller receives the update message and acquires the VMA identifier and the new binding host name attribute value corresponding to the VMA from the update message.
Step 103, updating the set binding host name attribute corresponding to the virtual machine port to be the second host name according to the virtual machine port identifier and the second host name.
Specifically, the controller may find the bound host name attribute corresponding to the VMA according to the VMA identifier carried in the update message, and update the bound host name attribute corresponding to the VMA, which has been set in the foregoing step 101, according to the attribute value carried in the update message, that is, the controller updates the bound host name attribute value binding _ hostname corresponding to the VMA from the previous computer1 to the computer 2.
It can be understood that the controller may search the virtual machine port entry according to the VMA identifier, and if the virtual machine port entry is found, modify the entry content corresponding to the VMA correspondingly.
Therefore, by applying the information updating method provided by the embodiment of the present application, when the virtual machine port configured in the first host is online, the controller sets the binding host name attribute value corresponding to the virtual machine port as the first host name; the method comprises the steps that a controller receives an update message sent by a cloud platform control node, wherein the update message comprises a virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute is a second host name; and according to the virtual machine port identification and the second host name, the controller updates the binding host name attribute corresponding to the set virtual machine port to be the second host name.
The controller newly sets a binding host name attribute for the virtual machine port, and updates the locally set attribute value according to the binding host name attribute included in the update message sent by the cloud platform control node, so that the problems of flow interruption and abnormal service of the virtual machine port caused by the fact that the controller cannot actively update the information of the migrated port in the prior art are solved. And after the live migration operation of the virtual machine port is realized, the service is quickly recovered.
Optionally, in this embodiment of the application, after the controller updates the set binding host name attribute value corresponding to the virtual machine port to the second host name, the method further includes updating, by the controller, the content of the virtual machine port entry corresponding to the VMA.
Specifically, according to the name of computer2, the controller obtains the switch identifier and the second port identifier (i.e., port2) of the computer2 access leaf switch from the received second LLDP message; and updating the virtual machine port table entry corresponding to the set virtual machine port, namely the virtual machine port table entry corresponding to the VMA, according to the name of computer2, the leaf switch identification and port 2.
Optionally, in this embodiment of the present application, the update packet sent by the cloud platform control node further includes a second VLAN tag allocated by the cloud platform control node for the second host, and the method further includes a process in which the controller issues a network mapping rule at a port2 of the leaf switch according to the second VLAN tag allocated by the second host, and through this process, after a live migration operation on a port of the virtual machine is implemented, a service is quickly recovered.
Specifically, after the cloud platform initiates a live migration operation of the virtual machine port and migrates the VMA to computer2, at this time, the cloud platform control node further allocates a VLAN tag to computer2, for example, the allocated VLAN tag is VLAN 20.
It is understood that the update message sent by the cloud platform control node further includes a second VLAN tag (e.g., VLAN 20) assigned to computer 2.
The controller obtains the second VLAN label from the update message. According to the name of computer2, the controller acquires the second port identifier (i.e. port2) of the computer2 access leaf switch from the virtual machine port table entry corresponding to the updated VMA; according to the second port identifier, the controller issues a network mapping rule to port2, and port2 configures, according to the network mapping rule, a mapping rule between VLAN 20 corresponding to the second VLAN tag and VXLAN to which VMA belongs at port2, so that when a subsequent port2 receives a message carrying VLAN 20, the message is encapsulated by corresponding VXLAN and then forwarded.
The VMA service flow is not interrupted through the mapping rule issued by the controller at the port 2.
Optionally, in this embodiment of the present application, the first VLAN tag and the second VLAN tag are set as different tags.
It should be noted that the specific processes of executing generating and sending the update message and generating and sending the notification message may be completed by a controller plug-in disposed inside the cloud platform control node, where the plug-in may be specifically a software module, and is loaded inside the cloud platform control node.
The information updating method provided by the embodiment of the present application is described in detail below by taking fig. 2 and fig. 3 as examples.
As shown in fig. 2, in a hierarchical port binding scenario of SDN, a leaf switch managed by a controller connects two cloud platforms managed computer1 and computer 2. computer1 establishes a physical connection with a port of a leaf switch (port 1). computer2 establishes a physical connection with a port of a leaf switch (port 2). A VMA is configured within computer 1.
The service ports of the computer1 and the computer2 connected with the leaf switch open the LLDP service. And the service port actively sends the LLDP message to the leaf switch port connected with the service port. port1 receives the first LLDP message sent by service port1 connected to computer1 and leaf switch. Similarly, port2 receives the second LLDP message sent by service port2 connected to computer1 and the leaf switch. Each LLDP message includes a host name, a switch identifier, and a port identifier of the host access switch.
The leaf switch sends the received LLDP messages to the controller. The controller records the corresponding connection relationship between the ports of the computer and the leaf switch in the memory data through the received LLDP messages, as shown in table 1.
Assume that the VXLAN network to which the VMA belongs is VXLAN 20000. At this time, the cloud platform control node assigns a VLAN tag, for example, VLAN10, to the compnter 1. The cloud platform control node generates a notification message including the VMA identification, the name of computer1, and the VLAN10 assigned to computer 1.
The controller receives a notification message sent by a cloud platform control node, and when the VMA is online, the controller acquires a port identifier (namely port1) of a leaf switch accessed by the computer1 from a first LLDP message according to the name of the computer 1; according to port1, the controller issues a network mapping rule to port1, and port1 configures, according to the network mapping rule, a mapping rule between VLAN10 corresponding to the first VLAN tag and VXLAN to which VMA belongs at port1, so that when a subsequent port1 receives a packet carrying VLAN10, the packet is encapsulated by corresponding VXLAN and then forwarded.
The business process of the VMA is normal through the aforementioned mapping rules issued by the controller at port 1.
When the VMA comes online, the controller also sets the bound hostname attribute value corresponding to the VMA to computer 1.
The cloud platform initiates a live migration operation of the virtual machine port, migrating the VMA into computer2, as shown in FIG. 3. At this time, the cloud platform control node updates the binding host name attribute value corresponding to the VMA, that is, updates the binding _ hostname attribute value binding _ hostname corresponding to the VMA from the previous computer1 to computer 2. At this time, the cloud platform control node also assigns a VLAN tag, for example, VLAN 20, to the compnter 2.
The cloud platform control node generates an update message, where the update message includes the VMA identifier, the bound host name attribute corresponding to the VMA, and the VLAN 20 allocated for computer2, where the attribute value is computer 2.
The cloud platform control node sends an update message to the controller, and the controller receives the update message and obtains the VMA identifier, the new binding host name attribute value corresponding to the VMA and the VLAN label allocated to computer2 by the cloud platform control node. The controller finds that the bound hostname attribute value corresponding to the VMA is computer1 according to the VMA identifier. The controller updates the binding host name attribute value binding _ hostname corresponding to the VMA from the previous computer1 to computer2 according to the computer2 carried in the update message.
Meanwhile, according to computer2, the controller acquires the label of the leaf switch and the port2 of the computer2 access leaf switch from the second LLDP message; and updating the virtual machine port table entry corresponding to the VMA according to computer2, the leaf switch identification and port 2.
Further, the controller acquires the VLAN tag from the update message. According to the name of computer2, the controller acquires the second port identifier (i.e. port2) of the computer2 access leaf switch from the updated virtual machine port table entry corresponding to the VMA; according to port2, the controller issues a network mapping rule to port2, and port2 configures a mapping rule between VLAN 20 and VXLAN to which VMA belongs at port2 according to the network mapping rule, so that when a subsequent port2 receives a message carrying VLAN 20, the message is encapsulated by corresponding VXLAN and then forwarded.
The business process of the VMA is not interrupted through the network mapping rule issued by the controller at the port 2.
Based on the same inventive concept, the embodiment of the application also provides a processing device of the authentication process corresponding to the processing method of the authentication process. Referring to fig. 4, fig. 4 is an information updating apparatus according to an exemplary embodiment of the present application, where the apparatus is in a software defined network SDN, the SDN further includes a switch, a first host, and a second host, each of the hosts respectively establishes a physical connection with a different port included in the switch, and the apparatus includes:
a setting unit 410, configured to set, when a virtual machine port configured in the first host is online, a binding host name attribute value corresponding to the virtual machine port as the first host name;
a receiving unit 420, configured to receive an update packet sent by a cloud platform control node, where the update packet includes the virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is the second host name;
an updating unit 430, configured to update the set binding host name attribute corresponding to the virtual machine port to the second host name according to the virtual machine port identifier and the second host name.
Optionally, the receiving unit 420 is further configured to receive a plurality of link layer discovery protocol LLDP messages sent by a host forwarded by the switch, where each LLDP message includes the host name, the switch identifier, and a port identifier of the host accessing the switch;
the receiving unit 420 is further configured to receive a notification message sent by the cloud platform control node, where the notification message includes the virtual machine port identifier, the first host name, and a first VLAN tag allocated by the cloud platform control node to the first host;
the device further comprises: a first obtaining unit 440, configured to, when the virtual machine port is online, obtain, according to the first host name, a first port identifier of the first host accessing the switch from the LLDP message;
a sending unit 450, configured to send a network mapping rule to the first port according to the first port identifier, so that the first port configures, according to the network mapping rule, a mapping rule between a VLAN corresponding to the first VLAN tag and a VXLAN to which the virtual machine port belongs at the first port.
Optionally, the apparatus further comprises:
a second obtaining unit 460, configured to obtain, according to the second host name, the switch identifier and a second port identifier of the second host accessing the switch from the LLDP message;
the updating unit 430 is further configured to update the set virtual machine port entry corresponding to the virtual machine port according to the second host name, the switch identifier, and the second port identifier;
the virtual machine port table entry comprises the virtual machine port identification, the host name, the switch identification accessed by the host and the port identification of the switch accessed by the host.
Optionally, the update packet received by the receiving unit further includes a second VLAN tag allocated by the cloud platform control node to the second host;
the device further comprises:
a third obtaining unit 470, configured to obtain, according to the second host name, a second port identifier of the second host accessing the switch from the virtual machine port entry;
the sending unit 450 is further configured to send a network mapping rule to the second port according to the second port identifier, so that the second port configures, according to the network mapping rule, a mapping rule between the VLAN corresponding to the second VLAN tag and the VXLAN to which the virtual machine belongs at the second port.
Optionally, the first VLAN tag is different from the second VLAN tag.
Therefore, by applying the information updating apparatus provided by the present application, when the virtual machine port configured in the first host is online, the apparatus sets the binding host name attribute value corresponding to the virtual machine port as the first host name; the device receives an update message sent by a cloud platform control node, wherein the update message comprises a virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute is a second host name; and according to the virtual machine port identification and the second host name, the device updates the binding host name attribute corresponding to the set virtual machine port to be the second host name.
The device newly sets a binding host name attribute for the virtual machine port, and updates the locally set attribute value according to the binding host name attribute included in the update message sent by the cloud platform control node, so that the problems of flow interruption and abnormal service of the virtual machine port caused by the fact that the controller cannot actively update the information of the migrated port in the prior art are solved. And after the live migration operation of the virtual machine port is realized, the service is quickly recovered.
Based on the same inventive concept, the present application further provides another information updating apparatus, as shown in fig. 5, including a processor 510, a transceiver 520, and a machine-readable storage medium 530, where the machine-readable storage medium 530 stores machine-executable instructions capable of being executed by the processor 510, and the processor 510 is caused by the machine-executable instructions to perform the processing method of the authentication process provided in the present application. The information updating apparatus shown in fig. 5 can be implemented by using the hardware structure of the information updating apparatus shown in fig. 5.
The computer-readable storage medium 530 may include a Random Access Memory (RAM) and a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 530 may also be at least one storage device located remotely from the processor 510.
The Processor 510 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In the embodiment of the present application, the processor 510 reads the machine executable instructions stored in the machine readable storage medium 530, and the machine executable instructions cause the processor 510 itself and the call transceiver 520 to perform the information updating method described in the embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 530, the machine-readable storage medium 530 storing machine-executable instructions that, when invoked and executed by the processor 510, cause the processor 510 itself and the invoking transceiver 520 to perform the information updating methods described in embodiments of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
For the embodiments of the information updating apparatus and the machine-readable storage medium, the content of the related method is substantially similar to that of the foregoing method embodiments, so that the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. An information updating method applied to a controller, the controller being in a Software Defined Network (SDN), the SDN further comprising a switch, a first host and a second host, each host establishing a physical connection with a different port included in the switch, the method comprising:
when a virtual machine port configured in the first host is online, setting a binding host name attribute value corresponding to the virtual machine port as the first host name;
receiving an update message sent by a cloud platform control node, where the update message includes the virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is the second host name;
and updating the set binding host name attribute corresponding to the virtual machine port to be the second host name according to the virtual machine port identifier and the second host name.
2. The method of claim 1, wherein before the binding host name attribute value corresponding to the virtual machine port is set to the first host name when the virtual machine port configured in the first host is online, the method further comprises:
receiving a plurality of Link Layer Discovery Protocol (LLDP) messages sent by a host forwarded by the switch, wherein each LLDP message comprises the name of the host, the identifier of the switch and a port identifier of the host accessing the switch;
before the setting the binding host name attribute value corresponding to the virtual machine port as the first host name, the method further includes:
receiving a notification message sent by the cloud platform control node, wherein the notification message includes the virtual machine port identifier, the first host name and a first VLAN tag allocated by the cloud platform control node to the first host;
when the virtual machine port is on line, acquiring a first port identifier of the first host accessed to the switch from the LLDP message according to the first host name;
and sending a network mapping rule to the first port according to the first port identifier, so that the first port configures the mapping rule between the VLAN corresponding to the first VLAN tag and the VXLAN to which the virtual machine port belongs at the first port according to the network mapping rule.
3. The method of claim 1, wherein after the updating the set value of the binding host name attribute corresponding to the virtual machine port to the second host name, the method further comprises:
according to the name of the second host, obtaining the switch identification and a second port identification of the switch accessed by the second host from the LLDP message;
updating a virtual machine port table entry corresponding to the set virtual machine port according to the second host name, the switch identifier and the second port identifier;
the virtual machine port table entry comprises the virtual machine port identification, the host name, the switch identification accessed by the host and the port identification of the switch accessed by the host.
4. The method of claim 3, wherein the update message further comprises a second VLAN tag assigned by the cloud platform control node to the second host;
after the updating of the virtual machine port entry corresponding to the set virtual machine port, the method further includes:
according to the name of the second host, acquiring a second port identifier of the second host accessing the switch from the virtual machine port table entry;
and sending a network mapping rule to the second port according to the second port identifier, so that the second port configures the mapping rule between the VLAN corresponding to the second VLAN tag and the VXLAN to which the virtual machine belongs at the second port according to the network mapping rule.
5. The method of any of claims 1 or 4, wherein the first VLAN tag is different from the second VLAN tag.
6. An information updating apparatus, the apparatus being in a Software Defined Network (SDN), the SDN further comprising a switch, a first host, and a second host, each host establishing a physical connection with a different port included in the switch, respectively, the apparatus comprising:
a setting unit, configured to set, when a virtual machine port configured in the first host is online, a binding host name attribute value corresponding to the virtual machine port as the first host name;
a receiving unit, configured to receive an update packet sent by a cloud platform control node, where the update packet includes the virtual machine port identifier and a binding host name attribute corresponding to the virtual machine port, and the attribute value is the second host name;
and the updating unit is used for updating the set binding host name attribute corresponding to the virtual machine port into the second host name according to the virtual machine port identifier and the second host name.
7. The method according to claim 6, wherein the receiving unit is further configured to receive a plurality of link layer discovery protocol LLDP messages sent by a host forwarded by the switch, each LLDP message including the host name, the switch identifier, and a port identifier of the host accessing the switch;
the receiving unit is further configured to receive a notification message sent by the cloud platform control node, where the notification message includes the virtual machine port identifier, the first host name, and a first VLAN tag allocated by the cloud platform control node to the first host;
the device further comprises: a first obtaining unit, configured to obtain, when the virtual machine port is online, a first port identifier of the first host accessing the switch from the LLDP message according to the first host name;
a sending unit, configured to send a network mapping rule to the first port according to the first port identifier, so that the first port configures, according to the network mapping rule, a mapping rule between a VLAN corresponding to the first VLAN tag and a VXLAN to which the virtual machine port belongs at the first port.
8. The apparatus of claim 6, further comprising:
a second obtaining unit, configured to obtain, according to the name of the second host, the switch identifier and a second port identifier of the second host accessing the switch from the LLDP message;
the updating unit is further configured to update a virtual machine port table entry corresponding to the set virtual machine port according to the second host name, the switch identifier, and the second port identifier;
the virtual machine port table entry comprises the virtual machine port identification, the host name, the switch identification accessed by the host and the port identification of the switch accessed by the host.
9. The apparatus according to claim 8, wherein the update packet received by the receiving unit further includes a second VLAN tag assigned by the cloud platform control node to the second host;
the device further comprises:
a third obtaining unit, configured to obtain, according to the name of the second host, a second port identifier of the second host accessing the switch from the virtual machine port entry;
the sending unit is further configured to send a network mapping rule to the second port according to the second port identifier, so that the second port configures, according to the network mapping rule, a mapping rule between the VLAN corresponding to the second VLAN tag and the VXLAN to which the virtual machine belongs at the second port.
10. The apparatus of any of claims 6 or 9, wherein the first VLAN tag is different from the second VLAN tag.
CN202010071193.5A 2020-01-21 2020-01-21 Information updating method and device Active CN111327509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071193.5A CN111327509B (en) 2020-01-21 2020-01-21 Information updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071193.5A CN111327509B (en) 2020-01-21 2020-01-21 Information updating method and device

Publications (2)

Publication Number Publication Date
CN111327509A true CN111327509A (en) 2020-06-23
CN111327509B CN111327509B (en) 2022-07-12

Family

ID=71166181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071193.5A Active CN111327509B (en) 2020-01-21 2020-01-21 Information updating method and device

Country Status (1)

Country Link
CN (1) CN111327509B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865749A (en) * 2020-06-30 2020-10-30 新华三信息安全技术有限公司 Port binding method and device
WO2023134338A1 (en) * 2022-01-17 2023-07-20 华为技术有限公司 Communication method and apparatuses

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214122A1 (en) * 2010-02-26 2011-09-01 Uri Lublin Mechanism for Optimizing Initial Placement of Virtual Machines to Reduce Memory Consumption Based on Similar Characteristics
CN102594652A (en) * 2011-01-13 2012-07-18 华为技术有限公司 Migration method of virtual machine, switch and virtual machine system
US20130031544A1 (en) * 2011-07-27 2013-01-31 Microsoft Corporation Virtual machine migration to minimize packet loss in virtualized network
CN103501295A (en) * 2013-09-27 2014-01-08 杭州华三通信技术有限公司 Virtual machine migration-based remote access method and equipment
CN103617070A (en) * 2013-11-27 2014-03-05 华为技术有限公司 Virtual machine migration method and device
US20170054606A1 (en) * 2015-08-21 2017-02-23 International Business Machines Corporation Placement of virtual machines on preferred physical hosts
CN106844001A (en) * 2016-12-22 2017-06-13 中电科华云信息技术有限公司 Method to vmware live migration of virtual machine is realized based on cloud platform
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
US20180232175A1 (en) * 2016-07-12 2018-08-16 Tecent Technology (Shenzhen) Company Limited Virtual machine hot migration method, host and storage medium
CN108984266A (en) * 2018-06-15 2018-12-11 华为技术有限公司 A kind of management method of virtual machine, apparatus and system
CN110519075A (en) * 2019-07-24 2019-11-29 浪潮思科网络科技有限公司 The communication system and method for physical host and virtual cloud host based on SDN

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214122A1 (en) * 2010-02-26 2011-09-01 Uri Lublin Mechanism for Optimizing Initial Placement of Virtual Machines to Reduce Memory Consumption Based on Similar Characteristics
CN102594652A (en) * 2011-01-13 2012-07-18 华为技术有限公司 Migration method of virtual machine, switch and virtual machine system
US20130031544A1 (en) * 2011-07-27 2013-01-31 Microsoft Corporation Virtual machine migration to minimize packet loss in virtualized network
CN103501295A (en) * 2013-09-27 2014-01-08 杭州华三通信技术有限公司 Virtual machine migration-based remote access method and equipment
CN103617070A (en) * 2013-11-27 2014-03-05 华为技术有限公司 Virtual machine migration method and device
US20170054606A1 (en) * 2015-08-21 2017-02-23 International Business Machines Corporation Placement of virtual machines on preferred physical hosts
US20180232175A1 (en) * 2016-07-12 2018-08-16 Tecent Technology (Shenzhen) Company Limited Virtual machine hot migration method, host and storage medium
CN106844001A (en) * 2016-12-22 2017-06-13 中电科华云信息技术有限公司 Method to vmware live migration of virtual machine is realized based on cloud platform
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
CN108984266A (en) * 2018-06-15 2018-12-11 华为技术有限公司 A kind of management method of virtual machine, apparatus and system
CN110519075A (en) * 2019-07-24 2019-11-29 浪潮思科网络科技有限公司 The communication system and method for physical host and virtual cloud host based on SDN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石源等: "一种可信虚拟机迁移模型构建方法", 《计算机研究与发展》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865749A (en) * 2020-06-30 2020-10-30 新华三信息安全技术有限公司 Port binding method and device
CN111865749B (en) * 2020-06-30 2023-04-18 新华三信息安全技术有限公司 Port binding method and device
WO2023134338A1 (en) * 2022-01-17 2023-07-20 华为技术有限公司 Communication method and apparatuses

Also Published As

Publication number Publication date
CN111327509B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US10666508B2 (en) Unified software defined networking configuration management over multiple hosting environments
US11374899B2 (en) Managing network connectivity between cloud computing service endpoints and virtual machines
CN109981493B (en) Method and device for configuring virtual machine network
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
US20160337236A1 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US10826768B2 (en) Controlled node configuration
EP3451597B1 (en) Packet forwarding
CN101924693A (en) Be used for method and system in migrating processes between virtual machines
US11036535B2 (en) Data storage method and apparatus
CN103095546A (en) Method, device and data center network for processing messages
CN104350467A (en) Elastic enforcement layer for cloud security using SDN
CN102801715A (en) Method for virtual machine migration in network, gateway and system
EP3451592B1 (en) Packet transmission between vxlan domains
CN112688814B (en) Equipment access method, device, equipment and machine readable storage medium
CN111327509B (en) Information updating method and device
CN109150638A (en) A kind of route management method and device
CN101924699A (en) Message forwarding method, system and provider edge equipment
CN110063045B (en) Message processing method and device in cloud computing system
CN106878052B (en) User migration method and device
CN108810183B (en) Method and device for processing conflicting MAC addresses and machine-readable storage medium
CN108540408B (en) Openstack-based distributed virtual switch management method and system
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
US11805422B2 (en) AP deployment in a network comprising a centralized system and a distributed system
CN111262771B (en) Virtual private cloud communication system, system configuration method and controller
CN113542013B (en) Method, device and equipment for distributing virtualized network function management messages

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