Method and processor for detecting bi-directional forwarding detection session state

A technology of processor and forwarding core, applied in the direction of digital transmission system, electrical components, transmission system, etc., can solve the problem of low efficiency of BFD session state detection

Active Publication Date: 2018-12-18
XINHUASAN INFORMATION TECH CO LTD
View PDF7 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the embodiment of the present application provides a method and a processor for detecting the session state of a bidirectional forwarding path, which solves the technical problem that each BFD session state detection needs to occupy more resources and the BFD session state detection efficiency is not high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and processor for detecting bi-directional forwarding detection session state
  • Method and processor for detecting bi-directional forwarding detection session state
  • Method and processor for detecting bi-directional forwarding detection session state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0091] figure 1 It is a schematic diagram of the structure of the processor provided by the embodiment of the present application. The processor is in the first network device, such as figure 1 As shown, the processor includes: a control core 11 and a forwarding core 12; wherein,

[0092] The control core 11 is configured to obtain a timeout duration agreed upon by the BFD session when a BFD session has been established between the first network device and the second network device, and output the timeout duration to the forwarding core 12;

[0093] In the embodiment of the present application, in the case where the network device has multi-core CPUs, one of the multi-core CPUs is used as the BFD control core to run the protocol stack and maintain the BFD session state. Some other CPUs in the multi-core CPU are used as BFD forwarding cores to detect the sending and receiving of BFD packets.

[0094]In this way, a multi-core CPU is used to form multiple BFD forwarding cores ...

Embodiment 2

[0132] figure 2 It is a schematic flow chart of the method for detecting the state of the bidirectional forwarding path detection session provided by the embodiment of the present application. The method is applied to a first network device, such as figure 2 As shown, the process includes:

[0133] Step 201, when a BFD session has been established between the first network device and the second network device, the first network device obtains the timeout duration agreed upon by the BFD session;

[0134] In this embodiment of the present application, when the first network device detects the BFD session negotiated and established with the second network device, it acquires the timeout period agreed upon by the negotiated BFD session.

[0135] Step 202, the first network device determines the duration of the timer interrupt command corresponding to the BFD session in the virtual linked list according to the timeout duration and the duration of the hardware timer in the first...

Embodiment 3

[0154] image 3 for figure 2 One of the sub-step flowcharts of step 201 shown. like image 3 As shown, the process includes:

[0155] Step 301: When a BFD session has been established between the first network device and the second network device, the BFD control core of the first network device obtains the session information of the BFD session, and constructs the BFD session according to the session information. The session entry of the BFD session, the session entry includes source network equipment information, destination network equipment information and timeout duration;

[0156] In the embodiment of the present application, for the situation where the network device has a multi-core CPU, once the BFD session is established, the format and content of the subsequent periodically sent BFD packets are fixed. Therefore, as an optional embodiment, the maintenance of the BFD session state (BFD session negotiation, UP / DOWN transition processing) and the sending and receiv...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A method and processor for detecting bi-directional forwarding detection session state is provided. The processor comprises a control core and a forwarding core. The control core acquires the timeouttime of the established BFD session agreement between the first network device and the second network device and outputs the timeout time to the forwarding core. According to the timeout time length and the time length of generating the timing interrupt instruction, in a virtual linked list, the forwarding core determines a first timing node carried by a timer corresponding to the BFD session, thevirtual link list structure represents a timing interrupt instruction, and at least one timer is carried on every certain time node of the virtual link list, each timer corresponds to the establishedBFD session one by one, and the time step between adjacent timing nodes is the time length during which the timing interrupt instruction is generated; The forwarding core is also used for detecting the state of the BFD session corresponding to the timer carried on the timing node corresponding to the timing interrupt instruction when the timing interrupt instruction is generated. Therefore, thatefficiency of BFD session state detection can be improved.

Description

technical field [0001] The present application relates to the technical field of communication detection, in particular, to a method and a processor for detecting a bidirectional forwarding path detection session state. Background technique [0002] In order to reduce the impact of network equipment failure on the business of the communication system and improve the reliability of the communication system, the network equipment needs to be able to detect communication failures with adjacent network equipment as soon as possible, so that the communication system can take business switching measures in time to ensure that the business continues . [0003] Bidirectional Forwarding Detection (English: Bidirectional Forwarding Detection, BFD for short) provides a general and standardized medium-independent and protocol-independent fast fault detection mechanism. For each upper-layer protocol, for example, Open Shortest Path First (English: Open Shortest Path First, referred to a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L12/26
CPCH04L41/0631H04L43/0811H04L43/50
Inventor 杨逸
Owner XINHUASAN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products