CN113556283B - Route management method and tunnel endpoint equipment - Google Patents

Route management method and tunnel endpoint equipment Download PDF

Info

Publication number
CN113556283B
CN113556283B CN202110691348.XA CN202110691348A CN113556283B CN 113556283 B CN113556283 B CN 113556283B CN 202110691348 A CN202110691348 A CN 202110691348A CN 113556283 B CN113556283 B CN 113556283B
Authority
CN
China
Prior art keywords
tunnel
hanging
aggregation group
group
identifier
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
CN202110691348.XA
Other languages
Chinese (zh)
Other versions
CN113556283A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110691348.XA priority Critical patent/CN113556283B/en
Publication of CN113556283A publication Critical patent/CN113556283A/en
Application granted granted Critical
Publication of CN113556283B publication Critical patent/CN113556283B/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/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

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 invention discloses a route management method and tunnel endpoint equipment, and relates to the technical field of communication. The method comprises the following steps: receiving route notification information sent by a tunnel opposite-end device, wherein the route notification information comprises an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is generated according to an aggregation group type and represents whether the tunnel opposite-end device is an identifier of a target cross-device link aggregation group device, the target cross-device link aggregation group is a cross-device link aggregation group in which the inter-group devices are neighbors of a border gateway protocol, at least one group is provided with the single-hanging device, and the single-hanging identifier is generated according to a single-hanging state and represents whether the tunnel opposite-end device has the identifier of the single-hanging device; determining whether the equipment at the opposite end of the tunnel is the equipment in the target cross-equipment link aggregation group or not according to the aggregation group identification; and under the condition that the tunnel opposite-end equipment is determined to be the equipment in the target cross-equipment link aggregation group, generating the routing information of the tunnel opposite-end equipment according to the single-hanging identification and the address information of the tunnel opposite-end equipment.

Description

