CN109218202B - Route synchronization method and device - Google Patents

Route synchronization method and device Download PDF

Info

Publication number
CN109218202B
CN109218202B CN201810974203.9A CN201810974203A CN109218202B CN 109218202 B CN109218202 B CN 109218202B CN 201810974203 A CN201810974203 A CN 201810974203A CN 109218202 B CN109218202 B CN 109218202B
Authority
CN
China
Prior art keywords
vxlan
host
routing information
member device
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810974203.9A
Other languages
Chinese (zh)
Other versions
CN109218202A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810974203.9A priority Critical patent/CN109218202B/en
Publication of CN109218202A publication Critical patent/CN109218202A/en
Application granted granted Critical
Publication of CN109218202B publication Critical patent/CN109218202B/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]
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The application provides a route synchronization method and a device, which are applied to member devices in an edge device group comprising at least two member devices, wherein the member devices of the edge device group are provided with special VXLANs, and the member devices can mutually send route information carrying specific preset notification identifiers in the first VXLANs, so that the member devices of the edge device group can mutually notify the routes, and the problem that hosts directly accessing different member devices of the edge device group cannot communicate with each other in the prior art is solved.

Description

Route synchronization method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for route synchronization.
Background
Currently, in many communication systems, communication between communication devices is implemented through a Virtual Extensible local area Network (VXLAN), for example, interconnection between communication devices and interconnection between different communication systems are implemented through an Ethernet Virtual Private Network (EVPN) technology based on VXLAN. At the network Edge of a communication system, a Device for forwarding data between the communication system and other communication systems is called an Edge Device (ED). In a relatively large communication system (e.g., a data center), in order to improve reliability or fault tolerance of communication, an edge device may be set as an edge device group including two or more member devices, where the member devices in the edge device group jointly implement functions of the edge device, and they may perform data forwarding in a primary-standby or load balancing manner. For example, referring to FIG. 1, edge device group D1, which includes member device D1-1 and member device D1-2, is included in communication system DC1, and communication system DC1 may be interconnected with communication system DC2 via member device D1-1 and member device D1-2. However, in the existing edge device group with multiple member devices, in order to avoid a two-layer message loop between the member devices, mutual synchronization of routing information between the member devices in the same edge device group is prohibited, which results in that hosts respectively directly accessing different member devices in the same edge device group cannot communicate with each other, and thus the functions of the member devices are limited. For example, in the networking shown in FIG. 1, in order to avoid a two-layer loop between member device D1-1 and member device D1-2, the mutual EVPN route advertisement between member device D1-1 and member device D1-2 is prohibited, resulting in no communication between VM3 of access D1-1 and VM4 of access D1-2.
Disclosure of Invention
In a first aspect, the present application provides a routing synchronization method, which is applied to a first member device in an edge device group including at least two member devices, where the first member device is preconfigured with a first VXLAN interworking with a second member device in the edge device group; the method comprises the following steps:
obtaining communication information of a first host accessed to the first member device;
generating first routing information carrying a preset attribute identifier according to the communication information of the first host, wherein the first routing information carries the identifier of the first VXLAN;
and synchronizing the first routing information to the second member equipment, so that when the second member equipment receives the first routing information carrying the preset attribute identifier, the corresponding relation between the first routing information and the first VXLAN is recorded, and the message sent to the first host is sent to the first member equipment through the tunnel of the first VXLAN according to the first routing information.
Optionally, a VXLAN accessed by the first host to the first member device is a second VXLAN, and a mapping relationship between the second VXLAN and the first VXLAN is preconfigured in the first member device;
the step of generating first routing information carrying a preset attribute identifier according to the communication information of the first host includes:
generating first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the communication information of the first host and the mapping relation between the second VXLAN accessed by the first host and the first VXLAN;
the method further comprises the following steps:
generating third routing information according to the communication information of the first host, wherein the third routing information carries an identifier of the second VXLAN;
synchronizing the third routing information to other neighbor devices other than the second member device.
Optionally, the method further comprises:
receiving second routing information which is sent by the second member equipment and carries the preset attribute identifier, wherein the second routing information carries communication information of a second host which is accessed to the second member equipment and the identifier of the first VXLAN;
and recording the corresponding relation between the second routing information and the first VXLAN.
Optionally, the method further comprises:
receiving a message sent by the first host to the second host;
and sending the message to the second member equipment from the tunnel of the first VXLAN according to the second routing information.
Optionally, the preset attribute identifier is an extended community attribute configured as a preset value in the BGP route advertisement message.
In a second aspect, the present application provides a routing synchronization apparatus, which is applied to a first member device in an edge device group including at least two member devices, where the first member device is preconfigured with a first VXLAN interworking with a second member device in the edge device group; the device comprises:
the information acquisition module is used for acquiring communication information of a first host which is accessed to the first member equipment;
a first generating module, configured to generate, according to communication information of the first host, first routing information carrying a preset attribute identifier, where the first routing information carries an identifier of the first VXLAN;
and the first synchronization module is used for synchronizing the first routing information to the second member equipment, so that when the second member equipment receives the first routing information carrying the preset attribute identifier, the corresponding relation between the first routing information and the first VXLAN is recorded, and the message sent to the first host is sent to the first member equipment through the tunnel of the first VXLAN according to the first routing information.
Optionally, a VXLAN accessed by the first host to the first member device is a second VXLAN, and a mapping relationship between the second VXLAN and the first VXLAN is preconfigured in the first member device;
the first generating module is specifically configured to generate first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the communication information of the first host and a mapping relationship between a second VXLAN accessed by the first host and the first VXLAN;
the device further comprises:
a second generating module, configured to generate third routing information according to the communication information of the first host, where the third routing information carries an identifier of the second VXLAN;
a second synchronization module to synchronize the third routing information to other neighboring devices except the second member device.
Optionally, the apparatus further comprises:
a route receiving module, configured to receive second route information that is sent by the second member device and carries the preset attribute identifier, where the second route information carries communication information of a second host that accesses the second member device and an identifier of the first VXLAN; and recording the corresponding relation between the second routing information and the first VXLAN.
Optionally, the apparatus further comprises:
and the forwarding module is used for receiving the message sent by the first host to the second host and sending the message to the second member equipment from the tunnel of the first VXLAN according to the second routing information.
Optionally, the preset attribute identifier is an extended community attribute configured as a preset value in the BGP route advertisement message.
Compared with the prior art, the method has the following beneficial effects:
according to the route synchronization method and system, the special first VXLAN is configured on the member devices of the edge device group, and the member devices can mutually send the route information carrying the specific preset notification identification in the first VXLAN, so that the member devices of the edge device group can mutually notify the route, and the problem that hosts directly accessing different member devices of the edge device group cannot communicate with each other in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a schematic diagram of a prior art networking system for multi-edge device communication;
fig. 2 is a schematic diagram of a multi-edge device communication system according to a first embodiment of the present application;
fig. 3 is a schematic flowchart of a route synchronization method according to a first embodiment of the present application;
fig. 4 is a schematic diagram of a multi-edge device communication system according to a second embodiment of the present application;
fig. 5 is a schematic flowchart of a route synchronization method according to a second embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an edge device according to a third embodiment of the present application;
fig. 7 is a functional block diagram of a route synchronization apparatus according to a third embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of a communication device according to a fourth embodiment of the present application;
fig. 9 is a schematic functional block diagram of a route synchronization apparatus according to a fourth embodiment of the present application.
Icon: 10-a multi-edge device communication system; ED11-1(ED21-1) -first member device; 110(210) -route synchronizing means; 111-a communication information acquisition module; 112-a first generation module; 113-a first synchronization module; 114-route receiving module; 115-a forwarding module; 114-a second generation module; 115-a second synchronization module; 211-a second information obtaining module; 212-a second generation module; 213-a second synchronization module; 214-a second route receiving module; 215-a second forwarding module; 120-a machine-readable storage medium; 130-a processor; 140-a communication unit; ED11-2(ED21-2) -second member device; VM13(VM23) -first host; VM14(VM24) -second host.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
In one embodiment
Referring to fig. 2, fig. 2 is a schematic diagram of an architecture of a communication system DC11 provided in this embodiment, wherein fig. 2 illustrates that a communication system DC11 includes an edge device group ED11, and the edge device group ED11 includes two member devices, but the edge device group ED11 provided in this embodiment is not limited to include only two member devices, and according to actual situations, the edge device group ED11 provided in this embodiment may also include more member devices.
In this embodiment, one member device in the edge device group ED11 is taken as the first member device ED11-1, and the other member devices except the first member device ED11-1 are taken as the second member device ED 11-2. And the host accessing the first member device ED11-1 is taken as the first host VM13, and the host accessing the second member device ED11-2 is taken as the second host VM 14.
Wherein the first member device ED11-1 and the second member device ED11-2 are pre-configured with respective Virtual Switch Instances (VSIs) through which a first VXLAN is constructed that can be configured only for data interaction between the first member device ED11-1 and the second member device ED 11-2.
In this embodiment, the access port of the first host VM13 on the first member device ED11-1 may be previously associated with the first VXLAN, e.g., the port accessed by the first host VM13 is configured to belong to the first VXLAN. In this way, after the first host VM13 accesses the first member device ED11-1, the first member device ED11-1 may associate the communication information of the first host VM13 with the first VXLAN. Accordingly, the port accessed by the second host VM14 on the second member device ED11-2 may also be previously associated with the first VXLAN.
Referring to fig. 3, the present embodiment provides a flow chart of a route synchronization method, and the following describes each step of the method in detail.
Step S110, obtain the communication information of the first host VM13 accessing the first member device ED 11-1.
After the first host VM13 is accessed to the first member device ED11-1, the first member device ED11-1 may obtain communication information of the first host VM13 through Address Resolution Protocol (ARP) message interaction with the first host VM13, where the communication information may include an IP Address and a MAC Address of the first host VM13, port information of the first host VM13 accessed to the first member device ED11-1, and the like.
Step S120, generate first routing information carrying a preset attribute identifier according to the communication information of the first host VM13, where the first routing information carries an identifier of the first VXLAN.
In this example, the first routing information includes communication information of the first host VM13, an identification of the first VXLAN, and routing next hop information, which may be an IP address of the first member device ED 11-1.
Since the member devices of the edge device group ED11 do not usually receive synchronized routing information, in this example, in order to enable the second member device ED11-2 to recognize and receive the first routing information, a preset attribute identifier needs to be carried in the first routing information, so that the second member device ED11-2 can receive and process the routing information when receiving the routing information carrying the preset attribute identifier. For example, the first routing information may be routing advertisement information of a Border Gateway Protocol (BGP), and the preset attribute identifier may be an extended community attribute configured as a preset value in the BGP routing advertisement message, where a Type (Type) field of the extended community attribute may have a value of 0x06, a Sub-Type (Sub-Type) field may have a value of 0x00, and a Reserved (Reserved) field may have a value of 0.
Step S130, synchronizing the first routing information to the second member device ED11-2, so that when receiving the first routing information carrying the preset attribute identifier, the second member device ED11-2 records the corresponding relationship between the first routing information and the first VXLAN, and sends the packet sent to the first host VM13 to the first member device ED11-1 through the tunnel of the first VXLAN according to the first routing information.
After receiving the first routing information synchronized by the first member device ED11-1, the second member device ED11-2 stores the communication information of the first host VM13 and the routing next hop information into the forwarding table corresponding to the first VXLAN according to the identifier of the first VXLAN.
Thus, when receiving a message sent by the second host VM14 accessing the first VXLAN to the first host VM13, the second member device ED11-2 may send the message to the first member device ED11-1 through the tunnel of the first VXLAN according to the first route in the first VXLAN forwarding table.
Based on the route synchronization procedure from step S110 to step S1130, the second host VM14 accessing the second member device ED11-2 may be caused to transmit data to the first host VM13 accessing the first member device ED 11-1.
Accordingly, the second member device ED11-2 may also synchronize routing information of the second host VM14 of the first VXLAN accessing the second member device ED11-2 to the first member device ED11-1 in a similar manner as steps S110 to S130.
In other words, the first member device ED11-1 may receive second routing information carrying a preset attribute identifier sent by the second member device ED11-2, where the second routing information carries communication information of the first VXLAN second host VM14 accessing the second member device ED11-2 and an identifier of the first VXLAN, and the second routing information and the routing next hop information may be an IP address of the second member device ED 11-2.
The first member device ED11-1 then records the correspondence of the second routing information to the first VXLAN. For example, the communication information of the second host VM14 and the routing next hop information in the second routing information are recorded in the routing table corresponding to the first VXLAN.
In this way, when receiving the message sent from the first host VM13 accessing the first VXLAN to the second host VM14, the first member device ED11-1 sends the message from the tunnel of the first VXLAN to the second member device ED11-2 according to the second routing information. In this way, the first host VM13 accessing the first member device ED11-1 and the second host VM14 accessing the second member device ED11-2 can communicate with each other.
To facilitate the understanding of the solutions provided in the present embodiment for those skilled in the art, the above solutions are explained below by way of an example.
Referring again to fig. 2, member devices ED11-1 and ED11-2 are member devices of edge device group ED11, and communication system DC11 is interconnected with communication system DC12 via member devices ED11-1 and ED 11-2.
The IP address of member device ED11-1 is 2.2.3.1 and the IP address of member device ED11-2 is 2.2.3.2. ED11-1 and EN11-2 are configured with a common first VXLAN 1234. This first VXLAN1234 may be configured for data interaction only between ED11-1 and ED 11-2.
Host VM13 with IP address 12.1.1.3, MAC address 3-3-3-3-3-3 is attached to ED11-1, and the port where VM13 attaches to ED11-1 is configured to belong to VXLAN 1234.
Host VM14 with IP address 13.1.1.3, MAC address 4-4-4-4 is attached to ED11-2, and the port where VM14 is attached to ED11-2 is configured to belong to VXLAN 1234.
On one hand, after VM13 accesses ED11-1, ED11-1 obtains communication information such as an IP address and an MAC address of VM13 and a port number accessed by VM13 through ARP message interaction with VM13, and generates a corresponding forwarding table item locally at ED 11-1.
Then, the ED11-1 sends BGP route advertisement message to the ED11-2 for the VM13, where a destination IP address and a destination MAC address in the route advertisement message are the IP address and the MAC address of the VM13, a VXLAN identifier carried in the route advertisement message is VXLAN VNI 1234, a next hop of the route advertisement message is the IP address of the ED11-1, and an extended community attribute of the route advertisement message is set to a preset value.
The ED11-2 receives BGP route notification information sent by the ED11-1, and when detecting that the extended community attribute value of the route notification information is the preset value, sends the route information carried in the route notification information to a route table corresponding to the VXLAN 1234. For example, the information recorded by the ED11-2 in its routing table is as follows:
Figure RE-GDA0001817893250000101
when ED11-2 receives the message with destination address VM13 sent by VM14, it looks up and forwards in the routing table of VXLAN1234 according to VXLAN accessed by VM14, adds the encapsulation of VXLAN1234 to the message according to the result of the lookup, and sends the message to ED11-1 through a tunnel. The ED11-1 decapsulates the received message and sends the message to the VM13 according to the local forwarding table entry.
On the other hand, the ED11-2 also synchronizes the routing information of the VM14 to the ED11-1 in a similar manner, and after the ED11-1 receives the routing information synchronized by the ED11-2, the information recorded in the forwarding table is as follows:
Figure RE-GDA0001817893250000102
when ED11-1 receives the message with the destination address of VM14 sent by VM13, it looks up in the routing table of VXLAN1234 according to VXLAN accessed by VM13, adds the encapsulation of VXLAN1234 to the message according to the result of the lookup, and sends the message to ED11-2 through a tunnel. The ED12-1 decapsulates the received message and sends the message to the VM14 according to the local forwarding table entry.
Second embodiment
Referring to fig. 4, fig. 2 is a schematic diagram of an architecture of a communication system DC21 provided in this embodiment, wherein fig. 2 shows that a communication system DC21 includes an edge device group ED21, and the edge device group ED21 includes two member devices, but the edge device group ED21 provided in this embodiment is not limited to only include two member devices, and according to actual situations, the edge device group ED21 provided in this embodiment may also include more member devices.
In this embodiment, one member device in the edge device group ED21 is taken as the first member device ED21-1, and the other member devices except the first member device ED21-1 are taken as the second member device ED 21-2. And the host accessing the first member device ED21-1 is taken as the first host VM23, and the host accessing the second member device ED21-2 is taken as the second host VM 24.
Wherein the first member device ED21-1 and the second member device ED21-2 are pre-selected with a corresponding VSI through which the first VXLAN is constructed. The first VXLAN may be configured for data interaction only between the first member device ED21-1 and the second member device ED 21-2.
In this embodiment, the first host VM23 needs to communicate with the second host VM24 connected to the second member device ED21-2 and also needs to communicate with the hosts connected to other communication devices, so in this example, the VXLAN of the first host VM23 accessing the first member device ED21-1 is configured as the second VXLAN, and the mapping relationship between the second VXLAN and the first VXLAN is configured in advance in the first member device ED 21-1.
For example, a second VXLAN mapping (mapping) of the first host VM23 access onto the first VXLAN is configured on the first member device ED 21-1. Wherein the first VXLAN may be configured for data interaction only between the first member device ED21-1 and the second member device ED21-2, and the second VXLAN may be configured for data interaction between the first member device ED21-1 and other neighbor communication devices.
Referring to fig. 5, the present embodiment provides a schematic flow chart of another route synchronization method, and the following describes each step of the method in detail.
Step S210, obtaining communication information of the first host VM23 accessing the first member device ED 21-1.
When the first host VM23 accesses the first member device ED21-1, the first member device ED21-1 may obtain the communication information of the first host VM23 through ARP message interaction.
Step S220, according to the communication information of the first host VM23 and the mapping relationship between the second VXLAN and the first VXLAN accessed by the first host VM23, generates the first routing information carrying the preset attribute identifier and the first VXLAN identifier.
In this example, since the VXLAN accessed by the first host VM23 to the first member device ED21-1 is the second VXLAN, and the second VXLAN accessed by the first host VM23 is mapped to the first VXLAN in advance in the first member device ED21-1, in step S220, the first member device ED21-1 generates the first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the mapping relationship between the second VXLAN and the first VXLAN.
Step S230, the first routing information is synchronized to the second member device ED 21-2.
After receiving the first routing information synchronized by the first member device ED21-1, the second member device ED21-2 stores the communication information of the first host VM23 and the IP address of the next route hop to the first member device ED21-1 into the routing table corresponding to the first VXLAN according to the identifier of the first VXLAN.
Thus, when receiving the message sent by the second host VM24 accessing the second VXLAN to the first host VM23, the second member device ED21-2 sends the message to the first member device ED21-1 through the tunnel of the first VXLAN according to the mapping relationship between the second VXLAN and the first VXLAN in the first VXLAN routing table.
Step S240, generating third routing information according to the communication information of the first host VM23, where the third routing information carries an identifier of the second VXLAN.
Step S250, synchronize the third routing information to other neighbor devices except the second member device ED 21-2.
In this example, when the first member device ED21-1 synchronizes the routing information of the first host VM23 to other neighbor devices except the second member device ED21-2, the carried VXLAN identifier is the second VXLAN identifier originally accessed by the first host VM 23.
After the above-mentioned routing information synchronization, the second host VM24 accessing the second member device ED21-2 will adopt the first VXLAN when communicating with the first host VM23 accessing the first member device ED21-1, and the hosts accessing other neighbor devices will adopt the second VXLAN when communicating with the first host VM23 accessing the first member device ED 21-1.
Accordingly, the second member device ED21-2 may also synchronize routing information of the second host VM24 of the first VXLAN accessing the second member device ED21-2 to the first member device ED21-1 in a similar manner as steps S210 to S230.
The first member device ED21-1 may receive second routing information carrying the preset attribute identifier and sent by the second member device ED21-2, where the second routing information carries communication information of the first VXLAN second host VM24 accessing the second member device ED21-2 and an identifier of the first VXLAN.
The first member device ED21-1 then records the correspondence of the second routing information to the first VXLAN. For example, the communication information of the second host VM24 and the IP address of the next hop, which is the second member device ED21-2, in the second routing information are recorded in the routing table corresponding to the first VXLAN.
Thus, when receiving the message sent by the first host VM23 accessing the second VXLAN to the second host VM24, the first member device ED21-1 queries the routing table of the first VXLAN for the corresponding routing information according to the mapping relationship between the second VXLAN and the first VXLAN, and sends the message from the tunnel of the first VXLAN to the second member device ED21-2 according to the queried second route. In this way, the first host VM23 accessing the first member device ED21-1 and the second host VM24 accessing the second member device ED21-2 can communicate with each other.
To facilitate the understanding of the solutions provided in the present embodiment for those skilled in the art, the above solutions are explained below by way of an example.
Referring again to fig. 4, member devices ED21-1 and ED21-2 are member devices of edge device group ED21, and communication system DC21 is interconnected with communication system DC22 via member devices ED21-1 and ED 21-2.
The IP address of member device ED21-1 is 2.2.3.1 and the IP address of member device ED21-2 is 2.2.3.2. ED21-1 and EN21-2 are configured with a common first VXLAN 1234. This first VXLAN1234 may be configured for data interaction only between ED21-1 and ED 21-2.
A host VM23 with an IP address of 12.1.1.3, a MAC address of 3-3-3-3-3-3 is attached to ED21-1, and a port of VM23 attached to ED21-1 is configured to belong to VXLAN 10. ED21-1 is preconfigured with VXLAN 10 mapping to VXLAN 1234.
A host VM24 with an IP address of 13.1.1.3, a MAC address of 4-4-4-4 is attached to ED21-2, and a port where VM24 is attached to ED21-2 is configured to belong to VXLAN 10. ED21-2 is preconfigured with VXLAN 10 mapping to VXLAN 1234.
Communication system DC21 further includes neighbor device VTEP1 communicating with ED21-1 and ED21-2 via route reflector RR1, VTEP1 has IP address 1.1.1.1, and host VM21 is connected to VTEP 1.
On one hand, after the VM23 accesses the ED21-1, the ED21-1 obtains the IP address and the MAC address of the VM23 and the port number accessed by the VM23 through interacting with the ARP packet of the VM23, and generates a corresponding forwarding table entry locally at the ED 21-1.
Then, the ED21-1 sends BGP route advertisement message to the ED21-2 for the VM23, where a destination IP address and a destination MAC address in the route advertisement message are the IP address and the MAC address of the VM23, a VXLAN identifier carried in the route advertisement message is VXLAN VNI 1234, a next hop of the route advertisement message is the IP address of the ED21-1, and an extended community attribute of the route advertisement message is set to a preset value.
The ED21-2 receives BGP route notification information sent by the ED21-1, and when detecting that the extended community attribute value of the route notification information is the preset value, sends the route information carried in the route notification information to a route table corresponding to the VXLAN 1234. In other words, the information recorded by the ED21-2 in its routing table is as follows:
Figure RE-GDA0001817893250000151
when ED21-2 receives a message with a destination address of VM23 sent by VM24 accessing VXLAN 10, the mapping relationship between VXLAN 10 and VXLAN1234 is looked up in the routing table of VXLAN1234, and the message is sent to ED21-1 through a tunnel after being added with the encapsulation of VXLAN1234 according to the look-up result. The ED21-1 decapsulates the received message and sends the message to the VM23 according to the local forwarding table entry.
The ED21-1 further sends BGP route advertisement information to the VTEP1 for the VM23, where the destination IP address and the destination MAC address in the route advertisement message are the IP address and the MAC address of the VM23, the VXLAN identifier carried in the route advertisement message is VXLAN VNI 10, and the next hop of the route advertisement message is the IP address of the ED 21-1.
The VTEP1 receives BGP route advertisement information sent by the ED21-1, and sends the route information carried in the route advertisement information to a route table corresponding to the VXLAN 10. In other words, the information that VTEP1 records in its routing table is as follows:
Figure RE-GDA0001817893250000152
when receiving a message with a destination address of VM23 sent by VM21 accessing VXLAN 10, VTEP1 searches the routing table of VXLAN 10, adds the encapsulation of VXLAN 10 to the message according to the search result, and sends the message to ED21-1 through a tunnel. The ED21-1 decapsulates the received message and sends the message to the VM23 according to the local forwarding table entry.
On the other hand, the ED21-2 also synchronizes the routing information of the VM24 to the ED21-1 in a similar manner, and after the ED21-1 receives the routing information synchronized by the ED21-2, the information recorded in the forwarding table is as follows:
Figure RE-GDA0001817893250000161
when ED21-1 receives a message with a destination address of VM24 sent by VM23 accessing VXLAN 10, the mapping relationship between VXLAN 10 and VXLAN1234 is looked up in the routing table of VXLAN1234, and the message is sent to ED21-2 through a tunnel after being added with the encapsulation of VXLAN1234 according to the look-up result. The ED21-2 decapsulates the received message and sends the message to the VM24 according to the local forwarding table entry.
Third embodiment
Referring to fig. 6, the present embodiment provides a communication device, which may be the first member device ED11-1 described in the first embodiment, and in the present embodiment, the first member device ED11-1 may include a routing synchronization apparatus 110, a machine-readable storage medium 120, a processor 130, and a communication unit 140.
The elements of the machine-readable storage medium 120, the processor 130, and the communication unit 140 are electrically connected to each other, directly or indirectly, to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The route synchronization apparatus 110 includes at least one software function module that may be stored in a form of software or firmware (firmware) in the machine readable storage medium 120 or solidified in an Operating System (OS) of the first member device ED 11-1. The processor 130 is configured to execute executable modules stored in the machine-readable storage medium 120, such as software functional modules and computer programs included in the routing synchronization apparatus 110.
The machine-readable storage medium 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The machine-readable storage medium 120 is used for storing programs, and the processor 130 executes the programs after receiving the execution instructions. The communication unit 140 is used for communicating with other devices.
Referring to fig. 7, functionally, the routing synchronization apparatus 110 may include a first information obtaining module 111, a first generating module 112, and a first synchronization module 113.
The first information obtaining module 111 is configured to obtain communication information of a first host VM13 accessing the first member device ED 11-1.
In this embodiment, the first information obtaining module 111 may be configured to execute step S110 shown in fig. 3, and reference may be made to the description of step S110 for a detailed description of the first information obtaining module 111.
The first generating module 112 is configured to generate, according to the communication information of the first host VM13, first routing information carrying a preset attribute identifier, where the first routing information carries an identifier of the first VXLAN.
In this embodiment, the first generating module 112 may be configured to execute step S120 shown in fig. 3, and reference may be made to the description of step S120 for a detailed description of the first generating module 112.
The first synchronization module 113 is configured to synchronize the first routing information with the second member device ED11-2, so that when receiving the first routing information carrying the preset attribute identifier, the second member device ED11-2 records a corresponding relationship between the first routing information and the first VXLAN, and sends the packet sent to the first host VM13 to the first member device ED11-1 through the tunnel of the first VXLAN according to the first routing information.
In this embodiment, the first synchronization module 113 may be configured to execute the step S130 shown in fig. 3, and reference may be made to the description of the step S130 for a detailed description of the first synchronization module 113.
Optionally, referring to fig. 7 again, the route synchronization apparatus 110 further includes a first route receiving module 114.
The first route receiving module 114 is configured to receive second route information which is sent by the second member device ED11-2 and carries a preset attribute identifier, where the second route information carries communication information of the second host VM14 accessing the second member device ED11-2 and an identifier of the first VXLAN; and recording the corresponding relation between the second routing information and the first VXLAN.
Optionally, referring to fig. 7 again, the route synchronization apparatus 110 further includes a first forwarding module 115.
The first forwarding module 114 is configured to receive the message sent by the first host VM13 to the second host VM14, and send the message from the tunnel of the first VXLAN to the second member device ED11-2 according to the second routing information.
Optionally, the preset attribute is identified as an extended community attribute configured as a preset value in the BGP route advertisement message.
Fourth embodiment
Referring to fig. 8, the present embodiment further provides another communication device, which may be the first member device ED21-1 in the second embodiment, and in the present embodiment, the first member device ED21-1, similar to the third embodiment, may include a machine-readable storage medium 120, a processor 130, and a communication unit 140, referring to fig. 9, except that the routing synchronization apparatus 210 included in the first member device ED21-1 in the present embodiment may include a second information obtaining module 211, a second generating module 212, and a second synchronization module 213 through functional division.
The second information obtaining module 211 is configured to obtain communication information of the first host VM23 accessing the first member device ED 21-1.
In this embodiment, the second information acquiring module 211 may be configured to execute step S210 shown in fig. 5, and reference may be made to the description of step S210 for the detailed description of the first information acquiring module 211.
The second generating module 212 is configured to generate, according to the communication information of the first host VM23, first routing information carrying a preset attribute identifier, where the first routing information carries an identifier of the first VXLAN.
In this embodiment, the first generating module 212 can be used to execute the steps S220 and S240 shown in fig. 5, and the detailed description about the first generating module 212 can refer to the description about the steps S220 and S240.
Specifically, the VXLAN accessed by the first host VM23 to the first member device ED21-1 is the second VXLAN, and the first member device ED21-1 is configured with the mapping relationship between the second VXLAN and the first VXLAN in advance.
The second generating module 212 is specifically configured to generate the first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the communication information of the first host VM23 and the mapping relationship between the first VXLAN and the second VXLAN accessed by the first host VM 23.
The second generating module 212 is further configured to generate third routing information according to the communication information of the first host VM23, where the third routing information carries an identifier of the second VXLAN.
The second synchronization module 213 is configured to synchronize the first routing information with the second member device ED21-2, so that when receiving the first routing information carrying the preset attribute identifier, the second member device ED21-2 records a corresponding relationship between the first routing information and the first VXLAN, and sends the packet sent to the first host VM23 to the first member device ED21-1 through the tunnel of the first VXLAN according to the first routing information.
In this embodiment, the second synchronization module 213 can be used to execute the steps S230 and S250 shown in fig. 3, and the detailed description of the second synchronization module 213 can refer to the description of the steps S230 and S250.
The second synchronization module 213 is also used to synchronize the third routing information to other neighbor devices than the second member device ED 21-2.
Optionally, referring to fig. 8 again, the route synchronization apparatus 210 further includes a second route receiving module 214.
The second route receiving module 214 is configured to receive second route information which is sent by the second member device ED21-2 and carries a preset attribute identifier, where the second route information carries communication information of a second host which is accessed to the second member device VM24 and an identifier of the first VXLAN; and recording the corresponding relation between the second routing information and the first VXLAN.
Optionally, referring to fig. 8 again, the route synchronization apparatus 210 further includes a second forwarding module 215.
The second forwarding module 114 is configured to receive the message sent by the first host VM23 to the second host VM24, and send the message from the tunnel of the first VXLAN to the second member device ED21-2 according to the second routing information.
Optionally, the preset attribute is identified as an extended community attribute configured as a preset value in the BGP route advertisement message.
To sum up, according to the routing synchronization method and system provided by the present application, by configuring the special first VXLAN on the member devices of the edge device group, the member devices can send routing information carrying the specific preset advertisement identifier to each other in the first VXLAN, so that the member devices of the edge device group can advertise routes to each other, and the problem that hosts directly accessing different member devices of the edge device group cannot communicate with each other in the prior art is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A route synchronization method is applied to a first member device in an edge device group comprising at least two member devices, wherein the first member device is preconfigured with a first VXLAN which is interworked with a second member device in the edge device group; the method comprises the following steps:
obtaining communication information of a first host accessed to the first member device;
generating first routing information carrying a preset attribute identifier according to communication information of the first host, wherein the preset attribute identifier is used for indicating that the second member equipment can receive and process the routing information when receiving the routing information carrying the preset attribute identifier, and the first routing information carries an identifier of the first VXLAN;
and synchronizing the first routing information to the second member equipment, so that when the second member equipment receives the first routing information carrying the preset attribute identifier, the corresponding relation between the first routing information and the first VXLAN is recorded, and the message sent to the first host is sent to the first member equipment through the tunnel of the first VXLAN according to the first routing information.
2. The method of claim 1, further comprising:
receiving second routing information which is sent by the second member equipment and carries the preset attribute identifier, wherein the second routing information carries communication information of a second host which is accessed to the second member equipment and the identifier of the first VXLAN;
and recording the corresponding relation between the second routing information and the first VXLAN.
3. The method of claim 2, further comprising:
receiving a message sent by the first host to the second host;
and sending the message to the second member equipment from the tunnel of the first VXLAN according to the second routing information.
4. The method according to claim 1, wherein the VXLAN that the first host accesses the first member device is a second VXLAN, and a mapping relationship between the second VXLAN and the first VXLAN is preconfigured in the first member device;
the step of generating first routing information carrying a preset attribute identifier according to the communication information of the first host includes:
generating first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the communication information of the first host and the mapping relation between the second VXLAN accessed by the first host and the first VXLAN;
the method further comprises the following steps:
generating third routing information according to the communication information of the first host, wherein the third routing information carries an identifier of the second VXLAN;
synchronizing the third routing information to other neighbor devices other than the second member device.
5. The method of claim 1, wherein the predefined attribute is identified as an extended community attribute configured as a predefined value in a BGP route advertisement message.
6. A routing synchronization apparatus, applied to a first member device in an edge device group including at least two member devices, the first member device being preconfigured with a first VXLAN that is common to second member devices in the edge device group; the device comprises:
the information acquisition module is used for acquiring communication information of a first host which is accessed to the first member equipment;
a generating module, configured to generate, according to communication information of the first host, first routing information carrying a preset attribute identifier, where the preset attribute identifier is used to indicate that the second member device can receive and process the routing information when receiving the routing information carrying the preset attribute identifier, and the first routing information carries an identifier of the first VXLAN;
and the synchronization module is used for synchronizing the first routing information to the second member equipment, so that when the second member equipment receives the first routing information carrying the preset attribute identifier, the corresponding relation between the first routing information and the first VXLAN is recorded, and the message sent to the first host is sent to the first member equipment through the tunnel of the first VXLAN according to the first routing information.
7. The apparatus of claim 6, further comprising:
a route receiving module, configured to receive second route information that is sent by the second member device and carries the preset attribute identifier, where the second route information carries communication information of a second host that accesses the second member device and an identifier of the first VXLAN; and recording the corresponding relation between the second routing information and the first VXLAN.
8. The apparatus of claim 7, further comprising:
and the forwarding module is used for receiving the message sent by the first host to the second host and sending the message to the second member equipment from the tunnel of the first VXLAN according to the second routing information.
9. The apparatus of claim 6, wherein a VXLAN that the first host accesses the first member device is a second VXLAN, and a mapping relationship between the second VXLAN and the first VXLAN is preconfigured in the first member device;
the generating module is specifically configured to generate first routing information carrying the preset attribute identifier and the first VXLAN identifier according to the communication information of the first host and a mapping relationship between a second VXLAN accessed by the first host and the first VXLAN;
the generating module is further configured to generate third routing information according to the communication information of the first host, where the third routing information carries an identifier of the second VXLAN;
the synchronization module is further configured to synchronize the third routing information to other neighbor devices other than the second member device.
10. The apparatus of claim 6, wherein the predetermined attribute is identified as an extended community attribute configured as a predetermined value in a BGP route advertisement message.
CN201810974203.9A 2018-08-24 2018-08-24 Route synchronization method and device Active CN109218202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810974203.9A CN109218202B (en) 2018-08-24 2018-08-24 Route synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810974203.9A CN109218202B (en) 2018-08-24 2018-08-24 Route synchronization method and device

Publications (2)

Publication Number Publication Date
CN109218202A CN109218202A (en) 2019-01-15
CN109218202B true CN109218202B (en) 2021-05-07

Family

ID=64989560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810974203.9A Active CN109218202B (en) 2018-08-24 2018-08-24 Route synchronization method and device

Country Status (1)

Country Link
CN (1) CN109218202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698151B (en) * 2019-03-13 2022-06-28 华为技术有限公司 Routing information management method, device and computer storage medium
CN111277482B (en) * 2020-01-13 2022-01-18 新华三大数据技术有限公司 Message processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078800A (en) * 2013-01-29 2013-05-01 杭州华三通信技术有限公司 MAC (media access control) address information control method in EVI (Ethernet Virtualization Interconnection) network and edge device
CN103731349A (en) * 2012-10-16 2014-04-16 杭州华三通信技术有限公司 Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device
US9338084B2 (en) * 2013-04-10 2016-05-10 Cisco Technology, Inc. Distributed fast remote cutover of traffic upon local failure in an overlay transport visualization network
CN105591872A (en) * 2015-10-23 2016-05-18 杭州华三通信技术有限公司 Method and device for realization of multi-data center interconnection
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN106911547A (en) * 2017-02-10 2017-06-30 新华三技术有限公司 A kind of message forwarding method and device
CN108156067A (en) * 2018-01-07 2018-06-12 何顺民 It is a kind of to realize the method and system based on Ethernet Virtual Private Network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209553B (en) * 2015-04-30 2019-07-23 华为技术有限公司 Message processing method, equipment and system
US10178024B2 (en) * 2015-06-26 2019-01-08 Nicira, Inc. Traffic forwarding in a network with geographically dispersed sites

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731349A (en) * 2012-10-16 2014-04-16 杭州华三通信技术有限公司 Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device
CN103078800A (en) * 2013-01-29 2013-05-01 杭州华三通信技术有限公司 MAC (media access control) address information control method in EVI (Ethernet Virtualization Interconnection) network and edge device
US9338084B2 (en) * 2013-04-10 2016-05-10 Cisco Technology, Inc. Distributed fast remote cutover of traffic upon local failure in an overlay transport visualization network
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105591872A (en) * 2015-10-23 2016-05-18 杭州华三通信技术有限公司 Method and device for realization of multi-data center interconnection
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN106911547A (en) * 2017-02-10 2017-06-30 新华三技术有限公司 A kind of message forwarding method and device
CN108156067A (en) * 2018-01-07 2018-06-12 何顺民 It is a kind of to realize the method and system based on Ethernet Virtual Private Network

