CN109039799A - Link state detection method, device and the network equipment - Google Patents

Link state detection method, device and the network equipment Download PDF

Info

Publication number
CN109039799A
CN109039799A CN201810674725.7A CN201810674725A CN109039799A CN 109039799 A CN109039799 A CN 109039799A CN 201810674725 A CN201810674725 A CN 201810674725A CN 109039799 A CN109039799 A CN 109039799A
Authority
CN
China
Prior art keywords
bfd
state value
bfd session
network equipment
session
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810674725.7A
Other languages
Chinese (zh)
Inventor
李宝轶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810674725.7A priority Critical patent/CN109039799A/en
Publication of CN109039799A publication Critical patent/CN109039799A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Present disclose provides a kind of link state detection method, device and the network equipments, belong to field of communication technology.Link state detection method, device and the network equipment that the disclosure provides, during the network equipment and opposite equip. carry out BFD session, if the state of BFD session is switched to DOWN by UP, the state value for the BFD session that adds up;If the state value reaches first threshold, the processing of the corresponding BFD message of pause BFD session;If the duration of pause meets pause condition subsequent, open the processing of the corresponding BFD message of the BFD session, neighbours are sent up to the number of notice or the unreachable notice of neighbours to reduce BFD session to upper layer Routing Protocol, reach the frequent shake for alleviating upper layer Routing Protocol, saves the purpose of system resource.

Description

