WO2012088843A1 - Procédé et système de détection de transmission bidirectionnelle - Google Patents

Procédé et système de détection de transmission bidirectionnelle Download PDF

Info

Publication number
WO2012088843A1
WO2012088843A1 PCT/CN2011/076007 CN2011076007W WO2012088843A1 WO 2012088843 A1 WO2012088843 A1 WO 2012088843A1 CN 2011076007 W CN2011076007 W CN 2011076007W WO 2012088843 A1 WO2012088843 A1 WO 2012088843A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
network quality
packet
message
sequence number
Prior art date
Application number
PCT/CN2011/076007
Other languages
English (en)
Chinese (zh)
Inventor
周蕙菁
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012088843A1 publication Critical patent/WO2012088843A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the bidirectional forwarding detection (BFD) technology of the present invention specifically relates to a method and system for implementing dual-issue forwarding detection by using a BFD protocol.
  • BFD provides a common low-cost fast fault detection service for various upper-layer control protocols.
  • the upper-layer control protocol can use the services provided by BFD to determine the corresponding operations, such as re-routing. It is called bidirectional because the BFD protocol provides connectivity detection in both directions of the link through the three-way handshake mechanism. BFD can quickly detect the interface and link faults on the forwarding path, the forwarding engine fault of the node, and notify the upper layer protocol of the fault, so that the upper layer protocol can converge quickly.
  • BFD is only used to detect link connectivity. That is, link information obtained through BFD is either connected or disconnected. In some cases, the link usually has a small amount of packet loss, and then a large amount of packet loss, and finally the chain is broken. When there is a small amount of packet loss in the transmission, the current BFD may not be discovered. The service may be affected at this time. However, BFD needs to wait until the packet loss reaches a certain level to detect the link failure.
  • the technical problem to be solved by the present invention is to provide a bidirectional forwarding detection method and system for effectively preventing chain scission.
  • the present invention provides a bidirectional forwarding detection method, which includes:
  • the two-way forwarding detection sends the first detection packet carrying the network quality detection information to the local end; the peer end of the BFD receives the first detection packet, and sends a second detection packet carrying the network quality detection information;
  • the BFD local end receives the second detection packet, and detects network quality according to network quality detection information in the first detection packet and network quality detection information in the second detection packet;
  • the terminal reports the network quality detection result according to the preset reporting condition.
  • the network quality detection information includes a message sequence number, and the method further includes:
  • the BFD local end determines whether to drop packets by comparing the message sequence number in the first detection packet with the message sequence number in the second detection packet.
  • the network quality detection information includes a message sequence number, and the method further includes:
  • the local end of the BFD sends a plurality of first detection messages in sequence, wherein the sequence number of the message is regularly increased or decreased;
  • the BFD local end After receiving the returned second detection packet, the BFD local end compares the packet sequence number in the current received packet with the packet sequence number in the previous received packet, and calculates the number of lost packets.
  • the network quality detection information includes timestamp information.
  • the method further includes: the BFD local end calculating delay or jitter according to the timestamp information and the current timestamp information in the second detection packet.
  • the first detection message and the second detection message use an ECHO message.
  • the present invention also provides a bidirectional forwarding detection system, which includes a bidirectional forwarding detection (BFD) local end and a peer end of the BFD, where:
  • the local end of the BFD includes: a first packet sending and receiving unit, a network quality determining unit, and a reporting unit, where:
  • the first packet sending and receiving unit is configured to: send a first detection message carrying network quality detection information; and receive a second detection message;
  • the network quality determining unit is configured to: detect network quality according to network quality detection information in the first detection packet and network quality detection information in the second detection packet;
  • the reporting unit is configured to: report the network quality detection result when the reporting condition is met; the opposite end of the BFD includes a second packet sending and receiving unit, and the second packet sending and receiving unit is configured to: receive the first detection report And transmitting the second detection report carrying network quality detection information Text.
  • the network quality detection information includes a message sequence number
  • the network quality determining unit is configured to detect the network quality according to the following manner: determining whether the packet is lost by comparing the message sequence number sent by the packet sending and receiving unit with the message sequence number received by the packet sending and receiving unit.
  • the network quality detection information includes a message sequence number
  • the first packet sending and receiving unit is further configured to: send a plurality of first detection messages in sequence, wherein the message sequence number is regularly increased or decreased;
  • the network quality determining unit is configured to detect the network quality according to the following manner: after receiving the returned second detection packet, calculating, by sequentially comparing the message sequence number in the current received message with the message sequence number in the previous received message, The number of lost packets.
  • the network quality detection information includes timestamp information
  • the network quality determining unit is configured to detect the network quality according to the following manner: calculating the delay or jitter according to the timestamp information and the current timestamp information in the second detection message.
  • the first detection message and the second detection message use an ECHO message.
  • the present invention further provides a bidirectional forwarding detection apparatus, including: a first packet transceiving unit, a network quality judging unit, and a reporting unit, wherein:
  • the first packet sending and receiving unit is configured to: send a first detection packet carrying the network quality detection information to the first BFD peer end; and receive the second detection of the network quality detection information returned by the first BFD peer end Message
  • the network quality determining unit is configured to: detect network quality according to network quality detection information in the first detection packet and network quality detection information in the second detection packet;
  • the reporting unit is configured to: report the network quality detection result when the reporting condition is met.
  • the two-way forwarding detection device further includes:
  • a second packet sending and receiving unit configured to: receive a third detection packet that carries the network quality detection information that is sent by the second BFD peer end, and return a fourth detection that carries the network quality detection information to the second BFD peer end Message.
  • the network quality detection information includes a message sequence number
  • the network quality determining unit is configured to detect the network quality according to the following manner: determining whether the packet is lost by comparing the message sequence number sent by the packet sending and receiving unit with the message sequence number received by the packet sending and receiving unit.
  • the network quality detection information includes a message sequence number
  • the first packet sending and receiving unit is further configured to: send a plurality of first detection messages in sequence, wherein the message sequence number is regularly increased or decreased;
  • the network quality determining unit is configured to detect the network quality according to the following manner: after receiving the returned second detection packet, calculating, by sequentially comparing the message sequence number in the current received message with the message sequence number in the previous received message, The number of lost packets.
  • the network quality detection information includes timestamp information
  • the network quality determining unit is configured to detect the network quality according to the following manner: calculating the delay or jitter according to the timestamp information and the current timestamp information in the second detection message.
  • the first detection message and the second detection message use an ECHO message.
  • the bidirectional forwarding detection method and system of the present invention detects network quality, such as packet loss, delay, and jitter, while detecting network switching, and is applied to all systems that need to enable BFD detection links, and the detected network quality. It can be used as a reference for upper-layer services. When the network status is unstable, but BFD has not been broken before the link is effectively prevented, the link will be taken to prevent the link from being interrupted. BRIEF abstract
  • FIG. 1 is a schematic diagram of a bidirectional forwarding detection method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a format of an ECHO packet according to an embodiment of the present invention.
  • Figure 3 is a schematic diagram of an embodiment of implementing bidirectional forwarding detection using ECHO messages. Preferred embodiment of the invention
  • the main idea of the bidirectional forwarding detection method and system of the present invention is that in detecting the continuity of the network When detecting network quality, such as packet loss, delay, jitter, etc., the transmission quality is applied to all needs to be enabled.
  • the detected network quality can be referenced by the upper-layer service. If the network status is unstable, but the BFD has not been broken before the link is effectively prevented, the measures are taken to prevent the link from actually failing. Causes business interruption.
  • the bidirectional forwarding detection method includes step 101-step.
  • Step 101 The BFD local end sends a first detection packet carrying network quality detection information.
  • Step 102 The peer end of the BFD receives the first detection packet, and sends a second detection packet carrying network quality detection information.
  • Step 103 The BFD local end receives the second detection packet, and detects network quality according to the network quality detection information in the first detection packet and the network quality detection information in the second detection packet.
  • Step 104 The BFD local end reports the network quality detection result according to the preset reporting condition.
  • the basis for detecting network quality may be packet sequence number, timestamp information, etc., such as:
  • the network quality detection information includes the packet sequence number, and the BFD local end determines whether the packet is lost by comparing the number of the sent and received packets; or
  • the network quality detection information includes a packet sequence number, and the BFD local end sends a plurality of detection packets in sequence, and the sequence number of the message is regularly incremented or decremented, and the increment and decrement may be a message difference of 1 each.
  • the BFD local end calculates the number of lost packets by comparing the sequence number of the currently received packet with the sequence number of the received packet in the previous received packet; or
  • the network quality detection information includes timestamp information, and the BFD local end calculates delay or jitter according to the timestamp information and the current timestamp information in the received detection message.
  • the system can provide the packet sequence number and/or the timestamp letter, packet, or other information according to the network quality management requirement, and set the different reporting conditions, such as the preset reporting threshold or the periodic reporting, so that the BFD device can
  • the set reporting conditions report the network quality, which in turn enables the BFD device to have the network quality detection function while the network link is detected.
  • the detection packet can be implemented in multiple packet formats.
  • the following is an example of using ECHO packets as an example:
  • ECHO message fields in the present invention are briefly described as follows:
  • Version (V) 2 bit ECHO message version, specified as 1.
  • Packet Length The length of the entire ECHO packet, in bytes.
  • the local discriminator (My Discriminator) is the same as the My Discriminator field in the BFD document. It is used to identify the BFD session that sends ECHO packets.
  • Your Discriminator is the same as the Your Discriminator field in the BFD document. If the peer packet has not been received, the field is filled with 0.
  • NTP timestmp 64 bit, NTP timestamp when ECHO is sent.
  • Absolute timestamp represented by the NTP (Network Time Protocol) format.
  • NTP Network Time Protocol
  • Serial Number Accumulate 1 each time an ECHO message is sent, and use it to detect packet loss and out of order.
  • the initial value of SN is random, which prevents plaintext attacks to a certain extent.
  • the timestamp is continuously monotonically increasing when transmitting, even when no ECHO message is sent. When receiving, as long as the received message sequence number is not lost, it is known that no data loss occurs. And, as long as the time difference between the messages before and after is compared, the time interval for sending the message can be determined. If the system does not support the NTP timestamp, the timestamp can be used to measure the loop delay. The initial timestamp must be chosen at random.
  • the service informs the BFD device to create a session and informs the BFD device of the network quality threshold (including packet loss, delay, and jitter).
  • BFD can detect that the network quality is poor according to the network quality threshold, and a quality parameter exceeds the threshold. Then report the business.
  • the process of creating a session on the BFD device includes: The local end notifies the peer to support the ECHO function in the BFD negotiation; the peer also informs the local end to support the ECHO function; the session negotiation succeeds, the status of both parties is UP, and the ECHO function is enabled.
  • Step 301 A terminal provides a timer function, and the BFD application sets a timing to send an ECHO message. Before sending the first ECHO message, the A end randomly generates an SN, a timestamp, as an initial value, and each subsequent transmission. a message, monotonically increasing;
  • Step 302 The ECHO sending timer expires, constructing and sending an ECHO packet, and recording the sent SN sequence number, NTP time, and timestamp value;
  • the A-side constructs the ECHO packet, and fills in the fields according to the ECHO packet format:
  • the local discriminator and the remote discriminator value are respectively filled in according to the actual values in the session. If the BFD packet of the B-side is not received, the remote authentication is performed. If the A port supports NTP, you need to fill in the NTP timestmp field. If it is not supported, fill in 0; SN takes the current value to be sent, and adds 1 after sending; timestamp is not necessarily absolute time, nor strict unit
  • the rule may be the system tick value, which may be the number of milliseconds after the system is powered on, as long as the A end can recognize and the accuracy is sufficient to calculate the delay and jitter;
  • Step 303 The BFD session receives the ECHO packet and forwards it back to the A end according to the forwarding path.
  • Step 304 The A end receives the ECHO packet sent by the B end, records the timestamp at this time, records the received SN sequence number, calculates the packet loss, delay, and jitter, and reports when the threshold is exceeded.
  • the current sequence number is the same as the sequence number of the first ECHO packet sent. If they are inconsistent, they may be lost packets or out of order. Packet hypothesis calculation: The current message sequence number minus the first ECHO sequence number sent is the number of packet loss; if they are consistent, it means no packet loss;
  • the timestamp and timestamp if the NTP time protocol is enabled, the NTP time is used first to calculate the delay and jitter; otherwise, the timestamp is used to calculate the delay and jitter.
  • the current NTP time (or timpstamp) is subtracted from the NTP time (or tempstamp) difference in the text, and converted to ms. This is the ECHO sent from A, and the B-end forwarding returns the loopback time of the A end. Ignore the B-side forwarding processing time, which can be considered as the network round-trip delay.
  • the obtained packet loss, delay, and jitter are compared with the service setting threshold.
  • the service reporting threshold is exceeded, the current network quality of the service is notified.
  • the invention can detect the link quality in real time through BFD.
  • the network has quality problems, it may not be very serious, there is quantitative network quality data reporting, and each service analyzes the data, and the service senses the network status as early as possible.
  • Intervene to adjust the transmission mode or transmission rate reduce the network burden, avoid network transmission interruption as much as possible, such as determining the corresponding measures according to their own characteristics, ignoring or mitigating the current link burden or switching to the backup link. How the business analyzes the relevant data and what measures are taken is outside the scope of the description of the present specification.
  • the present invention further provides a bidirectional forwarding detection system, where the system includes a BFD local end and a peer end of the BFD, where:
  • the BFD local end includes: a packet sending and receiving unit, a network quality determining unit, and a reporting unit, where the packet sending and receiving unit is configured to: send a first detection message carrying network quality detection information; and receive a second detection message;
  • the network quality determining unit is configured to: detect network quality according to the network quality detection information in the first detection packet and the network quality detection information in the second detection packet;
  • the reporting unit is configured to: report the network quality detection result when the reporting condition is met;
  • the peer end of the BFD includes a second packet sending and receiving unit, and the second packet sending and receiving unit is configured to: receive the first detecting packet; and send the second detecting packet that carries network quality detecting information.
  • the network quality detection information includes a packet sequence number, and the network quality determining unit is Compare the number of sent and received packets to determine whether to drop packets.
  • the network quality detection information includes a packet sequence number, and the packet sending and receiving unit of the BFD local end sends a plurality of detection packets in sequence, and the message sequence number is regularly incremented or decremented, and the network quality determining unit receives After the detected packet is returned, the packet loss number is calculated by comparing the sequence number of the currently received packet with the sequence number of the packet received in the previous packet.
  • the network quality detection information includes timestamp information, and the network quality determining unit calculates delay or jitter according to the timestamp information and the current timestamp information in the received detection message.
  • the detection packet uses an ECHO protocol packet.
  • the method and system of the present invention use the BFD protocol to detect not only the link is disconnected, but also to timely detect and feed back the network quality status to the service, provide service reference to adjust network traffic, and take early measures to prevent service interruption.
  • the bidirectional forwarding detection method and system of the present invention detects network quality, such as packet loss, delay, and jitter, while detecting network switching, and is applied to all systems that need to enable BFD detection links, and the detected network quality. It can be used as a reference for upper-layer services. When the network status is unstable, but BFD has not been broken before the link is effectively prevented, it will prevent the link from being interrupted and cause traffic interruption. It has strong industrial applicability.
  • network quality such as packet loss, delay, and jitter