Route management method and tunnel endpoint equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a route management method and a tunnel endpoint device.
Background
The cross-device link aggregation group is a mechanism for realizing cross-device link aggregation, and can perform cross-device link aggregation on multiple devices, so that the link reliability is improved from a single-board level to a device level. In practical applications, a cross-device link aggregation group may be established using a VXLAN Tunnel Endpoints (VTEP) device, and the VTEP devices in the cross-device link aggregation group may also establish VXLAN tunnels with other VTEP devices for communication. Wherein, the VTEP device is located in Virtual Extensible Local area network (Virtual Extensible Local area)
Area Network, VXLAN) Network, which can process VXLAN messages.
When a first VTEP device in a cross-device link aggregation group has a single-hanging device and a second VTEP device does not have the single-hanging device, when a third VTEP device with which a VXLAN tunnel is established transmits data to the single-hanging device, there are two data transmission paths: the first data sending path is used for sending data to the first VTEP equipment by the third VTEP equipment, and the first VTEP equipment forwards the data to the single-hanging equipment; the second data transmission path is used for the third VTEP device to transmit data to the second VTEP device, the second VTEP device forwards the data to the first VTEP device, and the first VTEP device forwards the data to the single-hanging device. By comparing the two data transmission paths, the second data transmission path has a link detour from the second VTEP device to the first VTEP device, compared with the first data transmission path, thereby causing a waste of link resources between the first VTEP device and the second VTEP device.
Disclosure of Invention
Therefore, the invention provides a route management method and a tunnel endpoint device, so as to solve the problem that when a single-hanging device is arranged in a group device of a cross-device link aggregation group, and a VTEP device which establishes a VXLAN tunnel with the group device sends data to the single-hanging device, link detour may exist, thereby causing link resource waste.
In order to achieve the above object, a first aspect of the present invention provides a route management method, including:
receiving route advertisement information sent by a tunnel opposite-end device, wherein the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel opposite-end device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is a cross-device link aggregation group in which intra-group devices are mutually border gateway protocol neighbors, at least one intra-group device has a single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and is used for representing whether the tunnel opposite-end device has the single-hanging device;
determining whether the tunnel opposite-end equipment is the in-group equipment of the target cross-equipment link aggregation group or not according to the aggregation group identification;
and under the condition that the tunnel opposite-end equipment is determined to be the equipment in the group of the target cross-equipment link aggregation group, generating the routing information of the tunnel opposite-end equipment according to the single-hanging identification and the address information of the tunnel opposite-end equipment.
Further, before receiving the route advertisement information sent by the tunnel peer device, the method further includes:
and establishing a communication tunnel with the tunnel opposite-end equipment.
Further, the establishing a communication tunnel with the tunnel peer device includes:
receiving third type routing information sent by the tunnel peer device, wherein the third type routing information includes a virtual extensible network address of the tunnel peer device, and the tunnel peer devices in the same cross-device link aggregation group have the same virtual extensible network address;
and establishing a communication tunnel corresponding to the tunnel opposite-end equipment according to the virtual extensible network address of the tunnel opposite-end equipment.
Further, the address information of the tunnel peer device includes a virtual extensible network address and a border gateway protocol address of the tunnel peer device;
generating, by the node b, routing information of the tunnel peer device according to the single-hanging identifier and the address information of the tunnel peer device when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group, where the generating includes:
determining whether the tunnel opposite-end device has a single-hanging device according to the single-hanging identifier under the condition that the tunnel opposite-end device is determined to be the intra-group device of the target cross-device link aggregation group;
under the condition that the tunnel opposite-end equipment is determined to have the single-hanging equipment according to the single-hanging identification, generating first routing information according to a virtual extensible network address and a border gateway protocol address of the tunnel opposite-end equipment, wherein the first routing information comprises a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment with the single-hanging equipment;
and under the condition that the tunnel opposite-end equipment does not have the single-hanging equipment according to the single-hanging identifier, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment, wherein the second routing information is information obtained by deleting a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment without the single-hanging equipment.
Further, the target cross-device link aggregation group includes a first tunnel peer device and a second tunnel peer device, the first tunnel peer device has a single-hanging device, and the second tunnel peer device does not have a single-hanging device;
after the second routing information is generated according to the virtual extensible network address and the border gateway protocol address of the tunnel peer device under the condition that the tunnel peer device is determined not to have the single hanging device according to the single hanging identifier, the method further includes:
receiving a data forwarding request, wherein the data forwarding request comprises a data packet to be forwarded, and the destination address of the data packet is the single-hanging device;
and forwarding the data packet to the first tunnel peer device according to the routing information, so that the first tunnel peer device forwards the data packet to the single-hanging device.
Further, after determining whether the device at the opposite end of the tunnel is an in-group device of the target cross-device link aggregation group according to the aggregation group identifier, the method further includes:
determining whether the tunnel peer device is an intra-group device of a cross-device link aggregation group or not, if it is determined that the tunnel peer device is not the intra-group device of the target cross-device link aggregation group;
and under the condition that the tunnel opposite-end equipment is determined to be the equipment in the cross-equipment link aggregation group, generating third routing information according to the virtual extensible network address of the tunnel opposite-end equipment, wherein the third routing information comprises a routing address table item from the current tunnel end-point equipment to each equipment in the cross-equipment link aggregation group.
In order to achieve the above object, a second aspect of the present invention provides another route management method, including:
generating route notification information according to an aggregation group type and a single-hanging state, wherein the route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to the aggregation group type and is used for representing whether tunnel endpoint equipment is target cross-equipment link aggregation group, the target cross-equipment link aggregation group is a cross-equipment link aggregation group in which the inter-group equipment is a border gateway protocol neighbor, at least one inter-group equipment has a single-hanging equipment, and the single-hanging identifier is an identifier which is generated according to the single-hanging state and is used for representing whether the tunnel endpoint equipment has the single-hanging equipment;
and sending the route notification information to a tunnel opposite-end device, so that the tunnel opposite-end device determines whether the tunnel end-point device is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, and generates route information of the tunnel end-point device according to the single-hanging identifier and address information of the tunnel opposite-end device under the condition that the tunnel end-point device is determined to be the intra-group device of the target cross-device link aggregation group.
Further, the tunnel endpoint device is a device in the target cross-device link aggregation group and having a single hanging device;
the sending of the route advertisement information to a tunnel peer device, so that the tunnel peer device determines, according to the aggregation group identifier, whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group, and in a case that the tunnel endpoint device is determined to be the intra-group device of the target cross-device link aggregation group, after generating route information of the tunnel endpoint device according to the single-hanging identifier and address information of the tunnel peer device, the route management method further includes:
receiving a data packet sent by the tunnel peer device, wherein the data packet is a data packet forwarded to the tunnel endpoint device by the tunnel peer device according to the routing information of the tunnel endpoint device when the tunnel peer device receives a data forwarding request and the destination address of the data packet in the data forwarding request is the single-hanging device;
and forwarding the data packet to the single-hanging device.
In order to achieve the above object, a third aspect of the present invention provides a tunnel endpoint apparatus, including:
a receiving module, configured to receive route advertisement information sent by a tunnel peer device, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier, generated according to an aggregation group type, of an intra-group device and used to characterize whether the tunnel peer device is a target cross-device link aggregation group, the target cross-device link aggregation group is a neighbor of inter-group devices in a border gateway protocol, at least one intra-group device has a cross-device link aggregation group with a single-hanging device, and the single-hanging identifier is an identifier, generated according to a single-hanging state, and used to characterize whether the tunnel peer device has a single-hanging device;
a determining module, configured to determine, according to the aggregation group identifier, whether the device at the tunnel peer is an intra-group device of the target cross-device link aggregation group;
a routing information generating module, configured to generate routing information of the tunnel peer device according to the single-hanging identifier and the address information of the tunnel peer device, when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group.
In order to achieve the above object, a fourth aspect of the present invention provides another tunnel endpoint apparatus, including:
a route advertisement information generating module configured to generate route advertisement information according to an aggregation group type and a single-hanging state, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier that is generated according to the aggregation group type and used to characterize whether a tunnel endpoint device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is a cross-device link aggregation group in which intra-group devices are neighbors of each other in a border gateway protocol, at least one intra-group device has a single-hanging device, and the single-hanging identifier is an identifier that is generated according to the single-hanging state and used to characterize whether the tunnel endpoint device has the single-hanging device;
a sending module, configured to send the route advertisement information to a tunnel peer device, so that the tunnel peer device determines, according to the aggregation group identifier, whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group, and generates, according to the single-hanging identifier and address information of the tunnel peer device, route information of the tunnel endpoint device when the tunnel endpoint device is determined to be the intra-group device of the target cross-device link aggregation group.
The invention has the following advantages:
the invention provides a route management method, which receives route notification information sent by a tunnel opposite terminal device, wherein the route notification information comprises an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel opposite terminal device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by that intra-group devices are mutually adjacent to a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of the single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and is used for representing whether the tunnel opposite terminal device is provided with the single-hanging device; determining whether the equipment at the opposite end of the tunnel is the equipment in the target cross-equipment link aggregation group or not according to the aggregation group identification; under the condition that the tunnel opposite-end device is determined to be the intra-group device of the target cross-device link aggregation group, the routing information of the tunnel opposite-end device is generated according to the single-hanging identification and the address information of the tunnel opposite-end device, so that data sent to the single-hanging device can be directly sent to the intra-group device connected with the single-hanging device in the cross-device link aggregation group, the intra-group device forwards the data to the single-hanging device, and the data is prevented from being forwarded to the intra-group device not connected with the single-hanging device.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart illustrating a route management method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a route management method according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for generating routing information according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a tunnel endpoint device according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a tunnel endpoint device according to yet another embodiment of the present invention;
fig. 6 is a block diagram of a routing information generation module according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a routing management system according to an embodiment of the present invention;
fig. 8 is a schematic signaling interaction diagram of a method for performing route management by a route management system according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are given by way of illustration and explanation only, not limitation.
The cross-device link aggregation technology can enhance the reliability of the link and is widely applied. After two devices are established into a cross-device link aggregation group through a cross-device link aggregation technology, synchronous messages are sent between the devices in the group through a direct link (peer-link) so as to synchronize information of an opposite terminal in real time. When any one of the devices in the group has the single-hanging device, when other devices outside the group send information to the single-hanging device, the information may be sent to the device in the group that is not directly connected to the single-hanging device, and based on this, the device in the group needs to forward the information to the device in the group that is directly connected to the single-hanging device through the peer-link, and then forward the information to the single-hanging device, so that a link is detoured, and the resource of the peer-link between the devices in the group is occupied. In view of the above, the present application provides a route management method and a tunnel endpoint device to avoid the above problems.
Fig. 1 is a flowchart illustrating a route management method according to an embodiment of the present application. The route management method is applicable to tunnel endpoint devices that are not intra-group devices of a cross device link aggregation group. As shown in fig. 1, a route management method according to an embodiment of the present application may include the following steps.
Step S101, receiving the route notification information sent by the tunnel opposite terminal equipment.
The route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel opposite-end device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by inter-group devices which are adjacent to each other through a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of the single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and is used for representing whether the tunnel opposite-end device is provided with the single-hanging device. It should be noted that, if the tunnel peer device has a single-drop device, the route advertisement information further includes address information of the single-drop device.
In some embodiments, the route advertisement information is in the form of second Type of route (Type2) information. the type2 routing main functions include MAC (Medium Access Control) Address advertisement and ARP (Address Resolution Protocol) entry advertisement, and the like. In some specific implementations, an "aggregation group identifier" field and a "single-hanging identifier" field are added to the Type2 route, and an identifier value is written in the field, so that transmission of the route advertisement information in this embodiment is implemented.
Step S102, according to the aggregation group identification, determining whether the tunnel opposite terminal device is an intra-group device of the target cross-device link aggregation group.
Wherein the type of the cross-device link aggregation group comprises a target cross-device link aggregation group and a non-target cross-device link aggregation group. Corresponding aggregation group identifications are respectively set for different types of cross-device link aggregation groups, so that the types of the cross-device link aggregation groups can be quickly and accurately obtained according to the aggregation group identifications.
In some embodiments, a particular aggregation-group identification is set for a target cross device link aggregation-group to distinguish it from non-target cross device link aggregation-groups.
For example, the aggregation group identifier corresponding to the target cross-device link aggregation group is set to "00000", and the aggregation group identifier corresponding to the non-target cross-device link aggregation group is set to any one character string of five bits except "00000". Therefore, only the aggregation group identifier corresponding to the tunnel endpoint device in the target cross-device link aggregation group is "00000".
After receiving the route advertisement information sent by the tunnel peer device, if the aggregation group identifier is "00000", the current tunnel endpoint device determines that the tunnel peer device is an in-group device in the target cross-device link aggregation group. If the aggregation group identification is not "00000," then it is determined that the tunnel peer device is not an intra-group device of the target cross-device link aggregation group.
It should be noted that the above mentioned aggregation group identifiers are only examples, and those skilled in the art may set the aggregation group identifiers in other ways, which is not limited in this application.
Step S103, under the condition that the tunnel opposite terminal equipment is determined to be the equipment in the target cross-equipment link aggregation group, generating the route information of the tunnel opposite terminal equipment according to the single-hanging identification and the address information of the tunnel opposite terminal equipment.
The address information of the tunnel peer device includes a virtual extensible network address and a border gateway protocol address of the tunnel peer device. In some embodiments, after the first tunnel endpoint device and the second tunnel endpoint device form the cross-device link aggregation group, the first tunnel endpoint device and the second tunnel endpoint device have the same VTEP IP address. On this basis, the first tunnel endpoint device and the second tunnel endpoint device use different Border Gateway Protocol addresses to mutually establish Border Gateway Protocol (BGP) Ethernet Virtual Private Network (EVPN) neighbors. In other words, each tunnel endpoint device in the target cross device link aggregation group has two addresses, a virtual extensible network address and a border gateway protocol address, respectively, and the virtual extensible network address of each tunnel endpoint device is the same, but the border gateway protocol address is different.
In some embodiments, in a case that it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group, generating, according to the single-hanging identifier and the address information of the tunnel peer device, routing information of the tunnel peer device specifically includes: under the condition that the tunnel opposite-end equipment is determined to be the equipment in the target cross-equipment link aggregation group, determining whether the tunnel opposite-end equipment has single-hanging equipment or not according to the single-hanging identification; under the condition that the tunnel opposite-end equipment is determined to have the single-hanging equipment according to the single-hanging identification, generating first routing information according to a virtual extensible network address and a border gateway protocol address of the tunnel opposite-end equipment, wherein the first routing information comprises a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment with the single-hanging equipment; and under the condition that the tunnel opposite-end equipment does not have the single-hanging equipment according to the single-hanging identifier, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment, wherein the second routing information is information obtained by deleting a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment without the single-hanging equipment.
For example, the cross-device link aggregation group includes a first tunnel peer device and a second tunnel peer device, where the first tunnel peer device has a single-hanging device, the second tunnel peer device does not have a single-hanging device, and virtual extensible network addresses of the first tunnel peer device and the second tunnel peer device are both VTEP IP1, a border gateway protocol address corresponding to the first tunnel peer device is BGP IP1, and a border gateway protocol address corresponding to the second tunnel peer device is BGP IP 2. Therefore, the aggregation group identifier corresponding to the first tunnel peer device is "00000", the single-hanging identifier is "1", the aggregation group identifier corresponding to the second tunnel peer device is "00000", and the single-hanging identifier is "0".
After receiving the route advertisement information sent by the first tunnel peer device, the current tunnel peer device determines that the first tunnel peer device is a tunnel peer device with a single-hanging device and in the target cross-device link aggregation group according to the aggregation group identifier "00000" and the single-hanging identifier "1" in the route advertisement information. Therefore, the current tunnel endpoint device generates first routing information according to the virtual extensible network address VTEP IP1 and the border gateway protocol address BGP IP1 of the first tunnel peer device, where the first routing information includes a routing address table entry from the current tunnel endpoint device to the first tunnel peer device. In other words, the current tunnel endpoint device generates and retains a routing path between it and the first tunnel correspondent device. Specifically, when the next-hop address of the local MAC address table is VTEP IP1, the current tunnel endpoint device establishes a routing path between itself and the first tunnel peer device according to BGP IP1 based on the routing protocol.
After receiving the route advertisement information sent by the second tunnel peer device, the current tunnel peer device determines that the second tunnel peer device is a tunnel peer device that is in the target cross-device link aggregation group and does not have a single-hanging device according to the aggregation group identifier "00000" and the single-hanging identifier "0" in the route advertisement information. Therefore, the current tunnel endpoint device generates second routing information according to the virtual extensible network address VTEP IP1 and the border gateway protocol address BGP IP2 of the second tunnel peer device, where the second routing information is information obtained by deleting the routing address table entry from the current tunnel endpoint device to the second tunnel peer device. In other words, the current tunnel endpoint device deletes the generated routing path between the current tunnel endpoint device and the second tunnel peer device. Specifically, when the next-hop address of the local MAC address table is VTEP IP1, the current tunnel endpoint device deletes the routing path between itself and the second tunnel endpoint device according to BGP IP2 based on the routing protocol.
It should be noted that, in some embodiments, after step S103, the method further includes: receiving a data forwarding request, wherein the data forwarding request comprises a data packet to be forwarded, and the destination address of the data packet is a single-hanging device; and forwarding the data packet to the first tunnel opposite-end equipment according to the routing information, so that the first tunnel opposite-end equipment forwards the data packet to the single-hanging equipment. That is, after receiving the packet addressed to the single-hanging device, the current tunnel endpoint directly forwards the packet to the tunnel endpoint device connected to the single-hanging device according to the routing information generated in step S103, without forwarding the packet to other devices in the target cross-device link aggregation, and then the other devices forward the packet to the tunnel endpoint device connected to the single-hanging device through the peer-link, and further forward the packet to the single-hanging device, so that the link resource of the peer-link is not occupied, the resource loss is reduced, and the resource utilization rate is improved.
Before step S101, the method further includes: establishing a communication tunnel with a tunnel peer device, specifically: receiving third type routing information sent by the tunnel opposite-end equipment, wherein the third type routing information comprises a virtual extensible network address of the tunnel opposite-end equipment, and the tunnel opposite-end equipment in the same cross-equipment link aggregation group has the same virtual extensible network address; and establishing a communication tunnel corresponding to the tunnel peer device according to the virtual extensible network address of the tunnel peer device.
The route management method provided in this embodiment receives route advertisement information sent by a tunnel peer device, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier, generated according to an aggregation group type, for characterizing whether the tunnel peer device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is a cross-device link aggregation group in which intra-group devices are neighbors of a border gateway protocol, at least one intra-group device has a single-hanging device, and the single-hanging identifier is an identifier, generated according to a single-hanging state, for characterizing whether the tunnel peer device has a single-hanging device; determining whether the tunnel opposite-end equipment is the intra-group equipment of the target cross-equipment link aggregation group or not according to the aggregation group identification; under the condition that the tunnel opposite-end device is determined to be the intra-group device of the target cross-device link aggregation group, the routing information of the tunnel opposite-end device is generated according to the single-hanging identification and the address information of the tunnel opposite-end device, so that the data sent to the single-hanging device can be directly sent to the intra-group device connected with the single-hanging device in the cross-device link aggregation group, the intra-group device forwards the data to the single-hanging device, and the data is prevented from being forwarded to the intra-group device not connected with the single-hanging device.
Fig. 2 is a flowchart illustrating a route management method according to another embodiment of the present application. The route management method can be applied to the tunnel endpoint device, and the tunnel endpoint device is an intra-group device of a cross-device link aggregation group. As shown in fig. 2, the route management method according to the embodiment of the present application includes the following steps.
Step S201, generating route advertisement information according to the aggregation group type and the single-hanging state.
The route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel endpoint device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by inter-group devices which are adjacent to each other in a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of the single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and is used for representing whether the tunnel endpoint device is provided with the single-hanging device.
In some embodiments, a particular aggregation-group identification is set for a target cross device link aggregation-group to distinguish it from non-target cross device link aggregation-groups. For example, the aggregation group identifier corresponding to the target cross-device link aggregation group is set to "00000", and the aggregation group identifier corresponding to the non-target cross-device link aggregation group is set to any one five-bit character string except "00000". The single-hanging identifier is similar to the aggregation group identifier, and the tunnel endpoint device having the single-hanging device has a single-hanging identifier set to "1", and the tunnel endpoint device having no single-hanging device has a single-hanging identifier set to "0".
In some embodiments, the route advertisement information takes the form of a second Type of route (Type2) information. type2 routing main functions include MAC address advertisement and ARP entry advertisement, etc. In some specific implementations, an "aggregation group identifier" field and a "single-hanging identifier" field are added to the Type2 route, and an identifier value is written in the field, so that transmission of the route advertisement information in this embodiment is implemented.
Step S202, sending the route advertisement information to the tunnel peer device, so that the tunnel peer device determines whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, and generates route information of the tunnel endpoint device according to the single-hanging identifier and the address information of the tunnel peer device when the tunnel endpoint device is determined to be the intra-group device of the target cross-device link aggregation group.
In some embodiments, after the current tunnel endpoint device sends the route advertisement information to the tunnel peer device, the tunnel peer device receives the route advertisement information, and determines whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, and determines whether the tunnel peer device has a single-hanging device according to the single-hanging identifier when the tunnel peer device is determined to be the intra-group device of the target cross-device link aggregation group; under the condition that the tunnel opposite-end equipment is determined to have the single-hanging equipment according to the single-hanging identification, generating first routing information according to a virtual extensible network address and a border gateway protocol address of the tunnel opposite-end equipment, wherein the first routing information comprises a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment with the single-hanging equipment; and under the condition that the tunnel opposite-end equipment is determined not to have the single-hanging equipment according to the single-hanging identification, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment, wherein the second routing information is information obtained by deleting a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment without the single-hanging equipment.
For example, the cross-device link aggregation group includes a first tunnel endpoint device and a second tunnel endpoint device, where the first tunnel endpoint device has a single-hanging device, the second tunnel endpoint device does not have a single-hanging device, and virtual extensible network addresses of the first tunnel endpoint device and the second tunnel endpoint device are both VTEP IP1, a border gateway protocol address corresponding to the first tunnel endpoint device is BGP IP1, and a border gateway protocol address corresponding to the second tunnel endpoint device is BGP IP 2. Therefore, the aggregation group identifier corresponding to the first tunnel endpoint device is "00000", the single-hanging identifier is "1", the aggregation group identifier corresponding to the second tunnel endpoint device is "00000", and the single-hanging identifier is "0".
After the first tunnel endpoint device sends route notification information to the tunnel peer device, the tunnel peer device determines that the first tunnel endpoint device is a tunnel endpoint device which is in a target cross-device link aggregation group and has a single-hanging device according to the aggregation group identifier of 00000 and the single-hanging identifier of 1 in the route notification information. Therefore, the tunnel peer device generates the first routing information according to the virtual extensible network address VTEP IP1 and the border gateway protocol address BGP IP1 of the first tunnel endpoint device, where the first routing information includes a routing address table entry from the tunnel peer device to the first tunnel endpoint device. In other words, the tunnel correspondent device retains its routing path with the first tunnel endpoint device. Specifically, when the next hop address of the local MAC address table is VTEP IP1, the tunnel peer device establishes a routing path between the tunnel peer device and the first tunnel endpoint device according to BGP IP1 based on the routing protocol.
After the second tunnel endpoint device sends the route notification information to the tunnel peer device, the tunnel peer device determines that the second tunnel endpoint device is a tunnel endpoint device which is in the target cross-device link aggregation group and does not have the single-hanging device according to the aggregation group identifier of "00000" and the single-hanging identifier of "0" in the route notification information. Therefore, the tunnel peer device generates second routing information according to the virtual extensible network address VTEP IP1 and the BGP IP2 of the second tunnel endpoint device, where the second routing information is obtained by deleting a routing address table entry from the tunnel peer device to the second tunnel endpoint device. In other words, the tunnel correspondent device deletes the routing path between it and the second tunnel endpoint device. Specifically, when the next-hop address of the local MAC address table is VTEP IP1, the tunnel peer device establishes a routing path between the tunnel peer device and the second tunnel endpoint device according to BGP IP2 based on the routing protocol.
The route management method provided by the invention generates route notification information according to the aggregation group type and the single hanging state, sends the route notification information to the tunnel opposite terminal equipment, so that the tunnel opposite terminal equipment determines whether the tunnel end point equipment is the intra-group equipment of the target cross-equipment link aggregation group according to the aggregation group identification, and generates the route information of the tunnel end point equipment according to the single hanging identification and the address information of the tunnel opposite terminal equipment under the condition that the tunnel end point equipment is determined to be the intra-group equipment of the target cross-equipment link aggregation group, thereby directly sending the data sent to the single hanging equipment to the intra-group equipment connected with the single hanging equipment in the cross-equipment link aggregation group, forwarding the data to the single hanging equipment by the intra-group equipment, avoiding forwarding the data to the intra-group equipment not connected with the single hanging equipment, therefore, the link bypass of sending the data from the intra-group equipment not connected with the single hanging equipment to the intra-group equipment connected with the single hanging equipment is not generated, the waste of link resources among the devices in the group in the cross-device link aggregation group is avoided, and the resource utilization rate is improved.
Fig. 3 is a schematic flowchart illustrating a method for generating routing information according to an embodiment of the present application. The route information generation method is applicable to a tunnel endpoint device which is not an intra-group device of a cross-device link aggregation group. As shown in fig. 3, the method for generating routing information according to the embodiment of the present application may include the following steps.
Step S301, under the condition that the device at the opposite end of the tunnel is determined to be the device in the target cross-device link aggregation group, whether the device at the opposite end of the tunnel is provided with the single-hanging device is determined according to the single-hanging identifier.
Step S302, under the condition that the tunnel opposite terminal equipment is determined to have the single hanging equipment according to the single hanging identification, first routing information is generated according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite terminal equipment.
The first routing information includes a routing address table entry from a current tunnel endpoint device to a tunnel opposite end device with a single-hanging device.
Step S303, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel peer device under the condition that the tunnel peer device is determined not to have the single-hanging device according to the single-hanging identifier.
And the second routing information is obtained by deleting the routing address table entry from the current tunnel endpoint device to the tunnel opposite-end device without the single-hanging device.
In some embodiments, it is assumed that the cross-device link aggregation group includes a first tunnel peer device and a second tunnel peer device, where the first tunnel peer device has a single-hanging device, the second tunnel peer device does not have a single-hanging device, and virtual extensible network addresses of the first tunnel peer device and the second tunnel peer device are both VTEP IP1, a border gateway protocol address corresponding to the first tunnel peer device is BGP IP1, and a border gateway protocol address corresponding to the second tunnel peer device is BGP IP 2. Therefore, the aggregation group identifier corresponding to the first tunnel peer device is "00000", the single-hanging identifier is "1", the aggregation group identifier corresponding to the second tunnel peer device is "00000", and the single-hanging identifier is "0".
After receiving the route advertisement information sent by the first tunnel peer device, the current tunnel peer device determines that the first tunnel peer device is a tunnel peer device with a single-hanging device and in the target cross-device link aggregation group according to the aggregation group identifier "00000" and the single-hanging identifier "1" in the route advertisement information. Therefore, the current tunnel endpoint device generates first routing information according to the virtual extensible network address VTEP IP1 and the border gateway protocol address BGP IP1 of the first tunnel peer device, where the first routing information includes a routing address table entry from the current tunnel endpoint device to the first tunnel peer device. In other words, the current tunnel endpoint device generates and maintains a routing path between it and the first tunnel correspondent device. Specifically, when the next hop address of the local MAC address table is VTEP IP1, the current tunnel endpoint device establishes a routing path between itself and the first tunnel peer device according to BGP IP1 based on the routing protocol.
After receiving the route advertisement information sent by the second tunnel peer device, the current tunnel peer device determines that the second tunnel peer device is a tunnel peer device that is in the target cross-device link aggregation group and does not have a single-hanging device according to the aggregation group identifier "00000" and the single-hanging identifier "0" in the route advertisement information. Therefore, the current tunnel endpoint device generates second routing information according to the virtual extensible network address VTEP IP1 and the border gateway protocol address BGP IP2 of the second tunnel peer device, where the second routing information is information obtained by deleting the routing address table entry from the current tunnel endpoint device to the second tunnel peer device. In other words, the current tunnel endpoint device deletes the generated routing path between the current tunnel endpoint device and the second tunnel peer device. Specifically, when the next hop address of the local MAC address table is VTEP IP1, the current tunnel endpoint device deletes the routing path between itself and the second tunnel peer device according to BGP IP2 based on the routing protocol.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of this patent to add insignificant modifications or introduce insignificant designs to the algorithms or processes, but not to change the core designs of the algorithms and processes.
Fig. 4 shows a block diagram of a tunnel endpoint device according to an embodiment of the present application. As shown in fig. 4, the tunnel endpoint device 400 of the embodiment of the present application includes the following modules.
A receiving module 401 configured to receive the route advertisement information sent by the tunnel peer device.
The route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel opposite-end device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by inter-group devices which are adjacent to each other through a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of the single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and is used for representing whether the tunnel opposite-end device is provided with the single-hanging device.
A determining module 402, configured to determine, according to the aggregation group identifier, whether the device at the tunnel peer is an intra-group device of the target cross-device link aggregation group.
A routing information generating module 403, configured to generate routing information of the tunnel peer device according to the single-hanging identifier and the address information of the tunnel peer device, when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group.
In the tunnel endpoint device provided in the embodiment of the present application, a receiving module receives route advertisement information sent by a tunnel peer device, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier, generated according to an aggregation group type, of an intra-group device used for characterizing whether the tunnel peer device is a target cross-device link aggregation group, the target cross-device link aggregation group is a neighbor of inter-group devices in a border gateway protocol, at least one intra-group device has a cross-device link aggregation group of a single-hanging device, and the single-hanging identifier is an identifier, generated according to a single-hanging state, used for characterizing whether the tunnel peer device has a single-hanging device; determining whether the tunnel opposite-end equipment is the in-group equipment of the target cross-equipment link aggregation group or not by a determining module according to the aggregation group identification; under the condition that the tunnel opposite-end device is determined to be the intra-group device of the target cross-device link aggregation group, the routing information generating module generates the routing information of the tunnel opposite-end device according to the single-hanging identification and the address information of the tunnel opposite-end device, so that the data sent to the single-hanging device can be directly sent to the intra-group device connected with the single-hanging device in the cross-device link aggregation group, the intra-group device forwards the data to the single-hanging device, and the data is prevented from being forwarded to the intra-group device not connected with the single-hanging device.
Fig. 5 shows a block diagram of a tunnel endpoint device according to another embodiment of the present application. As shown in fig. 5, the tunnel endpoint device 500 of the embodiment of the present application includes the following modules.
A route advertisement information generating module 501 configured to generate route advertisement information according to the aggregation group type and the single-hanging state.
The route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and used for representing whether the tunnel endpoint device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by inter-group devices which are neighbors of a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of the single-hanging device, and the single-hanging identifier is an identifier which is generated according to a single-hanging state and used for representing whether the tunnel endpoint device is provided with the single-hanging device.
A sending module 502, configured to send the route advertisement information to the tunnel peer device, so that the tunnel peer device determines, according to the aggregation group identifier, whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group, and generates, according to the single-hanging identifier and the address information of the tunnel peer device, the route information of the tunnel endpoint device when determining that the tunnel endpoint device is the intra-group device of the target cross-device link aggregation group.
In the tunnel endpoint device provided in the embodiment of the present application, the route advertisement information generating module generates route advertisement information according to the aggregation group type and the single-hanging state, and the sending module sends the route advertisement information to the tunnel peer device, so that the tunnel peer device determines, according to the aggregation group identifier, whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group, and generates, according to the single-hanging identifier and the address information of the tunnel peer device, the route information of the tunnel endpoint device under the condition that the tunnel endpoint device is determined to be the intra-group device of the target cross-device link aggregation group, so that data sent to the single-hanging device can be directly sent to the intra-group device connected to the single-hanging device in the cross-device link aggregation group, the intra-group device forwards the data to the single-hanging device, and avoids forwarding the data to the intra-group device not connected to the single-hanging device, therefore, the link bypass that data are sent from the intra-group device not connected with the single hanging device to the intra-group device connected with the single hanging device can not be generated, the waste of link resources among the intra-group devices in the cross-device link aggregation group is avoided, and the resource utilization rate is improved.
Fig. 6 shows a block diagram of a routing information generation module according to an embodiment of the present application. As shown in fig. 6, the routing information generation module 600 of the embodiment of the present application includes the following units.
A single-hanging determining unit 601, configured to determine, according to the single-hanging identifier, whether the tunnel peer device has a single-hanging device when it is determined that the tunnel peer device is an intra-group device of the target inter-device link aggregation group.
A routing table entry generating unit 602, configured to generate first routing information according to a virtual extensible network address and a border gateway protocol address of a tunnel peer device when it is determined that the tunnel peer device has a single-hook device according to a single-hook identifier; and under the condition that the tunnel opposite-end equipment is determined not to have the single-hanging equipment according to the single-hanging identification, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment.
The first routing information comprises a routing address table item from the current tunnel endpoint equipment to the tunnel opposite-end equipment with the single-hanging equipment; the second routing information is obtained by deleting the routing address table entry from the current tunnel endpoint device to the tunnel opposite-end device without the single-hanging device.
The routing information generation module provided in this embodiment determines, based on the single-hanging determination unit, whether the tunnel peer device has the single-hanging device according to the single-hanging identifier when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group, and generates, by the routing table entry generation unit, the first routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel peer device when it is determined that the tunnel peer device has the single-hanging device according to the single-hanging identifier; and under the condition that the tunnel opposite-end equipment is determined not to have the single-hanging equipment according to the single-hanging identification, second routing information is generated according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment, so that when the tunnel end-point equipment sends information to the single-hanging equipment corresponding to the tunnel opposite-end equipment, the information is directly sent to the intra-group equipment connected with the single-hanging equipment in the cross-equipment link aggregation group, and the intra-group equipment forwards the data to the single-hanging equipment, so that the data is prevented from being forwarded to the intra-group equipment not connected with the single-hanging equipment, the waste of link resources among the intra-group equipment in the cross-equipment link aggregation group is avoided, and the resource utilization rate is improved.
Fig. 7 shows a block diagram of a route management system according to an embodiment of the present application. As shown in fig. 7, the route management system according to the embodiment of the present application includes: a cross device link aggregation group 710, a single hanging device 720, and a third tunnel endpoint device 730. The third tunnel endpoint device 730 establishes a VXLAN tunnel with the cross-device link aggregation group 710, the cross-device link aggregation group 710 includes a first tunnel endpoint device 711 and a second tunnel endpoint device 712, and the single mount device 720 is a device connected to the first tunnel endpoint device 711.
It should be noted that the first tunnel endpoint device 711 and the second tunnel endpoint device 712 have the same VTEP IP address, which is used when the first tunnel endpoint device 711 and the second tunnel endpoint device 712 establish the VXLAN tunnel with the third tunnel endpoint device 730. Thus, for the third tunnel endpoint device 730, the first tunnel endpoint device 711 and the second tunnel endpoint device 712 are the same device. In other words, the VXLAN tunnel is established with the cross-device link aggregation group 710 equivalent to the third tunnel endpoint device 730.
It should also be noted that the first tunnel endpoint device 711 and the second tunnel endpoint device 712 establish BGP neighbors using different BGP IP addresses.
Fig. 8 is a schematic signaling interaction diagram of a method for performing route management by a route management system according to an embodiment of the present application. As shown in fig. 8, the signaling interaction process of the routing management method performed by the routing management system in the embodiment of the present application includes:
in step S801, the third tunnel endpoint device receives the route advertisement information sent by the first tunnel endpoint device.
The aggregation group identifier is "00000" and the single-hanging identifier is "1" in the route advertisement information sent by the first tunnel endpoint device.
In step S802, the third tunnel endpoint device receives the route advertisement information sent by the second tunnel endpoint device.
The aggregation group identifier is "00000" and the single-hanging identifier is "0" in the route advertisement information sent by the second tunnel endpoint device.
In step S803, the third tunnel endpoint device learns that the first tunnel endpoint device and the second tunnel endpoint device are intra-group devices of the target cross-device link aggregation group based on the aggregation group identifier "00000" in the route advertisement information.
Step S804, the third tunnel endpoint device further determines that the first tunnel endpoint device has a single-hanging device according to the single-hanging identifier "1" corresponding to the first tunnel endpoint device, and determines that the second tunnel endpoint device does not have a single-hanging device according to the single-hanging identifier "0" corresponding to the second tunnel endpoint device.
Step S805, the third tunnel endpoint device generates a routing address table entry for communicating with the first tunnel endpoint device according to the virtual extensible network address and the border gateway protocol address of the first tunnel endpoint device.
Step S806, the third tunnel endpoint device deletes the routing address table entry for communicating with the second tunnel endpoint device according to the virtual extensible network address and the border gateway protocol address of the second tunnel endpoint device.
Step S807, the third tunnel endpoint device receives the data packet to be forwarded, and the destination address of the data packet is a single-hanging device, and the third tunnel endpoint device sends the data packet to the first tunnel endpoint device according to the local routing address table entry.
It should be noted that, in the current routing address table entry of the third tunnel endpoint device, the receiver address whose destination address is the single-hanging device only corresponds to the first tunnel endpoint device, but does not include the second tunnel endpoint device, and the data packet may be directly sent to the first tunnel endpoint device, so as to avoid link detour caused by forwarding the data packet to the second tunnel endpoint device, then forwarding the data packet to the first tunnel endpoint device by the second tunnel endpoint device, and then forwarding the data packet to the single-hanging device by the first tunnel endpoint device.
Step S808, after receiving the data packet, the first tunnel endpoint device forwards the data packet to the single-hanging device, and the single-hanging device receives the data packet.
It should be noted that, in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is less closely related to solving the technical problem proposed by the present invention is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and scope of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A method for route management, comprising:
receiving route advertisement information sent by a tunnel opposite-end device, wherein the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to an aggregation group type and is used for representing whether the tunnel opposite-end device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is formed by inter-group devices which are adjacent to each other in a border gateway protocol, at least one intra-group device is provided with a cross-device link aggregation group of a single-hanging device, and the single-hanging identifier is generated according to a single-hanging state and is used for representing whether the tunnel opposite-end device is provided with the identifier of the single-hanging device;
determining whether the tunnel opposite-end equipment is the in-group equipment of the target cross-equipment link aggregation group or not according to the aggregation group identification;
and generating the routing information of the tunnel opposite-end equipment according to the single-hanging identification and the address information of the tunnel opposite-end equipment under the condition that the tunnel opposite-end equipment is determined to be the equipment in the target cross-equipment link aggregation group.
2. The route management method according to claim 1, wherein before receiving the route advertisement information sent by the tunnel peer device, the method further comprises:
and establishing a communication tunnel with the tunnel opposite-end equipment.
3. The route management method according to claim 2, wherein the establishing a communication tunnel with the tunnel peer device includes:
receiving third type routing information sent by the tunnel peer device, wherein the third type routing information includes a virtual extensible network address of the tunnel peer device, and the tunnel peer devices in the same cross-device link aggregation group have the same virtual extensible network address;
and establishing a communication tunnel corresponding to the tunnel opposite-end equipment according to the virtual extensible network address of the tunnel opposite-end equipment.
4. The route management method according to claim 1, wherein the address information of the tunnel peer device includes a virtual extensible network address and a border gateway protocol address of the tunnel peer device;
generating, by the node b, routing information of the tunnel peer device according to the single-hanging identifier and the address information of the tunnel peer device when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group, where the generating includes:
determining whether the tunnel opposite-end device has a single-hanging device according to the single-hanging identifier under the condition that the tunnel opposite-end device is determined to be the intra-group device of the target cross-device link aggregation group;
under the condition that the tunnel opposite-end equipment is determined to have the single-hanging equipment according to the single-hanging identification, generating first routing information according to a virtual extensible network address and a border gateway protocol address of the tunnel opposite-end equipment, wherein the first routing information comprises a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment with the single-hanging equipment;
and under the condition that the tunnel opposite-end equipment is determined not to have the single-hanging equipment according to the single-hanging identification, generating second routing information according to the virtual extensible network address and the border gateway protocol address of the tunnel opposite-end equipment, wherein the second routing information is information obtained by deleting a routing address table item from the current tunnel end-point equipment to the tunnel opposite-end equipment without the single-hanging equipment.
5. The method of claim 4, wherein the target cross-device link aggregation group comprises a first tunnel peer device and a second tunnel peer device, and wherein the first tunnel peer device has a single-drop device and the second tunnel peer device has no single-drop device;
after the second routing information is generated according to the virtual extensible network address and the border gateway protocol address of the tunnel peer device under the condition that the tunnel peer device is determined not to have the single hanging device according to the single hanging identifier, the method further includes:
receiving a data forwarding request, wherein the data forwarding request comprises a data packet to be forwarded, and the destination address of the data packet is the single-hanging device;
and forwarding the data packet to the first tunnel peer device according to the routing information, so that the first tunnel peer device forwards the data packet to the single-hanging device.
6. The method according to claim 1, wherein after determining whether the device at the opposite end of the tunnel is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, the method further includes:
determining whether the tunnel peer device is an intra-group device of a cross-device link aggregation group or not, if it is determined that the tunnel peer device is not the intra-group device of the target cross-device link aggregation group;
and under the condition that the tunnel opposite-end equipment is determined to be the equipment in the cross-equipment link aggregation group, generating third routing information according to the virtual extensible network address of the tunnel opposite-end equipment, wherein the third routing information comprises a routing address table item from the current tunnel endpoint equipment to each equipment in the cross-equipment link aggregation group.
7. A method for route management, comprising:
generating route notification information according to an aggregation group type and a single-hanging state, wherein the route notification information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier which is generated according to the aggregation group type and is used for representing whether tunnel endpoint equipment is intra-group equipment of a target cross-equipment link aggregation group, the target cross-equipment link aggregation group is formed by the intra-group equipment which is adjacent to a border gateway protocol, at least one intra-group equipment is provided with a cross-equipment link aggregation group of the single-hanging equipment, and the single-hanging identifier is generated according to the single-hanging state and is used for representing whether the tunnel endpoint equipment is provided with the identifier of the single-hanging equipment;
and sending the route notification information to a tunnel opposite-end device, so that the tunnel opposite-end device determines whether the tunnel end-point device is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, and generates route information of the tunnel end-point device according to the single-hanging identifier and the address information of the tunnel opposite-end device under the condition that the tunnel end-point device is determined to be the intra-group device of the target cross-device link aggregation group.
8. The route management method according to claim 7, wherein the tunnel endpoint device is a device in the target cross-device link aggregation group and having a single hanging device;
the sending the route advertisement information to a tunnel peer device, so that the tunnel peer device determines whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group according to the aggregation group identifier, and after generating route information of the tunnel endpoint device according to the single-hanging identifier and address information of the tunnel peer device under the condition that the tunnel endpoint device is determined to be the intra-group device of the target cross-device link aggregation group, the method further includes:
receiving a data packet sent by the tunnel peer device, wherein the data packet is a data packet forwarded to the tunnel endpoint device by the tunnel peer device according to the routing information of the tunnel endpoint device when the tunnel peer device receives a data forwarding request and the destination address of the data packet in the data forwarding request is the single-hanging device;
and forwarding the data packet to the single-hanging device.
9. A tunnel endpoint device, comprising:
a receiving module, configured to receive route advertisement information sent by a tunnel peer device, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, where the aggregation group identifier is an identifier, generated according to an aggregation group type, for characterizing whether the tunnel peer device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is a cross-device link aggregation group in which intra-group devices are neighbors of a border gateway protocol, at least one intra-group device has a single-hanging device, and the single-hanging identifier is an identifier, generated according to a single-hanging state, for characterizing whether the tunnel peer device has a single-hanging device;
a determining module, configured to determine, according to the aggregation group identifier, whether the device at the tunnel peer is an intra-group device of the target cross-device link aggregation group;
a routing information generating module, configured to generate routing information of the tunnel peer device according to the single-hanging identifier and the address information of the tunnel peer device, when it is determined that the tunnel peer device is an intra-group device of the target cross-device link aggregation group.
10. A tunnel endpoint device, comprising:
a route advertisement information generating module configured to generate route advertisement information according to an aggregation group type and a single-hanging state, where the route advertisement information includes an aggregation group identifier and a single-hanging identifier, the aggregation group identifier is an identifier generated according to the aggregation group type and used to characterize whether a tunnel endpoint device is an intra-group device of a target cross-device link aggregation group, the target cross-device link aggregation group is a cross-device link aggregation group in which intra-group devices are neighbors of a border gateway protocol, at least one intra-group device has a single-hanging device, and the single-hanging identifier is an identifier generated according to the single-hanging state and used to characterize whether the tunnel endpoint device has the single-hanging device;
a sending module, configured to send the route advertisement information to a tunnel peer device, so that the tunnel peer device determines, according to the aggregation group identifier, whether the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group, and generates, according to the single-hanging identifier and address information of the tunnel peer device, route information of the tunnel endpoint device when it is determined that the tunnel endpoint device is an intra-group device of the target cross-device link aggregation group.
CN202110691348.XA 2021-06-22 2021-06-22 Route management method and tunnel endpoint equipment Active CN113556283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110691348.XA CN113556283B (en) 2021-06-22 2021-06-22 Route management method and tunnel endpoint equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110691348.XA CN113556283B (en) 2021-06-22 2021-06-22 Route management method and tunnel endpoint equipment