Link state detection method, device and the network equipment
Technical field
This disclosure relates to field of communication technology, more particularly, to a kind of link state detection method, device and the network equipment.
Background technique
For the data transmission quality in Logistics networks communication process, the company to the link between two network equipments is needed Logical state is detected, and finds link failure in time, as early as possible switch data forward-path, guarantees being normally carried out for communication.
BFD (Bidirectional Forwarding Detection, two-way converting detection) is a kind of general, standard Change, the unrelated quick fault testing mechanism unrelated with agreement of medium guarantees net for detecting the connection situation of link in network Network equipment can be quickly detected failure present in chain road.
Two network equipments are established after BFD session, and BFD session is in UP state, can be periodically between the network equipment BFD message is sent, and carries out overtime detection.Do not receive what opposite equip. was sent when a certain network equipment is interior when detecting BFD message, then it is assumed that the link between two network equipments breaks down, and DOWN is set by the state of BFD session, in notice Layer Routing Protocol opposite equip. is unreachable, and upper layer Routing Protocol then selects other link to carry out data interaction.
As the link between two network equipments unstable (such as packet loss, Packet Error Rate increase), BFD message may be It is dropped in transmission process.If the network equipment when detecting in do not receive opposite equip. transmission BFD message, by BFD The state of session is switched to DOWN by UP, after the subsequent BFD message for receiving opposite equip. transmission again, starts BFD session again, The reachable notice of opposite equip. is sent to upper layer Routing Protocol.So, BFD session is continually cut between UP and DOWN It changes, BFD session is caused to shake, linkage upper layer Routing Protocol is frequently shaken, and the unnecessary consumption of system resource is caused.
Summary of the invention
It, can be in view of this, the disclosure is designed to provide a kind of link state detection method, device and the network equipment Alleviate the frequent shake of upper layer Routing Protocol, saves system resource.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, being applied to the network equipment, the method packet present disclose provides a kind of link state detection method It includes:
During the network equipment and opposite equip. carry out BFD session, if the state of the BFD session is by UP When being switched to DOWN, the state value for the BFD session that adds up;
If the state value reaches first threshold, suspend the processing of the corresponding BFD message of the BFD session;
If the duration of pause meets pause condition subsequent, the processing of the corresponding BFD message of the BFD session is opened.
Second aspect, present disclose provides a kind of linkage status detection devices, are applied to the network equipment, described device packet It includes:
State monitoring module is used for during the network equipment and opposite equip. carry out BFD session, if described When the state of BFD session is switched to DOWN by UP, the state value for the BFD session that adds up;
Conversation module suspends the corresponding BFD report of the BFD session if reaching first threshold for the state value The processing of text;If the duration of pause meets pause condition subsequent, the processing of the corresponding BFD message of the BFD session is opened.
The third aspect, present disclose provides a kind of network equipments, including processor and the storage being connected to the processor Device;The memory is stored with the machine-executable instruction that can be executed by the processor, and the processor executes the machine Device executable instruction is to realize method described in first aspect.
Fourth aspect, present disclose provides a kind of machine readable storage medium, the machine readable storage medium is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotees the machine-executable instruction The processor is set to realize method described in first aspect.
Above-mentioned link state detection method, device and the network equipment carry out BFD session in the network equipment and opposite equip. In the process, if the state of BFD session is switched to DOWN by UP, the state value for the BFD session that adds up;If the state value reaches To first threshold, suspend the processing of the corresponding BFD message of BFD session;If the duration of pause meets pause condition subsequent, then opens Open the processing of the corresponding BFD message of BFD session, thus reduce BFD session to upper layer Routing Protocol send neighbours up to notice or The number of the unreachable notice of neighbours reaches the frequent shake for alleviating upper layer Routing Protocol, saves the purpose of system resource.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, better embodiment is cited below particularly, and match Appended attached drawing is closed, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of disclosure specific embodiment or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the disclosure, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of application environment schematic diagram for link state detection method that disclosure embodiment provides;
Fig. 2 is a kind of flow chart for link state detection method that disclosure embodiment provides;
The schematic diagram of BFD conversation procedure is established between two network equipments that Fig. 3 provides for disclosure embodiment;
Fig. 4 is the flow chart for another link state detection method that disclosure embodiment provides;
Fig. 5 is the changing rule schematic diagram for the state value that disclosure embodiment provides;
Fig. 6 is the structural block diagram for the linkage status detection device that disclosure embodiment provides;
Fig. 7 is the structural block diagram for the network equipment that disclosure embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of disclosure embodiment clearer, below in conjunction with attached drawing to this public affairs The technical solution opened is clearly and completely described, it is clear that and described embodiment is a part of embodiment of the disclosure, Rather than whole embodiment.Based on the embodiment in the disclosure, those of ordinary skill in the art are not making creation Property labour under the premise of every other embodiment obtained, belong to the disclosure protection range.
The following each embodiments of the disclosure can be applied in network environment as shown in Figure 1.As shown in Figure 1, network is set There are link AB between standby A and network equipment B, and there are link AC, network equipment B and nets between network equipment A and network equipment C There are link BC between network equipment C.Whether each network equipment passes through BFD conversation mechanism and detects mutual link may be used It reaches, such as network equipment A, BFD session can be established with network equipment B and network equipment C respectively.Network equipment A and net Whether the two-way converting path that the BFD session between network equipment B is used to detect link AB breaks down, network equipment A and network Whether break down in the two-way converting path that BFD session between equipment C is used to detect link AC.When network equipment A is detected Link AB failure, and link AC up to when, then the business for being sent to network equipment B can be sent to network equipment C by link AC, The business is sent to by network equipment B by network equipment C again.
It is illustrated by taking the BFD session between network equipment A and network equipment B as an example below, network equipment A is established and net The BFD session of network equipment B passes through the link AB between the interaction detection network equipment A and network equipment B of BFD message.At this point, If network equipment A when detecting in do not receive the network equipment B transmission BFD message, then it is assumed that it is unstable between link AB, The state of the BFD session will be switched to DOWN by UP, the overlying roaduay of notice network equipment A can not by protocol network equipment B It reaches.The overlying roaduay of network equipment A selects other link to carry out data interaction by consultation, for example, can choose link AC.Afterwards The continuous BFD message for receiving network equipment B transmission again, network equipment A start the BFD session between network equipment B again.From And BFD session is caused to shake, linkage upper layer Routing Protocol is frequently shaken, and the unnecessary consumption of system resource is caused.
In order to alleviate the frequent shake of upper layer Routing Protocol, system resource is saved, disclosure embodiment provides one kind Link state detection method, device and the network equipment, the technology can use relevant software or hardware realization, lead to first below Specific embodiment is crossed to describe to link state detection method in detail.
Fig. 2 shows a kind of flow chart for link state detection method that disclosure embodiment provides, this method applications In the network equipment, for example, network equipment A shown in Fig. 1.The network equipment can be but not limited to router, interchanger etc., BFD session can be established between two network equipments interconnected by upper layer Routing Protocol.For example, network equipment A and net It can be established by OSPF (Open Shortest Path First, ospf) agreement between network equipment B BFD session.For network equipment A, network equipment B is opposite equip..Network equipment A is based on ospf protocol and network equipment B After establishing neighborhood, BFD session is established according to the detection parameters of the neighbor parameters such as the destination address of network equipment B and setting. Wherein, detection parameters include that network equipment B sends the interval duration of BFD message and detects whether to receive from network equipment B The parameters such as the detection duration of BFD message.The process that network equipment B configures BFD session is identical as network equipment A, network equipment B Also the BFD session with network equipment A can be established, details are not described herein.Network equipment A and network is discussed in detail below in conjunction with Fig. 3 The process of BFD session is established between equipment B.
As shown in figure 3, network equipment A and network equipment B starts BFD session, respective original state is DOWN, and network is set Standby A sends the BFD message that state is DOWN to network equipment B.Network equipment B receives the BFD message that state is DOWN, local State is set as INIT, and sends the BFD message that state is INIT to network equipment A.The session of the BFD session of network equipment A State change is same as above.Network equipment A receives the BFD message that state is INIT, and local state switches to UP by DOWN.Network is set The session status variation of the BFD session of standby B is same as above.The session status UP of BFD session indicates the success of BFD session establishment.BFD session After being successfully established, BFD message is periodically sent between network equipment A and network equipment B, detects the link failure of link AB.
As shown in Fig. 2, this method comprises the following steps:
Step S202, during the network equipment and opposite equip. carry out BFD session, if the state of BFD session by When UP is switched to DOWN, the state value for the BFD session that adds up.
For example, during network equipment A and network equipment B carries out BFD session, if network equipment A is when detecting In do not receive the BFD message of network equipment B transmission, the state of BFD session is switched to DOWN by UP, notice overlying roaduay by Protocol network equipment B is unreachable, so that overlying roaduay transmits data by protocol switching to other links (such as link AC).Network is set The subsequent BFD message for receiving network equipment B transmission again of standby A, the state of BFD session are switched to UP by DOWN, notice overlying roaduay by Agreement switches back into link AB, repeatedly.
In general, a session identification can be arranged for identifying the BFD session, the network equipment when establishing in BFD session The BFD message that the BFD message and network equipment B that A is sent to network equipment B are sent to network equipment A carries the session mark Know.
In the embodiments of the present disclosure, state value is preset, the state value is corresponding with session identification, for recording BFD meeting The state of words is switched to the number of DOWN by UP, and the initial value of state value can be 0.It is carried out in network equipment A and network equipment B During BFD session, network equipment A detects the state switching scenario of BFD session, when detecting the state of BFD session by UP When being switched to DOWN, the state value for the BFD session that adds up.For example, detecting that the state of BFD session is switched to DOWN by UP every time When, the corresponding state value of the session identification of the BFD session is increased by 1.When the state of BFD session is switched to UP by DOWN, shape State value is constant.
Step S204, if state value reaches first threshold, the processing of the corresponding BFD message of pause BFD session.
When state value is not up to preset first threshold, the process of BFD session is not intervened, BFD session during this Session process can recorde as first state, in the first state, even if the state of BFD session is switched to DOWN, net by UP Network equipment A can continue to negotiate BFD session with network equipment B.Meanwhile in the first state, switched based on BFD session by UP For the number of DOWN, increase above-mentioned state value.When state value reaches preset first threshold, into the second state, suspend BFD The processing of the corresponding BFD message of session.No matter the session process of BFD session is in first state or the second state, corresponding meeting Words mark will not change.The BFD message and network equipment B that network equipment A is sent to network equipment B are set to network The BFD message that standby A is sent carries the session identification.The session identification for the BFD session for needing to suspend can be according to state value Corresponding session identification determines that network equipment A can suspend the corresponding BFD message of the BFD session according to the session identification Processing.I.e. in the second condition, network equipment A stops sending BFD message to network equipment B and refuses to respond network equipment B hair The BFD message sent sends neighbours up to time of notice or the unreachable notice of neighbours to reduce BFD session to upper layer Routing Protocol Number alleviates the frequent shake of upper layer Routing Protocol.
Step S206 opens the place of the corresponding BFD message of BFD session if the duration of pause meets pause condition subsequent Reason.
Wherein, the time span that pause condition subsequent can be pause BFD session reaches setting duration.For example, pause BFD When session, start a timer, monitoring pause duration determines if the corresponding pause duration of current time reaches setting duration Current time meets pause condition subsequent, can restart BFD session according to process shown in Fig. 3, switch back into first state. It switches back into after first state, the BFD message that network equipment A is sent to network equipment B still carries above-mentioned session identification.
In an optional embodiment, state value can be reset according to the period of setting.The period of the setting can be with According to the experience setting in experiment test or actual use, for example, can be set as 10 seconds, also can be set as 1 minute, or Person is set as the arbitrary value within 10 minutes.If state value, which does not rise to, reaches first threshold, explanation within the period of setting Within the period, the state switching scenario of BFD session is not up to preset inhibition level, can be clear by state value according to setting Zero, accumulation state value again.
In another optional embodiment, setting duration can be reached in the duration of pause, it is corresponding to open BFD session When the processing of BFD message, state value is reset, again accumulation state value.It is understood that above two reset state value Mode can be simultaneously using in the same embodiment.
Above-mentioned link state detection method, during the network equipment and opposite equip. carry out BFD session, if BFD When the state of session is switched to DOWN by UP, the state value for the BFD session that adds up;If the state value reaches first threshold, temporarily Stop the processing of the corresponding BFD message of BFD session;After waiting setting duration, it is then turned on the processing of the corresponding BFD message of BFD session, Neighbours are sent up to the number of notice or the unreachable notice of neighbours to reduce BFD session to upper layer Routing Protocol, reach alleviation The frequent shake of upper layer Routing Protocol, saves the purpose of system resource.
In another optional embodiment, the link state detection method that the network equipment executes can also be referring to Fig. 4 Shown in flow chart execute.As shown in figure 4, this method comprises the following steps:
The state value of BFD session is increased setting value when the state of BFD session is switched to DOWN by UP by step S402.
During network equipment A and opposite equip. carry out BFD session, the state of network equipment A detection BFD session is cut Situation is changed, when the state for detecting BFD session is switched to DOWN by UP, by the corresponding state value of the session identification of BFD session Increase setting value.The setting value can be 1 or other numerical value.When the state of BFD session is switched to UP by DOWN, state value is not Become.Meanwhile state value is decayed according to time damped manner.It is reduced over time for example, state value can be set.Shape The decaying of state value can be in the following way: first way is, at interval of the damped cycle of setting, according to the decaying system of setting Number reduces state value;The attenuation coefficient can be 1/2, i.e., state value meets half-life period attenuation law, every by a decaying week Phase, state value halve;The second way is, at interval of the damped cycle of setting, reduces state value according to the attenuation of setting, i.e., The steps reduction of state value;The attenuation can be set as 1.
Step S404, judges whether state value is greater than or equal to preset first threshold;If so, executing step S406; If not, terminating.
Step S406, the processing of the corresponding BFD message of pause BFD session.
When state value is less than preset first threshold, the process of BFD session is not intervened, can continue to assist with opposite equip. Quotient's BFD session.When state value is greater than or equal to preset first threshold, suspended according to the corresponding session identification of state value corresponding BFD session, stop to opposite equip. send BFD message and refuse to respond opposite equip. send BFD message, to reduce BFD Session sends neighbours up to the number of notice or the unreachable notice of neighbours to upper layer Routing Protocol, alleviates the frequency of upper layer Routing Protocol Numerous shake.
Step S408, periodically detects state value.
During the processing of pause BFD message, periodically state value can be detected, such as per second to state value Detection is primary.
Step S410, judges whether state value decays to preset second threshold;If so, executing step S412;If It is no, return to step S408.
Step S412 opens the processing that BFD talks with corresponding BFD message.
Wherein, second threshold is less than first threshold.During the processing of pause BFD message, state value is decayed according to the time Mode decays.If detecting that state value is less than or equal to second threshold, it is determined that the duration of pause meets pause condition subsequent, Corresponding BFD session can be restarted according to process shown in Fig. 3 according to the corresponding session identification of state value.
In order to be more convenient for understanding, Fig. 5 shows the changing rule of state value.As shown in figure 5, at the t0 moment, state value is big In first threshold, the state of BFD session at this time is DOWN, and the network equipment starts to suspend the place of the corresponding BFD message of BFD session Reason stops sending BFD message to opposite equip. and refuses to respond the BFD message that opposite equip. is sent.State value is advised by half-life period Rule decaying decays to second threshold to t1 moment state value, and the network equipment releases the place of the corresponding BFD message of pause BFD session Reason continues to receive and dispatch BFD message, and the state of BFD session at this time switches to UP.If the link of two network equipments is still not at this time Stablizing causes BFD session to be shaken, and state value will start again at increase, and again pause for the corresponding BFD message of BFD session to the t2 moment Processing.
Above-mentioned link state detection method detects BFD during the network equipment and opposite equip. carry out BFD session The state of session increases state value, when state value reaches preset first when the state of BFD session is switched to DOWN by UP When threshold value, the processing of the corresponding BFD message of pause BFD session.Meanwhile state value is voluntarily decayed according to time damped manner, when When state value decays to preset second threshold, the processing of the corresponding BFD message of pause BFD session is released, to reduce BFD meeting It talks about to upper layer Routing Protocol and sends neighbours up to the number of notice or the unreachable notice of neighbours, alleviate upper layer to a certain extent The frequent shake of Routing Protocol, has saved the system resource of the network equipment.
With above method embodiment correspondingly, the disclosure embodiment further provides a kind of link state detection fill It sets, is applied to the network equipment.Such as 6 the structural block diagram of the linkage status detection device is shown, as shown in fig. 6, the device includes:
State monitoring module is used for during the network equipment and opposite equip. carry out BFD session, if described When the state of BFD session is switched to DOWN by UP, the state value for the BFD session that adds up;
Conversation module, if reaching first threshold, the processing of the corresponding BFD message of pause BFD session for state value;Such as The duration of fruit pause meets pause condition subsequent, opens the processing of the corresponding BFD message of BFD session.Wherein,
State monitoring module 61 can be also used for: the state value of the BFD session is increased setting value;Wherein, the shape State value decays according to time damped manner.
Conversation module 62 can be also used for: during the processing of pause BFD message, if the state value of BFD session is decayed To second threshold, determine that the duration of pause meets pause condition subsequent, wherein the first threshold is greater than second threshold.
In an optional embodiment, which can also include state value dump block, state value dump block and meeting Module 62 is talked about to connect.State monitoring module 61 can be also used for: the state value of BFD session is increased by 1.State value dump block is used In: state value is reset according to the period of setting;And/or if the duration of pause reaches setting duration, determine the duration of pause Meet pause condition subsequent, resets the state value.
Conversation module 62 can be also used for: if state value reaches first threshold, stop sending BFD message to opposite equip. With the BFD message for refusing to respond opposite equip. transmission;If the duration of pause meets pause condition subsequent, sent to opposite equip. The BFD message that BFD message and response opposite equip. are sent.
Above-mentioned linkage status detection device, during the network equipment and opposite equip. carry out BFD session, if BFD When the state of session is switched to DOWN by UP, the state value for the BFD session that adds up;If the state value reaches first threshold, temporarily Stop the processing of the corresponding BFD message of BFD session;If the duration of pause meets pause condition subsequent, it is corresponding to be then turned on BFD session BFD message processing, thus reduce BFD session to upper layer Routing Protocol send neighbours up to notice or the unreachable notice of neighbours Number, reach alleviate upper layer Routing Protocol frequent shake, save the purpose of system resource.
Further, embodiment further provides a kind of network equipment, network equipment A as shown in Figure 1 for the disclosure.It should The network equipment can be router, interchanger, hub, bridge etc..Fig. 7 shows the structural block diagram of the network equipment, such as Fig. 7 Shown, which includes processor 71 and memory 72.Memory 72 is stored with the machine that can be executed by processor 71 Executable instruction, processor 71 execute machine-executable instruction to realize above-mentioned link state detection method.
The network equipment shown in Fig. 7 further includes bus 73 and communication interface 74, processor 71, communication interface 74 and memory 72 are connected by bus 73.
Wherein, memory 72 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 74 (can be wired or wireless) realizes that (such as physics takes for the system network element and at least one other network element Be engaged in device) between communication connection, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.It is total that bus 73 can be ISA Line, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for table Show, only indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus or a type of bus.
Processor 71 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 71 or the instruction of software form.Above-mentioned Processor 71 can be general processor, may be implemented or execute disclosed each method, step in disclosure embodiment And logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..Knot The step of closing method disclosed in disclosure embodiment can be embodied directly in hardware decoding processor and execute completion, Huo Zheyong Hardware and software module combination in decoding processor execute completion.Software module can be located at random access memory, flash memory, read-only The storage medium of this fields such as memory, programmable read only memory or electrically erasable programmable memory, register maturation In.The storage medium is located at memory 72, and processor 71 reads the information in memory 72, completes aforementioned implementation in conjunction with its hardware The step of method of mode.
Further, embodiment further provides a kind of machine readable storage mediums, the machine readable storage to be situated between for the disclosure Matter is stored with machine-executable instruction, which can promote processor when being called and being executed by processor Realize above-mentioned link state detection method.
In several embodiments provided herein, it should be understood that disclosed device and method can also lead to Other modes are crossed to realize.Device embodiments described above are only schematical, for example, the flow chart in attached drawing and Block diagram shows the system in the cards of the device of multiple embodiments according to the present invention, method and computer program product Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate and form one together solely Vertical part is also possible to modules individualism, can also be integrated to form with two or more modules one it is independent Part.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute all or part of step of each embodiment the method for the disclosure Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, the only specific embodiment of the disclosure, to illustrate this public affairs The technical solution opened, rather than its limitations, the protection scope of the disclosure are not limited thereto, although referring to aforementioned embodiments pair The disclosure is described in detail, those skilled in the art should understand that: any technology for being familiar with the art Personnel can still modify to technical solution documented by aforementioned embodiments in the technical scope that the disclosure discloses Or variation or equivalent replacement of some of the technical features can be readily occurred in;And these modifications, variation or replacement, The spirit and scope for disclosure embodiment technical solution that it does not separate the essence of the corresponding technical solution, should all cover in this public affairs Within the protection scope opened.Therefore, the protection scope of the disclosure shall be subject to the protection scope of the claim.