Landscapes

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

Abstract

La présente invention porte sur un procédé et un système de détection de transmission bidirectionnelle (BFD). Le procédé comprend les opérations suivantes : une extrémité locale BFD envoie un premier message de détection qui contient les informations de détection de qualité de réseau (101); une extrémité opposée BFD reçoit le premier message de détection, et envoie un second message de détection qui contient les informations de détection de qualité de réseau (102); l'extrémité locale BFD reçoit le second message de détection, et détecte la qualité de réseau conformément aux informations de détection de qualité de réseau figurant dans le premier message de détection et aux informations de détection de qualité de réseau figurant dans le second message de détection (103); l'extrémité locale BFD rapporte le résultat de détection de qualité de réseau conformément à des conditions de rapport préréglées (104).
PCT/CN2011/076007 2010-12-29 2011-06-21 Procédé et système de détection de transmission bidirectionnelle WO2012088843A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010612467.3 2010-12-29
CN2010106124673A CN102064981A (zh) 2010-12-29 2010-12-29 双向转发检测方法和系统

Publications (1)

Publication Number Publication Date
WO2012088843A1 true WO2012088843A1 (fr) 2012-07-05

Family

ID=44000092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076007 WO2012088843A1 (fr) 2010-12-29 2011-06-21 Procédé et système de détection de transmission bidirectionnelle

Country Status (2)

Country Link
CN (1) CN102064981A (fr)
WO (1) WO2012088843A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11646956B2 (en) 2019-07-24 2023-05-09 Cisco Technology, Inc. Systems and methods for providing bidirectional forwarding detection with performance routing measurements

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064981A (zh) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 双向转发检测方法和系统
CN103684818A (zh) * 2012-09-07 2014-03-26 中兴通讯股份有限公司 检测网络通道故障的方法及装置
CN103139014B (zh) * 2013-01-28 2016-08-10 深信服网络科技(深圳)有限公司 基于旁路的网络质量评测方法及装置
CN104104644A (zh) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 双向转发检测系统及双向转发检测的检测时间配置方法
US9602374B2 (en) 2014-07-21 2017-03-21 Ciena Corporation Systems and methods for collecting and analyzing data to determine link quality and stability in layer two networks
CN106330579B (zh) * 2015-06-15 2020-04-28 中兴通讯股份有限公司 一种用于ptn设备的丢包统计方法及装置
CN107743228A (zh) * 2017-11-24 2018-02-27 深圳市创维软件有限公司 视频质量检测方法、监测设备及存储介质
CN109981390B (zh) * 2017-12-28 2020-11-24 北京金风科创风电设备有限公司 一种基于opcua报文特征的网络质量判断系统和方法
CN108173718A (zh) * 2018-01-29 2018-06-15 赛特斯信息科技股份有限公司 基于sd-wan场景的bfd链路检测及评估的系统和方法
CN111756588B (zh) * 2019-03-26 2023-01-06 华为技术有限公司 通信链路检测方法及相关装置
CN112787881A (zh) * 2019-11-11 2021-05-11 中兴通讯股份有限公司 通信链路检测方法、通信装置、存储介质
CN111654407B (zh) * 2020-04-14 2022-05-27 新华三信息安全技术有限公司 一种堆叠系统及其双向转发检测方法
CN117881010A (zh) * 2024-03-11 2024-04-12 广东世炬网络科技有限公司 基于多链路传输的数据传输方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925435A (zh) * 2005-08-31 2007-03-07 华为技术有限公司 一种获取链路评价参数的方法
CN101640629A (zh) * 2008-07-29 2010-02-03 华为技术有限公司 一种链路丢包监控的方法和双向转发探测设备
CN101729303A (zh) * 2008-10-25 2010-06-09 华为技术有限公司 测量网络性能参数的方法和装置
CN102064981A (zh) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 双向转发检测方法和系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247288B (zh) * 2008-03-14 2010-08-18 华为技术有限公司 链路质量检测方法和链路质量检测设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925435A (zh) * 2005-08-31 2007-03-07 华为技术有限公司 一种获取链路评价参数的方法
CN101640629A (zh) * 2008-07-29 2010-02-03 华为技术有限公司 一种链路丢包监控的方法和双向转发探测设备
CN101729303A (zh) * 2008-10-25 2010-06-09 华为技术有限公司 测量网络性能参数的方法和装置
CN102064981A (zh) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 双向转发检测方法和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11646956B2 (en) 2019-07-24 2023-05-09 Cisco Technology, Inc. Systems and methods for providing bidirectional forwarding detection with performance routing measurements

Also Published As

Publication number Publication date
CN102064981A (zh) 2011-05-18

Similar Documents

Publication Publication Date Title
WO2012088843A1 (fr) Procédé et système de détection de transmission bidirectionnelle
EP2339784B1 (fr) Procédé et dispositif pour mesurer les paramètres de rendement du réseau
Frost et al. Packet loss and delay measurement for mpls networks
CA2592079C (fr) Procede et systeme de gestion de voies de communication sans fil
EP2720418B1 (fr) Procédé et dispositif de commutation de liaison lacp et de transmission de données
US8576698B2 (en) Connectivity fault management timeout period control
US8867364B2 (en) Method and apparatus for multi-homing path selection of stream control transmission protocol
US9246793B2 (en) Network, network fault recovery method, and node device
JP5867188B2 (ja) 情報処理装置、輻輳制御方法および輻輳制御プログラム
JP5088239B2 (ja) 輻輳制御システム、境界ゲートウェイ装置及びそれらに用いる輻輳制御方法
WO2012167667A1 (fr) Procédé, dispositif et dispositif de nœud de traitement de dégradation de signal
WO2009124499A1 (fr) Procédé de protection, dispositif et système de communication pour transmettre une signalisation
WO2013071993A1 (fr) Technique de routage conditionnel
JP2008109327A (ja) マルチリンクバンドル制御を行なうデータ伝送方法、データ伝送装置、およびデータ伝送システム
WO2012088910A1 (fr) Procédé et système de détection d'échec de connectivité
CN102075390A (zh) 一种传输状态检测方法以及相关装置
CN102487338B (zh) 根据网络抖动调整bfd发送间隔的方法及装置
WO2008095390A1 (fr) Équipement de détection d'incident de ligne en émulation de pseudo-fil et procédé correspondant
JP5352502B2 (ja) パケット通信システム及びパケット通信装置制御方法
KR20130039312A (ko) 공유 메쉬 보호 절체 방법
KR20160131532A (ko) 네트워크 시스템의 서비스 가용성을 최대로 보장하기 위한 적응형 bfd 프로토콜과 그 장치
US7046693B1 (en) Method and system for determining availability in networks
JP2012216964A (ja) クライアント装置、通信システム、生存確認方法、及びプログラム
JP2012199870A (ja) ネットワーク制御装置、通信速度変更方法及びプログラム
CN109039728A (zh) 基于bfd的流量拥塞检测方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11852681

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11852681

Country of ref document: EP

Kind code of ref document: A1