Link detection method, apparatus, network device and network element node
By carrying transmission delay indication information and status indication in the BFD message, the problem of link service quality not being guaranteed in the prior art is solved, enabling accurate detection of link quality and service optimization, and ensuring that SLA service quality is met.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2026-03-20
AI Technical Summary
Existing technologies cannot effectively guarantee the quality of service of the link, especially when network indicators such as latency and jitter change slightly, they cannot make fine-grained adjustments, resulting in the inability to effectively guarantee the Service Level Agreement (SLA).
By carrying transmission delay indication information in the bidirectional forwarding detection (BFD) message, accurate detection of link quality and service optimization can be achieved. This includes carrying timestamps, status indication information, and network element node information in the BFD message so that service optimization can be performed based on SLA parameters.
It enables accurate detection and service optimization of link quality, effectively ensuring the SLA service quality of the link and guaranteeing that the SLA parameters between network devices are met.
Smart Images

Figure CN116133004B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of transmission, in particular to a link detection method and device, network equipment and network element node. BACKGROUND
[0002] The development of 5G and future networks has given rise to many services that are sensitive to network indicators such as network delay jitter. These service applications require not only reliable networks, such as continuous connectivity, but also network service level agreement (SLA) quality of service, such as guaranteeing delay and jitter.
[0003] The prior art usually uses the detection results of upper-layer service bidirectional forwarding detection (BFD) to realize timely switching of faulty links. However, the communication and negotiation mechanism of the current BFD protocol can detect and identify the on and off states of the link, but cannot identify more accurate quality of service states such as link delay and jitter. At the same time, the upper-layer service can only implement switching of the link according to the link connectivity identified by the BFD, and cannot make more fine-grained adjustments to other parameters affecting the link quality.
[0004] When the quality of service of the link changes slightly in a certain period, but the link can still maintain connectivity, the upper-layer service can only implement measurement of the network indicators such as link delay and jitter through detection protocols other than BFD (two-way active measurement protocol (TWAMP), Internet Control Message Protocol (ICMP)). Different detection protocols and mechanisms will report different linkage results to the upper-layer service. For the upper-layer service, it is impossible to coordinate the action linkage from different detection mechanisms, so it is still impossible to effectively guarantee the SLA quality of service of the link. SUMMARY
[0005] The technical scheme of the present application aims to provide a link detection method, device, network equipment and network element node, which can solve the problem that the existing bidirectional forwarding detection cannot effectively guarantee the SLA quality of service of the link.
[0006] The present application provides a link detection method, wherein the method is executed by a first network device, and the method comprises the following steps:
[0007] receiving a first bidirectional forwarding detection (BFD) packet sent by a second network device on a link to be detected; wherein the first BFD packet comprises transmission delay indication information;
[0008] determining whether the to-be-detected link needs service tuning according to the transmission delay indication information;
[0009] sending a second BFD packet to the second network device; wherein the second BFD packet includes the service tuning indication when it is determined that the to-be-detected link needs service tuning.
[0010] Optionally, the link detection method, wherein the transmission delay indication information includes at least one of the following:
[0011] the timestamp of the first BFD packet;
[0012] first status indication information, the first status indication information being used to indicate whether the network element node on the to-be-detected link starts resident time measurement after receiving the first BFD packet;
[0013] second status indication information, the second status indication information being used to indicate whether the network element node on the to-be-detected link starts packet resident maximum time measurement after receiving the first BFD packet;
[0014] packet resident maximum time of the first BFD packet received by the multiple network element nodes on the to-be-detected link and node information of the corresponding network element nodes.
[0015] Optionally, the link detection method, wherein when the transmission delay indication information includes the timestamp, the method further includes:
[0016] judging whether a service level agreement (SLA) parameter of the first BFD packet is greater than a preset threshold according to the timestamp in the first BFD packet and a timestamp in a last BFD packet received adjacent to the first BFD packet;
[0017] when the SLA parameter is greater than the preset threshold, the first status indication information or the second status indication information is included in the second BFD packet when the second BFD packet is sent to the second network device.
[0018] Optionally, the link detection method, wherein the second BFD packet further includes the transmission delay indication information.
[0019] Optionally, the link detection method, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0020] Optionally, the link detection method, wherein the service tuning indication includes at least one of the following:
[0021] Switching traffic priority;
[0022] Switching traffic priority direction
[0023] Switching queue priority;
[0024] Switching queue priority direction;
[0025] Switching link priority;
[0026] Triggering link disconnection notification.
[0027] The embodiment of the present application also provides a link detection method, wherein the method is executed by a second network device, and the method comprises the following steps:
[0028] sending a bidirectional forwarding detection (BFD) packet through a plurality of network element nodes on a to-be-detected link to a first network device; wherein the first BFD packet comprises transmission delay indication information.
[0029] Optionally, the link detection method, wherein the method further comprises the following steps:
[0030] receiving a second BFD packet sent by the second network device; wherein the second BFD packet comprises the transmission delay indication information and / or service tuning indication.
[0031] when the second BFD packet comprises the tuning indication, performing a service tuning operation corresponding to the service tuning indication.
[0032] Optionally, the link detection method, wherein the transmission delay indication information comprises at least one of the following:
[0033] a timestamp of the first BFD packet;
[0034] first state indication information, wherein the first state indication information is used to indicate whether a network element node on the to-be-detected link starts to measure a residence time after receiving the first BFD packet;
[0035] second state indication information, wherein the second state indication information is used to indicate whether the network element node on the to-be-detected link starts to measure a maximum packet residence time after receiving the first BFD packet;
[0036] a maximum packet residence time of the network element node on the to-be-detected link receiving the first BFD packet and node information of the corresponding network element node.
[0037] Optionally, the link detection method, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through a TLV extension field respectively.
[0038] The embodiment of the present application also provides a link detection method, wherein the method is executed by a first network element node, and the method comprises the following steps:
[0039] receiving a first bidirectional forwarding detection (BFD) packet transmitted on a link to be detected; wherein the first BFD packet comprises transmission delay indication information;
[0040] forwarding the first BFD packet to a second network element node, wherein the transmission delay indication information is included in the forwarded first BFD packet.
[0041] Optionally, the link detection method, wherein the transmission delay indication information comprises at least one of the following:
[0042] a time stamp of the first BFD packet;
[0043] first state indication information, wherein the first state indication information is used to indicate whether the network element node on the link to be detected starts to measure the residence time after receiving the first BFD packet;
[0044] second state indication information, wherein the second state indication information is used to indicate whether the network element node on the link to be detected starts to measure the maximum residence time of the packet after receiving the first BFD packet;
[0045] the maximum residence time of the packet and the node information of the corresponding network element node, which are received by the plurality of network element nodes on the link to be detected.
[0046] Optionally, the link detection method, wherein the transmission delay indication information in the received first BFD packet comprises the first state indication information, and the method further comprises the following steps when the network element node starts to measure the residence time after receiving the first BFD packet according to the state indication information:
[0047] determining a first residence time of the first BFD packet in the first network element node;
[0048] wherein the first residence time and the node information of the first network element node are written in the transmission delay indication information in the forwarded first BFD packet when the first BFD packet is forwarded to the second network element node.
[0049] Optionally, the link detection method, wherein the transmission delay indication information in the received first BFD packet comprises the second state indication information, the second state indication information is used to indicate that a network element node on the to-be-detected link starts measuring a maximum packet residence time after receiving the first BFD packet, and when the transmission delay indication information further comprises the maximum packet residence time of the first BFD packet received by a plurality of network element nodes on the to-be-detected link and node information of the corresponding network element nodes, the method further comprises:
[0050] determining a first residence time of the first BFD packet at the first network element node;
[0051] comparing the first residence time with the maximum packet residence time, and when the first residence time is greater than the maximum packet residence time, replacing the maximum packet residence time in the transmission delay indication information in the forwarded first BFD packet with the first residence time and replacing node information corresponding to the maximum packet residence time with node information of the first network element node when forwarding the first BFD packet to a second network element node.
[0052] Optionally, the link detection method, wherein the transmission delay indication information is recorded in the first BFD packet through a TLV extension field.
[0053] Embodiments of the present application also provide a network device, wherein the network device is a first network device, comprising a transceiver and a processor, wherein:
[0054] the transceiver is configured to receive a first BFD packet sent by a second network device on a to-be-detected link; wherein the first BFD packet comprises transmission delay indication information;
[0055] the processor is configured to determine whether the to-be-detected link needs service tuning according to the transmission delay indication information;
[0056] the transceiver is further configured to send a second BFD packet to the second network device; wherein the second BFD packet comprises service tuning indication when it is determined that the to-be-detected link needs service tuning.
[0057] Optionally, the network device, wherein the transmission delay indication information comprises at least one of the following:
[0058] a timestamp of the first BFD packet;
[0059] first state indication information; the first state indication information is used to indicate whether a network element node on the to-be-detected link starts measuring residence time after receiving the first BFD packet.
[0060] second status indication information, the second status indication information being used to indicate whether a network element node on the to-be-detected link starts packet residence maximum time measurement after receiving the first BFD packet;
[0061] packet residence maximum time of the first BFD packet received by a plurality of network element nodes on the to-be-detected link and node information of the corresponding network element nodes.
[0062] Optionally, the network device, wherein, in the case that the transmission delay indication information comprises the time stamp, the processor is further configured to:
[0063] determine whether a service level agreement (SLA) parameter of the first BFD packet is greater than a preset threshold according to the time stamp in the first BFD packet and a time stamp in a last BFD packet received adjacent to the first BFD packet;
[0064] when the SLA parameter is greater than the preset threshold, the first status indication information or the second status indication information is included in a second BFD packet sent to the second network device.
[0065] Optionally, the network device, wherein the second BFD packet further comprises the transmission delay indication information.
[0066] Optionally, the network device, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0067] Optionally, the network device, wherein the service tuning indication comprises at least one of the following:
[0068] switching service priority;
[0069] switching service priority direction
[0070] switching queue priority;
[0071] switching queue priority direction;
[0072] switching link priority;
[0073] triggering link disconnection notification.
[0074] Embodiments of the present application also provide a network device, wherein the network device is a second network device, comprising a transceiver, wherein:
[0075] The transceiver is configured to send a bidirectional forwarding detection (BFD) packet to a first network device through a plurality of network element nodes on a link to be detected, wherein the first BFD packet comprises transmission delay indication information.
[0076] Optionally, the network device further comprises a processor.
[0077] The transceiver is further configured to receive a second BFD packet sent by the second network device, wherein the second BFD packet comprises the transmission delay indication information and / or service tuning indication.
[0078] The processor is configured to perform a service tuning operation corresponding to the service tuning indication when the second BFD packet comprises the tuning indication.
[0079] Optionally, the network device, wherein the transmission delay indication information comprises at least one of the following:
[0080] a timestamp of sending the first BFD packet;
[0081] first state indication information, wherein the first state indication information is used to indicate whether a network element node on the link to be detected starts to measure a residence time after receiving the first BFD packet;
[0082] second state indication information, wherein the second state indication information is used to indicate whether the network element node on the link to be detected starts to measure a maximum residence time of a packet after receiving the first BFD packet;
[0083] a maximum residence time of the first BFD packet received by the plurality of network element nodes on the link to be detected and node information of a corresponding network element node.
[0084] Optionally, the network device, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0085] The embodiment of the application further provides a network element node, wherein the network element node is a first network element node, and comprises a transceiver, wherein the transceiver is configured to:
[0086] receive a first bidirectional forwarding detection (BFD) packet transmitted on a link to be detected, wherein the first BFD packet comprises transmission delay indication information; and
[0087] forward the first BFD packet to a second network element node, wherein the first BFD packet forwarded comprises the transmission delay indication information.
[0088] Optionally, the network element node, wherein the transmission delay indication information comprises at least one of:
[0089] a timestamp of the first BFD packet sending;
[0090] first state indication information, the first state indication information being used to indicate whether the network element node on the to-be-detected link starts to measure the residence time after receiving the first BFD packet;
[0091] second state indication information, the second state indication information being used to indicate whether the network element node on the to-be-detected link starts to measure the maximum residence time of the packet after receiving the first BFD packet;
[0092] the maximum residence time of the packet of the first BFD packet received by the multiple network element nodes on the to-be-detected link and the node information of the corresponding network element node.
[0093] Optionally, the network element node, wherein the first network element node further comprises a processor, wherein the transmission delay indication information in the first BFD packet received by the transceiver comprises the first state indication information, and the processor is used to:
[0094] determine a first residence time of the first BFD packet at the first network element node;
[0095] wherein the first residence time and the node information of the first network element node are written in the transmission delay indication information in the forwarded first BFD packet when the first BFD packet is forwarded to the second network element node.
[0096] Optionally, the network element node, wherein the first network element node further comprises a processor, wherein the transmission delay indication information in the first BFD packet received by the transceiver comprises the second state indication information, the second state indication information being used to indicate that the network element node on the to-be-detected link starts to measure the maximum residence time of the packet after receiving the first BFD packet, and the transmission delay indication information further comprises the maximum residence time of the packet of the first BFD packet received by the multiple network element nodes on the to-be-detected link and the node information of the corresponding network element node, and the processor is used to:
[0097] determine a first residence time of the first BFD packet at the first network element node;
[0098] The first residence time is compared with the maximum residence time of the packet, and when the first residence time is greater than the maximum residence time of the packet, the maximum residence time of the packet in the transmission delay indication information in the first BFD packet forwarded to the second network element node is replaced by the first residence time, and node information corresponding to the maximum residence time of the packet is replaced by node information of the first network element node.
[0099] Optionally, the network element node, wherein the transmission delay indication information is recorded in the first BFD packet through a TLV extension field.
[0100] The embodiment of the application further provides a link detection device, wherein the device is executed by a first network device, and the device comprises:
[0101] A first packet receiving module is configured to receive a first Bidirectional Forwarding Detection (BFD) packet sent by a second network device on a link to be detected, wherein the first BFD packet comprises transmission delay indication information.
[0102] A determining module is configured to determine whether the link to be detected needs service tuning according to the transmission delay indication information.
[0103] A first packet sending module is configured to send a second BFD packet to the second network device, wherein the second BFD packet comprises service tuning indication when it is determined that the link to be detected needs service tuning.
[0104] The embodiment of the application further provides a link detection device, wherein the device is executed by a second network device, and the device comprises:
[0105] A second packet sending module is configured to send a Bidirectional Forwarding Detection (BFD) packet to a first network device through a plurality of network element nodes on a link to be detected, wherein the first BFD packet comprises transmission delay indication information.
[0106] The embodiment of the application further provides a link detection device, wherein the device is executed by a first network element node, and the device comprises:
[0107] A second packet receiving module is configured to receive a first Bidirectional Forwarding Detection (BFD) packet transmitted on a link to be detected, wherein the first BFD packet comprises transmission delay indication information.
[0108] A third packet sending module is configured to forward the first BFD packet to a second network element node, wherein the transmission delay indication information is comprised in the first BFD packet to be forwarded.
[0109] The embodiment of the present application further provides a network device, comprising a processor, a memory, and a program stored in the memory and executable on the processor, and the program is executed by the processor to implement the link detection method according to any one of the above.
[0110] The embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores a program, and the program is executed by a processor to implement the steps in the link detection method according to any one of the above.
[0111] The above technical solution of the present application has at least one of the following beneficial effects:
[0112] The link detection method according to the embodiment of the present application is adopted, the first BFD packet sent by the second network device on the link to be detected carries the transmission delay indication information, so that the first network device receiving the first BFD packet can realize the sensing based on the service level agreement (SLA) parameters (such as including delay, jitter and packet loss) and perform service optimization according to the transmission delay indication information, and carries the service optimization indication in the second BFD packet sent to the second network device, thereby effectively guaranteeing the SLA service quality of the link. BRIEF DESCRIPTION OF DRAWINGS
[0113] Figure 1 The system structure diagram of the link detection method according to the embodiment of the present application is shown;
[0114] Figure 2 The flowchart of the link detection method according to the first embodiment of the present application is shown;
[0115] Figure 3 The schematic diagram of one form of the BFD packet is shown;
[0116] Figure 4 The flowchart of the specific implementation of the link detection method according to the embodiment of the present application is shown;
[0117] Figure 5 The flowchart of the link detection method according to the second embodiment of the present application is shown;
[0118] Figure 6 The flowchart of the link detection method according to the third embodiment of the present application is shown;
[0119] Figure 7 The structure diagram of the network device according to the first embodiment of the present application is shown;
[0120] Figure 8 The structure diagram of the network device according to the second embodiment of the present application is shown;
[0121] Figure 9 The structure diagram of the network element node according to the embodiment of the present application is shown;
[0122] Figure 10 Structure diagram of the link detection device according to the first embodiment of the present application;
[0123] Figure 11 Structure diagram of the link detection device according to the second embodiment of the present application;
[0124] Figure 12 Structure diagram of the link detection device according to the third embodiment of the present application. DETAILED DESCRIPTION
[0125] In order to make the technical problems, technical solutions and advantages of the present application more clear, the following will be described in detail with reference to the drawings and specific embodiments.
[0126] In order to solve the problem that the existing technology cannot effectively guarantee the SLA service quality of the link when performing bidirectional forwarding detection, the present application provides a link detection method, which carries transmission delay indication information in a BFD packet, so that the peer receiving the BFD packet and the network element node between the peers on the link to be detected can participate in the statistics and measurement of the service quality according to the transmission delay indication information, the measurement of the network indexes such as link delay and jitter is realized, and the SLA service quality of the link to be detected is effectively guaranteed.
[0127] In order to clearly illustrate the link detection method according to the embodiments of the present application, the following first describes the bidirectional forwarding detection (Bidirectional Forwarding Detection, BFD) technology.
[0128] BFD is a unified detection mechanism in the whole network, which is used for quickly detecting and monitoring the forwarding connectivity status of the link or IP route in the network.
[0129] Currently, in order to protect critical applications, certain redundant backup links are designed in the network, and when the network fails, the network device is required to quickly detect the failure and switch the traffic to the backup link to speed up the network convergence. Currently, some links have a hardware detection mechanism that can quickly complete failure detection, but some links (such as Ethernet links) do not have such a detection function. In this case, the upper-layer protocol itself needs to have a mechanism for failure detection. However, most protocols such as Open Shortest Path First (OSPF) and Border Gateway Protocol (BGP) have a slow detection speed, and the fastest detection time is 1s, and these functions are only effective for the protocol itself and cannot provide a fast detection mechanism for other protocols or applications. BFD is generated in this background, which can provide a general, standardized and media- and protocol-independent detection mechanism.
[0130] Specifically, the BFD working mechanism is as follows:
[0131] BFD establishes a session on two network devices to detect the bidirectional forwarding path between the network devices for the upper-layer application. After the session is established, BFD packets are sent periodically and quickly, and if no BFD packet is received within the detection time, it is considered that the bidirectional forwarding path has failed, and the upper-layer application is notified to perform corresponding processing.
[0132] BFD protocol itself does not have a neighbor discovery mechanism, and the creation of a BFD neighbor depends on the upper-layer application. According to the BFD session establishment process, it can be divided into dynamic BFD and static BFD.
[0133] Dynamic BFD: is through the neighbor discovery mechanism of the upper-layer application (such as OSPF), the upper-layer application sends neighbor information to the BFD module, and the BFD module creates a session and establishes its own neighbor according to the received neighbor information; Static BFD: is to manually add the neighbor information of the opposite end to create a session, and after the static BFD is configured, BFD control packets are sent periodically. Only when the opposite end interface also starts BFD and correctly responds to the BFD packet of the local end, the neighbors of both sides are established.
[0134] Based on the above working mechanism of BFD, the system structure using the link detection method described in the embodiments of the present application can be as follows: Figure 1As shown, the first network device B and the second network device A are formed as the peers of the BFD session negotiation, and are used for periodically sending BFD packets on the to-be-detected link after the BFD session negotiation is completed. Specifically, the second network device A sends the BFD packets on the to-be-detected link, and the BFD packets are sent to the first network device B by the multiple network element nodes 10 on the to-be-detected link.
[0135] It should be noted that in the embodiment of the present application, the first network device and the second network device are only used to distinguish different BFD session negotiation peers, and do not indicate the execution order of the BFD peer corresponding to the BFD packet when the BFD packet is triggered.
[0136] The link detection method described in the embodiment of the present application, wherein an embodiment is performed by the first network device, as shown in the following method. Figure 2 As shown, the method comprises:
[0137] S210, receiving a first bidirectional forwarding detection (BFD) packet sent by a second network device on a to-be-detected link; wherein the first BFD packet comprises transmission delay indication information;
[0138] S220, determining whether the to-be-detected link needs to be optimized according to the transmission delay indication information;
[0139] S230, sending a second BFD packet to the second network device; wherein the second BFD packet comprises service optimization indication when it is determined that the to-be-detected link needs to be optimized.
[0140] By using the link detection method described in the embodiment of the present application, the first BFD packet sent by the second network device on the to-be-detected link carries the transmission delay indication information, so that the first network device receiving the first BFD packet can realize sensing based on service level agreement (SLA) parameters (such as including delay, jitter and packet loss) according to the transmission delay indication information, to optimize the service, and the second BFD packet sent to the second network device carries the service optimization indication, thereby effectively guaranteeing the SLA service quality of the link.
[0141] In the embodiment of the present application, optionally, the transmission delay indication information is related information used for determining the SLA parameters between the BFD session negotiation peers.
[0142] Optionally, the transmission delay indication information comprises at least one of the following:
[0143] a timestamp of the first BFD packet;
[0144] first state indication information; the first state indication information is used for indicating whether the network element node on the to-be-detected link starts to measure the residence time after receiving the first BFD packet.
[0145] second state indication information, which is used to indicate whether a network element node on the to-be-detected link starts packet residence maximum time measurement after receiving the first BFD packet;
[0146] packet residence maximum time of the first BFD packet received by a plurality of network element nodes on the to-be-detected link and node information of the corresponding network element nodes.
[0147] Optionally, the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV (Type, Length, Value) extension fields respectively.
[0148] In an embodiment of the present application, optionally, the format of the first BFD packet sent by the second network device on the to-be-detected link can be as shown in the following table: Figure 3 As shown in the table, compared with the BFD packet of the prior art, the packet field is extended in the TLV mode, and the transmission delay indication information is carried in the extended field.
[0149] In an embodiment, in the TLV extension field, the Type field is used to indicate the type of the carried transmission delay indication information, the Len field is used to indicate the length of the carried transmission delay indication information, and the Value field is used to indicate the specific value of the carried transmission delay indication information; optionally, the Type field, the Len field and the Value field occupy 8 bits, 16 bits and 8 bits respectively. Optionally, when the BFD session negotiation peer uses a programmable network element, the bit width of the Type field, the Len field and the Value field can be flexibly specified, as long as each node remains consistent.
[0150] In an embodiment, optionally, the first BFD packet further includes a packet type indication, which is indicated by a reserved R bit in the BFD packet, and is used to indicate whether the transmission delay indication information is carried in the first BFD packet; optionally, when the value of the packet type indication is a first value, it indicates that the transmission delay indication information is carried in the first BFD packet, and when the value of the packet type indication is a second value, it indicates that the transmission delay indication information is not carried in the first BFD packet.
[0151] In an embodiment of the link detection method of the present application, optionally, the transmission delay indication information carried in the first BFD packet sent by the second network device to the first network device includes a timestamp of sending the first BFD packet, and the first network device can calculate the delay and jitter on the to-be-detected link according to the timestamps in two adjacent BFD packets, so as to determine whether service tuning is needed according to the calculated delay and jitter.
[0152] Specifically, the second network device determines whether a service level agreement (SLA) parameter (e.g., including a delay and / or a jitter) of the first BFD packet is greater than a preset threshold according to a timestamp in the first BFD packet and a timestamp in a last BFD packet adjacent to the first BFD packet.
[0153] When the SLA parameter is greater than the preset threshold, the second BFD packet includes the state indication information when the second BFD packet is sent to the second network device.
[0154] In another embodiment, the first BFD packet sent by the second network device to the first network device carries first state indication information in the transmission delay indication information. The first state indication information is used to indicate whether the network element node on the to-be-detected link starts a residence time measurement after receiving the first BFD packet.
[0155] In one embodiment, the first state indication information is a first value, indicating that the network element node starts the residence time measurement after receiving the first BFD packet. The first state indication information is a second value, indicating that the network element node does not start the residence time measurement after receiving the first BFD packet.
[0156] Specifically, the first network element node (which can be any network element node on the to-be-detected link) receiving the first BFD packet determines, according to the first state indication information in the first BFD packet, whether the first state indication information indicates that the network element node starts the residence time measurement after receiving the first BFD packet. If so, the first network element node performs the following operations according to the first state indication information:
[0157] determines a first residence time of the first BFD packet at the first network element node.
[0158] When the first BFD packet is forwarded to the second network element node, the first BFD packet carries transmission delay indication information, which includes the first residence time and node information of the first network element node.
[0159] In this embodiment, the first state indication information is carried in the BFD packet to indicate that the network element node starts the residence time measurement. When the BFD packet is transmitted between multiple network element nodes, each network element node indicates, in the BFD packet, time information of the BFD packet at the corresponding network element node and node information of the corresponding network element node. Thus, a BFD peer receiving the BFD packet can determine an SLA parameter according to the residence time of the BFD packet at each network element node to determine whether service tuning is needed.
[0160] In another embodiment, the second state indication information is carried in the BFD packet, and is used to indicate whether the network element node on the to-be-detected link starts the maximum packet residence time measurement after receiving the first BFD packet. In this embodiment, the first network element node receiving the first BFD packet (which can be any network element node on the to-be-detected link) determines, according to the second state indication information in the first BFD packet, whether the second state indication information indicates that the network element node starts the maximum packet residence time measurement after receiving the first BFD packet, and if so, the first network element node performs the following operations according to the second state indication information:
[0161] determines a first residence time of the first BFD packet at the first network element node;
[0162] In a case where the transmission delay indication information does not include the maximum packet residence time of the first BFD packet received by the multiple network element nodes on the to-be-detected link and the node information of the corresponding network element nodes, the first BFD packet is forwarded to the second network element node, and the transmission delay indication information including the first residence time and the node information of the first network element node is written in the forwarded first BFD packet.
[0163] In a case where the transmission delay indication information further includes the maximum packet residence time of the first BFD packet received by the multiple network element nodes on the to-be-detected link and the node information of the corresponding network element nodes, the first residence time is compared with the maximum packet residence time, and in a case where the first residence time is greater than the maximum packet residence time, the maximum packet residence time in the transmission delay indication information in the forwarded first BFD packet is replaced by the first residence time, and the node information corresponding to the maximum packet residence time is replaced by the node information of the first network element node when the first BFD packet is forwarded to the second network element node; in a case where the first residence time is less than or equal to the maximum packet residence time, the transmission delay indication information in the forwarded first BFD packet still carries the maximum packet residence time and the node information of the corresponding network element nodes in the received first BFD packet when the first BFD packet is forwarded to the second network element node.
[0164] By adopting this embodiment, the second state indication information is carried in the BFD packet to instruct the network element node to start the residence time measurement, and whether the first residence time of the BFD packet at the network element node is greater than the packet residence maximum time carried in the BFD packet is judged. When the first residence time is greater than the packet residence maximum time, the first residence time is replaced with the packet residence maximum time in the BFD packet, so as to send the packet residence maximum time when the BFD packets transmitted by the multiple network element nodes on the link to be detected and the node information of the corresponding network element node to the BFD peer, so that the BFD peer receiving the BFD packet can determine the SLA parameter according to the packet residence maximum time and the node information of the corresponding network element node to determine whether the service tuning is needed.
[0165] Optionally, in the embodiment of the application, the service tuning instruction comprises at least one of the following:
[0166] switching service priority;
[0167] switching service priority direction
[0168] switching queue priority;
[0169] switching queue priority direction;
[0170] switching link priority;
[0171] triggering link disconnection notification.
[0172] In one embodiment, the service tuning instruction comprises switching service priority, wherein when the switching service priority is a first value, it indicates switching service flow priority; and when the switching service priority is a second value, it indicates that the service flow priority remains unchanged.
[0173] In one embodiment, the service tuning instruction comprises switching service priority direction, wherein when the switching service priority direction is a first value, it indicates that the switching direction is opposite to the BFD packet; and when the switching service priority direction is a second value, it indicates that the switching direction is the same as the BFD packet.
[0174] In one embodiment, the service tuning instruction comprises switching queue priority, wherein when the switching queue priority is a first value, it indicates switching queue priority of service flow; and when the switching queue priority is a second value, it indicates that the queue priority of service flow remains unchanged.
[0175] In one embodiment, the service tuning instruction comprises switching queue priority direction, wherein when the switching queue priority direction is a first value, it indicates that the switching queue priority direction is opposite to the BFD packet; and when the switching queue priority direction is a second value, it indicates that the switching queue priority direction is the same as the BFD packet.
[0176] In one embodiment, the service optimization indication includes a trigger link disconnection notification, wherein the trigger link disconnection notification is a first value, indicating that there is a link disconnection; and the trigger link disconnection notification is a second value, indicating that the link is normal.
[0177] It should be noted that the content indicated by the service optimization indication and the specific manner of indicating the content are only illustrative, and are not limited thereto.
[0178] It should be noted that, in the embodiments of the present application, the transmission delay indication information in the BFD packet and the optimization indication can be indicated by a state indication code, which is used to carry the at least one information described above, which will not be described in detail here.
[0179] The following will be described in detail Figure 4 The specific implementation of the link detection method according to the embodiments of the present application will be described in detail.
[0180] As shown in Figure 4 The peer BFD Peer A (corresponding to the second network device described above) and the BFD Peer B (corresponding to the first network device described above) complete BFD session negotiation and periodically send BFD packets between each other, which are used to detect the to-be-detected link including a plurality of network element nodes. For example, the plurality of network element nodes on the to-be-detected link include a first network element node, a second network element node and a third network element node.
[0181] Specifically, the link detection method according to the embodiments of the present application includes the following steps:
[0182] S410, the BFD Peer A sends a BFD packet (such as a first BFD packet) to the BFD Peer B, carrying transmission delay indication information; optionally, the transmission delay indication information includes a time stamp;
[0183] S420, the BFD Peer B records the time stamps of two adjacent BFD packets, such as calculating the delay and jitter (SLA parameters) according to the time stamp of the currently received BFD packet and the time stamp of the adjacent last BFD packet of the BFD packet, and when the preset threshold is exceeded, it is determined that the first state indication information or the second state indication information is indicated in the transmission delay indication information, and in the embodiments of the present application, the second state indication information is carried as an example;
[0184] S430, the BFD Peer B sends a BFD packet (such as a second BFD packet) to the BFD Peer A, carrying a time stamp and a second state indication information;
[0185] S440, BFD Peer A continues to send BFD packets (third BFD packets) to BFD Peer B according to the BFD packets (second BFD packets) sent by BFD Peer B;
[0186] S450, the first network element node determines the residence time of the BFD packet at the first network element node and the node information of the first network element node according to the second state indication information in the received BFD packet;
[0187] S460, the first network element node adds the determined residence time and the node information of the first network element node to the BFD packet and sends the BFD packet to the second network element node;
[0188] S470, the second network element node determines the residence time of the BFD packet at the second network element node according to the second state indication information in the received BFD packet;
[0189] The residence time of the BFD packet at the second network element node is compared with the packet residence maximum time in the BFD packet, if the residence time of the BFD packet at the second network element node is greater than the packet residence maximum time in the BFD packet, it is determined that the residence time of the BFD packet at the second network element node replaces the packet residence maximum time in the BFD packet; if the residence time of the BFD packet at the second network element node is less than or equal to the packet residence maximum time in the BFD packet, it is determined that the packet residence maximum time in the BFD packet is not replaced;
[0190] S480, the second network element node sends the BFD packet to the third network element node, the BFD packet includes the determined packet residence maximum time and the node information of the corresponding network element node, and also includes the second state indication information;
[0191] S490, the third network element node determines the residence time of the BFD packet at the third network element node according to the second state indication information in the received BFD packet;
[0192] The residence time of the BFD packet at the third network element node is compared with the packet residence maximum time in the BFD packet, if the residence time of the BFD packet at the third network element node is greater than the packet residence maximum time in the BFD packet, it is determined that the residence time of the BFD packet at the third network element node replaces the packet residence maximum time in the BFD packet; if the residence time of the BFD packet at the third network element node is less than or equal to the packet residence maximum time in the BFD packet, it is determined that the packet residence maximum time in the BFD packet is not replaced;
[0193] S491, the third network element node sends a BFD packet to the BFD Peer B, the BFD packet including the determined maximum packet residence time and the node information of the corresponding network element node, and further including the second state indication information;
[0194] S492, the BFD Peer B starts trigger tuning according to the maximum packet residence time and the node information of the corresponding network element node recorded in the BFD packet, and determines whether service tuning is needed, i.e., whether service priority is switched, whether service priority direction is switched, whether queue priority is switched, whether queue priority direction is switched, whether link priority is switched and / or whether a link disconnection notification is triggered;
[0195] S493, the BFD Peer B sends a BFD packet (the fourth BFD packet) to the BFD Peer A, carrying the second state indication information and the corresponding service tuning indication;
[0196] S494, the BFD Peer A performs linkage service tuning according to the service tuning indication, and performs service tuning such as modifying the service packet priority of the second network element node according to the second state indication information;
[0197] S495, the BFD Peer A sends a BFD packet (the fifth BFD packet) according to the second state indication information of the received current BFD packet, and optionally, the sent fifth BFD packet further includes a time stamp, the second state indication information and the service tuning indication; for example, the service tuning indication is modifying the service packet priority of the second network element node;
[0198] S496, the second network element node adjusts the service packet queue priority according to the service tuning indication in the received BFD packet.
[0199] It should be noted that the above implementation process is only for example, and the implementation is not limited to only the above process.
[0200] The link detection method described in the embodiment of the application enhances the BFD protocol, so that the network element nodes between the BFD peers can participate in the statistics and measurement of network service quality, and participate in the local tuning of network service quality; in addition, the protocol scalability of the programmable network element is utilized to realize the cooperative work of the BFD peers and the network element nodes between the BFD peers, realize the multi-dimensional tuning of network service quality between links at the link level, the service processing level and the device processing level, the multi-action combination, and complete the network service quality guarantee such as bandwidth, delay and jitter.
[0201] Therefore, by using the link detection method described in the embodiment of the present application, not only the link failure can be quickly perceived, but also the switching can be quickly performed by perceiving the network indexes such as link delay, jitter and packet loss. Compared with the SLA guarantee in the prior art, which is realized by a combination of multiple protocols or by a combination of a controller and forwarding network elements, the link detection method described in the embodiment of the present application can be completed by one protocol of BFD, and thus the network reliability and SLA guarantee mechanism can be simplified.
[0202] The embodiment of the present application also provides a link detection method, which is executed by a second network device, as shown in the following. Figure 5 The method comprises the following steps.
[0203] S510, sending a bidirectional forwarding detection (BFD) packet to a first network device through a plurality of network element nodes on a to-be-detected link; wherein the first BFD packet comprises transmission delay indication information.
[0204] By using the link detection method described in the embodiment of the present application, the first BFD packet sent by the second network device on the to-be-detected link carries the transmission delay indication information, so that the first network device receiving the first BFD packet can perceive and perform service tuning based on service level agreement (SLA) parameters (such as delay, jitter and packet loss) according to the transmission delay indication information, and carries the service tuning indication in the second BFD packet sent to the second network device, thereby effectively guaranteeing the SLA service quality of the link.
[0205] Optionally, the link detection method, wherein the method further comprises the following steps.
[0206] receiving the second BFD packet sent by the second network device; wherein the second BFD packet comprises the transmission delay indication information and / or the service tuning indication.
[0207] When the tuning indication is included in the second BFD packet, performing a service tuning operation corresponding to the service tuning indication.
[0208] When the first network device determines that the service tuning is needed according to the transmission delay indication information in the first BFD packet, the service tuning indication is included in the second BFD packet sent to the second network device; when it is determined that the service tuning is not needed, the service tuning indication is not included in the second BFD packet sent to the second network device, and only the transmission delay indication information is included.
[0209] Optionally, the link detection method, wherein the transmission delay indication information comprises at least one of the following:
[0210] a timestamp of the first BFD packet;
[0211] The first state indication information is used for indicating whether a network element node on the to-be-detected link starts to measure the residence time after receiving the first BFD packet.
[0212] The second state indication information is used for indicating whether the network element node on the to-be-detected link starts to measure the maximum packet residence time after receiving the first BFD packet.
[0213] The first BFD packet is received by a plurality of network element nodes on the to-be-detected link, and the node information of the corresponding network element node and the maximum packet residence time of the first BFD packet are received.
[0214] Optionally, the link detection method, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0215] The specific implementation manners and processes of the link detection method of the embodiment of the application when applied to the second network device can refer to the detailed description when applied to the first network device, which will not be described here.
[0216] The embodiment of the application further provides a link detection method, which is executed by a first network element node, as shown in the following. Figure 6 The method comprises the following steps.
[0217] S610, receiving a first bidirectional forwarding detection (BFD) packet transmitted on a to-be-detected link; wherein the first BFD packet comprises transmission delay indication information.
[0218] S620, forwarding the first BFD packet to a second network element node, wherein the first BFD packet to be forwarded comprises the transmission delay indication information.
[0219] The link detection method of the embodiment of the application can realize the cooperative work of the BFD peers and the network element nodes between the BFD peers, and realize the multi-dimensional tuning of the network service quality between the links, the service processing level and the device processing level, the multi-action combination, and the guarantee of the bandwidth, the delay and the jitter and other network service qualities.
[0220] Optionally, the link detection method, wherein the transmission delay indication information comprises at least one of the following:
[0221] The timestamp of the first BFD packet;
[0222] the first status indication information is used to indicate whether the network element node on the to-be-detected link starts to measure the residence time after receiving the first BFD packet;
[0223] second status indication information, the second status indication information is used to indicate whether the network element node on the to-be-detected link starts to measure the maximum residence time of the packet after receiving the first BFD packet;
[0224] the maximum residence time of the packet and the node information of the corresponding network element node.
[0225] Optionally, the link detection method, wherein the transmission delay indication information in the received first BFD packet comprises the first status indication information, and when the status indication information indicates that the network element node starts to measure the residence time after receiving the first BFD packet, the method further comprises:
[0226] determining a first residence time of the first BFD packet at the first network element node;
[0227] wherein when the first BFD packet is forwarded to the second network element node, the first residence time and the node information of the first network element node are written in the transmission delay indication information in the forwarded first BFD packet.
[0228] Optionally, the link detection method, wherein the transmission delay indication information in the received first BFD packet comprises the second status indication information, the second status indication information is used to indicate that the network element node on the to-be-detected link starts to measure the maximum residence time of the packet after receiving the first BFD packet, and the transmission delay indication information further comprises the maximum residence time of the packet and the node information of the corresponding network element node of the plurality of network element nodes on the to-be-detected link receiving the first BFD packet, and when the transmission delay indication information, the method further comprises:
[0229] determining a first residence time of the first BFD packet at the first network element node;
[0230] comparing the first residence time with the maximum residence time of the packet, when the first residence time is greater than the maximum residence time of the packet, when the first BFD packet is forwarded to the second network element node, the maximum residence time of the packet in the transmission delay indication information in the forwarded first BFD packet is replaced by the first residence time, and the node information corresponding to the maximum residence time of the packet is replaced by the node information of the first network element node.
[0231] Optionally, the link detection method, wherein the transmission delay indication information is recorded in the first BFD packet through a TLV extension field.
[0232] The link detection method, the specific implementation and process when applied to the network element node, can refer to the detailed description when applied to the first network device, which will not be repeated here.
[0233] The embodiment of the application further provides a network device, the network device being a first network device, as shown in the figure, the first network device 700 comprising a transceiver 710 and a processor 720, wherein: Figure 7
[0234] The transceiver 710 is configured to receive a first bidirectional forwarding detection (BFD) packet sent by a second network device on a link to be detected; wherein the first BFD packet comprises transmission delay indication information;
[0235] The processor 720 is configured to determine whether the link to be detected needs service tuning according to the transmission delay indication information.
[0236] The transceiver 710 is further configured to send a second BFD packet to the second network device; wherein the second BFD packet comprises service tuning indication when it is determined that the link to be detected needs service tuning.
[0237] Optionally, the network device, wherein the transmission delay indication information comprises at least one of the following:
[0238] A timestamp of the first BFD packet;
[0239] First state indication information, the first state indication information being configured to indicate whether a network element node on the link to be detected starts to measure the residence time after receiving the first BFD packet;
[0240] Second state indication information, the second state indication information being configured to indicate whether the network element node on the link to be detected starts to measure the maximum residence time of the packet after receiving the first BFD packet;
[0241] The maximum residence time of the packet and node information of the corresponding network element node when the network element node on the link to be detected receives the first BFD packet.
[0242] Optionally, the network device, wherein when the transmission delay indication information comprises the timestamp, the processor 720 is further configured to:
[0243] According to the timestamp in the first BFD packet and a timestamp in a last BFD packet received adjacent to the first BFD packet, it is judged whether a service level agreement (SLA) parameter sent by the first BFD packet is greater than a preset threshold value;
[0244] When the SLA parameter is greater than the preset threshold value, the first state indication information or the second state indication information is included in a second BFD packet when the second BFD packet is sent to the second network device.
[0245] Optionally, the network device, wherein the second BFD packet further includes the transmission delay indication information.
[0246] Optionally, the network device, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0247] Optionally, the network device, wherein the service tuning indication includes at least one of the following:
[0248] switching service priority;
[0249] switching service priority direction
[0250] switching queue priority;
[0251] switching queue priority direction;
[0252] switching link priority;
[0253] triggering link disconnection notification.
[0254] Embodiments of the present application also provide a network device, the network device being a second network device, as shown in the figure, the second network device 800 includes a transceiver 810, wherein: Figure 8
[0255] The transceiver 810 is used for sending a bidirectional forwarding detection (BFD) packet to a first network device through a plurality of network element nodes on a to-be-detected link, wherein the first BFD packet includes transmission delay indication information.
[0256] Optionally, the network device, wherein the network device further includes a processor 820.
[0257] The transceiver 810 is further used for receiving a second BFD packet sent by the second network device, wherein the second BFD packet includes the transmission delay indication information and / or service tuning indication.
[0258] The processor 820 is configured to, when the second BFD packet includes the tuning indication, perform a service tuning operation corresponding to the service tuning indication.
[0259] Optionally, the network device, wherein the transmission delay indication information includes at least one of:
[0260] a timestamp of sending the first BFD packet;
[0261] first state indication information, the first state indication information being used to indicate whether to start a residence time measurement after a network element node on the to-be-detected link receives the first BFD packet;
[0262] second state indication information, the second state indication information being used to indicate whether to start a packet residence maximum time measurement after the network element node on the to-be-detected link receives the first BFD packet;
[0263] a packet residence maximum time of receiving the first BFD packet by a plurality of network element nodes on the to-be-detected link and node information of the corresponding network element nodes.
[0264] Optionally, the network device, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0265] The embodiment of the application further provides a network element node, the network element node being a first network element node, as shown in the figure, the first network element node 900 includes a transceiver 910, wherein the transceiver 910 is used for: Figure 9
[0266] receiving a first bidirectional forwarding detection (BFD) packet transmitted on a to-be-detected link, wherein the first BFD packet includes transmission delay indication information; and
[0267] forwarding the first BFD packet to a second network element node, wherein the first BFD packet forwarded includes the transmission delay indication information.
[0268] Optionally, the network element node, wherein the transmission delay indication information includes at least one of:
[0269] a timestamp of sending the first BFD packet;
[0270] first state indication information, the first state indication information being used to indicate whether to start a residence time measurement after a network element node on the to-be-detected link receives the first BFD packet;
[0271] second state indication information, the second state indication information being used to indicate whether a network element node on the to-be-detected link starts a maximum packet residence time measurement after receiving the first BFD packet;
[0272] a maximum packet residence time of the first BFD packet received by a plurality of network element nodes on the to-be-detected link and node information of a corresponding network element node.
[0273] Optionally, the network element node, wherein the first network element node further comprises a processor 920, and the transmission delay indication information in the first BFD packet received by the transceiver 910 comprises the first state indication information, and the processor 920 is configured to:
[0274] determine a first residence time of the first BFD packet at the first network element node;
[0275] wherein the first residence time and node information of the first network element node are written in the transmission delay indication information in the forwarded first BFD packet.
[0276] Optionally, the network element node, wherein the first network element node further comprises a processor 920, and the transmission delay indication information in the first BFD packet received by the transceiver 910 comprises the second state indication information, and the processor 920 is configured to:
[0277] determine a first residence time of the first BFD packet at the first network element node;
[0278] compare the first residence time with the maximum packet residence time, and when the first residence time is greater than the maximum packet residence time, replace the maximum packet residence time with the first residence time and replace node information corresponding to the maximum packet residence time with node information of the first network element node in the transmission delay indication information in the forwarded first BFD packet when the first BFD packet is forwarded to the second network element node.
[0279] Optionally, the network element node, wherein the transmission delay indication information is recorded in the first BFD packet through a TLV extension field.
[0280] The embodiment of the present application also provides a link detection device, which is executed by a first network device, and comprises: Figure 10 as shown in the figure, the device comprises:
[0281] a first message receiving module 1010, configured to receive a first Bidirectional Forwarding Detection (BFD) message sent by a second network device on a link to be detected; wherein the first BFD message comprises transmission delay indication information;
[0282] a determining module 1020, configured to determine whether the link to be detected needs service tuning according to the transmission delay indication information;
[0283] a first message sending module 1030, configured to send a second BFD message to the second network device; wherein when it is determined that the link to be detected needs service tuning, the second BFD message comprises service tuning indication.
[0284] Optionally, the link detection device, wherein the transmission delay indication information comprises at least one of the following:
[0285] a timestamp of the first BFD message;
[0286] first state indication information, which is used to indicate whether a network element node on the link to be detected starts to measure the residence time after receiving the first BFD message;
[0287] second state indication information, which is used to indicate whether the network element node on the link to be detected starts to measure the maximum residence time of the message after receiving the first BFD message;
[0288] the maximum residence time of the message of the first BFD message received by a plurality of network element nodes on the link to be detected and node information of the corresponding network element nodes.
[0289] Optionally, the link detection device, wherein when the transmission delay indication information comprises the timestamp, the determining module 1020 is further configured to:
[0290] determine whether a Service Level Agreement (SLA) parameter of the first BFD message is greater than a preset threshold according to the timestamp in the first BFD message and a timestamp in a last BFD message received adjacent to the first BFD message;
[0291] when the SLA parameter is greater than the preset threshold, the first state indication information or the second state indication information is comprised in the second BFD message when the second BFD message is sent to the second network device.
[0292] Optionally, the link detection apparatus, wherein the second BFD packet further comprises the transmission delay indication information.
[0293] Optionally, the link detection apparatus, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0294] Optionally, the link detection apparatus, wherein the service tuning indication comprises at least one of:
[0295] switching service priority;
[0296] switching service priority direction
[0297] switching queue priority;
[0298] switching queue priority direction;
[0299] switching link priority;
[0300] triggering link disconnection notification.
[0301] The embodiment of the application further provides a link detection apparatus, executed by a second network device, as shown in the figure, the apparatus comprises: Figure 11
[0302] a second packet sending module 1110, configured to send a bidirectional forwarding detection (BFD) packet to a first network device through a plurality of network element nodes on a to-be-detected link; wherein the first BFD packet comprises transmission delay indication information.
[0303] Optionally, the link detection apparatus, wherein the apparatus further comprises:
[0304] a fourth packet receiving module 1120, configured to receive a second BFD packet sent by the second network device; wherein the second BFD packet comprises the transmission delay indication information and / or service tuning indication;
[0305] an execution module 1130, configured to, when the second BFD packet comprises the tuning indication, execute a service tuning operation corresponding to the service tuning indication.
[0306] Optionally, the link detection apparatus, wherein the transmission delay indication information comprises at least one of:
[0307] a timestamp of the first BFD packet sending;
[0308] first state indication information; the first state indication information is used to indicate whether a network element node on the to-be-detected link starts to measure resident time after receiving the first BFD packet.
[0309] second status indication information, the second status indication information being used to indicate whether a network element node on the link to be detected starts packet residence maximum time measurement after receiving the first BFD packet;
[0310] packet residence maximum time of the first BFD packet received by a plurality of network element nodes on the link to be detected and node information of the corresponding network element nodes.
[0311] Optionally, the link detection device, wherein the transmission delay indication information and the service tuning indication are recorded in the first BFD packet through TLV extension fields respectively.
[0312] The embodiment of the present application also provides a link detection device, which is executed by a first network element node, as shown in the following table. Figure 12 The device comprises:
[0313] a second packet receiving module 1210, used for receiving a first bidirectional forwarding detection (BFD) packet transmitted on a link to be detected; wherein the first BFD packet comprises transmission delay indication information;
[0314] a third packet sending module 1220, used for forwarding the first BFD packet to a second network element node, wherein the first BFD packet to be forwarded comprises the transmission delay indication information.
[0315] Optionally, the link detection device, wherein the transmission delay indication information comprises at least one of the following:
[0316] a timestamp of the first BFD packet;
[0317] first status indication information; the first status indication information is used to indicate whether a network element node on the link to be detected starts residence time measurement after receiving the first BFD packet;
[0318] second status indication information; the second status indication information is used to indicate whether a network element node on the link to be detected starts packet residence maximum time measurement after receiving the first BFD packet;
[0319] packet residence maximum time of the first BFD packet received by a plurality of network element nodes on the link to be detected and node information of the corresponding network element nodes.
[0320] Optionally, the link detection device, wherein the transmission delay indication information in the first BFD packet received by the second packet receiving module 1210 comprises the first status indication information, and the device further comprises:
[0321] The first processing module 1230 is configured to determine a first residence time of the first BFD packet at the first network element node.
[0322] The third message sending module 1220 writes the first residence time and node information of the first network element node into the transmission delay indication information in the forwarded first BFD packet when forwarding the first BFD packet to the second network element node.
[0323] Optionally, the link detection device, wherein the transmission delay indication information in the first BFD packet received by the second message receiving module 1210 comprises the second state indication information, the second state indication information is used to instruct the network element node on the to-be-detected link to start measuring the packet residence maximum time after receiving the first BFD packet, and when the transmission delay indication information further comprises the packet residence maximum time of the network element nodes on the to-be-detected link receiving the first BFD packet and node information of the corresponding network element nodes, the device further comprises:
[0324] The second processing module 1240 is configured to determine a first residence time of the first BFD packet at the first network element node.
[0325] The first residence time is compared with the packet residence maximum time, when the first residence time is greater than the packet residence maximum time, the packet residence maximum time in the transmission delay indication information in the forwarded first BFD packet is replaced by the first residence time, and node information corresponding to the packet residence maximum time is replaced by node information of the first network element node when the first BFD packet is forwarded to the second network element node.
[0326] Optionally, the link detection device, wherein the transmission delay indication information is recorded in the first BFD packet through a TLV extension field.
[0327] The embodiment of the application further provides a network device, which comprises a processor, a memory and a program stored in the memory and executable on the processor, and the program is executed by the processor to implement the link detection method according to any one of the above.
[0328] Specifically, the network device can be the first network device, the second network device or the first network element node, and the specific implementation of the network device when executing the link detection method according to the embodiment of the application can refer to the above detailed description, and will not be described here.
[0329] In addition, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, wherein the program is executed by a processor to implement the steps in the link detection method according to any one of the above.
[0330] In particular, the computer readable storage medium is applied to the network device or the network element node, and when applied to the network device or the network element node, the execution steps in the link detection method are as described above, and details are not repeated here.
[0331] In the several embodiments provided by the present application, it should be understood that the disclosed method and device can be implemented in other ways. For example, the device embodiment described above is only illustrative, and for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0332] In addition, each functional unit in the embodiments of the present application can be integrated into a processing unit, or each unit can be physically included separately, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware, or in the form of hardware plus software function unit.
[0333] The integrated unit realized in the form of software function unit can be stored in a computer readable storage medium. The software function unit is stored in a storage medium, including a plurality of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute part of the steps of the transceiving method described in the embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0334] The above is the preferred embodiment of the present application, and it should be noted that for ordinary people in the technical field, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A link detection method, characterized in that, Performed by a first network device, the method includes: Receive a first bidirectional forwarding detection (BFD) message sent by a second network device on the link to be detected; wherein the first BFD message includes transmission delay indication information; Based on the transmission delay indication information, determine whether the link to be tested needs service optimization; Send a second BFD message to the second network device; wherein, when it is determined that the link to be detected needs to be optimized for services, the second BFD message includes a service optimization instruction; The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
2. The link detection method according to claim 1, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
3. The link detection method according to claim 2, characterized in that, When the transmission delay indication information includes the timestamp, the method further includes: Based on the timestamp in the first BFD message and the timestamp in the previous BFD message received adjacent to the first BFD message, determine whether the Service Level Agreement (SLA) parameter sent by the first BFD message is greater than a preset threshold. When the SLA parameter is greater than a preset threshold, the second BFD message sent to the second network device includes either the first status indication information or the second status indication information.
4. The link detection method according to claim 1, characterized in that, The second BFD message also includes the transmission delay indication information.
5. The link detection method according to claim 1, characterized in that, The transmission delay indication information and the service optimization indication are recorded in the first BFD message through the TLV extended field.
6. A link detection method, characterized in that, Performed by a second network device, the method includes: A first bidirectional forwarding detection (BFD) message is sent to a first network device through multiple network element nodes on the link to be detected; wherein, the first BFD message includes transmission delay indication information; the transmission delay indication information is used by the first network device to determine whether the link to be detected needs to be optimized for service, and when it is determined that service optimization needs to be optimized, a service optimization indication is included in a second BFD message sent to the second network device. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
7. The link detection method according to claim 6, characterized in that, The method further includes: Receive a second BFD message sent by the first network device; wherein the second BFD message includes the transmission delay indication information and / or service optimization indication; When the service tuning instruction is included in the second BFD message, the service tuning operation corresponding to the service tuning instruction is executed.
8. The link detection method according to claim 6, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
9. The link detection method according to claim 7, characterized in that, The transmission delay indication information and the service optimization indication are recorded in the first BFD message through the TLV extended field.
10. A link detection method, characterized in that, Executed by the first network element node, the method includes: Receive a first bidirectional forwarding detection (BFD) message transmitted on the link to be detected; wherein the first BFD message includes transmission delay indication information; The first BFD message is forwarded to the second network element node, wherein the forwarded first BFD message includes the transmission delay indication information; the transmission delay indication information is used by the first network device on the link under test to determine whether the link under test needs to be optimized for services, and when it is determined that service optimization needs to be optimized for services, the second BFD message sent to the link under test includes the service optimization indication. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
11. The link detection method according to claim 10, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
12. The link detection method according to claim 10, characterized in that, If the transmission delay indication information in the received first BFD message includes the first status indication information, and the first status indication information indicates that the network element node initiates dwell time measurement after receiving the first BFD message, the method further includes: Determine the first dwell time of the first BFD message at the first network element node; Specifically, when forwarding the first BFD message to the second network element node, the first dwell time and the node information of the first network element node are written into the transmission delay indication information in the forwarded first BFD message.
13. The link detection method according to claim 10, characterized in that, The method further includes the following: If the transmission delay indication information in the received first BFD message includes the second status indication information, which is used to instruct the network element node on the link under test to start measuring the maximum message dwell time after receiving the first BFD message, and the transmission delay indication information also includes the maximum message dwell time of multiple network element nodes on the link under test for receiving the first BFD message and the node information of the corresponding network element nodes, the method further includes: Determine the first dwell time of the first BFD message at the first network element node; The first dwell time is compared with the maximum dwell time of the message. When the first dwell time is greater than the maximum dwell time of the message, the first BFD message is forwarded to the second network element node. In the transmission delay indication information of the forwarded first BFD message, the maximum dwell time of the message is replaced with the first dwell time, and the node information corresponding to the maximum dwell time of the message is replaced with the node information of the first network element node.
14. The link detection method according to claim 10, characterized in that, The transmission delay indication information is recorded in the first BFD message through the TLV extended field.
15. A network device, characterized in that, The network device is a first network device, including a transceiver and a processor, wherein: The transceiver is used to receive a first bidirectional forwarding detection (BFD) message sent by the second network device on the link to be detected; wherein the first BFD message includes transmission delay indication information; The processor is used to determine whether the link to be detected needs service optimization based on the transmission delay indication information. The transceiver is further configured to send a second BFD message to the second network device; wherein, when it is determined that the link to be detected needs to be optimized for service, the second BFD message includes a service optimization instruction. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
16. The network device according to claim 15, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
17. The network device according to claim 16, characterized in that, If the transmission delay indication information includes the timestamp, the processor is further configured to: Based on the timestamp in the first BFD message and the timestamp in the previous BFD message received adjacent to the first BFD message, determine whether the Service Level Agreement (SLA) parameter sent by the first BFD message is greater than a preset threshold. When the SLA parameter is greater than a preset threshold, the second BFD message sent to the second network device includes either the first status indication information or the second status indication information.
18. The network device according to claim 15, characterized in that, The second BFD message also includes the transmission delay indication information.
19. The network device according to claim 15, characterized in that, The transmission delay indication information and the service optimization indication are recorded in the first BFD message through the TLV extended field.
20. A network device, characterized in that, The network device is a second network device, including a transceiver, wherein: The transceiver is used to send a first bidirectional forwarding detection (BFD) message to a first network device through multiple network element nodes on the link to be detected; wherein the first BFD message includes transmission delay indication information; the transmission delay indication information is used by the first network device to determine whether the link to be detected needs to be optimized for service, and when it is determined that service optimization is needed, the first network device includes a service optimization indication in a second BFD message sent to the second network device. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
21. The network device according to claim 20, characterized in that, The network device also includes: a processor; The transceiver is further configured to receive a second BFD message sent by the first network device; wherein the second BFD message includes the transmission delay indication information and / or service optimization indication; The processor is configured to, when the second BFD message includes the service tuning instruction, perform a service tuning operation corresponding to the service tuning instruction.
22. The network device according to claim 20, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
23. The network device according to claim 21, characterized in that, The transmission delay indication information and the service optimization indication are recorded in the first BFD message through the TLV extended field.
24. A network element node, characterized in that, The network element node is a first network element node, including a transceiver, wherein the transceiver is used for: Receive a first bidirectional forwarding detection (BFD) message transmitted on the link to be detected; wherein the first BFD message includes transmission delay indication information; and The first BFD message is forwarded to the second network element node, wherein the forwarded first BFD message includes the transmission delay indication information; the transmission delay indication information is used by the first network device on the link under test to determine whether the link under test needs to be optimized for services, and when it is determined that service optimization needs to be optimized for services, the second BFD message sent to the link under test includes the service optimization indication. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
25. The network element node according to claim 24, characterized in that, The transmission delay indication information also includes: The timestamp of the first BFD message being sent.
26. The network element node according to claim 24, characterized in that, The first network element node further includes a processor, wherein the transmission delay indication information in the first BFD message received by the transceiver includes the first status indication information, and the status indication information indicates that the network element node initiates dwell time measurement after receiving the first BFD message, the processor is configured to: Determine the first dwell time of the first BFD message at the first network element node; Specifically, when forwarding the first BFD message to the second network element node, the first dwell time and the node information of the first network element node are written into the transmission delay indication information in the forwarded first BFD message.
27. The network element node according to claim 24, characterized in that, The first network element node further includes a processor, wherein the transmission delay indication information in the first BFD message received by the transceiver includes the second status indication information, the second status indication information being used to instruct the network element node on the link under test to start measuring the maximum message dwell time after receiving the first BFD message, and the transmission delay indication information also includes the maximum message dwell time of multiple network element nodes on the link under test receiving the first BFD message and the node information of the corresponding network element nodes, the processor is used to: Determine the first dwell time of the first BFD message at the first network element node; The first dwell time is compared with the maximum dwell time of the message. When the first dwell time is greater than the maximum dwell time of the message, the first BFD message is forwarded to the second network element node. In the transmission delay indication information of the forwarded first BFD message, the maximum dwell time of the message is replaced with the first dwell time, and the node information corresponding to the maximum dwell time of the message is replaced with the node information of the first network element node.
28. The network element node according to claim 24, characterized in that, The transmission delay indication information is recorded in the first BFD message through the TLV extended field.
29. A link detection device, characterized in that, Performed by a first network device, the apparatus includes: The first message receiving module is used to receive a first bidirectional forwarding detection (BFD) message sent by the second network device on the link to be detected; wherein the first BFD message includes transmission delay indication information; The determination module is used to determine whether the link to be detected needs service optimization based on the transmission delay indication information. The first message sending module is used to send a second BFD message to the second network device; wherein, when it is determined that the link to be detected needs to be optimized for service, the second BFD message includes a service optimization instruction; The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
30. A link detection device, characterized in that, Performed by a second network device, the apparatus includes: The second message sending module is used to send a first bidirectional forwarding detection (BFD) message to the first network device through multiple network element nodes on the link to be detected; wherein, the first BFD message includes transmission delay indication information; the transmission delay indication information is used by the first network device to determine whether the link to be detected needs to be optimized for service, and when it is determined that service optimization is needed, the first network device includes a service optimization indication in the second BFD message sent to the second network device. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
31. A link detection device, characterized in that, Executed by the first network element node, the device includes: The second message receiving module is used to receive a first bidirectional forwarding detection (BFD) message transmitted on the link to be detected; wherein the first BFD message includes transmission delay indication information. The third message sending module is used to forward the first BFD message to the second network element node, wherein the forwarded first BFD message includes the transmission delay indication information; the transmission delay indication information is used by the first network device on the link under test to determine whether the link under test needs to be optimized for services, and when it is determined that service optimization needs to be optimized for services, the second BFD message sent to the link under test includes the service optimization indication. The transmission delay indication information includes at least one of the following: First status indication information; the first status indication information is used to indicate whether the network element node on the link to be detected starts dwell time measurement after receiving the first BFD message; The second status indication information is used to indicate whether the network element node on the link to be detected starts the maximum message dwell time measurement after receiving the first BFD message. The maximum dwell time of the first BFD message received by multiple network element nodes on the link to be detected and the node information of the corresponding network element nodes; The service optimization instructions include at least one of the following: Switch service priorities; Switch business priority direction; Switch queue priorities; Switch queue priority direction; Switch link priority; Trigger a link disconnection notification.
32. A network device, characterized in that, include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the link detection method as described in any one of claims 1 to 5, or the link detection method as described in any one of claims 6 to 9, or the link detection method as described in any one of claims 10 to 14.
33. A readable storage medium, characterized in that, The readable storage medium stores a program that, when executed by a processor, implements the steps of the link detection method as described in any one of claims 1 to 5, or the steps of the link detection method as described in any one of claims 6 to 9, or the steps of the link detection method as described in any one of claims 10 to 14.
Citation Information
Patent Citations
Periodic line quality detecting method and device
CN101247288A
BFD link detection and evaluation system and method based on SD-WAN scene
CN108173718A