CN104639433A - Echo message-based multi-hop detection implementation method - Google Patents

Echo message-based multi-hop detection implementation method Download PDF

Info

Publication number
CN104639433A
CN104639433A CN201510005766.3A CN201510005766A CN104639433A CN 104639433 A CN104639433 A CN 104639433A CN 201510005766 A CN201510005766 A CN 201510005766A CN 104639433 A CN104639433 A CN 104639433A
Authority
CN
China
Prior art keywords
echo message
hop
message
router
implementation method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510005766.3A
Other languages
Chinese (zh)
Other versions
CN104639433B (en
Inventor
李明明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201510005766.3A priority Critical patent/CN104639433B/en
Publication of CN104639433A publication Critical patent/CN104639433A/en
Application granted granted Critical
Publication of CN104639433B publication Critical patent/CN104639433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an Echo message-based multi-hop detection implementation method, and relates to the field of BFD (Bidirectional Forwarding Detection) protocol multi-hop detection. Routability is configured between two routers; an Echo message is established by a local router and transmitted to a target router; the packaging format of the Echo message is destination Mac+source Mac+0800+IP (Internet Protocol) layer payload+UDP (User Datagram Protocol) layer payload+BFD payload, wherein a destination IP included in the IP layer payload is a destination router interface IP and a source IP is a local router interface IP; after the Echo message is received by the destination router, the destination IP in the IP layer payload is changed into the local router interface IP, and the source IP is changed into the destination router interface IP to form a reply message to be transmitted to the local router; after the reply message is received by the local router, detection is performed according to the BFD protocol regulations. Multi-hop detection is realized through the Echo message, reply establishment of destination equipment is avoided and a state machine thereof is maintained, and the detection process is simplified.

Description

A kind of multi-hop based on Echo message detects implementation method
Technical field
The present invention relates to BFD agreement multi-hop detection field, be specifically related to a kind of multi-hop based on Echo message and detect implementation method.
Background technology
BFD (Bidirectional Forwarding Detection, two-way converting detects) can detect as early as possible and communication failure between neighbouring device, can take measures in time, require the network equipment can fast detecting be out of order and by flow switch to backup link to accelerate network convergence speed, thus ensure that business proceeds, reduce equipment fault or link failure to the impact of business, the availability improving network, BFD is widely used in communication equipment.
The working method of BFD session is divided into two kinds:
Control message mode: both link ends session is by controlling message interaction monitoring Link State.
Echo message mode: link one end is forwarded by the other end by sending Echo message, realizes the bidirectional test to link.
BFD test mode is divided into two kinds:
Single-hop detects: the detection of BFD single-hop refers to carries out IP connectivity detection to two direct-connected systems, and " single-hop " mentioned here is a jumping of IP.
Multi-hop detects: BFD can detect the free routing between two systems, and a lot of jumping may be crossed in these paths, also may overlap in some part.
Define the single-hop form and multi-hop form that control message in current communication protocol, its UDP (User Datagram Protocol, User Datagram Protocol) port numbers is respectively 3784 and 4784; Define the single-hop form of Echo message, its UDP port number is 3785 simultaneously.Therefore, for the free routing in network between two systems, if want BFD technology to detect, because Echo message does not have multi-hop form, the multi-hop inspection needing BFD to control message realizes, the path starting point so needing detected path to carry and object equipment support transmitting-receiving BFD message simultaneously, and create BFD session and safeguard its state machine, testing process is more loaded down with trivial details.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of multi-hop based on Echo message to detect implementation method, realize multi-hop by Echo message and detect, avoid object equipment to create and reply and safeguard its state machine, simplify testing process.
For reaching above object, the technical scheme that the present invention takes is: a kind of multi-hop based on Echo message detects implementation method, configure route between two routers can reach, local router creates Echo message and sends to object router, the encapsulation format of Echo message is: object Mac+ source Mac+0800+IP layer payload+UDP layer payload+BFD payload, for the purpose of the object IP that IP layer payload comprises, router interface IP, source IP are local router interface IP; After object router receives Echo message, the object IP in IP layer payload is become local router interface IP, source IP becomes object router interface IP, forms reply message and issues local router; After local router receives and replys message, detect according to BFD agreement regulation.
On the basis of technique scheme, in described Echo message 0800 is ethernet ip Protocol Type value.
On the basis of technique scheme, UDP floor payload comprises destination interface number, and destination slogan is 4785.
On the basis of technique scheme, BFD payload comprises minimum transmission frequency field and expects Required Min Rx Interval field, is all the parameters for controlling to detect setting, and is 0 value.
On the basis of technique scheme, described local router and object router belong to two systems respectively, and can be reached by routing configuration multi-hop therebetween.
On the basis of technique scheme, after object router receives Echo message, termination message repeating, after identifying the destination slogan 4785 of UDP layer payload, carry out decapsulation, and it is constant to remain potted form, changes encapsulated content Echo message.
On the basis of technique scheme, after local router receives and replys message, the local Echo message multi-hop session status created becomes UP from down, enters detected state, and the change of detected state is carried out according to BFD agreement regulation.
Beneficial effect of the present invention is: E-Packet because Echo message carries out three layers, Echo message is expanded, multi-hop detects to make it support, make the detection range of Echo message from direct-connected system extension to two systems, the path that can detect expands IP multi-hop to from IP mono-jumping, compared with control message multi-hop, same section of multihop routing is detected, initial plant is only needed to create session maintain sessions state machine, object equipment only does message repeating process, simplify testing process, effectively improve the utilance of object equipment B FD session.
Accompanying drawing explanation
Fig. 1 is that the multi-hop that the present invention is based on Echo message detects implementation method schematic diagram;
Fig. 2 is the encapsulation format schematic diagram of Echo message of the present invention;
Fig. 3 is the encapsulation format schematic diagram of IP layer payload;
Fig. 4 is the encapsulation format schematic diagram of UDP layer payload;
Fig. 5 is the encapsulation format schematic diagram of BFD payload.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The multi-hop that the present invention is based on Echo message detects implementation method, and concrete steps are as follows:
S1. as shown in Figure 1, configure two routers, be divided into local router and object router, local router and object router belong to two systems respectively, and local router interface IP (IP1) and object router interface IP (IP2) can be reached by routing configuration multi-hop therebetween, with the Routing Protocol such as static routing or ospf, i.e. ping IP2 on router-A, can lead to by ping; Ping IP1 on router B, can lead to by ping.
S2. the Echo message multi-hop of local router configuration BFD, and create the session of Echo message multi-hop.The object IP of Echo message multi-hop session is IP2, and source IP is IP1.Echo message, by intermediate equipment coupling routing forwarding message, is sent to object router by local router.As shown in Figure 2, Echo message encapsulation format according to BFD protocol definition is: object Mac (DMac)+source Mac (SMac)+0800+IP layer payload (IP PDU)+UDP layer payload (UDP PDU)+BFD payload (BFD PDU).Wherein, 0800 is ethernet ip Protocol Type value, IP PDU, UDP PDU, BFD PDU are respectively as shown in Fig. 3, Fig. 4, Fig. 5, and the object IP (Destination ip) that IP PDU comprises is IP2, and source IP (Source ip) is IP1; It is 4785 that BFD PDU comprises destination slogan (Destination port); BFD PDU comprises minimum transmission frequency field (Desired Min TX Interval) and expects Required Min Rx Interval field (Required Min RX Interval), all the parameters for controlling to detect setting, for meaningless Echo message, all fill out 0 value, Echo expects that Required Min Rx Interval (Required Min Echo RX Interval) is packet check frequency.
S3. after object router receives Echo message, the object IP comprised due to IP PDU is IP2, termination message repeating, and identifying that BFD PDU comprises destination slogan is after 4785, carries out encapsulated content change to Echo message.Be specially, encapsulation format is constant, and in IP PDU, object IP becomes the IP1 of this Echo message, and source IP becomes the IP2 of this Echo message, is formed and replys message (Echo Reply), by intermediate equipment coupling routing forwarding to local router.
S4. after local router receives described reply message, the local Echo message multi-hop session status created becomes UP from down, enters detected state, detects according to BFD agreement regulation.
The present invention defines BFD PDU, and to comprise destination slogan be 4785, for multi-hop Echo message identification application type, Echo message is encapsulated as local router interface IP (IP1) and object router interface IP (IP2), intermediate equipment walks three layers of forwarding, send on after Echo message arrives object router, object router identification port numbers is after 4785, carries out processing and returning, make Echo message support multi-hop inspection, Echo packet check scope can be expanded.
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (7)

1. the multi-hop based on Echo message detects implementation method, it is characterized in that, configure route between two routers can reach, local router creates Echo message and sends to object router, the encapsulation format of Echo message is: object Mac+ source Mac+0800+IP layer payload+UDP layer payload+BFD payload, for the purpose of the object IP that IP layer payload comprises, router interface IP, source IP are local router interface IP; After object router receives Echo message, the object IP in IP layer payload is become local router interface IP, source IP becomes object router interface IP, forms reply message and issues local router; After local router receives and replys message, detect according to BFD agreement regulation.
2. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: in described Echo message 0800 is ethernet ip Protocol Type value.
3. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: UDP floor payload comprises destination interface number, destination slogan is 4785.
4. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: BFD payload comprises minimum transmission frequency field and expects Required Min Rx Interval field, are all the parameters for controlling to detect setting, and are 0 value.
5. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: described local router and object router belong to two systems respectively, and can be reached by routing configuration multi-hop therebetween.
6. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: after object router receives Echo message, termination message repeating, after identifying the destination slogan 4785 of UDP layer payload, decapsulation is carried out to Echo message, and it is constant to remain potted form, encapsulated content is changed.
7. detect implementation method based on the multi-hop of Echo message as claimed in claim 1, it is characterized in that: after local router receives and replys message, the local Echo message multi-hop session status created becomes UP from down, enters detected state, and the change of detected state is carried out according to BFD agreement regulation.
CN201510005766.3A 2015-01-07 2015-01-07 A kind of multi-hop detection implementation method based on Echo messages Active CN104639433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510005766.3A CN104639433B (en) 2015-01-07 2015-01-07 A kind of multi-hop detection implementation method based on Echo messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510005766.3A CN104639433B (en) 2015-01-07 2015-01-07 A kind of multi-hop detection implementation method based on Echo messages

Publications (2)

Publication Number Publication Date
CN104639433A true CN104639433A (en) 2015-05-20
CN104639433B CN104639433B (en) 2018-09-18

Family

ID=53217769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510005766.3A Active CN104639433B (en) 2015-01-07 2015-01-07 A kind of multi-hop detection implementation method based on Echo messages

Country Status (1)

Country Link
CN (1) CN104639433B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789310A (en) * 2016-12-30 2017-05-31 杭州迪普科技股份有限公司 A kind of fault detection method and device based on BFD
CN107659448A (en) * 2017-09-27 2018-02-02 新华三技术有限公司 A kind of multi-hop detection method and device based on echo messages
CN108156076A (en) * 2017-12-18 2018-06-12 北京特立信电子技术股份有限公司 BFD message structure based on MP L S-TP linear protection, detection method and device
CN108768796A (en) * 2018-08-28 2018-11-06 新华三技术有限公司合肥分公司 Link failure detection method and device
CN112291148A (en) * 2020-10-23 2021-01-29 新华三信息安全技术有限公司 Method for detecting BFD forwarding path quality through BFD ping
CN113872833A (en) * 2021-09-30 2021-12-31 新华三信息安全技术有限公司 Method, system and equipment for detecting path accessibility

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459547A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Label forwarding path failure detection method and system
CN101599948A (en) * 2008-06-06 2009-12-09 华为技术有限公司 Method for sounding echo, device and system
CN102088417A (en) * 2011-03-18 2011-06-08 华为技术有限公司 Method and apparatus for achieving IP (Internet Protocol) message loopback
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor
CN102255804A (en) * 2011-07-06 2011-11-23 北京星网锐捷网络技术有限公司 Message processing method, device and network equipment
CN102769552A (en) * 2012-07-31 2012-11-07 杭州华三通信技术有限公司 Method and apparatus for transmitting BFD (bidirectional forwarding detection) message during LSP (label switched path) detection by BFD

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459547A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Label forwarding path failure detection method and system
CN101599948A (en) * 2008-06-06 2009-12-09 华为技术有限公司 Method for sounding echo, device and system
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor
CN102088417A (en) * 2011-03-18 2011-06-08 华为技术有限公司 Method and apparatus for achieving IP (Internet Protocol) message loopback
CN102255804A (en) * 2011-07-06 2011-11-23 北京星网锐捷网络技术有限公司 Message processing method, device and network equipment
CN102769552A (en) * 2012-07-31 2012-11-07 杭州华三通信技术有限公司 Method and apparatus for transmitting BFD (bidirectional forwarding detection) message during LSP (label switched path) detection by BFD

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
IETF: "《Bidirectional Forwarding Detection (BFD for IPv4 and IPv6 (Single Hop))》", 《RFC5881》 *
IETF: "《Bidirectional Forwarding Detection (BFD) for Multihop Paths》", 《RFC5883》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789310A (en) * 2016-12-30 2017-05-31 杭州迪普科技股份有限公司 A kind of fault detection method and device based on BFD
CN106789310B (en) * 2016-12-30 2019-11-12 杭州迪普科技股份有限公司 A kind of fault detection method and device based on BFD
CN107659448A (en) * 2017-09-27 2018-02-02 新华三技术有限公司 A kind of multi-hop detection method and device based on echo messages
CN108156076A (en) * 2017-12-18 2018-06-12 北京特立信电子技术股份有限公司 BFD message structure based on MP L S-TP linear protection, detection method and device
CN108156076B (en) * 2017-12-18 2021-03-02 北京特立信电子技术股份有限公司 BFD message structure based on MPLS-TP linear protection, detection method and device
CN108768796A (en) * 2018-08-28 2018-11-06 新华三技术有限公司合肥分公司 Link failure detection method and device
CN108768796B (en) * 2018-08-28 2020-08-14 新华三技术有限公司合肥分公司 Link fault detection method and device
CN112291148A (en) * 2020-10-23 2021-01-29 新华三信息安全技术有限公司 Method for detecting BFD forwarding path quality through BFD ping
CN112291148B (en) * 2020-10-23 2022-03-29 新华三信息安全技术有限公司 Method for detecting BFD forwarding path quality through BFD ping
CN113872833A (en) * 2021-09-30 2021-12-31 新华三信息安全技术有限公司 Method, system and equipment for detecting path accessibility
CN113872833B (en) * 2021-09-30 2023-11-07 新华三信息安全技术有限公司 Method, system and equipment for detecting path accessibility

Also Published As

Publication number Publication date
CN104639433B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN104639433A (en) Echo message-based multi-hop detection implementation method
US9497107B1 (en) Seamless path monitoring and rapid fault isolation using bidirectional forwarding detection in a network environment
CN105577413B (en) Operations, Administration and Maintenance OAM message processing method and processing device
US8369335B2 (en) Method and system for extending routing domain to non-routing end stations
US8982710B2 (en) Ethernet operation and maintenance (OAM) with flexible forwarding
CN101459594B (en) BFD packet transmitting method, link failure detection method and apparatus
CN113411260B (en) Method and device for sending data message in IPv6 network
CN105357046A (en) Network information detection method for software defined networking (SDN)
WO2016082588A1 (en) Link connectivity checking method and apparatus
CN104270309A (en) Method for achieving multi-hop BFD under IP RAN equipment
Fiţigău et al. Network performance evaluation for RIP, OSPF and EIGRP routing protocols
WO2015069168A1 (en) A method and system of supporting operator commands in link aggregation group
KR20140146143A (en) Automatic mep provisioning in a link state controlled ethernet network
CN106330727A (en) Method, device and system for establishing link of SDN (Software Defined Network) device
CN104735001A (en) Link discovery method, device and system in software-defined network
CN102355416B (en) Method for establishing route by linking routing information protocol with bidirectional forwarding detection and equipment
WO2015184771A1 (en) Method and node device for operation, administration, and maintenance of service function chaining
CN107342908B (en) Method and device for sending bidirectional forwarding detection message
CN104092790B (en) Base station master-slave communication method and system
CN102457404B (en) Detect the methods, devices and systems of communication path MTU
CN104468286A (en) Method and system for detecting multi-hop link
CN107592259A (en) A kind of flow switch method in VRRP protections scene
CN101331717B (en) Method and system for transmitting data in packet-based network
CN102984011B (en) Link failure positioning method and equipment
CN102769552A (en) Method and apparatus for transmitting BFD (bidirectional forwarding detection) message during LSP (label switched path) detection by BFD

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant