CN109218182B - Method and device for synchronizing routing information - Google Patents

Method and device for synchronizing routing information Download PDF

Info

Publication number
CN109218182B
CN109218182B CN201811388160.2A CN201811388160A CN109218182B CN 109218182 B CN109218182 B CN 109218182B CN 201811388160 A CN201811388160 A CN 201811388160A CN 109218182 B CN109218182 B CN 109218182B
Authority
CN
China
Prior art keywords
vtep
routing information
routing
enables
equivalent
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
CN201811388160.2A
Other languages
Chinese (zh)
Other versions
CN109218182A (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 CN201811388160.2A priority Critical patent/CN109218182B/en
Publication of CN109218182A publication Critical patent/CN109218182A/en
Application granted granted Critical
Publication of CN109218182B publication Critical patent/CN109218182B/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/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

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 embodiment of the application provides a method and a device for synchronizing routing information, relates to the technical field of communication, and is used for solving the problem of low reliability of service forwarding between VTEPs with BGP neighbor connection. The method of the embodiment of the application comprises the following steps: the first VTEP receives routing information which is sent by the RR and carries an extended attribute, wherein the extended attribute is used for indicating that the second VTEP enables an equivalent routing function; and the first VTEP judges whether the received routing information carries the extended attribute, and if so, the received routing information is inserted into the EVPN instance.

Description

Method and device for synchronizing routing information
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing routing information.
Background
Currently, an Ethernet Virtual Private Network (EVPN) can advertise EVPN routing information through a multi-Protocol-Border Gateway Protocol (MP-BGP). For example, after a Virtual eXtensible LAN Tunnel End Point (VTEP) 2 learns an Address Resolution Protocol (ARP) forwarding entry of a Virtual Machine (VM) 2, routing information carrying the ARP forwarding entry may be sent to VTEP1 through a Route Reflector (RR) 1 and an RR2, respectively.
At this time, the Route identifier (RD) of the routing information received by VTEP1 from RR1 and RR2 is consistent with the prefix of VM1, and VTEP1 may select an optimal Route to insert the EVPN instance, that is, when a subsequent VM1 accesses VM2, a message may be forwarded to VTEP2 only through RR1 or only through RR2, and if RR1 or RR2 for forwarding the message fails, the message transmission may be interrupted, so that the service forwarding reliability is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for synchronizing routing information, so as to solve a problem of low reliability of service forwarding between VTEPs having BGP neighbor connections. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for synchronizing routing information, where the method is applied to a first scalable virtual local area network tunnel endpoint VTEP in a scalable virtual local area network VXLAN, the VXLAN further includes a second VTEP, and two or more route reflectors RR are included between the first VTEP and the second VTEP; the method comprises the following steps:
the first VTEP receives routing information which is sent by an RR and carries an extended attribute, wherein the extended attribute is used for indicating that the second VTEP enables an equivalent routing function;
and judging whether the routing information received by the first VTEP carries the extended attribute, and if so, inserting the received routing information into an Ethernet virtual private network EVPN instance.
In a possible implementation manner, the determining, by the first VTEP, whether the received routing information carries the extended attribute, and if so, inserting the received routing information into an ethernet virtual private network EVPN instance includes:
if the routing information received by the first VTEP carries the extended attribute, judging whether the routing information enables an equivalent routing function;
and if the first VTEP enables the equivalent routing function, inserting the received routing information with the same routing identifier RD and prefix into the same EVPN instance.
In another possible implementation manner, the routing information carries an address resolution protocol ARP entry learned by the second VTEP from a second VM connected to the second VTEP.
In a second aspect, the embodiment of the present application provides a method for synchronizing routing information, where the method is applied to a second scalable virtual local area network tunnel endpoint VTEP in a scalable virtual local area network VXLAN, where the VXLAN further includes a first VTEP, and two or more route reflectors RR are included between the first VTEP and the second VTEP; the method comprises the following steps:
the second VTEP judges whether the second VTEP enables an equivalent routing function or not;
if the second VTEP enables the equivalent routing function, sending routing information carrying extended attributes to two or more RRs, so that the first VTEP inserts the routing information sent by the two or more RRs into an EVPN instance after receiving the routing information carrying extended attributes sent by the two or more RRs; the extended attribute is used to indicate that the second VTEP enables equivalent routing functionality.
In a possible implementation manner, the routing information carries an address resolution protocol ARP entry learned by the second VTEP from a second VM connected to the second VTEP.
In a third aspect, an embodiment of the present application provides a device for synchronizing routing information, where the device is applied to a first scalable virtual local area network tunnel endpoint VTEP in a scalable virtual local area network VXLAN, where the VXLAN further includes a second VTEP, and two or more route reflectors RR are included between the first VTEP and the second VTEP; the device comprises:
a receiving module, configured to receive routing information sent by the RR and carrying an extended attribute, where the extended attribute is used to indicate that the second VTEP enables an equivalent routing function;
and the inserting module is used for judging whether the routing information received by the receiving module carries the extended attribute or not, and inserting the received routing information into an Ethernet virtual private network EVPN instance if the routing information carries the extended attribute.
In a possible implementation manner, the inserting module is configured to determine whether the first VTEP enables an equivalent routing function if the routing information received by the receiving module carries the extended attribute; and if the first VTEP enables the equivalent routing function, inserting the received routing information with the same routing identifier RD and prefix into the same EVPN instance.
In a possible implementation manner, the routing information carries an address resolution protocol ARP entry learned by the second VTEP from a second VM connected to the second VTEP.
In a fourth aspect, the embodiment of the present application provides a device for synchronizing routing information, where the device is applied to a second scalable virtual local area network tunnel endpoint VTEP in a scalable virtual local area network VXLAN, where the VXLAN further includes a first VTEP, and two or more route reflectors RR are included between the first VTEP and the second VTEP; the device comprises:
the judging module is used for judging whether the second VTEP enables an equivalent routing function or not;
a sending module, configured to send routing information carrying an extended attribute to two or more RRs if the second VTEP enables an equivalent routing function, so that after the first VTEP receives the routing information carrying the extended attribute sent by the two or more RRs, the routing information sent by the two or more RRs is inserted into the EVPN instance; the extended attribute is used to indicate that the second VTEP enables equivalent routing functionality.
In a possible implementation manner, the routing information carries an address resolution protocol ARP entry learned by the second VTEP from a second VM connected to the second VTEP.
In a fifth aspect, an embodiment of the present application provides a VTEP, where the VTEP apparatus includes: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method for synchronizing routing information according to the first aspect or the second aspect is implemented.
In a sixth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for synchronizing routing information in the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform the method for synchronizing routing information described in the first aspect or the second aspect.
By adopting the method of the embodiment of the application, if the first VTEP receives the routing information which is sent by the RR and carries the extended attribute, the routing information which carries the extended attribute can be inserted into the EVPN instance, by the method, the routing information which carries the extended attribute can be inserted into the EVPN instance, if the routing information received from two or more RRs is substantially the same, the routing information is inserted into the EVPN instance, an equivalent route can be generated, which is equivalent to that an equivalent path can exist between the first VTEP and the second VTEP, and when one RR between the first VTEP and the second VTEP fails, the service flow can be switched to other equivalent paths through a fast rerouting technology, thereby improving the reliability of service forwarding.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic networking diagram of a VXLAN network according to an embodiment of the present application;
fig. 2 is a flowchart of a method for synchronizing routing information according to an embodiment of the present application;
fig. 3 is an exemplary diagram of an extended attribute field provided in an embodiment of the present application;
fig. 4 is a flowchart of another method for synchronizing routing information according to an embodiment of the present application;
fig. 5 is a flowchart of another method for synchronizing routing information according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for synchronizing routing information according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another apparatus for synchronizing routing information according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a VTEP provided in an embodiment of the present application.
Detailed Description
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 only a part of the embodiments of the present application, and not all of the embodiments. 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.
The embodiment of the application can be applied to a Virtual eXtensible local area network (VXLAN), the network includes a first VTEP and a second VTEP, two or more RRs exist between the first VTEP and the second VTEP, the first VTEP is connected to the first VM, and the second VTEP is connected to the second VM.
Fig. 1 is a schematic diagram of a possible configuration of a VXLAN network, as shown in fig. 1, in which VM1 is connected to VTEP1, VM2 is connected to VTEP2, and VTEP1 may be connected to VTEP2 via RR1 or to VTEP2 via RR 2. The connection between VTEP1 and VTEP2 is a BGP neighbor connection, and routing information may be exchanged between VTEP1 and VTEP2 via the BGP protocol.
The method and the device aim to solve the problem that message transmission is interrupted when a transmission path corresponding to the selected routing information fails due to the fact that only the optimal routing information is selected and inserted into an EVPN instance in the prior art. In this embodiment, VTEP2 may send routing information carrying an extended attribute to RR1 and RR2, respectively, and then RR1 and RR2 forward the routing information carrying the extended attribute to VTEP1, respectively, where the extended attribute is used to indicate that VTEP2 has enabled an equivalent routing function. Then if VTEP1 determines that the received routing information carries an extended attribute, the received routing information with the same RD and prefix can be inserted into the same EVPN instance, which is equivalent to generating an equivalent route of EVPN, and VTEP1 can also communicate with VTEP2 through RR2, so that fast rerouting can be realized, and reliability of service forwarding is improved, assuming that communication between VTEP1-RR1-VTEP2 cannot be performed.
In conjunction with fig. 1, the present application provides a method for transmitting routing information, which is performed by a first VTEP (VTEP 1 in fig. 1) in a VXLAN network, as shown in fig. 2, and includes:
s201, the first VTEP receives routing information which is sent by the RR and carries an extended attribute, wherein the extended attribute is used for indicating that the second VTEP enables an equivalent routing function.
After a second VM connected with the second VTEP is on-line, the second VTEP can learn an ARP forwarding table entry from the second VM, and then synchronize routing information carrying the ARP table entry to BGP EVPN neighbor equipment, namely the first VTEP.
Before the synchronization of the routing information, the second VTEP may determine whether the equivalent routing function is enabled, and if enabled, as shown in fig. 3, an extended attribute (vpn-route multipath) may be inserted into the routing information, where the extended attribute may be used to indicate that the routing information has the same RD and prefix as the routing information, and may be inserted into the same EVPN instance as the routing information.
The second VTEP may then send routing information to RR1 and RR2, with the RR1 and RR2 reflecting the respective received routing information to the first VTEP.
It can be understood that the routing information carries the ARP entry, RD and prefix. And if the routing information carries the ARP table entry learned from the second VM, the prefix in the routing information is the IP address of the second VM.
S202, the first VTEP judges whether the received routing information carries the extended attribute, and if the received routing information carries the extended attribute, the received routing information is inserted into the EVPN instance.
In this embodiment of the present application, if the first VTEP receives the routing information sent by two or more RRs, it determines whether the received routing information carries an extended attribute, if so, it determines whether the first VTEP enables an equivalent routing function, and if the first VTEP enables the equivalent routing function, the first VTEP inserts the received routing information having the same RD and prefix into the same EVPN instance. And further, equivalent routes of the EVPN can be generated in the underlay, namely two or more equivalent forwarding paths exist between the first VTEP and the second VTEP, and a backup function can be realized between the equivalent forwarding paths.
Illustratively, if the first VTEP receives the routing information 1-4, where RD carried by the routing information 1 is the same as RD carried by the routing information 2, and a prefix carried by the routing information 1 is the same as a prefix carried by the routing information 2, the routing information 1 and the routing information 2 are inserted into the same EVPN instance.
In addition, if the RD carried by the routing information 3 is the same as the RD carried by the routing information 4, and the prefix carried by the routing information 3 is the same as the prefix carried by the routing information 4, the routing information 3 and the routing information 4 are inserted into another EVPN instance.
Optionally, if the first VTEP determines that the received routing information does not carry the extended attribute, or determines that the equivalent routing function is not enabled, inserting one of the received routing information with the same RD and prefix into the EVPN instance. For example, an optimal route is selected from the received route information with the same RD and prefix, and the route information to which the optimal route belongs is inserted into the EVPN instance.
By adopting the method of the embodiment of the application, if the first VTEP receives the routing information which is sent by the RR and carries the extended attribute, the routing information which carries the extended attribute can be inserted into the EVPN instance, by the method, the routing information which carries the extended attribute can be inserted into the EVPN instance, if the routing information received from two or more RRs is the same, the routing information can be inserted into the EVPN instance to generate an equivalent route, which is equivalent to that an equivalent path can exist between the first VTEP and the second VTEP, and when one RR between the first VTEP and the second VTEP fails, the service flow can be switched to other equivalent paths through a fast rerouting technology, thereby improving the reliability of service forwarding.
Corresponding to fig. 2, an embodiment of the present application further provides a method for transmitting routing information, where the method is performed by a second VTEP, and as shown in fig. 4, the method includes:
s401, the second VTEP judges whether the equivalent routing function is enabled.
S402, if the second VTEP enables the equivalent routing function, the routing information carrying the extended attribute is sent to the two or more RRs, so that the first VTEP inserts the routing information sent by the two or more RRs into the EVPN instance after receiving the routing information carrying the extended attribute sent by the two or more RRs.
In this embodiment of the present application, the second VTEP may learn an ARP forwarding entry from a second VM connected to the second VTEP, and then, if it is determined that the second VTEP enables the equivalent routing function, add an extended attribute to the routing information carrying the ARP entry, which is used to notify that the opposite-end VTEP (i.e., the first VTEP) enables the equivalent routing function of the second VTEP, and then, after the first VTEP receives the routing information reflected by the RR, it may be determined that the second VTEP enables the equivalent routing function according to the extended attribute in the routing information, and if the first VTEP also enables the equivalent routing information of the prefix, the received routing information with the same RD and prefix is inserted into the same EVPN instance, so that an equivalent path is generated between the first VTEP and the second VTEP.
By adopting the method provided by the embodiment of the application, the second VTEP can enable the first VTEP to know that the second VTEP enables the equivalent routing function by adding the extended attribute into the routing information, and then the first VTEP can insert the received routing information into the EVPN instance. Therefore, an equivalent path is generated between the first VTEP and the second VTEP, and when one path fails, the service flow can be switched to the other equivalent path through a fast rerouting technology, so that the reliability of service forwarding is improved.
The following describes a transmission method of routing information provided in the embodiment of the present application with reference to a scenario shown in fig. 1, and as shown in fig. 5, the method specifically includes the following steps:
s501, the VTEP2 learns the ARP entries of the VM 2.
The VTEP2 is connected to the VM2 through an AC interface, and after the VM2 is online, the VTEP2 may obtain an ARP entry of the VM 2.
S502 and VTEP2 send routing information carrying extended attributes to RR1 and RR2 respectively.
And the routing information comprises the ARP table entry.
S503, VTEP1 receives RR1 reflected route information 1 carrying extended attribute, and RR2 reflected route information 2 carrying extended attribute.
S504, if the VTEP1 identifies that the routing information 1 and the routing information 2 carry the extended attribute, and the routing information 1 and the routing information 2 have the same RD and prefix, inserting the routing information 1 and the routing information 2 into the same EVPN instance.
It can be understood that RD of the routing information 1 and the routing information 2 is the same, prefixes carried by the routing information 1 and the routing information 2 are the same, and the VTEP2 enables an equivalent routing function, then the routing information 1 and the routing information 2 can be inserted into the same EVPN instance, so that two paths, i.e., VTEP1-RR1-VTEP2 and VTEP1-RR2-VTEP2, can form an equivalent path, and subsequently when one of the paths fails, traffic can be switched to the other path, which can avoid the phenomenon of traffic transmission interruption, and improve reliability of traffic forwarding.
Corresponding to the above method embodiment, the present application embodiment further provides a device for synchronizing routing information, where the device is applied to a first scalable virtual local area network tunnel endpoint VTEP in a scalable virtual local area network VXLAN, the VXLAN further includes a second VTEP, and two or more routing reflectors RR are included between the first VTEP and the second VTEP; as shown in fig. 6, the apparatus includes: a receiving module 601 and an inserting module 602.
A receiving module 601, configured to receive routing information sent by the RR and carrying an extended attribute, where the extended attribute is used to indicate that the second VTEP enables an equivalent routing function;
an inserting module 602, configured to determine whether the routing information received by the receiving module 601 carries an extended attribute, and if so, insert the received routing information into the EVPN instance.
And the routing information carries an Address Resolution Protocol (ARP) table entry learned by the second VTEP from a second VM connected to the second VTEP.
Optionally, the inserting module 602 is configured to determine whether the first VTEP enables an equivalent routing function if the routing information received by the receiving module 601 carries the extended attribute; if the first VTEP enables the equivalent routing function, the received routing information with the same RD and prefix is inserted into the same EVPN instance.
Corresponding to the above method embodiment, the present application further provides another device for synchronizing routing information, where the device is applied to a second VTEP in VXLAN, the VXLAN further includes a first VTEP, and two or more route reflectors RR are included between the first VTEP and the second VTEP; as shown in fig. 7, the apparatus includes: a judging module 701 and a sending module 702.
A judging module 701, configured to judge whether the second VTEP enables an equivalent routing function;
a sending module 702, configured to send routing information carrying an extended attribute to two or more RRs if the second VTEP enables an equivalent routing function, so that after receiving the routing information carrying the extended attribute sent by the two or more RRs, the first VTEP inserts the routing information sent by the two or more RRs into the EVPN instance; the extended attribute is used to indicate that the second VTEP enables equivalent routing functionality.
And the routing information carries an Address Resolution Protocol (ARP) table entry learned by the second VTEP from a second VM connected to the second VTEP.
The embodiment of the present application further provides a VTEP, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801, when executing the program stored in the memory 803, implements the steps performed by the first VTEP or the second VTEP in the above-described method embodiments
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the VTEP and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the above-mentioned methods for synchronizing routing information.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for synchronizing routing information of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A method for synchronizing routing information is applied to a first extensible virtual local area network tunnel endpoint (VTEP) in an extensible virtual local area network (VXLAN), wherein the VXLAN further comprises a second VTEP, and two or more Routing Reflectors (RR) are included between the first VTEP and the second VTEP; the method comprises the following steps:
the first VTEP receives routing information which is sent by an RR and carries an extended attribute, wherein the extended attribute is used for indicating that the second VTEP enables an equivalent routing function;
the first VTEP judges whether the received routing information carries the extended attribute, and if the received routing information carries the extended attribute, the first VTEP judges whether the first VTEP enables an equivalent routing function; inserting the received routing information into an Ethernet Virtual Private Network (EVPN) instance if the first VTEP enables an equivalent routing function.
2. The method according to claim 1, wherein said determining whether the routing information received by the first VTEP carries the extended attribute, and if so, inserting the received routing information into an ethernet virtual private network EVPN instance comprises:
if the routing information received by the first VTEP carries the extended attribute, judging whether the first VTEP enables an equivalent routing function;
and if the first VTEP enables the equivalent routing function, inserting the received routing information with the same routing identifier RD and prefix into the same EVPN instance.
3. The method according to claim 1 or 2, wherein the routing information carries an address resolution protocol, ARP, entry learned by the second VTEP from a second virtual machine, VM, connected to the second VTEP.
4. A method for synchronizing routing information is applied to a second extensible virtual local area network tunnel endpoint (VTEP) in an extensible virtual local area network (VXLAN), wherein the VXLAN further comprises a first VTEP, and two or more Route Reflectors (RR) are included between the first VTEP and the second VTEP; the method comprises the following steps:
the second VTEP judges whether the second VTEP enables an equivalent routing function or not;
if the second VTEP enables the equivalent routing function, sending routing information carrying extended attributes to two or more RRs, so that after the first VTEP receives the routing information carrying extended attributes sent by the two or more RRs, inserting the routing information sent by the two or more RRs into an EVPN instance when determining that the first VTEP enables the equivalent routing function; the extended attribute is used to indicate that the second VTEP enables equivalent routing functionality.
5. The method of claim 4, wherein the routing information carries an Address Resolution Protocol (ARP) entry learned by the second VTEP from a second Virtual Machine (VM) connected to the second VTEP.
6. A device for synchronizing routing information is applied to a first extensible virtual local area network tunnel endpoint (VTEP) in an extensible virtual local area network (VXLAN), wherein the VXLAN further comprises a second VTEP, and two or more Routing Reflectors (RR) are included between the first VTEP and the second VTEP; the device comprises:
a receiving module, configured to receive routing information sent by the RR and carrying an extended attribute, where the extended attribute is used to indicate that the second VTEP enables an equivalent routing function;
the inserting module is used for judging whether the routing information received by the receiving module carries the extended attribute or not, and if the routing information carries the extended attribute, judging whether the routing information enables an equivalent routing function or not; inserting the received routing information into an Ethernet Virtual Private Network (EVPN) instance if the first VTEP enables an equivalent routing function.
7. The apparatus of claim 6,
the inserting module is configured to determine whether the first VTEP enables an equivalent routing function if the routing information received by the receiving module carries the extended attribute; and if the first VTEP enables the equivalent routing function, inserting the received routing information with the same routing identifier RD and prefix into the same EVPN instance.
8. The apparatus according to claim 6 or 7, wherein the routing information carries an address resolution protocol, ARP, entry learned by the second VTEP from a second virtual machine, VM, connected to the second VTEP.
9. A device for synchronizing routing information is applied to a second extensible virtual local area network tunnel endpoint (VTEP) in a extensible virtual local area network (VXLAN), wherein the VXLAN further comprises a first VTEP, and two or more Routing Reflectors (RR) are included between the first VTEP and the second VTEP; the device comprises:
the judging module is used for judging whether the second VTEP enables an equivalent routing function or not;
a sending module, configured to send, if the second VTEP enables an equivalent routing function, routing information carrying an extended attribute to two or more RRs, so that after the first VTEP receives the routing information carrying the extended attribute sent by the two or more RRs, and when it is determined that the first VTEP enables the equivalent routing function, the routing information sent by the two or more RRs is inserted into the EVPN instance; the extended attribute is used to indicate that the second VTEP enables equivalent routing functionality.
10. The apparatus of claim 9, wherein the routing information carries an Address Resolution Protocol (ARP) entry learned by the second VTEP from a second Virtual Machine (VM) connected to the second VTEP.
11. An extensible virtual local area network tunnel endpoint, VTEP, comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 3 or 4 to 5.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 3 or 4 to 5.
CN201811388160.2A 2018-11-21 2018-11-21 Method and device for synchronizing routing information Active CN109218182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811388160.2A CN109218182B (en) 2018-11-21 2018-11-21 Method and device for synchronizing routing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811388160.2A CN109218182B (en) 2018-11-21 2018-11-21 Method and device for synchronizing routing information

Publications (2)

Publication Number Publication Date
CN109218182A CN109218182A (en) 2019-01-15
CN109218182B true CN109218182B (en) 2021-08-27

Family

ID=64993312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811388160.2A Active CN109218182B (en) 2018-11-21 2018-11-21 Method and device for synchronizing routing information

Country Status (1)

Country Link
CN (1) CN109218182B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277482B (en) * 2020-01-13 2022-01-18 新华三大数据技术有限公司 Message processing method and device
CN111901438B (en) * 2020-08-05 2021-02-09 军事科学院系统工程研究院网络信息研究所 Distributed SIP server data synchronization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789523A (en) * 2016-04-29 2017-05-31 新华三技术有限公司 The creation method and device of a kind of logical tunnel
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN106911549A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of data message processing method and device
CN107404436A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Communication means and device for virtual expansible LAN
CN108259302A (en) * 2017-10-31 2018-07-06 新华三技术有限公司 A kind of centralization gateway networking implementation method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9503277B2 (en) * 2014-07-24 2016-11-22 Cisco Technology, Inc. Dynamic instantiation of remote virtual extensible local area network tunnel end points acquired through a control protocol
CN105634770B (en) * 2014-10-29 2019-05-07 新华三技术有限公司 The method and apparatus for disposing virtual extended local area network
US9985867B2 (en) * 2015-12-11 2018-05-29 Cisco Technology, Inc. Optimizing EVPN for data centers with redundant top-of-rack deployments
CN106878173B (en) * 2017-02-28 2021-01-08 新华三技术有限公司 Route sending method and device
CN108494691B (en) * 2018-06-22 2021-02-26 新华三技术有限公司 Multicast forwarding method and device and tunnel endpoint equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789523A (en) * 2016-04-29 2017-05-31 新华三技术有限公司 The creation method and device of a kind of logical tunnel
CN107404436A (en) * 2016-05-19 2017-11-28 华为技术有限公司 Communication means and device for virtual expansible LAN
CN106878166A (en) * 2017-01-22 2017-06-20 新华三技术有限公司 Route advertising method and device
CN106911549A (en) * 2017-02-28 2017-06-30 新华三技术有限公司 A kind of data message processing method and device
CN108259302A (en) * 2017-10-31 2018-07-06 新华三技术有限公司 A kind of centralization gateway networking implementation method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
JP7327876B2 (en) Method and system for determining packet forwarding paths and network nodes
US10191758B2 (en) Directing data traffic between intra-server virtual machines
WO2018040530A1 (en) Method and apparatus for determining virtual machine migration
US10129137B2 (en) Transferring data in a gateway
US10644991B2 (en) Cluster communictaion
WO2016132263A1 (en) Temporal caching for icn
CN110798403B (en) Communication method, communication device and communication system
EP3214816B1 (en) Method, gateway and system for synchronizing virtual machine location information between data center gateways
US10574570B2 (en) Communication processing method and apparatus
CN109218200B (en) Message processing method and device
CN109474495B (en) Tunnel detection method and device
CA3104756C (en) Loop avoidance communications method, device, and system
US10404598B1 (en) Managing next hop groups in routers
CN110768901B (en) Route issuing method, route selection method, related device and system
JP7483924B2 (en) Connection status detection method, related device, computer storage medium, and computer program product
TWI500295B (en) Link state identifier collision handling
CN114978978A (en) Computing resource scheduling method and device, electronic equipment and medium
CN109218182B (en) Method and device for synchronizing routing information
US10536368B2 (en) Network-aware routing in information centric networking
CN106789664B (en) Route aggregation method and device
WO2022166607A1 (en) Method, apparatus and system for sending packet, and storage medium
WO2022083563A1 (en) Link detection method, link detection apparatus, terminal device and storage medium
CN109831378B (en) Message timeout response method and device
US20230024814A1 (en) Route sending method and apparatus, route processing method and apparatus, device, and storage medium
WO2022001274A1 (en) Route generation method and apparatus, and route processing method and apparatus

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