CN101800682A - Bidirectional forwarding detection (BFD) method and device - Google Patents

Bidirectional forwarding detection (BFD) method and device Download PDF

Info

Publication number
CN101800682A
CN101800682A CN201010140585A CN201010140585A CN101800682A CN 101800682 A CN101800682 A CN 101800682A CN 201010140585 A CN201010140585 A CN 201010140585A CN 201010140585 A CN201010140585 A CN 201010140585A CN 101800682 A CN101800682 A CN 101800682A
Authority
CN
China
Prior art keywords
session
information
detection messages
time
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010140585A
Other languages
Chinese (zh)
Inventor
张涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010140585A priority Critical patent/CN101800682A/en
Publication of CN101800682A publication Critical patent/CN101800682A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a bidirectional forwarding detection (BFD) method which comprises the following steps: configuring session information and feature information, and relating the session information and the feature information; sending and receiving detection messages according to the configuration, and establishing a session; and determining the session state according to the received result of the detection messages. The invention also discloses a BFD device. The method and the device prevent protocol messages the quantity of which is multiple times of the quantity of sessions when a large amount of sessions are established from impacting the CPU of equipment, save a large amount of resources for communication equipment, simplify a state machine for sessions, avoid complex protocol computation, and avoid much inconvenience in the process of BFD connection for each equipment supplier.

Description