Claims (12)

1. a kind of link state detection method, which is characterized in that be applied to the network equipment, which comprises
During the network equipment and opposite equip. carry out BFD session, if the state of the BFD session is switched by UP When for DOWN, the state value for the BFD session that adds up;
If the state value reaches first threshold, suspend the processing of the corresponding BFD message of the BFD session;
If the duration of pause meets pause condition subsequent, the processing of the corresponding BFD message of the BFD session is opened.
2. the method according to claim 1, wherein the step of state value of the BFD session that adds up, packet It includes:
The state value of the BFD session is increased into setting value;Wherein, the state value is decayed according to time damped manner.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
During the processing for suspending the BFD message, if the state value of the BFD session decays to second threshold, determine temporary The duration stopped meets pause condition subsequent, wherein the first threshold is greater than the second threshold.
4. the method according to claim 1, wherein the step of state value of the BFD session that adds up, packet It includes: the state value of the BFD session is increased by 1;
The method also includes: the state value is reset according to the period of setting;And/or it is set if the duration of pause reaches Timing is long, determines that the duration of the pause meets pause condition subsequent, resets the state value.
5. the method according to claim 1, wherein the place of the corresponding BFD message of the pause BFD session The step of reason, comprising: stop sending BFD message to the opposite equip. and refuse to respond the BFD report that the opposite equip. is sent Text;
The step of processing for opening the corresponding BFD message of the BFD session, comprising: send BFD report to the opposite equip. Text and the BFD message for responding the opposite equip. transmission.
6. a kind of linkage status detection device, which is characterized in that be applied to the network equipment, described device includes:
State monitoring module is used for during the network equipment and opposite equip. carry out BFD session, if the BFD When the state of session is switched to DOWN by UP, the state value for the BFD session that adds up;
Conversation module suspends the corresponding BFD message of the BFD session if reaching first threshold for the state value Processing;If the duration of pause meets pause condition subsequent, the processing of the corresponding BFD message of the BFD session is opened.
7. device according to claim 6, which is characterized in that the state monitoring module is also used to:
The state value of the BFD session is increased into setting value;Wherein, the state value is decayed according to time damped manner.
8. device according to claim 7, which is characterized in that the conversation module is also used to:
During the processing for suspending the BFD message, if the state value of the BFD session decays to second threshold, determine temporary The duration stopped meets pause condition subsequent, wherein the first threshold is greater than the second threshold.
9. device according to claim 6, which is characterized in that the state monitoring module is also used to: by the BFD session State value increase by 1;
Described device further includes state value dump block, resets the state value for the period according to setting;And/or
If the duration of pause reaches setting duration, determines that the duration of the pause meets pause condition subsequent, reset the shape State value.
10. device according to claim 6, which is characterized in that the conversation module is also used to: if the state value reaches To first threshold, then stops sending BFD message to the opposite equip. and refuse to respond the BFD report that the opposite equip. is sent Text;If the duration of pause meets pause condition subsequent, BFD message is sent to the opposite equip. and is set with the opposite end is responded The BFD message that preparation is sent.
11. a kind of network equipment, which is characterized in that including processor and the memory being connected to the processor;The storage Device is stored with the machine-executable instruction that can be executed by the processor, and the processor executes the machine-executable instruction To realize method described in any one of claims 1 to 5.
12. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with the executable finger of machine It enables, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction promotes the processor Realize method described in any one of claims 1 to 5.
CN201810674725.7A 2018-06-26 2018-06-26 Link state detection method, device and the network equipment Pending CN109039799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810674725.7A CN109039799A (en) 2018-06-26 2018-06-26 Link state detection method, device and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810674725.7A CN109039799A (en) 2018-06-26 2018-06-26 Link state detection method, device and the network equipment

Publications (1)

Publication Number Publication Date
CN109039799A true CN109039799A (en) 2018-12-18

Family

ID=64611397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810674725.7A Pending CN109039799A (en) 2018-06-26 2018-06-26 Link state detection method, device and the network equipment

Country Status (1)

Country Link
CN (1) CN109039799A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861745A (en) * 2019-01-02 2019-06-07 新华三技术有限公司 A kind of fault handling method and cluster routers
CN111083215A (en) * 2019-12-10 2020-04-28 深信服科技股份有限公司 Session information synchronization method, device, equipment, system and storage medium
CN113141278A (en) * 2020-01-20 2021-07-20 华为技术有限公司 Method and device for detecting connection state between network nodes
CN114205405A (en) * 2021-10-31 2022-03-18 新华三技术有限公司合肥分公司 BFD message sending method, device, electronic equipment and storage medium
WO2023160619A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Link information sending method, and communication apparatus and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800673A (en) * 2010-02-03 2010-08-11 中兴通讯股份有限公司 Method and device of bidirectional forwarding detection (BFD) oscillation damping

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800673A (en) * 2010-02-03 2010-08-11 中兴通讯股份有限公司 Method and device of bidirectional forwarding detection (BFD) oscillation damping

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861745A (en) * 2019-01-02 2019-06-07 新华三技术有限公司 A kind of fault handling method and cluster routers
CN109861745B (en) * 2019-01-02 2021-05-07 新华三技术有限公司 Fault processing method and cluster router
CN111083215A (en) * 2019-12-10 2020-04-28 深信服科技股份有限公司 Session information synchronization method, device, equipment, system and storage medium
CN111083215B (en) * 2019-12-10 2022-08-09 深信服科技股份有限公司 Session information synchronization method, device, equipment, system and storage medium
CN113141278A (en) * 2020-01-20 2021-07-20 华为技术有限公司 Method and device for detecting connection state between network nodes
CN114205405A (en) * 2021-10-31 2022-03-18 新华三技术有限公司合肥分公司 BFD message sending method, device, electronic equipment and storage medium
CN114205405B (en) * 2021-10-31 2023-11-07 新华三技术有限公司合肥分公司 BFD message sending method and device, electronic equipment and storage medium
WO2023160619A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Link information sending method, and communication apparatus and system

