CN110535712B - BFD parameter setting method and device and electronic equipment - Google Patents

BFD parameter setting method and device and electronic equipment Download PDF

Info

Publication number
CN110535712B
CN110535712B CN201910888061.9A CN201910888061A CN110535712B CN 110535712 B CN110535712 B CN 110535712B CN 201910888061 A CN201910888061 A CN 201910888061A CN 110535712 B CN110535712 B CN 110535712B
Authority
CN
China
Prior art keywords
bfd
receiving
time interval
messages
state
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.)
Active
Application number
CN201910888061.9A
Other languages
Chinese (zh)
Other versions
CN110535712A (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201910888061.9A priority Critical patent/CN110535712B/en
Publication of CN110535712A publication Critical patent/CN110535712A/en
Application granted granted Critical
Publication of CN110535712B publication Critical patent/CN110535712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Abstract

The application provides a BFD parameter setting method and device, electronic equipment and a machine-readable storage medium. Receiving a BFD message from a BFD sending end, and determining a BFD session state corresponding to the BFD message; determining a statistical time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state; and setting the BFD parameters of the network equipment based on the statistical time interval, thereby realizing the timely adjustment of the BFD parameters and improving the detection sensitivity of the BFD.

Description

BFD parameter setting method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a BFD parameter setting method and apparatus, an electronic device, and a machine-readable storage medium.
Background
BFD (Bidirectional Forwarding Detection) is a network protocol for detecting whether a link between two Forwarding points is faulty, and can provide millisecond-level link rapid Detection.
When the method is realized, a session is established on two network devices based on BFD, and the session is used for detecting whether a bidirectional forwarding path between the network devices is reliable or not, so that the service is provided for upper-layer application. The BFD does not have a neighbor discovery mechanism, but the upper layer application corresponding to the BFD executes notification of neighbor information so as to establish a BFD session; after the BFD session is established, the network equipment can periodically and quickly send BFD messages, if the response messages of the BFD messages are not received in the detection time, the bidirectional forwarding path is considered to have a fault, and upper-layer applications corresponding to the BFD are informed to carry out corresponding processing. For example: BFD can realize rapid convergence of routing by linking with upper layer routing protocol, and ensure the continuity of routing service.
Disclosure of Invention
The application provides a BFD parameter setting method, which is applied to network equipment in a BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network equipment is a BFD receiving end, the method comprises the following steps:
receiving a BFD message from a BFD sending end, and determining a BFD session state corresponding to the BFD message;
determining a statistical time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state;
and setting BFD parameters of the network equipment based on the statistical time interval.
Optionally, the determining a statistical time interval of a plurality of BFD packets corresponding to the BFD session based on the BFD session state includes:
monitoring whether the BFD session state is an UP state; if the BFD session state is continuously in an UP state, continuously receiving a plurality of BFD messages from the BFD transmitting end;
determining a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages;
and calculating to obtain an average value of the plurality of time intervals, and taking the average value as the statistical time interval.
Optionally, the network device presets BFD receiving parameters, and the setting of the BFD parameters of the network device based on the statistical time interval includes:
checking whether the statistical time interval is greater than a preset threshold value compared with the preset BFD receiving parameter; and if so, updating the preset BFD receiving parameter based on the statistical time interval.
Optionally, the method further includes:
recording an exception log indicating the BFD receiving parameters;
sending an alarm notice corresponding to the BFD parameter abnormal log to a user; to enable further user adjustment.
The application also provides a BFD parameter setting device, which is applied to network equipment in the BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network device is a BFD receiving end, the apparatus includes:
the receiving module is used for receiving a BFD message from a BFD sending end and determining a BFD session state corresponding to the BFD message;
the counting module is used for determining the counting time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state;
and the setting module is used for setting the BFD parameter of the network equipment based on the statistical time interval.
Optionally, the statistical module further:
monitoring whether the BFD session state is an UP state; if the BFD session state is continuously in an UP state, continuously receiving a plurality of BFD messages from the BFD transmitting end;
determining a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages;
and calculating to obtain an average value of the plurality of time intervals, and taking the average value as the statistical time interval.
Optionally, the setting module further:
checking whether the statistical time interval is greater than a preset threshold value compared with the preset BFD receiving parameter; and if so, updating the preset BFD receiving parameter based on the statistical time interval.
Optionally, the method further includes:
the alarm module records an abnormal log indicating the BFD receiving parameters;
the alarm module further sends an alarm notice corresponding to the BFD parameter abnormal log to a user; to enable further user adjustment.
The application also provides an electronic device, which comprises a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are mutually connected through the bus;
the memory stores machine-readable instructions, and the processor executes the method by calling the machine-readable instructions.
The present application also provides a machine-readable storage medium having stored thereon machine-readable instructions which, when invoked and executed by a processor, implement the above-described method.
Through the embodiment, the BFD parameters are set based on the statistic time interval of the plurality of BFD messages corresponding to the BFD session, so that the BFD parameters are timely adjusted, and the BFD detection sensitivity is improved.
Drawings
Fig. 1 is a schematic diagram of a BFD networking provided by an exemplary embodiment;
fig. 2 is a flowchart of a BFD parameter setting method provided by an exemplary embodiment;
fig. 3 is a diagram of a BFD session establishment procedure provided by an exemplary embodiment;
fig. 4 is a block diagram of a BFD parameter setting apparatus provided by an exemplary embodiment;
fig. 5 is a hardware block diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to make those skilled in the art better understand the technical solution in the embodiment of the present application, a brief description will be given below on the related technology of setting the BFD parameter related to the embodiment of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of a BFD networking according to an embodiment of the present disclosure.
The BFD networking shown in fig. 1 includes: network device RT1, network device RT 2; among them, RT1 may serve as a BFD transmitting end, and RT2 may serve as a BFD receiving end. Of course, RT2 may also serve as a BFD transmitting end, and RT2 may serve as a BFD receiving end.
In some scenarios, based on the BFD networking shown in fig. 1, the detection mechanism of BFD is that two network devices establish a BFD session and periodically send BFD control messages along a path between them, and if one of the two network devices does not receive a BFD message within a predetermined time, it is determined that a failure has occurred on the path. Generally, the detection mechanism time is set to a fixed value and cannot be adjusted in time, so that the BFD detection cannot adapt to network changes.
The application aims to provide a technical scheme for setting BFD parameters based on the statistical time interval of a plurality of BFD messages corresponding to BFD sessions.
When the network configuration is realized, the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network equipment is a BFD receiving end, the network equipment receives a BFD message from a BFD transmitting end and determines a BFD session state corresponding to the BFD message; determining a statistical time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state; and setting the BFD parameter of the network equipment based on the statistical time interval.
In the above scheme, the BFD parameters are set based on the statistic time interval of a plurality of BFD messages corresponding to the BFD session, so that the BFD parameters are timely adjusted, and the BFD detection sensitivity is improved.
The present application is described below with reference to specific embodiments and specific application scenarios.
Referring to fig. 2, fig. 2 is a flowchart of a BFD parameter setting method provided by an embodiment of the present application, where the method is applied to a network device in a BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network equipment is a BFD receiving end, the method executes the following steps:
step 202, receiving a BFD message from a BFD sending end, and determining a BFD session state corresponding to the BFD message.
And 204, determining the statistical time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state.
And step 206, setting the BFD parameter of the network equipment based on the statistic time interval.
In this specification, the network device may include any form of network device that supports a BFD (Bidirectional Forwarding Detection) mechanism.
For example, in practical applications, the network device may include a switch, a router, a firewall, etc. that supports the BFD mechanism.
In this specification, the network device may serve as a BFD sending end or a BFD receiving end.
In this specification, the BFD packet refers to a BFD control packet based on a BFD mechanism. For a specific message format of the BFD control message, please refer to the BFD technical description, which is not described herein again.
In this specification, when the network device is a BFD receiving end, the network device receives a BFD packet from a BFD transmitting end, and determines a BFD session state corresponding to the BFD packet.
For example, referring to fig. 1, when the network device RT1 serves as a BFD receiving end, the network device RT2 serves as a BFD transmitting end corresponding to the BFD receiving end, the network device RT1(BFD receiving end) receives a BFD packet from the network device RT2(BFD transmitting end), and the network device RT1 parses the BFD packet, thereby determining a BFD session state corresponding to the BFD packet.
Referring to fig. 3, fig. 3 is a schematic diagram of a BFD session establishment procedure according to an embodiment of the present disclosure.
As shown in fig. 3, RT1, RT2 are network devices of the established BFD session shown in fig. 1. An RT1 can be used as a BFD transmitting end, and an RT2 can be used as a BFD receiving end; the RT2 may also be used as BFD transmitting end and the RT1 as BFD receiving end.
BFD uses three-way handshake mechanism to establish conversation, BFD sending end will fill local current conversation state in Sta field when sending BFD control message, BFD receiving end will transfer state machine according to Sta field of received BFD control message and local current conversation state to establish conversation.
As shown in fig. 3, RT1 is used as a BFD transmitting end, and RT2 is used as a BFD receiving end; and RT2 is used as BFD sending end, RT1 is used as BFD receiving end, and BFD session establishment process is shown.
As shown in fig. 3, after receiving the notification from the upper layer application, the respective BFD modules of RT1 and RT2 send BFD control messages whose status is DOWN, and the BFD status change of RT2 is the same as RT 1; after receiving the BFD control message whose opposite end state is DOWN, RT2 transfers the local session state from DOWN to INIT (DOWN ═ INIT), and then fills the Sta field in the sent BFD control message to 2, indicating that the session state is INIT. The BFD state change of RT1 is the same as RT 2; after receiving the BFD control packet whose peer state is INIT, RT1 transfers the local session state from INIT to UP (INIT > UP), and then fills Sta field in the sent BFD control packet with 3 to indicate that the session state is UP. The BFD state change of RT2 is the same as RT 1; and finally, the states of both BFD parties are UP, and the BFD session is successfully established and starts to detect the link state.
In this specification, the BFD session refers to a BFD session established between the network device serving as a BFD receiving end and the network device serving as a BFD sending end.
For example, referring to fig. 3, the BFD session may be a BFD session established between the network device RT1 as the BFD receiving end and the network device RT2 as the BFD transmitting end.
For another example, please refer to fig. 3, the BFD session may be a BFD session established between the network device RT2 as the BFD receiving end and the network device RT1 as the BFD transmitting end.
In this specification, the network device determines, based on the BFD session state, a statistical time interval of a plurality of BFD messages corresponding to the BFD session.
In an illustrated embodiment, the network device monitors whether the BFD session state is an UP state.
When the network device RT1 is in the state of UP, the network device RT1 checks whether the state of itself is in the state of UP; and checking that the state of the network device RT2 has changed to the UP state. If both are in the UP state, the BFD session state is indicated as the UP state.
For example, for a BFD session established by the network device RT1 that uses the above-mentioned BFD session as a BFD receiving end and the network device RT2 that uses the BFD transmitting end, please refer to fig. 3, where the state of the network device RT1 itself is changed to the UP state (INIT ═ UP of RT1 shown in fig. 3); the network device RT1 checks whether the state of the network device RT2 is the UP state; after receiving the BFD control message containing Sta: UP sent by the network device RT2, the network device RT1 further parses the BFD control message, thereby obtaining that the network device RT2 has become UP state; the network device RT1 monitors that the above-mentioned BFD session state has been the UP state.
Of course, if the network device RT2 goes DOWN suddenly, the network device RT1 does not receive the BFD control packet containing Sta: UP sent by the network device RT2 within the preset time, and the BFD session state is restored to the initial DOWN state as shown in fig. 3.
In this specification, further, if the BFD session state continues to be the UP state, the network device continues to receive a plurality of BFD messages from the BFD transmitting end.
Continuing the example from the above example, as shown in fig. 3, the network device RT1 monitors that the BFD session status is UP, and the network device RT1 continues to receive BFD control packets from the network device RT2(BFD sender).
It should be noted that the receiving number or the receiving time range of the BFD control messages may be set automatically by the network device or set by a user.
In this specification, further, the network device determines a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages.
For example, the plurality of BFD control messages is 3, and time intervals corresponding to the reception at the network device RT1 between adjacent ones of the plurality of BFD control messages are 1 second, 300 milliseconds, and 500 milliseconds, respectively.
In this specification, the network device further calculates an average value of the plurality of time intervals, and takes the average value as the statistical time interval.
Continuing the example from the above example, the network device RT1 calculates an average value of 300 milliseconds for 100 milliseconds, 300 milliseconds and 500 milliseconds, and takes the average value as the statistical time interval, that is, the statistical time interval is 300 milliseconds.
In this specification, the network device presets a BFD reception parameter;
the preset BFD receiving parameter of the network device RT1 may include Required Min RX Interval (minimum BFD control packet receiving time Interval).
Continuing the example from the above example, in practical applications, the Required Min RX Interval preset by the network device RT1 is 250 ms.
In an embodiment shown, in the process that the network device sets the BFD parameter of the network device based on the statistical time interval, the network device checks whether the statistical time interval exceeds a preset threshold compared with the preset BFD receiving parameter;
when the counting is realized, the network equipment checks whether the comparison between the counting time interval and the preset BFD receiving parameter exceeds a preset threshold value; that is, the statistical time interval may be higher or lower than a preset threshold value compared to the preset BFD receiving parameter.
Continuing the example from the above example, the statistical time interval is 300 milliseconds, and the preset BFD receiving parameter is 250 milliseconds; the preset threshold is 10% of the preset BFD reception parameter, and the network device checks RT1 that the statistical time interval (300 ms) is higher than the preset threshold (10% of the preset BFD reception parameter) compared to the preset BFD reception parameter (250 ms).
Of course, the above statistical time interval may also exist in the case where there is a preset threshold below the above preset BFD reception parameter.
In this specification, further, when the comparison between the statistical time interval and the preset BFD receiving parameter exceeds a preset threshold, the network device updates the preset BFD receiving parameter based on the statistical time interval.
For example, the network device may update the preset BFD receiving parameter to a value of the statistical time interval or a preset proportion value of the statistical time interval.
It should be noted that, based on the above technical solution, compared with the existing solution of the timeout detection multiple of Detect Mult (timeout detection multiple) of BFD, the difference between the BFD parameter setting and the actual situation can be found more timely.
In an illustrated embodiment, after the statistical time interval exceeds a preset threshold compared with the preset BFD receiving parameter, the network device records an exception log indicating the BFD receiving parameter; sending an alarm notice corresponding to the BFD parameter abnormal log to a user; to enable further user adjustment.
For example, after the statistical time interval is greater than a preset threshold compared with the preset BFD receiving parameter, the network device RT1 records an exception log indicating the BFD receiving parameter, and sends an alarm notification corresponding to the exception log of the BFD parameter to the user; to enable the user to further manually adjust (e.g., increase or decrease) the BFD reception parameters described above on network device RT 1.
Of course, after the user obtains the alarm notification corresponding to the BFD parameter exception log, the BFD sending parameters on the network device RT2 may also be further adjusted manually (for example, increased or decreased), for example: the Desired Min TX Interval (minimum BFD control messaging Interval) of RT2 is increased or decreased.
In the technical scheme, the BFD parameters are set based on the statistical time interval of a plurality of BFD messages corresponding to the BFD session, so that the BFD parameters are timely adjusted, and the detection sensitivity of the BFD is improved.
Fig. 4 is a block diagram of a BFD parameter setting apparatus according to an exemplary embodiment of the present application. Corresponding to the embodiment of the method, the application also provides an embodiment of a BFD parameter setting device, and the device is applied to network equipment in BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network device is a BFD receiving end, please refer to a BFD parameter setting apparatus 40 illustrated in fig. 4, the apparatus includes:
a receiving module 401, configured to receive a BFD packet from a BFD sending end, and determine a BFD session state corresponding to the BFD packet;
a counting module 402, configured to determine a counting time interval of a plurality of BFD packets corresponding to the BFD session based on the BFD session state;
a setting module 403, configured to set a BFD parameter of the network device based on the statistical time interval.
In this embodiment, the statistical module 402 further:
monitoring whether the BFD session state is an UP state; if the BFD session state is continuously in an UP state, continuously receiving a plurality of BFD messages from the BFD transmitting end;
determining a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages;
and calculating to obtain an average value of the plurality of time intervals, and taking the average value as the statistical time interval.
In this embodiment, the setting module 403 further:
checking whether the statistical time interval is greater than a preset threshold value compared with the preset BFD receiving parameter; and if so, updating the preset BFD receiving parameter based on the statistical time interval.
In this embodiment, the method further includes:
an alarm module 404, which records an exception log indicating the BFD receiving parameter;
the alarm module 404 further sends an alarm notification corresponding to the BFD parameter exception log to a user; to enable further user adjustment.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The systems, devices, modules or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by an article of manufacture with certain functionality. A typical implementation device is a computer, which may be in the form of a personal computer, laptop, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiment of the BFD parameter setting apparatus of the present application may be applied to the electronic device shown in fig. 5. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is a machine executable instruction formed by reading a corresponding computer program instruction in a machine readable storage medium through a processor of the electronic device where the device is located and then running the computer program instruction. From a hardware aspect, as shown in fig. 5, a hardware structure diagram of an electronic device where a BFD parameter setting apparatus of the present application is located is shown, except for the processor, the communication interface, the bus, and the machine-readable storage medium shown in fig. 5, the electronic device where the apparatus is located in the embodiment may also include other hardware according to the actual function of the electronic device, which is not described again.
Correspondingly, an embodiment of the present application further provides a hardware structure of an electronic device of the apparatus shown in fig. 4, please refer to fig. 5, and fig. 5 is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. The apparatus comprises: a communication interface 501, a processor 502, a machine-readable storage medium 503, and a bus 504; the communication interface 501, the processor 502 and the machine-readable storage medium 503 are configured to communicate with each other via a bus 504. The communication interface 501 is used for performing network communication. The processor 502 may be a Central Processing Unit (CPU), and the processor 502 may execute machine-readable instructions stored in the machine-readable storage medium 503 to implement the methods described above.
The machine-readable storage medium 503 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media. In particular, the machine-readable storage medium 503 may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
To this end, the description of the hardware configuration shown in fig. 5 is completed.
Furthermore, the present application also provides a machine-readable storage medium, such as machine-readable storage medium 503 in fig. 5, including machine-executable instructions, which can be executed by processor 502 in the data processing apparatus to implement the data processing method described above.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
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 (8)

1. A BFD parameter setting method is characterized in that the method is applied to network equipment in a BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network equipment is a BFD receiving end, the network equipment presets BFD receiving parameters, and the method comprises the following steps:
receiving a BFD message from a BFD sending end, and determining a BFD session state corresponding to the BFD message;
determining a statistical time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state;
checking whether the statistical time interval is greater than a preset threshold value compared with the preset BFD receiving parameter; and if so, updating the preset BFD receiving parameter based on the statistical time interval.
2. The method according to claim 1, wherein the determining a statistical time interval for a plurality of BFD messages corresponding to the BFD session based on the BFD session status comprises:
monitoring whether the BFD session state is an UP state; if the BFD session state is continuously in an UP state, continuously receiving a plurality of BFD messages from the BFD transmitting end;
determining a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages;
and calculating to obtain an average value of the plurality of time intervals, and taking the average value as the statistical time interval.
3. The method of claim 1, further comprising:
recording an exception log indicating the BFD reception parameters;
sending an alarm notice corresponding to the BFD parameter abnormal log to a user; to enable further user adjustment.
4. A BFD parameter setting device is characterized in that the device is applied to network equipment in a BFD networking; the BFD networking comprises network equipment serving as a BFD sending end and network equipment serving as a BFD receiving end; when the network device is a BFD receiving end, the network device presets BFD receiving parameters, and the device comprises:
the receiving module is used for receiving a BFD message from a BFD sending end and determining a BFD session state corresponding to the BFD message;
the counting module is used for determining the counting time interval of a plurality of BFD messages corresponding to the BFD session based on the BFD session state;
the setting module is used for checking whether the comparison between the statistical time interval and the preset BFD receiving parameter exceeds a preset threshold value or not; and if so, updating the preset BFD receiving parameter based on the statistical time interval.
5. The apparatus of claim 4, wherein the statistics module is further to:
monitoring whether the BFD session state is an UP state; if the BFD session state is continuously in an UP state, continuously receiving a plurality of BFD messages from the BFD transmitting end;
determining a plurality of corresponding time intervals between adjacent messages in the plurality of BFD messages;
and calculating to obtain an average value of the plurality of time intervals, and taking the average value as the statistical time interval.
6. The apparatus of claim 4, further comprising:
the alarm module records an abnormal log indicating the BFD receiving parameters;
the alarm module further sends an alarm notice corresponding to the BFD parameter abnormal log to a user; to enable further user adjustment.
7. An electronic device is characterized by comprising a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are mutually connected through the bus;
the memory has stored therein machine-readable instructions, the processor executing the method of any of claims 1 to 3 by calling the machine-readable instructions.
8. A machine-readable storage medium having stored thereon machine-readable instructions which, when invoked and executed by a processor, carry out the method of any of claims 1 to 3.
CN201910888061.9A 2019-09-19 2019-09-19 BFD parameter setting method and device and electronic equipment Active CN110535712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910888061.9A CN110535712B (en) 2019-09-19 2019-09-19 BFD parameter setting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910888061.9A CN110535712B (en) 2019-09-19 2019-09-19 BFD parameter setting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110535712A CN110535712A (en) 2019-12-03
CN110535712B true CN110535712B (en) 2022-08-26

Family

ID=68669299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910888061.9A Active CN110535712B (en) 2019-09-19 2019-09-19 BFD parameter setting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110535712B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006836B (en) * 2021-11-01 2023-05-23 迈普通信技术股份有限公司 Timer adjustment method, device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925435A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method for obtaining chain circuit evaluating method
CN101267389A (en) * 2007-03-14 2008-09-17 株式会社日立制作所 Network system, node device and management server
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN104219157A (en) * 2014-08-05 2014-12-17 杭州华三通信技术有限公司 Determining method and determining equipment for counting time intervals
CN109150659A (en) * 2018-08-16 2019-01-04 新华三技术有限公司 A kind of processor and BFD message transmitting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110848B (en) * 2006-07-20 2011-05-04 华为技术有限公司 Method for detecting channel trouble

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925435A (en) * 2005-08-31 2007-03-07 华为技术有限公司 Method for obtaining chain circuit evaluating method
CN101267389A (en) * 2007-03-14 2008-09-17 株式会社日立制作所 Network system, node device and management server
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN104219157A (en) * 2014-08-05 2014-12-17 杭州华三通信技术有限公司 Determining method and determining equipment for counting time intervals
CN109150659A (en) * 2018-08-16 2019-01-04 新华三技术有限公司 A kind of processor and BFD message transmitting method

Also Published As

Publication number Publication date
CN110535712A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
US11533651B2 (en) Transmission control method and device
US20180338278A1 (en) Wi-fi roaming management
CN111372272B (en) Abnormality recovery method and device for wireless bridging network
JP7234402B2 (en) Secondary link monitoring method for vehicle communication, vehicle communication terminal, electronic device and computer program
CN102088372B (en) Heartbeat detecting method, system and equipment
CN106603261B (en) Hot backup method, first main device, standby device and communication system
US20050204214A1 (en) Distributed montoring in a telecommunications system
CN109218126B (en) Method, device and system for monitoring node survival state
CN105071968A (en) Method and device for repairing hidden failures of service plane and control plane of communication device
CN107078920B (en) Cross-layer link failure warning
CN110784339B (en) LACP message overtime fault detection method and device, and electronic equipment
CN110535712B (en) BFD parameter setting method and device and electronic equipment
CN111884875A (en) Offline device determination method and device
CN111030877A (en) Main/standby equipment switching method and device
CN115002238A (en) Traffic transmission method, device, equipment and storage medium
EP2874349B1 (en) Communication path processing method and apparatus
CN111490859A (en) Switching method and device of ARQ mode
CN112738283B (en) Signaling transmission method, device, equipment and storage medium
EP2774323B1 (en) Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection
EP3264851B1 (en) Data transmission method and device for data service
CN113507431A (en) Message management method, device, equipment and machine readable storage medium
EP2883414A2 (en) Self organizing network event reporting
CN107579896B (en) Internet of things data transmission method based on ring network and storage medium
CN113824595B (en) Link switching control method and device and gateway equipment
CN115514719A (en) Message sending method, device, switch and readable storage medium

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