CN115297055B - Public cloud host migration arp table item updating method - Google Patents

Public cloud host migration arp table item updating method Download PDF

Info

Publication number
CN115297055B
CN115297055B CN202210884417.3A CN202210884417A CN115297055B CN 115297055 B CN115297055 B CN 115297055B CN 202210884417 A CN202210884417 A CN 202210884417A CN 115297055 B CN115297055 B CN 115297055B
Authority
CN
China
Prior art keywords
virtual machine
switch
tuple information
processor
migration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210884417.3A
Other languages
Chinese (zh)
Other versions
CN115297055A (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.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud 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 Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202210884417.3A priority Critical patent/CN115297055B/en
Publication of CN115297055A publication Critical patent/CN115297055A/en
Application granted granted Critical
Publication of CN115297055B publication Critical patent/CN115297055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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
    • 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
    • H04L49/3009Header conversion, routing tables or routing tags
    • 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]

Abstract

The invention provides a public cloud host migration arp table item updating method, which comprises a virtual machine online method and a virtual machine migration method; the virtual machine online method comprises the following steps: sending ip and mac to a switch, packaging six-tuple information by the switch, and sending the six-tuple information to a controller; the virtual machine migration method comprises the following steps: and sending an arp to the switch, informing the controller of updating the six-tuple information by the switch, enabling other virtual machines to not update the six-tuple information, enabling the access flow to continue to the old switch, relaying the flow to the informed switch at the moment by the switch, informing of updating the six-tuple information, and establishing a tunnel and communicating the flow through the VTEP ip in the six-tuple information. The invention has the beneficial effects that: the utility model provides a public cloud host migration arp table item updating method, which avoids the problem of traffic failure caused by virtual machine migration, and simultaneously provides a six-tuple concept, and the six-tuple concept directly establishes connection through a tunnel, thereby improving the flexibility of a platform and enabling virtual machines in the cloud to access more quickly.

Description

Public cloud host migration arp table item updating method
Technical Field
The invention belongs to the technical field of cloud hosts, and particularly relates to a method for updating an art table of migration of a public cloud host.
Background
Two layers of communication are arranged between virtual machines under the public cloud subnetwork, and the information of the MAC forwarding table is maintained through destination address checking MAC forwarding table, automatic learning (according to source MAC address learning) and aging mechanism (timing mechanism), and MAC address learning is strongly dependent on the flooding of ARP broadcast packets. This wastes the bandwidth of the switch by flooding, and also increases the CPU resource consumption. The method is characterized in that the control plane exists in the arp table entries, classification is carried out according to a certain rule, if a certain virtual machine is to be accessed, the control plane is removed to obtain the arp table entries, so that the problem of flooding the arp table entries is avoided, the timeliness and the accuracy of the arp are ensured, and the flow between the virtual machines is directly influenced.
Disclosure of Invention
In view of the above, the present invention is directed to a method for updating an art table of migration of public cloud hosts, so as to at least solve at least one problem in the background art.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a public cloud host migration arp table entry updating method comprises a virtual machine online method and a virtual machine migration method;
the virtual machine online method comprises the following steps: sending ip and mac to a switch, packaging six-tuple information by the switch, and sending the six-tuple information to a controller;
the virtual machine migration method comprises the following steps: and sending an arp to the switch, informing the controller of updating the six-tuple information by the switch, enabling other virtual machines to not update the six-tuple information, enabling the access flow to continue to the old switch, relaying the flow to the informed switch at the moment by the switch, informing of updating the six-tuple information, and establishing a tunnel and communicating the flow through the VTEP ip in the six-tuple information.
Further, the virtual machine migration method comprises the following steps:
a1, migrating a virtual machine VM1 to other servers;
a2, transmitting the arp information;
a3, the connected switch sends six-tuple information to the controller;
a4, the controller updates six-tuple information;
a5, accessing VM1 by other virtual machines;
a6, the switch S1 where the VM1 is located relays to the target switch;
and A7, S1, informing the source virtual machine that the target virtual machine has been migrated, and updating six-tuple information.
In a second aspect, the present disclosure provides an electronic device comprising a processor and a memory communicatively coupled to the processor for storing executable instructions for the processor, wherein: the processor is configured to execute the method for updating the map table entry of the public cloud host migration.
In a third aspect, the present disclosure discloses a server, including at least one processor, and a memory communicatively connected to the processor, where the memory stores instructions executable by the at least one processor, where the instructions are executed by the processor, so that the at least one processor performs a public cloud host migration arp entry updating method according to the first aspect.
Fourth aspect the present disclosure discloses a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements a method for updating an art table entry of migration of a public cloud host according to the first aspect.
Compared with the prior art, the method for updating the map table of the public cloud host migration of the cloud host has the following beneficial effects:
(1) According to the method for updating the map table of the public cloud host migration, the problem of traffic failure caused by virtual machine migration is avoided, meanwhile, a six-tuple concept is provided, connection is directly established through a tunnel, the flexibility of a platform is improved, and virtual machines in the cloud are accessed more quickly.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a schematic diagram of a method for updating an art table of migration of a public cloud host according to an embodiment of the present invention;
FIG. 2 is an map transmission schematic diagram of an art table entry updating method for migrating an art by a public cloud host according to an embodiment of the present invention;
fig. 3 is a virtual machine migration schematic diagram of a public cloud host migration arp table entry updating method according to an embodiment of the invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention will be described in detail below with reference to the drawings in connection with embodiments.
The control plane exists in the arp table entry, but the problem of flooding can be solved, but new problems are brought, after virtual machine migration, how to update the routing table entry rapidly, and the virtual machine traffic after migration is determined to be reachable. And removing the four-tuple model, and adding six-tuple models, namely VTEP IP virtual machine IP, virtual machine mac, vlan of virtual machine, vxlan and l2vni of the switch. The IP address of the virtual machine is taken as a barrel TAG, the virtual machine is on line, an arp packet is sent to a switch, the switch sends six-tuple information to a controller, and the controller takes the IP as a barrel mark to record the six-tuple. When the exchanger inquires mac of the virtual machine, the IP is used as an index to match vxlan and l2vni. And after successful matching, returning the mac address of the target virtual machine. After migration of the virtual machine, six-tuple information of the modified virtual machine is updated, and parameters which can be changed are VTEP IP and vlan values. At this time, six-tuple information cached by the switch needs to be updated. At this time, other switches that have learned old six-tuple information do not update new six-tuple information, e.g., the current virtual machine switch S1, and the switch after migration is S11. And the other virtual machines access the migrated virtual machine, the flow goes to S1 first, S1 senses that the virtual machine has migrated, relays the flow to S11, and simultaneously informs the switch where the source virtual machine is located that migration has occurred, and updates the six-tuple information in time.
The method comprises the following steps:
1. the virtual machine is on line, ip and mac are sent to the exchanger, and the exchanger packages six-tuple information and sends the six-tuple information to the controller.
2. Virtual machine migration is to send an arp to the switch, which informs the controller to update the six-tuple information.
3. Other virtual machines do not update the six-tuple information, the access traffic continues to the old switch, and the switch needs to relay the traffic to the trusted switch and notify the updated six-tuple information.
4. And establishing a tunnel through the VTEP ip in the six-tuple information, and carrying out traffic communication.
Those of ordinary skill in the art will appreciate that the elements and method steps of each example described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the elements and steps of each example have been described generally in terms of functionality in the foregoing description 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 solution. 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.
In the several embodiments provided in this application, it should be understood that the disclosed methods and systems may be implemented in other ways. For example, the above-described division of units is merely a logical function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. The units may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention, and are intended to be included within the scope of the appended claims and description.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (4)

1. A public cloud host migration arp table item updating method is characterized in that: the virtual machine online method and the virtual machine migration method are included;
the virtual machine online method comprises the following steps: sending ip and mac to a switch, packaging six-tuple information by the switch, and sending the six-tuple information to a controller;
the virtual machine migration method comprises the following steps: the virtual machine is migrated to other servers, the arp information is sent to the switch, the switch sends six-tuple information to the controller, the controller updates the six-tuple information, other virtual machines do not update the six-tuple information, the access flow can continue to the old switch, at the moment, the switch relays the flow to the new switch, the source virtual machine is informed that the target virtual machine is migrated, the switch where the source virtual machine is located is informed of updating the six-tuple information, a tunnel is established through the VTEP ip in the six-tuple information, and flow communication is carried out;
the six-tuple information comprises VTEP IP of the switch, virtual machine IP address, virtual machine mac, vlan of the virtual machine, vxlan, l2vni, virtual machine IP address is taken as a barrel TAG, virtual machine is on line, an arp packet is sent to the switch, the switch sends six-tuple information to the controller, the controller takes the IP address as a barrel mark to record the six-tuple, when the switch inquires the virtual machine mac, the IP address is taken as an index to match the vxlan and l2vni, after matching is successful, the mac address of the target virtual machine is returned, after the virtual machine is migrated, the six-tuple information of the virtual machine is updated, and the six-tuple information cached by the switch is updated.
2. An electronic device comprising a processor and a memory communicatively coupled to the processor for storing processor-executable instructions, characterized in that: the processor is configured to execute the public cloud host migration arp table entry updating method according to claim 1.
3. A server, characterized by: comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor to cause the at least one processor to perform a public cloud host migration arp entry updating method according to claim 1.
4. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor realizes the method for updating the public cloud host migration arp table entry according to claim 1.
CN202210884417.3A 2022-07-25 2022-07-25 Public cloud host migration arp table item updating method Active CN115297055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210884417.3A CN115297055B (en) 2022-07-25 2022-07-25 Public cloud host migration arp table item updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210884417.3A CN115297055B (en) 2022-07-25 2022-07-25 Public cloud host migration arp table item updating method