Similar Documents

Publication Publication Date Title
CN109039799A (en) Link state detection method, device and the network equipment
CN106656801B (en) Reorientation method, device and the Business Stream repeater system of the forward-path of Business Stream
CN104081718B (en) For the network controller of remote system administration
CN105450552B (en) Based on SDN network to the strategy and billing control method and equipment of application service chaining
CN103686854B (en) The method and apparatus for controlling AP
CN109698760A (en) A kind of flow processing method and user face device and terminal device
CN104539461B (en) A kind of device and method for inhibiting protocol port vibration and reporting
CN106789638B (en) Method for processing route and network equipment
CN105791175A (en) Method and equipment for controlling transmission resources in software defined network SDN
WO2020211561A1 (en) Data processing method and device, storage medium and electronic device
CN109194547A (en) Message transmitting method, device, local device and readable storage medium storing program for executing
CN104243259B (en) Collaboration method and system in distributed elastic network interconnection system
CN110072244B (en) Control method and device of radio link failure timer
CN108023756A (en) The upgrade method and device of a kind of virtual switch
CN108199978A (en) The suppressing method and device of a kind of signaling storm
CN106572008A (en) Method and apparatus for suppressing neighbor oscillation
CN107908271A (en) Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption
CN106656608A (en) Method for inhibiting interface oscillation, and routing device
CN110213798A (en) A kind of shunt method and device based on Femto gateway
CN109445975A (en) Abnormality eliminating method, logic device and member device
CN105765935A (en) Method and apparatus for virtual firewalling in a wireless communication network
CN107547301A (en) A kind of master/slave device switching method and device
CN110224886A (en) Tunnel method for detecting connectivity, device and network edge device
CN105210043A (en) Information processing device
CN102594696B (en) A kind of method and device managing network device link aggregation group

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218