CN110730133A - Route notification method and system - Google Patents

Route notification method and system Download PDF

Info

Publication number
CN110730133A
CN110730133A CN201910999046.1A CN201910999046A CN110730133A CN 110730133 A CN110730133 A CN 110730133A CN 201910999046 A CN201910999046 A CN 201910999046A CN 110730133 A CN110730133 A CN 110730133A
Authority
CN
China
Prior art keywords
vpc
virtual switch
corresponding relation
virtual
server
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
CN201910999046.1A
Other languages
Chinese (zh)
Other versions
CN110730133B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910999046.1A priority Critical patent/CN110730133B/en
Publication of CN110730133A publication Critical patent/CN110730133A/en
Application granted granted Critical
Publication of CN110730133B publication Critical patent/CN110730133B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Abstract

The embodiment of the application discloses a method and a system for route advertisement. One embodiment of the method comprises: the central control device sends at least part of table entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network; and the gateway equipment and the virtual switch respectively notify the host machine of the RA message based on the received table entry. The implementation mode relates to the field of cloud computing, and partial RA message notification quantity of gateway equipment is unloaded by adopting a virtual switch, so that RA message notification pressure of the gateway equipment is reduced.

Description

Route notification method and system
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a route notification method and a route notification system.
Background
The gateway device supporting IPv6 needs to periodically announce the RA message to announce the activity of the gateway corresponding to the host. After receiving the corresponding message, the host can discover the default gateway and generate a default route. In the IPv6 network in the UNDERLAY scenario, only one RA packet needs to be periodically broadcast. In the IPv6 network under the overlap scenario, VPCs need to be distinguished, and multicast is performed for each virtual machine of the VPCs. Due to the fact that a large amount of notifications are brought under the OVERLAY scene, particularly under the cloud environment, notification pressure of gateway equipment is large, and instantaneous burst traffic in a transmission network is caused.
Currently, the network interface address specified under each VPC is usually advertised by the gateway device to reduce the gateway device advertising pressure. However, if the specified gateway interface address is deleted, the entire VPC will be caused to shut down.
Disclosure of Invention
The embodiment of the application provides a route notification method and a route notification system.
In a first aspect, an embodiment of the present application provides a route advertisement method, including: the central control device sends at least part of table entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network; and the gateway equipment and the virtual switch respectively notify the host machine of the RA message based on the received table entry.
In some embodiments, the host includes a server and a virtual machine, and the gateway device and the virtual switch advertise the RA message to the host based on the received table entry, respectively, including: the virtual switch informs the RA message to the nearby virtual machine; the gateway device notifies the server of the RA message.
In some embodiments, the virtual switch advertises the RA message to nearby virtual machines, including: the virtual switch receives a router request message sent by a nearby virtual machine, and notifies the nearby virtual machine of an RA message.
In some embodiments, the virtual machines that are co-owned by the same server as the virtual switch are virtual machines in the vicinity of the virtual switch.
In some embodiments, the sending, by the central control device, at least part of the entries in the maintained first mapping relationship table of each VPC to the gateway device and the virtual switch includes:
and the central control equipment sends the table items corresponding to the server to which the virtual switch belongs in the first corresponding relation table of each VPC to the virtual switch, and sends all the table items in the first corresponding relation table of each VPC to the gateway equipment.
In some embodiments, the sending, by the central control device, all entries in the first mapping relationship table of each VPC to the gateway device includes: the central control device sets a non-notice identifier for the table entry corresponding to the virtual machine in the first corresponding relation table of each VPC, and sends all the set table entries in the first corresponding relation table of each VPC to the gateway device.
In some embodiments, the notifying, by the gateway device, the RA packet to the server includes: and the gateway equipment informs the server of the RA message based on the received list item without the non-notice identification.
In some embodiments, the notifying, by the gateway device and the virtual switch, the RA packet to the host based on the received table entry respectively includes: the gateway device and the virtual switch determine whether RI on the same server has been announced based on the received list item without the non-announcement identifier and a second corresponding relation table of each VPC, and if the server has been announced, do not announce RA message to the server any more, wherein the second corresponding relation table of each VPC is used for storing the corresponding relation between IP address and RI of VTEP corresponding to the virtual machine of the VPC.
In a second aspect, an embodiment of the present application provides a route advertisement system, including a central control device, a gateway device, a virtual switch, and a host; the central control device is configured to send at least part of table entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network; and the gateway equipment and the virtual switch are configured to respectively notify the host machine of the RA message based on the received table entry.
In some embodiments, the host includes a server and a virtual machine, and; a virtual switch configured to advertise an RA message to nearby virtual machines; a gateway device configured to advertise the RA message to the server.
In some embodiments, the virtual switch is further configured to: receiving a router request message sent by a nearby virtual machine, and notifying the nearby virtual machine of an RA message.
In some embodiments, the virtual machines that are co-owned by the same server as the virtual switch are virtual machines in the vicinity of the virtual switch.
In some embodiments, the central control apparatus is further configured to: and sending the table entry corresponding to the server to which the virtual switch belongs in the first corresponding relation table of each VPC to the virtual switch, and sending all the table entries in the first corresponding relation table of each VPC to the gateway equipment.
In some embodiments, the central control apparatus is further configured to: and setting an unrenoticed identifier for the table entry corresponding to the virtual machine in the first corresponding relation table of each VPC, and sending all the set table entries in the first corresponding relation table of each VPC to the gateway equipment.
In some embodiments, the gateway device is further configured to: and notifying the server of the RA message based on the received list item without the non-notification identification.
In some embodiments, the gateway device and the virtual switch are further configured to: and determining whether RI on the same server is notified or not based on the received list item without the non-notification identifier and a second corresponding relation table of each VPC, and if determining that the server is notified, not notifying the server of an RA message any more, wherein the second corresponding relation table of each VPC is used for storing the corresponding relation between the IP address of the VTEP corresponding to the virtual machine of the VPC and the RI.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
In the route advertisement method and system provided by the embodiment of the application, firstly, a central control device sends at least part of table entries in a maintained first corresponding relation table of each VPC to a gateway device and a virtual switch; then the gateway device and the virtual switch respectively notify the host machine of the RA message based on the received table entry. And the virtual switch is adopted to unload part of RA message notification quantity of the gateway equipment, so that RA message notification pressure of the gateway equipment is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture to which the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a route advertisement method according to the present application;
FIG. 3 is a flow diagram of yet another embodiment of a route advertisement method according to the present application;
fig. 4 is a schematic diagram of an application scenario of the route advertisement method shown in fig. 3;
FIG. 5 is a timing diagram for one embodiment of a route advertisement system according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the route advertisement system of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a central control device 101, a gateway device 102, a virtual switch 103, hosts 104, 105, and networks 106, 107, 108. The network 106 is used to provide a medium for communication links between the central control device 101, the gateway device 102, and the virtual switch 103. The network 107 serves as a medium for providing a communication link between the gateway device 102 and the host 104. Network 108 serves to provide a medium for communication links between virtual switch 103 and host 105. The networks 106, 107, 108 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The central device 101 may interact with the gateway device 102 and the virtual switch 103 via the network 106. For example, at least a portion of the entries in the first mapping table are sent to gateway device 102 and virtual switch 103. Gateway device 102 may interact with host 104 through network 107. For example, an RA message is advertised to host 104. Virtual switch 103 may interact with host 105 through network 108. For example, an RA message is advertised to host 105.
It should be understood that the number of central devices, gateway devices, virtual switches, hosts, and networks in fig. 1 is merely illustrative. There may be any number of central control devices, gateway devices, virtual switches, hosts, and networks, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a route advertisement method according to the present application is shown. The route notification method comprises the following steps:
step 201, the central control device sends at least part of the entries in the maintained first corresponding relationship table of each VPC to the gateway device and the virtual switch.
In this embodiment, a central control device (e.g., the central control device 101 shown in fig. 1) may maintain a first corresponding relationship table of each VPC, and send at least a part of entries in the first corresponding relationship table of each VPC (Virtual Private network) to a gateway device (e.g., the gateway device 102 shown in fig. 1) and a Virtual switch (e.g., the Virtual switch 103 shown in fig. 1).
Here, the first correspondence table of each VPC may be used to store a correspondence between an RI (router interface) of the VPC in the IPv6 network, a MAC Address (Media Access Control Address, physical Address) of the virtual machine, and an IP (Internet Protocol, Protocol for interconnection between networks) Address of a VTEP (VXLAN Tunnel End Point) corresponding to the virtual machine. The first correspondence table may therefore also be called the RI-MAC-VTEP IP table. Each VPC corresponds to a name space in gateway equipment and comprises a plurality of interfaces. Each interface corresponds to a subnet. And RI is interface information of the interface included in the VPC. The first correspondence table may support addition, deletion, modification, and lookup actions. In order to ensure the consistency of the first corresponding relation table, the MAC is used as an index for maintenance.
It should be noted that the table entry sent by the central control device to the gateway device may be the same as or different from the table entry sent to the virtual switch, and is not limited herein.
Step 202, the gateway device and the virtual switch notify the RA message to the host based on the received table entry, respectively.
In this embodiment, the gateway device and the virtual switch may respectively notify a host (e.g., hosts 104 and 105 shown in fig. 1) of an RA (Router advertisement) packet based on the received entry. Typically, the gateway device and the virtual machine only advertise the RA message to at least part of the hosts corresponding to the table entry they receive.
In the route advertisement method provided in the embodiment of the present application, first, a central control device sends at least part of entries in a maintained first mapping table of each VPC to a gateway device and a virtual switch; then the gateway device and the virtual switch respectively notify the host machine of the RA message based on the received table entry. And the virtual switch is adopted to unload part of RA message notification quantity of the gateway equipment, so that RA message notification pressure of the gateway equipment is reduced.
With further reference to fig. 3, a flow 300 of yet another embodiment of a route advertisement method according to the present application is shown. The route notification method comprises the following steps:
step 301, the central control device sends the entry corresponding to the server to which the virtual switch belongs in the first correspondence table of each VPC to the virtual switch.
In this embodiment, the central control device (e.g., the central control device 101 shown in fig. 1) may maintain the first correspondence table of each VPC, and send an entry corresponding to a server to which a virtual switch (e.g., the virtual switch 103 shown in fig. 1) in the first correspondence table of each VPC belongs to the virtual switch. That is, for a virtual switch, the received entry corresponds to all virtual machines in the server to which the virtual switch belongs.
Step 302, the central control device sets an unremitting identifier for the entry corresponding to the virtual machine in the first corresponding relationship table of each VPC, and sends all the entries in the set first corresponding relationship table of each VPC to the gateway device.
In this embodiment, the central control device may maintain the first mapping table of each VPC, and send all entries in the first mapping table of each VPC to the gateway device (e.g., the gateway device 102 shown in fig. 1). Generally, since the entry corresponding to the virtual machine is already sent to the virtual switch, the central control device may first set an unreferenced identifier for the entry corresponding to the virtual machine in the first mapping table of each VPC, and then send all the entries in the set first mapping table of each VPC to the gateway device.
Step 303, the virtual switch advertises the RA message to nearby virtual machines.
In this embodiment, the virtual switch may advertise the RA message to nearby virtual machines. In general, hosts in an IPv6 network (e.g., hosts 104, 105 shown in FIG. 1) may include servers and virtual machines. Here, the virtual switch advertises an RA message to nearby virtual machines. In general, a virtual switch is located closer to a virtual machine in its vicinity, for example, a virtual machine belonging to the same server as the virtual switch may be considered as a virtual machine in the vicinity of the virtual switch.
In some optional implementations of this embodiment, the virtual switch may actively notify the nearby virtual machines of the RA packet according to a specified notification period.
In some optional implementations of this embodiment, the virtual switch may notify the nearby virtual machine of the RA message when receiving a router solicitation message sent by the nearby virtual machine.
In step 304, the gateway device notifies the server of the RA packet based on the received entry without the non-notification flag set.
In this embodiment, the gateway device may notify the server of the RA packet based on the received entry without the non-notification flag set. That is, the gateway device only notifies the server corresponding to the entry not provided with the non-notification flag of the RA packet.
In some optional implementations of this embodiment, the gateway device may actively notify the server of the RA packet according to a specified notification period.
In practice, there may be multiple ports in one virtual machine, and the MAC addresses are different but belong to the same subnet. That is, the gateway interfaces are the same. Since the first correspondence table is maintained indexed by the MAC, the same virtual machine may be advertised multiple times according to the current advertisement logic. To avoid duplicate advertisements, each VPC may also maintain a second correspondence table. The second mapping table of each VPC may be configured to store a mapping relationship between an IP address and an RI of a VTEP corresponding to a virtual machine of the VPC. The second correspondence table may therefore also be called the VTEP IP-RI table. By querying the second correspondence table, it can be checked whether the RI has announced on the same server. Therefore, the gateway device and the virtual switch can determine whether RI on the same server has been notified or not based on the received entry not set with the non-notification flag and the second correspondence table of each VPC, and if it is determined that the server has been notified, no RA packet is notified to the server.
With further reference to fig. 4, a schematic diagram of an application scenario of the route advertisement method shown in fig. 3 is shown. In the application scenario of fig. 4, the IPv6 network includes VPC1 and VPC 2. Among them, VPC1 includes virtual machine 1 and virtual machine 2. The VPC2 includes a virtual machine 3, a server 2, and a server 3. The server 1 includes a virtual switch, a virtual machine 1, a virtual machine 2, and a virtual machine 3. At this time, the central control device may send, to the virtual switch, the entry 1 corresponding to the server 1 to which the virtual switch belongs in the first correspondence table of VPC1 and VPC 2. Meanwhile, the central control device may set an unreferenced flag for the entries corresponding to virtual machine 1, virtual machine 2, and virtual machine 3 in the first correspondence table of VPC1 and VPC2, and send all entries 2 in the set first correspondence table of VPC1 and VPC2 to the gateway device. Subsequently, the virtual switch advertises the RA message to virtual machine 1, virtual machine 2, and virtual machine 3 of server 1. Meanwhile, the gateway device may send an RA message to the switch, and the switch notifies the RA message to the server 2 and the server 3.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the flow 300 of the route advertisement method in this embodiment highlights the step of the virtual switch and the gateway device advertising the RA message. Therefore, in the scheme described in this embodiment, the virtual switch is used to notify the nearby virtual machine of the RA packet, and the notification amount of part of the RA packet of the gateway device is unloaded, so that the RA packet notification pressure of the gateway device is reduced.
With further reference to fig. 5, a timing diagram 500 of one embodiment of a route advertisement system in accordance with the present application is shown.
The route advertisement system in this embodiment may include a central control device, a gateway device, a virtual switch, and a host.
As shown in fig. 5, in step 501, the central control device sends at least part of entries in the maintained first mapping relationship table of each VPC to the gateway device.
In step 501', the central control device sends at least part of the entries in the maintained first mapping relationship table of each VPC to the virtual switch.
In step 502, the gateway device advertises an RA message to the host based on the received entry.
In step 502', the virtual switch advertises an RA message to the host based on the received entry.
In this embodiment, the specific operations of step 501 and step 501 'may refer to step 201 in fig. 2, and the specific operations of step 502 and step 502' may refer to step 202 in fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the host includes a server and a virtual machine, and; a virtual switch configured to advertise an RA message to nearby virtual machines; a gateway device configured to advertise the RA message to the server.
In some optional implementations of this embodiment, the virtual switch is further configured to: receiving a router request message sent by a nearby virtual machine, and notifying the nearby virtual machine of an RA message.
In some optional implementations of this embodiment, the virtual machines that belong to the same server as the virtual switch are virtual machines in the vicinity of the virtual switch.
In some optional implementations of this embodiment, the central control device is further configured to: and sending the table entry corresponding to the server to which the virtual switch belongs in the first corresponding relation table of each VPC to the virtual switch, and sending all the table entries in the first corresponding relation table of each VPC to the gateway equipment.
In some optional implementations of this embodiment, the central control device is further configured to: and setting an unrenoticed identifier for the table entry corresponding to the virtual machine in the first corresponding relation table of each VPC, and sending all the set table entries in the first corresponding relation table of each VPC to the gateway equipment.
In some optional implementations of this embodiment, the gateway device is further configured to: and notifying the server of the RA message based on the received list item without the non-notification identification.
In some optional implementations of this embodiment, the gateway device and the virtual switch are further configured to: and determining whether RI on the same server is notified or not based on the received list item without the non-notification identifier and a second corresponding relation table of each VPC, and if determining that the server is notified, not notifying the server of an RA message any more, wherein the second corresponding relation table of each VPC is used for storing the corresponding relation between the IP address of the VTEP corresponding to the virtual machine of the VPC and the RI.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the central control device sends at least part of table entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network; and the gateway equipment and the virtual switch respectively notify the host machine of the RA message based on the received table entry.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (18)

1. A method of route advertisement, comprising:
the central control device sends at least part of table entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network;
and the gateway equipment and the virtual switch respectively notify the host machine of an RA message based on the received table entry.
2. The method of claim 1, wherein the hosts comprise servers and virtual machines, and
the gateway device and the virtual switch announce an RA message to a host based on the received table entry, respectively, including:
the virtual switch informs the RA message to a nearby virtual machine;
and the gateway equipment informs the server of the RA message.
3. The method of claim 2, wherein the virtual switch advertising the RA message to nearby virtual machines, comprising:
and the virtual switch receives a router request message sent by a nearby virtual machine and informs the RA message to the nearby virtual machine.
4. A method according to claim 2 or 3, wherein the virtual machines belonging to the same server as the virtual switch are virtual machines in the vicinity of the virtual switch.
5. The method of claim 2, wherein the central control device sending at least some of the entries in the maintained first mapping table for each VPC to a gateway device and a virtual switch, comprises:
and the central control equipment sends the table items corresponding to the server to which the virtual switch belongs in the first corresponding relation table of each VPC to the virtual switch, and sends all the table items in the first corresponding relation table of each VPC to the gateway equipment.
6. The method of claim 5, wherein the central control device sending all entries in the first mapping relationship table of each VPC to the gateway device comprises:
the central control device sets a non-notice identifier for the table entry corresponding to the virtual machine in the first corresponding relation table of each VPC, and sends all the set table entries in the first corresponding relation table of each VPC to the gateway device.
7. The method of claim 6, wherein the gateway device advertising the RA packet to the server, comprising:
and the gateway equipment informs the server of the RA message based on the received list item without the non-informing identification.
8. The method of claim 7, wherein the gateway device and the virtual switch each advertise an RA message to a host based on the received entry, comprising:
the gateway device and the virtual switch determine whether an RI on the same server has been notified or not based on the received list item without the non-notification flag and a second corresponding relation table of each VPC, and if the server has been notified, no longer notify the RA message to the server, wherein the second corresponding relation table of each VPC is used for storing the corresponding relation between the IP address of the VTEP corresponding to the virtual machine of the VPC and the RI.
9. A route notification system comprises a central control device, a gateway device, a virtual switch and a host;
the central control device is configured to send at least part of entries in the maintained first corresponding relation table of each VPC to the gateway device and the virtual switch, wherein the first corresponding relation table of each VPC is used for storing the corresponding relation among the RI of the VPC, the MAC address of the virtual machine and the IP address of the VTEP corresponding to the virtual machine in the IPv6 network;
the gateway device and the virtual switch are configured to advertise an RA packet to the host based on the received entry, respectively.
10. The system of claim 9, wherein the host comprises a server and a virtual machine, and;
the virtual switch configured to advertise the RA packet to nearby virtual machines;
the gateway device is configured to advertise the RA packet to the server.
11. The system of claim 10, wherein the virtual switch is further configured to:
and receiving a router request message sent by a nearby virtual machine, and announcing the RA message to the nearby virtual machine.
12. The system according to claim 10 or 11, wherein the virtual machine that belongs to the same server as the virtual switch is a virtual machine in the vicinity of the virtual switch.
13. The system of claim 10, wherein the central control device is further configured to:
and sending the table entry corresponding to the server to which the virtual switch belongs in the first corresponding relation table of each VPC to the virtual switch, and sending all the table entries in the first corresponding relation table of each VPC to the gateway equipment.
14. The system of claim 13, wherein the central control device is further configured to:
and setting a non-notice identifier for the table entry corresponding to the virtual machine in the first corresponding relation table of each VPC, and sending all the set table entries in the first corresponding relation table of each VPC to the gateway equipment.
15. The system of claim 14, wherein the gateway device is further configured to:
and notifying the RA message to the server based on the received list item without the non-notification identification.
16. The system of claim 15, wherein the gateway device and the virtual switch are further configured to:
and determining whether RI on the same server is notified or not based on the received list item without the non-notification identifier and a second corresponding relation table of each VPC, and if the server is determined to be notified, not notifying the server of the RA message any more, wherein the second corresponding relation table of each VPC is used for storing the corresponding relation between the IP address of the VTEP corresponding to the virtual machine of the VPC and the RI.
17. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
18. A computer-readable medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN201910999046.1A 2019-10-21 2019-10-21 Route notification method and system Active CN110730133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910999046.1A CN110730133B (en) 2019-10-21 2019-10-21 Route notification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910999046.1A CN110730133B (en) 2019-10-21 2019-10-21 Route notification method and system

