CN112671647A - Method and equipment for establishing path detection session - Google Patents

Method and equipment for establishing path detection session Download PDF

Info

Publication number
CN112671647A
CN112671647A CN202011350328.8A CN202011350328A CN112671647A CN 112671647 A CN112671647 A CN 112671647A CN 202011350328 A CN202011350328 A CN 202011350328A CN 112671647 A CN112671647 A CN 112671647A
Authority
CN
China
Prior art keywords
session
bidirectional forwarding
remote identifier
forwarding detection
seamless bidirectional
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
CN202011350328.8A
Other languages
Chinese (zh)
Other versions
CN112671647B (en
Inventor
郭振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202011350328.8A priority Critical patent/CN112671647B/en
Publication of CN112671647A publication Critical patent/CN112671647A/en
Application granted granted Critical
Publication of CN112671647B publication Critical patent/CN112671647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a method and equipment for establishing a path detection session, wherein the method comprises the following steps: searching whether the network address field of the remote identifier has an effective route; if yes, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session as an initial state; sending a control message of the seamless bidirectional forwarding detection session according to the effective route; the control message carries a remote identifier so that the response end determines that the remote identifier is a locally configured identifier and sends a response message; receiving a response message with a remote identifier from a response end; and setting the seamless bidirectional forwarding detection session as a working state, and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.

Description

Method and equipment for establishing path detection session
Technical Field
The present application relates to communications technologies, and in particular, to a method and a device for establishing a path detection session.
Background
The SBFD (Seamless BFD) is a unidirectional fault detection mechanism, simplifies a state machine of the BFD (the SBFD only supports two states of UP and DOWN), shortens session negotiation time, and has a detection speed faster than that of the BFD. SBFD is applicable where only one end needs to perform link state detection.
The roles of the nodes in the SBFD session are divided into an Initiator (Initiator) and a responder (Reflector). The SBFD initiator is responsible for maintaining the state of the SBFD session and periodically sending an SBFD control message. The initiating terminal periodically sends an SBFD control message to a Reflector, and the response terminal checks whether a remote identifier carried by the received SBFD control message is consistent with a locally specified identifier; if the SBFD control messages are consistent, the response end sends an SBFD response message to the initiating end, and if the SBFD response messages are inconsistent, the response end discards the received SBFD control messages.
One node can be used as an Initiator initiating end of different SBFD sessions, so that each remote identifier needs to be set on the initiating end according to the identifier of each responding end, and a network address needs to be statically configured for each remote identifier to establish an SBFD session, which results in a large number of command lines to manually specify the network address corresponding to each remote identifier, and thus the efficiency is low.
Disclosure of Invention
The present application aims to provide a method and a device for establishing a path detection session, which automatically establishes a seamless bidirectional forwarding detection session for a response end
To achieve the above object, the present application provides a method for establishing a path detection session, which includes: searching whether the network address field of the remote identifier has an effective route; if yes, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session as an initial state; sending a control message of the seamless bidirectional forwarding detection session according to the effective route; the control message carries a remote identifier so that the response end determines the identifier locally configured by the remote identifier and sends a response message; receiving a response message with a remote identifier from a response end; and setting the seamless bidirectional forwarding detection session as a working state, and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.
To achieve the above object, the present application further provides an apparatus for establishing a path detection session, including: the session establishing module is used for searching whether the network address field of the remote identifier has an effective route; if yes, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session as an initial state; a sending module, configured to send a control packet of the seamless bidirectional forwarding detection session according to the effective route; wherein the control message carries the remote identifier; a receiving module, configured to receive a response packet with the remote identifier; and the session maintenance module is used for setting the seamless bidirectional forwarding detection session to be in a working state and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.
The method and the device have the advantages that the effective route is searched, the SBFD session is automatically established for the remote identifier, the command line does not need to be manually set one by one for the remote identifier, and the efficiency is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for establishing a path detection session provided in the present application;
fig. 2 is a flowchart of an embodiment of a method for maintaining a path detection session according to the present application;
fig. 3 is a schematic diagram of an embodiment of a device for establishing a path detection session according to the present application.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
Fig. 1 is a flowchart illustrating an embodiment of a method for establishing a path detection session according to the present application, where the method includes:
step 101, searching for an effective route of a network address field of a remote identifier;
and the initiating terminal equipment searches a label switching path routing table according to the configured network address prefix or the network address pool of the remote identifier.
And when the initiating terminal does not find the effective route, the seamless bidirectional forwarding detection session is not established for the remote identifier any more.
Step 102, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session to an initial state.
And 103, sending the SBFD control message carrying the remote identifier according to the effective route.
The initiating end sends the SBFD control message carrying the remote identifier so that the responding end checks according to the remote identifier carried by the SBFD control message, determines that the remote identifier carried by the received SBFD control message is consistent with the locally configured identifier, and sends the SBFD response message carrying the remote identifier.
Step 104, receiving a response message with a remote identifier from the response end.
And 105, setting the seamless bidirectional forwarding detection session as a working state, and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.
The method shown in fig. 1 has the beneficial effects that the SBFD session is automatically established for the remote identifier by searching for the valid route, without manually setting command lines one by one for the remote identifier, thereby improving the efficiency.
Fig. 2 is a flowchart illustrating an embodiment of a method for maintaining a path detection session according to the present application; the method comprises the following steps:
step 201, determining that the effective route detection period arrives;
step 202, detecting whether the effective route is effective; if yes, go to step 203; if not, go to step 204.
Step 203, maintaining a seamless bidirectional forwarding detection session;
step 204, the seamless bidirectional forwarding detection session is deleted.
Fig. 3 is a schematic diagram illustrating an embodiment of the apparatus for establishing a path detection session according to the present application, where the apparatus 300 includes: a receiving module 301, a sending module 302, a session establishing module 303 and a session maintaining module 304.
A session establishing module 303, configured to find whether a network address segment of the remote identifier has an effective route; if yes, establishing seamless bidirectional forwarding detection session for the remote identifier and setting the session to be in an initial state.
A sending module 302, configured to send a control packet of a seamless bidirectional forwarding detection session according to an effective route; wherein the control message carries a remote identifier.
The receiving module 301 is configured to receive a response packet with a remote identifier.
The session maintenance module 304 is configured to set the seamless bidirectional forwarding detection session to a working state, and send a seamless bidirectional forwarding detection packet of the seamless bidirectional forwarding detection session according to the effective route.
The session establishment module 303 is further configured to not establish a seamless bidirectional forwarding detection session if no valid route for the network address segment of the remote identifier is found.
The session establishing module 303 is further configured to determine that an effective route detection period arrives; detecting whether the effective route is effective; if yes, maintaining a seamless bidirectional forwarding detection session; and if not, deleting the seamless bidirectional forwarding detection session.
The session establishment module 303 is configured to look up a label switched path routing table according to the network address prefix of the remote identifier or the specified network address pool.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method of establishing a path detection session, the method comprising:
searching whether the network address field of the remote identifier has an effective route;
if yes, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session as an initial state;
sending a control message of the seamless bidirectional forwarding detection session according to the effective route; the control message carries the remote identifier so that the response end determines that the remote identifier is a locally configured identifier and sends a response message;
receiving a response message with the remote identifier from the response end;
and setting the seamless bidirectional forwarding detection session to be in a working state, and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.
2. The method of claim 1, further comprising:
if the valid route of the network address segment of the remote identifier is not found, the seamless bidirectional forwarding detection session is not established.
3. The method of claim 1, further comprising:
determining that an effective route detection period arrives;
detecting whether the valid route is valid;
if yes, maintaining the seamless bidirectional forwarding detection session;
and if not, deleting the seamless bidirectional forwarding detection session.
4. The method of claim 1, wherein finding whether the network address segment of the remote identifier has a valid route comprises: and searching a label switching path routing table according to the network address prefix of the remote identifier.
5. The method of claim 1, wherein finding whether the network address segment of the remote identifier has a valid route comprises: and searching a label switching path routing table according to the designated network address pool of the remote identifier.
6. An apparatus for establishing a path detection session, the apparatus comprising:
the session establishing module is used for searching whether the network address field of the remote identifier has an effective route; if yes, establishing a seamless bidirectional forwarding detection session for the remote identifier and setting the session as an initial state;
a sending module, configured to send a control packet of the seamless bidirectional forwarding detection session according to the effective route; wherein the control message carries the remote identifier;
a receiving module, configured to receive a response packet with the remote identifier;
and the session maintenance module is used for setting the seamless bidirectional forwarding detection session to be in a working state and sending a seamless bidirectional forwarding detection message of the seamless bidirectional forwarding detection session according to the effective route.
7. The device of claim 6, wherein the session establishment module is further configured to not establish a seamless bidirectional forwarding detection session if a valid route for the network address segment of the remote identifier is not found.
8. The apparatus of claim 6, wherein the session establishment module is further configured to determine that an effective route detection period arrives; detecting whether the valid route is valid; if yes, maintaining the seamless bidirectional forwarding detection session; and if not, deleting the seamless bidirectional forwarding detection session.
9. The device of claim 6, wherein the session establishment module is configured to lookup a label switched path routing table according to a network address prefix of the remote identifier.
10. The apparatus of claim 6, wherein the session establishment module is further configured to look up a label switched path routing table based on a specified network address pool of the remote identifier.
CN202011350328.8A 2020-11-26 2020-11-26 Method and equipment for establishing path detection session Active CN112671647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011350328.8A CN112671647B (en) 2020-11-26 2020-11-26 Method and equipment for establishing path detection session

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011350328.8A CN112671647B (en) 2020-11-26 2020-11-26 Method and equipment for establishing path detection session

Publications (2)

Publication Number Publication Date
CN112671647A true CN112671647A (en) 2021-04-16
CN112671647B CN112671647B (en) 2022-07-12

Family

ID=75403869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011350328.8A Active CN112671647B (en) 2020-11-26 2020-11-26 Method and equipment for establishing path detection session

Country Status (1)

Country Link
CN (1) CN112671647B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022143874A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Method for detecting state of bgp session, apparatus and network devices

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
US9497107B1 (en) * 2013-06-06 2016-11-15 Cisco Technology, Inc. Seamless path monitoring and rapid fault isolation using bidirectional forwarding detection in a network environment
CN106464579A (en) * 2014-06-20 2017-02-22 谷歌公司 System and method for live migration of a virtualized networking stack
US20190222500A1 (en) * 2018-01-12 2019-07-18 Cisco Technology, Inc. Dataplane-based seamless bidirectional forwarding detection monitoring for network entities
US20190238448A1 (en) * 2018-01-26 2019-08-01 Cisco Technology, Inc. Seamless bidirectional forwarding detection discriminator based return path determination
EP3565371A1 (en) * 2017-07-20 2019-11-06 Huawei International Pte. Ltd. Session processing method and device
CN110460814A (en) * 2019-08-12 2019-11-15 上海秒针网络科技有限公司 Indicate the sending method and device, storage medium, electronic device of information
CN111917643A (en) * 2020-07-17 2020-11-10 中盈优创资讯科技有限公司 Seamless bidirectional forwarding detection method and device for segmented routing tunnel

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
US9497107B1 (en) * 2013-06-06 2016-11-15 Cisco Technology, Inc. Seamless path monitoring and rapid fault isolation using bidirectional forwarding detection in a network environment
CN106464579A (en) * 2014-06-20 2017-02-22 谷歌公司 System and method for live migration of a virtualized networking stack
EP3565371A1 (en) * 2017-07-20 2019-11-06 Huawei International Pte. Ltd. Session processing method and device
US20190222500A1 (en) * 2018-01-12 2019-07-18 Cisco Technology, Inc. Dataplane-based seamless bidirectional forwarding detection monitoring for network entities
US20190238448A1 (en) * 2018-01-26 2019-08-01 Cisco Technology, Inc. Seamless bidirectional forwarding detection discriminator based return path determination
CN110460814A (en) * 2019-08-12 2019-11-15 上海秒针网络科技有限公司 Indicate the sending method and device, storage medium, electronic device of information
CN111917643A (en) * 2020-07-17 2020-11-10 中盈优创资讯科技有限公司 Seamless bidirectional forwarding detection method and device for segmented routing tunnel

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓嘉等: "基于多核处理器BFD协议的设计与实现", 《电子设计工程》, no. 12, 20 June 2016 (2016-06-20) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022143874A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Method for detecting state of bgp session, apparatus and network devices

Also Published As

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

Similar Documents

Publication Publication Date Title
EP1718014A1 (en) A route switching method and a network node device
US8331222B2 (en) Link fault handling method and data forwarding apparatus
CN104113459A (en) Method for smoothly migrating virtual machine in Ethernet virtual interconnection (EVI) network, and device for smoothly migrating virtual machine in EVI network
US20130083647A1 (en) Method and apparatus for recovering unicast traffic during ethernet ring failover
CN105915400A (en) Data stream switching method and system
CN102217360A (en) Method and device for processing failures of mobility management device in idle mode signaling reduction activated scene
KR20050114654A (en) Radio ad hoc communication system, terminal, processing method in the terminal, and program causing the terminal to execute the method
CN101772114A (en) Method, system and device for realizing processing of paging
CN105338560B (en) Gateway disaster recovery method, equipment and system
CN108243123A (en) Processing method, device, controller and the interchanger of broadcasting packet
CN102255757A (en) Link switching method and device
CN112671647B (en) Method and equipment for establishing path detection session
KR101641096B1 (en) Apparatus and method for managementing path between nodes in mobile communication system
CN108307443B (en) Method for controlling service of light connection user equipment
CN105634952A (en) Fast notification method and apparatus for LSP message
CN102045233A (en) Method and device for controlling message forwarding in network communication
CN106465094A (en) Service disaster recovery method, related device, and communication system
CN113645312A (en) Method and device for protecting sub-ring network link based on ERPS protocol
CN104735000A (en) OpenFlow signaling control method and device
CN103401780A (en) Method and equipment for building routing by linking RIP (routing information protocol) with BFD (bidirectional forwarding detection)
CN107786436B (en) VPN network and protection switching method
US8755319B2 (en) Host route convergence
EP2573977A1 (en) Subnet protection method and device for transport multi-protocol label switching (tmpls) network
CN106878173B (en) Route sending method and device
CN101977141A (en) MPLS-TP-based multicast protection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230616

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right