A kind of bidirectional forwarding detection (BFD) method and device
Technical field
The present invention relates to the data communication detection range, be meant a kind of bidirectional forwarding detection (BFD) method and device especially.
Background technology
It is a kind of detection messages that sends mutually and receive between two communication equipment of equal value unit that two-way forwarding detects (BFD) technology, whether receive that by judging message that the opposite end sends determines the whether detection technique of fault of detected link in setting-up time, the fast detecting that generally is used for crucial link failure, two-way forward-path to the LA Management Room any type carries out fault detect, comprises direct-connected physical link, virtual circuit, tunnel, multi-hop routed path and one way link etc.
In the prior art, carrying out BFD detects and need set up session at the session two ends, be used for detecting the two-way forward-path at session two ends, BFD need upper layer application send trigger message to a side half-session to set up session, after setting up, session can periodically send bidirectional forward detection report fast, if in detection time, do not receive the BFD message, think that then fault has taken place this two-way forward-path.The foundation of BFD session needs the three-way handshake process of similar TCP link, shake hands after the success, also need protocol massages to consult retransmitting paramater, after session both sides' the parameter negotiation unanimity, just finish whole processes of setting up of BFD session, begin to carry out the transmitting-receiving of periodic normal detection messages.The BFD session set up the mutual of the multiple message of process need, need on CPU, safeguard a session status machine simultaneously, come the state of differentiating sessions, it is the UP state that described session status machine has conversation initial state, session to set up state, and the session off-state is multiple session status compositions such as DOWN state.
Before the notion of carrier class Ethernet proposes, a network communication equipment, i.e. half-session, the key business link that need carry out the BFD detection is less, but after carrier class Ethernet notion proposes, demand is on the increase, and the quantity of key business link reaches thousands of, and a large amount of BFD sessions is set up and needed the protocol interaction message that is several times as much as session number in the process.Because session is set up in the process, message need be handled by CPU, has caused the cpu busy of communication equipment in the long duration, and partial session has had a strong impact on the reliability and stability of equipment proper communication because congestion packet loss causes frequently upheaval of BFD session.
In addition, because the standard that definition BFD session is set up is not very clear and definite for the reciprocal process of protocol massages, cause each supply of equipment producer to set up the understanding that has in the process separately in the BFD session, equipment can't be compatible.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of bidirectional forwarding detection (BFD) method and device, can avoid protocol massages to impact CPU, has saved the communication resource for communication equipment, makes effectively compatibility of equipment.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of bidirectional forwarding detection (BFD) method, comprising:
Configuration session information and characteristic information, and session information is related with characteristic information;
Send and receive detection messages according to configuration and set up session, and determine session status according to the result who receives detection messages.
Wherein, described configuration session information and characteristic information and comprise session information is related with characteristic information: session information is set comprises that session identification, local terminal identification symbol, opposite end identification symbol, message send cycle and time-out time; Be provided with and detect link characteristics information and session information is related with characteristic information between the session two ends.
Wherein, describedly send and receive detection messages according to configuration and set up session and comprise: set up detection messages and send according to configuration information and characteristic information, the recipient receives that detection messages receives detection messages message to the CPU transmission, and CPU is that session is set up with session status set.
Wherein, described result according to the reception detection messages determines that session status comprises: the detection messages that opposite end of the every reception in session two ends sends picks up counting, timing time and time-out time are compared, if timing time is greater than time-out time, then time exceeded message is sent to CPU, CPU is that session disconnects with session status set.
The present invention also provides a kind of two-way forwarding checkout gear, comprising: dispensing unit and Transmit-Receive Unit; Wherein, dispensing unit is used for configuration and correlating sessions information and characteristic information;
Transmit-Receive Unit is used for sending or receive detection messages according to configuration and sets up session; And determine session status according to the result who receives detection messages.
Wherein, described dispensing unit specifically is used for, and session information is set comprises: session identification, local terminal identification symbol, opposite end identification symbol, message send cycle and time-out time; The characteristic information that needs to detect link is set, session information is related with characteristic information.
In the such scheme, described Transmit-Receive Unit is positioned at the session transmitting terminal, specifically is used for setting up session and transmission according to session information and characteristic information; Being positioned at the session receiving terminal, being used to receive a plurality of detection messages of session transmitting terminal, the message that receives detection messages is sent to CPU, is that session is set up by CPU with session status set.
In the such scheme, described Transmit-Receive Unit also is used for, and picks up counting after receiving each detection messages, with timing time relatively with the time-out time in the dispensing unit, if greater than time-out time, time exceeded message is sent to CPU, be that session disconnects by CPU with session status set.
This shows, adopt method of the present invention and device, do not need protocol massages to set up session, do not need negotiation packet to consult retransmitting paramater yet, when having avoided high-volume conversation to set up, the protocol massages that is several times as much as number of sessions impacts CPU, for communication equipment has been saved the communication resource, can make equipment effectively compatible simultaneously; In addition, have only UP state and DOWN state in the session status among the present invention, simplified the session status machine.
Description of drawings
Fig. 1 realizes the method flow schematic diagram that two-way forwarding detects for the present invention;
Fig. 2 forms schematic diagram for the present invention realizes the device that two-way forwarding detects.
Embodiment
Basic thought of the present invention is: configuration session information and characteristic information, and session information is related with characteristic information, and send or receive detection messages according to session information and characteristic information and set up session, determine session status according to the state that receives detection messages.
The present invention is described in detail below in conjunction with specific embodiments and the drawings, and as shown in Figure 1, the present invention realizes the method that two-way forwarding detects, and comprises the steps:
Step 101, the session information at configuration session two ends and the characteristic information that needs to detect link, and correlating sessions information and characteristic information.
The session information of configuration session end comprises session identification, local terminal identification symbol, opposite end identification symbol, message transmission cycle and time-out time are set; Described session identification is the mark of session; Described identification symbol, message send the cycle and time-out time is all set according to the requirement of bidirectional transmission detecting protocol.
For instance, suppose that half-session A is connected by a link with half-session B, the session information of configuration session end A at first, comprise configuration session sign, can be labeled as session 1, local terminal identification symbol is that the identification symbol of half-session A, identification symbol, the message that identification symbol in opposite end is half-session B send period T 1 and time-out time T2; The session information of configuration session end B comprises session identification, is labeled as session 1, and local terminal identification symbol is that the identification symbol of half-session B, identification symbol, the message that identification symbol in opposite end is half-session A send period T 1 and time-out time T2.
The characteristic information that needs to detect link is set at half-session, described characteristic information, can be link address or link tags etc., suppose that the detection link between half-session A and the half-session B is the IP link, configuration of IP link information on half-session A comprises the IP address of interface etc., configuration of IP link information on half-session B, comprise the IP address of interface etc., with the association of session information of same characteristic information.
Step 102 is set up session according to the session information of half-session and the characteristic information transmission and the reception detection messages of detection link;
Session one end is received the trigger message of upper layer application, begin to send detection messages, described detection messages comprises the session information of session transmitting terminal and characteristic information etc., after the session receiving terminal is received a plurality of detection messages of session transmitting terminal continuously, be generally three to five detection messages, the message that receives detection messages is sent to CPU, and CPU is that session is set up with session status set, is UP.So far, session transmitting terminal and session receiving terminal send the cycle according to message and send detection messages to the opposite end, and receive the detection messages that the opposite end sends, and only occur just sending message to CPU when unusual receiving detection messages.
Step 103 is determined session status according to the result who receives detection messages.
Session transmitting terminal or session receiving terminal receive that whenever the detection messages that an opposite end sends picks up counting, and with the time-out time that is provided with relatively, if timing time surpasses time-out time, then send time exceeded message to CPU, CPU is that session disconnects with session status set, is DOWN; Otherwise session status is normal.
The present invention also provides a kind of two-way forwarding checkout gear, comprising: dispensing unit 201, Transmit-Receive Unit 202, and dispensing unit 201 and Transmit-Receive Unit 202 can be positioned at half-session A, also can be positioned at half-session B;
Dispensing unit 201 is used for the session information and the characteristic information of configuration session end, and session information is related with characteristic information;
Transmit-Receive Unit 202 is used for sending or receive detection messages according to the configuration information and the characteristic information of dispensing unit 201; State according to detection messages is determined session status.
Dispensing unit 201 specifically is used to be provided with session information and comprises that session identification, local terminal identification symbol, opposite end identification symbol, message send cycle and time-out time; The characteristic information that needs to detect link is set, session information is related with the characteristic information that needs the detection link; Described need detection link is the detection link between the session two ends.
Transmit-Receive Unit 202 specifically is used for setting up detection messages and sending according to session information and the characteristic information that need to detect link, described detection messages comprise the session transmitting terminal session information, need to detect the characteristic information of link etc.
Transmit-Receive Unit 202 is positioned at the session receiving terminal, specifically is used for receiving a plurality of detection messages continuously, is generally 3 to 5 detection messages, and the message that receives detection messages is sent to CPU, is that session is set up by CPU with session status set, is UP.
Transmit-Receive Unit 202 specifically is used for sending detection messages according to the message transmission cycle to the opposite end, and receives the detection messages that the opposite end sends, do not receive the detection messages of opposite end yet if surpass time-out time, time exceeded message is sent to CPU, is that session disconnects by CPU with session status set, is DOWN.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a bidirectional forwarding detection (BFD) method is characterized in that, this method comprises:
Configuration session information and characteristic information, and session information is related with characteristic information;
Send and receive detection messages according to configuration and set up session, and determine session status according to the result who receives detection messages.
2. method according to claim 1, it is characterized in that described configuration session information and characteristic information also comprise session information is related with characteristic information: session information is set comprises that session identification, local terminal identification symbol, opposite end identification symbol, message send cycle and time-out time; Be provided with and detect link characteristics information and session information is related with characteristic information between the session two ends.
3. method according to claim 2, it is characterized in that, describedly send and receive detection messages according to configuration and set up session and comprise: set up detection messages and send according to configuration information and characteristic information, the recipient receives that detection messages receives detection messages message to the CPU transmission, and CPU is that session is set up with session status set.
4. method according to claim 3, it is characterized in that, described result according to the reception detection messages determines that session status comprises: the detection messages that opposite end of the every reception in session two ends sends picks up counting, timing time and time-out time are compared, if timing time is greater than time-out time, then time exceeded message is sent to CPU, CPU is that session disconnects with session status set.
5. a two-way forwarding checkout gear is characterized in that this device comprises: dispensing unit and Transmit-Receive Unit; Wherein,
Dispensing unit is used for configuration and correlating sessions information and characteristic information;
Transmit-Receive Unit is used for sending or receive detection messages according to configuration and sets up session; And determine session status according to the result who receives detection messages.
6. device according to claim 5 is characterized in that described dispensing unit specifically is used for, and session information is set comprises: session identification, local terminal identification symbol, opposite end identification symbol, message send cycle and time-out time; The characteristic information that needs to detect link is set, session information is related with characteristic information.
7. device according to claim 6 is characterized in that, described Transmit-Receive Unit is positioned at the session transmitting terminal, specifically is used for setting up session and transmission according to session information and characteristic information; Being positioned at the session receiving terminal, being used to receive a plurality of detection messages of session transmitting terminal, the message that receives detection messages is sent to CPU, is that session is set up by CPU with session status set.
8. device according to claim 7, it is characterized in that, described Transmit-Receive Unit also is used for, pick up counting after receiving each detection messages, with timing time relatively with the time-out time in the dispensing unit, if greater than time-out time, time exceeded message is sent to CPU, be that session disconnects by CPU with session status set.
CN201010140585A 2010-03-29 2010-03-29 Bidirectional forwarding detection (BFD) method and device Pending CN101800682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010140585A CN101800682A (en) 2010-03-29 2010-03-29 Bidirectional forwarding detection (BFD) method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010140585A CN101800682A (en) 2010-03-29 2010-03-29 Bidirectional forwarding detection (BFD) method and device

Publications (1)

Publication Number Publication Date
CN101800682A true CN101800682A (en) 2010-08-11

Family

ID=42596186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010140585A Pending CN101800682A (en) 2010-03-29 2010-03-29 Bidirectional forwarding detection (BFD) method and device

Country Status (1)

Country Link
CN (1) CN101800682A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333872A (en) * 2014-10-29 2015-02-04 中国联合网络通信集团有限公司 Method and system for establishing session based on bidirectional forwarding detection technology
CN105227456A (en) * 2015-09-07 2016-01-06 浙江宇视科技有限公司 A kind of aggregated link failures recovers method and the device of transmission
CN109299182A (en) * 2018-11-13 2019-02-01 郑州云海信息技术有限公司 The management method and device of the session connection of database
CN111565132B (en) * 2020-04-24 2021-11-30 烽火通信科技股份有限公司 Overtime detection method and system for bidirectional forwarding detection message

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913457A (en) * 2005-08-10 2007-02-14 华为技术有限公司 Method for fault detection of two-way conversion link
CN101425942A (en) * 2008-12-09 2009-05-06 华为技术有限公司 Method, apparatus and system for bidirectional forwarding detection implementation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913457A (en) * 2005-08-10 2007-02-14 华为技术有限公司 Method for fault detection of two-way conversion link
CN101425942A (en) * 2008-12-09 2009-05-06 华为技术有限公司 Method, apparatus and system for bidirectional forwarding detection implementation

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333872A (en) * 2014-10-29 2015-02-04 中国联合网络通信集团有限公司 Method and system for establishing session based on bidirectional forwarding detection technology
CN105227456A (en) * 2015-09-07 2016-01-06 浙江宇视科技有限公司 A kind of aggregated link failures recovers method and the device of transmission
CN105227456B (en) * 2015-09-07 2019-03-08 浙江宇视科技有限公司 A kind of aggregated link failures restore the method and device of transmission
CN109299182A (en) * 2018-11-13 2019-02-01 郑州云海信息技术有限公司 The management method and device of the session connection of database
CN111565132B (en) * 2020-04-24 2021-11-30 烽火通信科技股份有限公司 Overtime detection method and system for bidirectional forwarding detection message

Similar Documents

Publication Publication Date Title
CN105516080B (en) The processing method of TCP connection, apparatus and system
CN101355466B (en) Method and apparatus for transmitting continuous check information message
CN101729303B (en) Method and device for measuring network performance parameter
CN101136943B (en) System and method for implementing extended Diameter protocol application
CN100579034C (en) Method for reporting equipment information, system and device for obtaining equipment information
CN101808044B (en) Method for multi-home routing of stream control transmission protocol and device
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN101984573A (en) Method and system for distributed realization of LACP standard state machine
CN101924659A (en) Network equipment and method for detecting links of physical ports of same
CN102404145A (en) Method, device and system for detecting multi-protocol label switching ring network
CN102035692A (en) Method and device for detecting quality of link
CN102780593B (en) Based on the method for BFD protocol detection link, device and network processing unit
CN107567107A (en) A kind of method and device for transmitting data
CN102857421B (en) A kind of VLL fault detection method and equipment
CN101800682A (en) Bidirectional forwarding detection (BFD) method and device
CN101729312B (en) Method and system for detecting a link based on ARP protocol
CN102917082B (en) Penetrate information push method and the system of network address translation
CN101399714B (en) Transmission method and device for bidirectionally transceiving and detecting packet
CN101330353B (en) Remote video wireless transmission system
CN102185719A (en) Service link tracking realization method and device
CN101841424A (en) EMS network management system and method based on SOCKS proxy connection
CN101237392B (en) A network failure testing method under asynchronous transmission mode
CN101146050A (en) Frame relaying packet transmission method and device
CN104283716A (en) Data transmission method, equipment and system
CN101800677A (en) Processing device and method of bidirectional forwarding detection (BFD) messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100811