CN112637051A - Path detection message forwarding method and device - Google Patents

Path detection message forwarding method and device Download PDF

Info

Publication number
CN112637051A
CN112637051A CN202011344738.1A CN202011344738A CN112637051A CN 112637051 A CN112637051 A CN 112637051A CN 202011344738 A CN202011344738 A CN 202011344738A CN 112637051 A CN112637051 A CN 112637051A
Authority
CN
China
Prior art keywords
vxlan
forwarded
bidirectional forwarding
forwarding
detection message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011344738.1A
Other languages
Chinese (zh)
Other versions
CN112637051B (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.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
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 New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN202011344738.1A priority Critical patent/CN112637051B/en
Publication of CN112637051A publication Critical patent/CN112637051A/en
Application granted granted Critical
Publication of CN112637051B publication Critical patent/CN112637051B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

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

Abstract

This specification provides a method and a device for forwarding path detection messages, in which, the method includes: identifying each bidirectional forwarding detection message to be forwarded, which is sent to the equipment at the opposite end to be detected; selecting a VXLAN tunnel from a plurality of VXLAN tunnels of a virtual extensible local area network connected with equipment at the opposite end to be detected in sequence according to each bidirectional forwarding detection message to be forwarded; packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel; and packaging the VXLAN and transmitting the bidirectional forwarding detection message to the opposite detection terminal equipment through each selected VXLAN tunnel.

Description

Path detection message forwarding method and device
Technical Field
The present application relates to communications technologies, and in particular, to a method and a device for forwarding a path detection packet.
Background
BFD (Bidirectional Forwarding Detection) is a general, standardized, media independent and protocol independent fast fault Detection mechanism, and is used for detecting the communication condition of a Forwarding path and ensuring that communication faults can be detected rapidly among devices.
In a data center networking, the following networking scenario exists, and a forwarding link failure of a bearer (underlay) network corresponding to a hash value calculated according to a BFD packet may cause a BFD session failure.
However, an underlay Network of VXLAN (Virtual Extended Local Area Network) is an IP Network, and often has a plurality of equivalent links, in order to share a BFD packet load through the plurality of equivalent links of the underlay Network of the VXLAN Network, a Network device establishes a plurality of VXLAN tunnels with a detection opposite end, and the Network device calculates different hash values for detecting the BFD packet of the same opposite end device in a packet-by-packet calculation manner, and forwards the BFD packet according to different physical paths corresponding to the different hash values. Therefore, the BFD message packaged by the VXLAN of the same opposite terminal device is detected to reach the opposite terminal device through different equivalent paths of a VXLAN tunnel reaching the opposite terminal device because the BFD message has different outer layer source port numbers. Even if one of the equivalent paths of one VXLAN tunnel reaching the opposite terminal equipment fails, the BFD message encapsulated by the VXLAN can reach the opposite terminal equipment, thereby maintaining the user protocol session uninterrupted.
However, the above method has limitations that the message needs to be subjected to software processing by a processor CPU of the network device, the BFD configuration accuracy is high, and a large amount of BFD messages are processed, which occupies a large amount of CPU resources and affects other service processing.
Disclosure of Invention
The application aims to provide a method and equipment for forwarding a path detection message, which are used for forwarding a bidirectional forwarding detection message through a plurality of VXLAN tunnels in a hardware mode.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a path detection packet forwarding method;
fig. 2 is a flowchart illustrating another embodiment of a method for forwarding a path detection packet;
fig. 3 is a flowchart illustrating another embodiment of a method for forwarding a path detection packet;
fig. 4 is a schematic diagram illustrating an embodiment of a path detection packet forwarding apparatus.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
Fig. 1 shows an embodiment of a method for forwarding a path detection packet according to the present application, where the method includes:
step 101, identifying each bidirectional forwarding detection message to be forwarded, which is sent to a detection opposite terminal device;
102, selecting a VXLAN tunnel from a plurality of VXLAN tunnels of a virtual extensible local area network connected with equipment at the opposite end to be detected in sequence according to each bidirectional forwarding detection message to be forwarded;
103, packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel;
and step 104, transmitting the VXLAN packaging bidirectional forwarding detection message to the opposite end detection device through each selected VXLAN tunnel.
The method has the advantages of avoiding user protocol interruption caused by the middle node fault of the tunnel in the VXLAN network, improving the reliability and the robustness of the network and ensuring that a user protocol layer does not sense the middle node fault of the network.
Fig. 2 is a flowchart illustrating another embodiment of a method for forwarding a path detection packet; the method comprises the following steps:
step 201, identifying each bidirectional forwarding detection packet to be forwarded, which is sent to the detection opposite terminal device.
Step 202, identify VXLAN network where each bidirectional forwarding detection message to be forwarded is located and VXLAN network where opposite-end equipment is detected to be located.
Step 203, determining to perform three-layer forwarding on each bidirectional forwarding detection message to be forwarded.
Step 204, sequentially selecting a next hop from a plurality of next hops of the destination IP address of each bidirectional forwarding detection packet to be forwarded.
Different next hops are located at different VXLAN tunnels connecting the detecting peer device.
Step 205, according to the selected VXLAN tunnel, encapsulating each bidirectional forwarding detection message to be forwarded into a VXLAN encapsulated bidirectional forwarding detection message.
Step 206, the VXLAN encapsulation bidirectional forwarding detection message is sent to the detection opposite terminal device through each selected VXLAN tunnel.
Fig. 3 is a flowchart illustrating another embodiment of a method for forwarding a path detection packet;
step 301, identifying each bidirectional forwarding detection packet to be forwarded, which is sent to the detection opposite terminal device.
Step 302, identify VXLAN network where each bidirectional forwarding detection message to be forwarded is located and VXLAN network where opposite-end equipment is detected to be located.
Step 303, determining to perform two-layer forwarding on each bidirectional forwarding detection packet to be forwarded.
And step 304, sequentially selecting a tunnel exit interface from the destination MAC address of each bidirectional forwarding detection message to be forwarded in the tunnel aggregation port.
Different tunnel egress interfaces correspond to different VXLAN tunnels connecting the detecting peer device.
And 305, packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel.
Step 306, the VXLAN encapsulation bidirectional forwarding detection message is sent to the detection opposite terminal device through each selected VXLAN tunnel.
Fig. 4 is a schematic diagram illustrating an embodiment of a path detection packet forwarding apparatus, where the apparatus 400 includes: a path detection message forwarding device, a switch forwarding chip of the device 400 includes: a receiving module 401, an identifying module 402, a forwarding module 403 and a sending module 404. The receiving module 401 is configured to receive a protocol packet and a data packet.
An identifying module 402, configured to identify each bidirectional forwarding detection packet to be forwarded, where the bidirectional forwarding detection packet is sent to a detection peer device.
A forwarding module 403, configured to select, according to each bidirectional forwarding detection packet to be forwarded, one VXLAN tunnel from multiple VXLAN tunnels of a virtual extensible local area network connected to a device at an opposite end of detection; packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel;
a sending module 403, configured to send the VXLAN encapsulated bidirectional forwarding detection packet to the opposite-end detection device through each selected VXLAN tunnel.
A forwarding module 403, configured to determine to perform three-layer forwarding on each bidirectional forwarding detection packet to be forwarded; sequentially selecting a next hop from a plurality of next hops of the destination IP address of each bidirectional forwarding detection message to be forwarded; wherein, different next hops are located in different VXLAN tunnels of the connection detection opposite terminal equipment. The forwarding module 403 is configured to determine to perform three-layer forwarding on each bidirectional forwarding detection packet to be forwarded by identifying that a VXLAN network in which each bidirectional forwarding detection packet to be forwarded is located and a VXLAN network in which an opposite-end device is detected to be located are different.
A forwarding module 403, configured to determine to perform two-layer forwarding on each bidirectional forwarding detection packet to be forwarded; sequentially selecting a tunnel outlet interface from the destination MAC address of each bidirectional forwarding detection message to be forwarded in the tunnel aggregation port; wherein, different tunnel outbound interfaces correspond to different VXLAN tunnels connecting the equipment at the opposite end of detection. The forwarding module 403 is configured to determine to perform two-layer forwarding on each bidirectional forwarding detection packet to be forwarded by identifying that a VXLAN tunnel where each bidirectional forwarding detection packet to be forwarded is located and a VXLAN network where an opposite-end device is detected to be located are the same.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A method for forwarding a path detection message is characterized in that the method comprises the following steps:
identifying each bidirectional forwarding detection message to be forwarded, which is sent to the equipment at the opposite end to be detected;
selecting a VXLAN tunnel from a plurality of VXLAN tunnels of the virtual extensible local area network for connecting and detecting the opposite terminal equipment in sequence according to each bidirectional forwarding detection message to be forwarded;
packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel;
and packaging the VXLAN and transmitting the bidirectional forwarding detection message to the opposite detection terminal equipment through each selected VXLAN tunnel.
2. The method of claim 1, wherein sequentially selecting one VXLAN tunnel from a plurality of VXLAN tunnels connecting detecting peer devices according to each bidirectional forwarding detection packet to be forwarded comprises:
determining to carry out three-layer forwarding on each bidirectional forwarding detection message to be forwarded;
sequentially selecting a next hop from a plurality of next hops of the destination IP address of each bidirectional forwarding detection message to be forwarded; wherein different next hops are located in different VXLAN tunnels connecting the detecting peer device.
3. The method according to claim 1, wherein determining to perform three-layer forwarding on each bidirectional forwarding detection packet to be forwarded means determining that a VXLAN network in which each bidirectional forwarding detection packet to be forwarded is located in a different VXLAN network from the opposite-end detection device.
4. The method of claim 1, wherein sequentially selecting one VXLAN tunnel from a plurality of VXLAN tunnels connecting detecting peer devices according to each bidirectional forwarding detection packet to be forwarded comprises:
determining to carry out two-layer forwarding on each bidirectional forwarding detection message to be forwarded;
sequentially selecting a tunnel outlet interface from the destination MAC address of each bidirectional forwarding detection message to be forwarded in a tunnel aggregation port; wherein, different tunnel outbound interfaces correspond to different VXLAN tunnels connecting the equipment at the opposite end of the detection.
5. The method according to claim 4, wherein determining to perform two-layer forwarding on each bidirectional forwarding detection packet to be forwarded means determining that a VXLAN tunnel in which each bidirectional forwarding detection packet to be forwarded is located in the same VXLAN network as the opposite-end device.
6. A path detection packet forwarding device, the device comprising:
the identification module is used for identifying each bidirectional forwarding detection message to be forwarded, which is sent to the detection opposite terminal equipment;
a forwarding module, configured to select a VXLAN tunnel from multiple VXLAN tunnels of the virtual extensible local area network, which connect and detect the peer device, in sequence according to each bidirectional forwarding detection packet to be forwarded; packaging each bidirectional forwarding detection message to be forwarded into a VXLAN packaged bidirectional forwarding detection message according to the selected VXLAN tunnel;
and the sending module is used for sending the VXLAN packaging bidirectional forwarding detection message to the opposite detection terminal equipment through each selected VXLAN tunnel.
7. The device according to claim 6, wherein the forwarding module is configured to determine to perform three-layer forwarding on each bidirectional forwarding detection packet to be forwarded; sequentially selecting a next hop from a plurality of next hops of the destination IP address of each bidirectional forwarding detection message to be forwarded; wherein different next hops are located in different VXLAN tunnels connecting the detecting peer device.
8. The apparatus of claim 7,
and the forwarding module is used for determining to perform three-layer forwarding on each bidirectional forwarding detection message to be forwarded by identifying that a VXLAN network where each bidirectional forwarding detection message to be forwarded is located and a VXLAN network where the opposite-end detection device is located are different.
9. The apparatus of claim 6,
the forwarding module determines to perform two-layer forwarding on each bidirectional forwarding detection message to be forwarded; sequentially selecting a tunnel outlet interface from the destination MAC address of each bidirectional forwarding detection message to be forwarded in a tunnel aggregation port; wherein, different tunnel outbound interfaces correspond to different VXLAN tunnels connecting the equipment at the opposite end of the detection.
10. The device according to claim 9, wherein the forwarding module is configured to determine to perform three-layer forwarding on each bidirectional forwarding detection packet to be forwarded by identifying that a VXLAN tunnel in which each bidirectional forwarding detection packet to be forwarded is located in the same VXLAN network as the device at the opposite detection end.
CN202011344738.1A 2020-11-26 2020-11-26 Path detection message forwarding method and device Active CN112637051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011344738.1A CN112637051B (en) 2020-11-26 2020-11-26 Path detection message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011344738.1A CN112637051B (en) 2020-11-26 2020-11-26 Path detection message forwarding method and device

Publications (2)

Publication Number Publication Date
CN112637051A true CN112637051A (en) 2021-04-09
CN112637051B CN112637051B (en) 2022-07-12

Family

ID=75303957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011344738.1A Active CN112637051B (en) 2020-11-26 2020-11-26 Path detection message forwarding method and device

Country Status (1)

Country Link
CN (1) CN112637051B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222479A1 (en) * 2021-04-22 2022-10-27 中兴通讯股份有限公司 Network detection method and apparatus, and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368736A (en) * 2011-11-10 2012-03-07 华为技术有限公司 Message sending method and equipment
CN102761470A (en) * 2011-04-29 2012-10-31 清华大学 Multipath TCP (transmission control protocol) message scheduling method
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN105933742A (en) * 2016-04-29 2016-09-07 镇江惠通电子有限公司 Remote control terminal and method for paring same with primary device
CN106330597A (en) * 2015-07-10 2017-01-11 杭州华三通信技术有限公司 Path reachability detection method and device between VTEPs (VXLAN Tunnel End Points) of VXLAN (Virtual Extensible Local Area Network)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761470A (en) * 2011-04-29 2012-10-31 清华大学 Multipath TCP (transmission control protocol) message scheduling method
CN102368736A (en) * 2011-11-10 2012-03-07 华为技术有限公司 Message sending method and equipment
CN103618678A (en) * 2013-11-18 2014-03-05 北京星网锐捷网络技术有限公司 Method, device and system for self-adaptation multiple-link aggregation
CN106330597A (en) * 2015-07-10 2017-01-11 杭州华三通信技术有限公司 Path reachability detection method and device between VTEPs (VXLAN Tunnel End Points) of VXLAN (Virtual Extensible Local Area Network)
WO2017008712A1 (en) * 2015-07-10 2017-01-19 杭州华三通信技术有限公司 Reachability detection for path between vxlan tunnel end points (vtep)
CN105933742A (en) * 2016-04-29 2016-09-07 镇江惠通电子有限公司 Remote control terminal and method for paring same with primary device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑宇: "移动通信网络节点最优路径选择仿真研究", 《计算机仿真》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222479A1 (en) * 2021-04-22 2022-10-27 中兴通讯股份有限公司 Network detection method and apparatus, and device and storage medium

Also Published As

Publication number Publication date
CN112637051B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US9954800B2 (en) Multi-path network with fault detection and dynamic adjustments
CN110061914B (en) Message forwarding method and device
JP4072158B2 (en) Method for testing message path and network element in communication network
US20040105390A1 (en) Method and system for implementing a fast recovery process in a local area network
US11606288B2 (en) Network communication method and apparatus
CN109586959B (en) Fault detection method and device
CN111682989B (en) Method, device and system for detecting port link state
CN103490921B (en) Network protection method, device, lower link point and system
WO2008148334A1 (en) Method, system and apparatus thereof for detecting abnormal receipt of message
US8098575B2 (en) Packet relay method and device
CN109787878A (en) A kind of tunnel links detection method and relevant device
US20080062996A1 (en) Consumer Edge Initiated Pseudo-Wire Multi-Homing in Access Networks
CN111447095B (en) Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device
US7170892B2 (en) Network element, and associated method, for facilitating communication of data between elemental devices
CN112637051B (en) Path detection message forwarding method and device
US7881207B2 (en) Method and system for loop-back and continue in packet-based network
CN100435544C (en) Modem system and collector for transmission routes with different characteristics
CN103607301B (en) The protection switching method and equipment of link failure under a kind of ECMP modes
CN111698156B (en) Data message forwarding method and device
CN113037622B (en) System and method for preventing BFD from vibrating
CN102104529B (en) Method and equipment for realizing message transmission in provider bridge transfer (PBT) network
CN107835126B (en) Message forwarding method and system
CN111726287B (en) Ring network protection method and device
CN115801552A (en) Protection switching method and network equipment
JP2003318984A (en) Pdu observation method, connectionless data communication device, and pdu observation 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