Publications (2)

Publication Number Publication Date
CN110730133A true CN110730133A (en) 2020-01-24
CN110730133B CN110730133B (en) 2021-11-12

Family

ID=69220383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910999046.1A Active CN110730133B (en) 2019-10-21 2019-10-21 Route notification method and system

Country Status (1)

Country Link
CN (1) CN110730133B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371685A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Data processing and IPv6 mounting method and device
CN112910776A (en) * 2021-01-18 2021-06-04 北京字节跳动网络技术有限公司 Data forwarding method, device, equipment and medium
CN113691462A (en) * 2021-07-29 2021-11-23 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol
WO2023036085A1 (en) * 2021-09-08 2023-03-16 中兴通讯股份有限公司 Routing management method and apparatus, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8640127B2 (en) * 2010-09-21 2014-01-28 International Business Machines Corporation Relocating guest machine using proxy tool having multiple virtual machines where one virtual machines provides host route for relocation
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
US9356886B2 (en) * 2012-10-05 2016-05-31 Cisco Technology, Inc. Techniques for scalable and foolproof virtual machine move handling with virtual port channels
CN106411863A (en) * 2016-09-14 2017-02-15 南京安贤信息科技有限公司 Virtualization platform for processing network traffic of virtual switches in real time
CN107404436A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Communication means and device for virtual expansible LAN
CN107517119A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 Virtual network detection method and device under VPC environment
CN107733746A (en) * 2016-08-11 2018-02-23 中兴通讯股份有限公司 A kind of network-building method and mixed cloud plateform system for mixing cloud platform
CN108418705A (en) * 2018-01-29 2018-08-17 山东汇贸电子口岸有限公司 Virtual machine mixes the virtual network management method and system of nested framework with container

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8640127B2 (en) * 2010-09-21 2014-01-28 International Business Machines Corporation Relocating guest machine using proxy tool having multiple virtual machines where one virtual machines provides host route for relocation
US9356886B2 (en) * 2012-10-05 2016-05-31 Cisco Technology, Inc. Techniques for scalable and foolproof virtual machine move handling with virtual port channels
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
CN107404436A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Communication means and device for virtual expansible LAN
CN107517119A (en) * 2016-06-17 2017-12-26 阿里巴巴集团控股有限公司 Virtual network detection method and device under VPC environment
CN107733746A (en) * 2016-08-11 2018-02-23 中兴通讯股份有限公司 A kind of network-building method and mixed cloud plateform system for mixing cloud platform
CN106411863A (en) * 2016-09-14 2017-02-15 南京安贤信息科技有限公司 Virtualization platform for processing network traffic of virtual switches in real time
CN108418705A (en) * 2018-01-29 2018-08-17 山东汇贸电子口岸有限公司 Virtual machine mixes the virtual network management method and system of nested framework with container

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371685A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Data processing and IPv6 mounting method and device
CN112910776A (en) * 2021-01-18 2021-06-04 北京字节跳动网络技术有限公司 Data forwarding method, device, equipment and medium
CN112910776B (en) * 2021-01-18 2022-10-18 北京火山引擎科技有限公司 Data forwarding method, device, equipment and medium
CN113691462A (en) * 2021-07-29 2021-11-23 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol
CN113691462B (en) * 2021-07-29 2023-09-15 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol
WO2023036085A1 (en) * 2021-09-08 2023-03-16 中兴通讯股份有限公司 Routing management method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN110730133B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN110730133B (en) Route notification method and system
US8842577B2 (en) Enabling media access control address mobility in an ethernet virtual private network
CN108173765B (en) Message forwarding method and device
US10749763B2 (en) Reliable address discovery cache
WO2021135468A1 (en) Segment identifier determining method and device
US11432137B2 (en) Service notification method for mobile edge host and apparatus
US8380799B2 (en) Topic-based messaging using consumer address and pool
EP3972207B1 (en) Message processing method, device, and computer storage medium
US10205663B1 (en) Managing host computing devices
CN109412949B (en) Data message transmission method and device
US20180331895A1 (en) Viral System Discovery and Installation for Distributed Networks
CN113438329B (en) MAC address sending method, device and system
CN109729189B (en) Method and device for configuring domain name
CN110545230B (en) Method and device for forwarding VXLAN message
CN109728926B (en) Communication method and network device
CN104010018A (en) Method and device for synchronizing multicast groups
CN113452778A (en) Session keeping method, device, equipment, system and storage medium
CN104917800A (en) Method and device for establishing redundancy connection for virtual machine
CN104426759A (en) Host machine router acquiring method, host machine router acquiring device, and host machine router acquiring system
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN115665026A (en) Cluster networking method and device
CN114615235A (en) Method, device and computer program product for managing addresses of devices in a network
CN114928589B (en) Data transmission method, data transmission device, computer readable medium and apparatus
CN113992558B (en) Method, device, electronic equipment and medium for route publishing
CN111225044B (en) Client message pushing method, device and system

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