Publications (2)

Publication Number Publication Date
CN115297055A CN115297055A (en) 2022-11-04
CN115297055B true CN115297055B (en) 2024-01-23

Family

ID=83823832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210884417.3A Active CN115297055B (en) 2022-07-25 2022-07-25 Public cloud host migration arp table item updating method

Country Status (1)

Country Link
CN (1) CN115297055B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821023A (en) * 2012-08-07 2012-12-12 杭州华三通信技术有限公司 Method and device for dynamically migrating VLAN (virtual local area network) configuration
CN103430149A (en) * 2011-08-15 2013-12-04 华为技术有限公司 Virtual machine migration notification method and system
CN106911534A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of live migration of virtual machine method and its system
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration
CN107786677A (en) * 2016-08-24 2018-03-09 迈普通信技术股份有限公司 A kind of ARP update method and VTEP equipment
CN110971516A (en) * 2019-10-25 2020-04-07 华为技术有限公司 Method and device for processing routing information
CN112948057A (en) * 2021-03-08 2021-06-11 中国联合网络通信集团有限公司 Virtual machine migration control method, cloud management platform and SDN manager
CN113220413A (en) * 2021-04-21 2021-08-06 新浪网技术(中国)有限公司 Method and system for clearing ARP (address resolution protocol) table entry of old port of switch after virtual machine migration
CN113254148A (en) * 2021-05-12 2021-08-13 中国联合网络通信集团有限公司 Virtual machine migration method and cloud management platform
CN113691436A (en) * 2021-09-07 2021-11-23 中国联合网络通信集团有限公司 Virtual machine migration method and virtual machine migration device
CN113703921A (en) * 2021-08-30 2021-11-26 中国联合网络通信集团有限公司 Virtual machine migration method and device and switch

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430149A (en) * 2011-08-15 2013-12-04 华为技术有限公司 Virtual machine migration notification method and system
CN102821023A (en) * 2012-08-07 2012-12-12 杭州华三通信技术有限公司 Method and device for dynamically migrating VLAN (virtual local area network) configuration
CN107786677A (en) * 2016-08-24 2018-03-09 迈普通信技术股份有限公司 A kind of ARP update method and VTEP equipment
CN106911534A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of live migration of virtual machine method and its system
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration
CN110971516A (en) * 2019-10-25 2020-04-07 华为技术有限公司 Method and device for processing routing information
CN112948057A (en) * 2021-03-08 2021-06-11 中国联合网络通信集团有限公司 Virtual machine migration control method, cloud management platform and SDN manager
CN113220413A (en) * 2021-04-21 2021-08-06 新浪网技术(中国)有限公司 Method and system for clearing ARP (address resolution protocol) table entry of old port of switch after virtual machine migration
CN113254148A (en) * 2021-05-12 2021-08-13 中国联合网络通信集团有限公司 Virtual machine migration method and cloud management platform
CN113703921A (en) * 2021-08-30 2021-11-26 中国联合网络通信集团有限公司 Virtual machine migration method and device and switch
CN113691436A (en) * 2021-09-07 2021-11-23 中国联合网络通信集团有限公司 Virtual machine migration method and virtual machine migration device

Also Published As

Publication number Publication date
CN115297055A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
US11070447B2 (en) System and method for implementing and managing virtual networks
US10785186B2 (en) Control plane based technique for handling multi-destination traffic in overlay networks
US9264362B2 (en) Proxy address resolution protocol on a controller device
JP5842933B2 (en) Network system and route information synchronization method
CN111736958B (en) Virtual machine migration method, system, computer equipment and storage medium
EP3017569B1 (en) Virtual network
US20200267082A1 (en) Packet Forwarding Method, Device, Switch, Apparatus, and Storage Medium
CN113765829A (en) Activity detection and route convergence in software defined networked distributed systems
EP2854377B1 (en) A method for centralized address resolution
CN104737507B (en) Ensure arbitrarily to arrive the method and device of any accessibility with the 3rd layer of forwarding of chance in large-scale data center environment
CN113765782A (en) Local repair for underlying faults using prefix independent convergence
US9467374B2 (en) Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway
CN109412925B (en) Forwarding table item updating method based on VTEP and VTEP
JP6299745B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
CN115297055B (en) Public cloud host migration arp table item updating method
JP5580766B2 (en) Server apparatus, packet transmission system, packet transmission method and program
CN109088767B (en) Route updating method and device
JP5821641B2 (en) Network system, switch, and inter-switch setting notification method
CN115604167A (en) Public cloud mac address learning optimization method
CN105939263B (en) A kind of file transmitting method and device
JP2017022579A (en) Communication system, communication node and substitution processing method for communication system
KR20230017522A (en) Management apparatus for edge platform, and control method thereof
CN117527758A (en) Virtual IP implementation method based on Openstack
JP2015128213A (en) Communication node, controller, communication system, communication method, and program

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