Publications (2)

Publication Number Publication Date
CN113556283A CN113556283A (en) 2021-10-26
CN113556283B true CN113556283B (en) 2022-08-19

Family

ID=78130788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110691348.XA Active CN113556283B (en) 2021-06-22 2021-06-22 Route management method and tunnel endpoint equipment

Country Status (1)

Country Link
CN (1) CN113556283B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174312B (en) * 2022-07-06 2023-04-18 中国联合网络通信集团有限公司 Broadcast information transmission method, tunnel endpoint device, electronic device, and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494691A (en) * 2018-06-22 2018-09-04 新华三技术有限公司 A kind of multicast forward method, device and VTEP
CN109067634A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of forwarding-table item creation method and device
CN111865780A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Synchronization method and device
CN111865779A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Route synchronization method and cross-device link aggregation group

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10361972B2 (en) * 2015-09-23 2019-07-23 Citrix Systems, Inc. Systems and methods to support VXLAN in partition environment where a single system acts as multiple logical systems to support multitenancy
US10200278B2 (en) * 2016-03-02 2019-02-05 Arista Networks, Inc. Network management system control service for VXLAN on an MLAG domain
CN108322376B (en) * 2017-06-26 2020-02-11 新华三技术有限公司 Route synchronization method, device and machine-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494691A (en) * 2018-06-22 2018-09-04 新华三技术有限公司 A kind of multicast forward method, device and VTEP
CN109067634A (en) * 2018-09-28 2018-12-21 新华三技术有限公司 A kind of forwarding-table item creation method and device
CN111865780A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Synchronization method and device
CN111865779A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Route synchronization method and cross-device link aggregation group