Also Published As

Publication number Publication date
CN109218202A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN107783815B (en) Method and device for determining virtual machine migration
CN112422393B (en) Method for transmitting message of extensible virtual local area network, computer equipment and readable medium
US11032183B2 (en) Routing information validation in SDN environments
US20160226818A1 (en) Overlay tunnel information exchange protocol
EP3214816B1 (en) Method, gateway and system for synchronizing virtual machine location information between data center gateways
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
EP2774324A1 (en) Distributed address resolution service for virtualized networks
EP3301868B1 (en) Symmetric intersubnet traffic load balancing in multihomed networks
CN111010329B (en) Message transmission method and device
CN109218202B (en) Route synchronization method and device
US9106445B2 (en) Virtual extended network
CN108777663B (en) Method and device for synchronizing routing information
CN108718276B (en) Message forwarding method and device
CN107896188B (en) Data forwarding method and device
CN112152920B (en) Method and device for realizing table entry backup
EP4020904B1 (en) Packet transmission method, device, and system
CN109194575B (en) Routing method and device
CN108183858B (en) Route introducing method and device
EP4117239A1 (en) Methods, apparatus and device for sending routing and processing routing, and storage medium
CN108924052B (en) Message forwarding method, convergence gateway, access gateway and system
CN108712316B (en) Access configuration method, device and system of virtual machine
CN113923162A (en) Message forwarding method, device, equipment and storage medium
CN114765567A (en) Communication method and communication system
CN115086272B (en) ARP (Address resolution protocol) answering substituting method, device, equipment and storage medium
CN115065660B (en) ARP (Address resolution protocol) answering substituting optimization method

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