Also Published As

Publication number Publication date
CN113556283A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN108574616B (en) Method, equipment and system for processing route
CN108574639B (en) EVPN message processing method, device and system
CN109923838B (en) Resilient VPN bridging remote islands
US8995266B2 (en) Performing path-oriented systems management
WO2021196717A1 (en) Multicast traffic transmission method and apparatus, communication node, and storage medium
CN110912796B (en) Communication method, device and system
CN110798403B (en) Communication method, communication device and communication system
US20040210892A1 (en) Dynamic routing on networks
CN104253759A (en) Method, device and system for forwarding messages
CN104660508A (en) Message forwarding method and device
CN110391951B (en) Ethernet segment identifier adjacency detection processing method and device and storage medium
EP3289728B1 (en) Distribution of internal routes for virtual networking
CN112751767B (en) Routing information transmission method and device and data center internet
KR102245989B1 (en) Redundancy Administrating Method for a Virtual Private Network and Network Switching Apparatus with the method implemented on it
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
EP3396897B1 (en) Multicast load balancing in multihoming evpn networks
CN113556283B (en) Route management method and tunnel endpoint equipment
WO2011147341A1 (en) Method and network device for distributing multi-protocol label switching labels
CN114598635A (en) Message transmission method and device
CN114070770A (en) Method, device and system for receiving and transmitting message
CN108768845B (en) Multi-homing host routing synchronization method and device
WO2023274083A1 (en) Route publishing method and apparatus, packet forwarding method and apparatus, device, and storage medium
CN113872843B (en) Route generation method, route processing method and device
CN108259292B (en) Method and device for establishing tunnel
CN103763200A (en) Route learning method and device in virtual two-layer interconnection

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