CN104104644A - Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection - Google Patents

Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection Download PDF

Info

Publication number
CN104104644A
CN104104644A CN201310111456.0A CN201310111456A CN104104644A CN 104104644 A CN104104644 A CN 104104644A CN 201310111456 A CN201310111456 A CN 201310111456A CN 104104644 A CN104104644 A CN 104104644A
Authority
CN
China
Prior art keywords
time
way converting
detection
local terminal
opposite end
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
CN201310111456.0A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310111456.0A priority Critical patent/CN104104644A/en
Publication of CN104104644A publication Critical patent/CN104104644A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a bidirectional forwarding detection system and a detection time configuration method of bidirectional forwarding detection. In the process of realizing bidirectional forwarding detection, the network time delay between a bidirectional forwarding detection local end and a bidirectional forwarding detection opposite end is tested, and then the detection time of the bidirectional forwarding detection local end and the detection time of the bidirectional forwarding detection opposite end are configured to be the same based on the measured network time delay; that is, according to the invention, the detection time of bidirectional forwarding detection is configured based on the network time delay between the bidirectional forwarding detection local end and the bidirectional forwarding detection opposite end and is not configured only according to the packet transmitting and receiving interval and the detection times configured on the network equipment on two ends at present, so the problem that the detection time hardware processing capability negotiated by a central processing unit at present cannot be reached to cause the a BFD conversation to be broken so as to cause frequent link jittering to lead to unnecessary system overhead can be avoided so as to improve the accuracy and resource utilization ratio of bidirectional forwarding detection.

Description

Collocation method detection time that two-way converting detection system and two-way converting detect
Technical field
The present invention relates to the communications field, be specifically related to collocation method detection time that a kind of two-way converting detection system and two-way converting detect.
Background technology
In the IP network communications field, two-way converting detects (BFD, Bidirectional Forwarding Detecting) agreement, and the quick fault testing mechanism of a general standardized and medium and protocol-independent is provided.
BFD sets up session on two network equipments, is used for the two-way converting path of Sampling network equipment room, is upper layer application service.After session establishment, the network equipment can periodically send BFD message each other fast, and the overtime detection of BFD, when a certain network equipment is not received the BFD message that the opposite end network equipment sends within detection time, think and this network equipment between two-way converting path there is fault, notify serviced upper layer application to process accordingly.
Two-way converting checkout gear is generally comprised of two parts at present, and a part is central processor CPU, and a part is hardware processor.CPU is responsible for session negotiation and consult detection time, and consult to obtain detection time according to the transmitting-receiving inter-packet gap configuring on one-port equipment and detection multiple.Hardware processor is responsible for overtime detection and is periodically given out a contract for a project.This two-way converting checkout gear has individual problem, be to complete negotiation by CPU the detection time that two-way converting detects, overtime detection is that hardware processor is carried out, CPU does not know the detectability of hardware processor, may not reach the detection time of consulting due to hardware processor ability, thereby cause BFD session to disconnect, repeatedly in the session negotiation stage, cause the frequent shake of link to cause unnecessary overhead
Summary of the invention
The main technical problem to be solved in the present invention is, collocation method detection time that provides a kind of two-way converting detection system and two-way converting to detect, avoid existing hardware processor ability detection time of being consulted by central processing unit not reach and cause BFD session to disconnect, and then cause the frequent shake of link to cause the problem of unnecessary overhead.
For solving the problems of the technologies described above, the invention provides collocation method detection time that a kind of two-way converting detects, comprising:
Measure two-way converting and detect the network delay between local terminal and two-way converting detection opposite end;
Network delay based on measuring configures the detection time that described two-way converting detects local terminal and described two-way converting detection opposite end.
In an embodiment of the present invention, the network delay that described measurement two-way converting detects between local terminal and two-way converting detection opposite end comprises:
Described two-way converting detects local terminal and detects opposite end transmission latency test message to described two-way converting, and record sends the transmitting time T1 of described latency test message;
Described two-way converting detects opposite end and receives described latency test message, records time of reception T2, detect local terminal feedback network delay testing response message, and record sends the time T 3 of described latency test response message to described two-way converting;
Described two-way converting detects local terminal and receives described latency test response message, records time of reception T4;
Described two-way converting detect local terminal according to described T1, T2, T3, T4, obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2).
In an embodiment of the present invention, described latency test message is the first expansion bidirectional forward detection report, and described the first expansion bidirectional forward detection report is provided with the first transmitting time stamp position and the first time of reception stamp position;
Described two-way converting detects local terminal and records described time T 1 in described the first transmitting time stamp position, the timestamp corresponding with described time T 1 being set, and described two-way converting detects opposite end and records described time T 2 for the timestamp corresponding with described time T 2 being set in described the first time of reception stamp position;
Described latency test response message is the second expansion bidirectional forward detection report, described the second expansion bidirectional forward detection report is provided with described the first transmitting time stamp position and described the first time of reception stamp position, described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, and described the first time of reception stamp position arranges the timestamp corresponding with described time T 2; Described the second expansion bidirectional forward detection report is also provided with the second transmitting time stamp position and the second time of reception stamp position, described two-way converting detects opposite end and records described time T 3 in described the second transmitting time stamp position, the timestamp corresponding with described time T 3 being set, and described two-way converting detects local terminal and records described time T 4 for the timestamp corresponding with described time T 4 being set in described the second time of reception stamp position.
In an embodiment of the present invention, described the first expansion bidirectional forward detection report is assembled by the central processing unit of described two-way converting detection local terminal, and after described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, is transmitted to described two-way converting detection opposite end by the hardware processor of described two-way converting detection local terminal;
The hardware processor that described two-way converting detects opposite end receives described the first expansion bidirectional forward detection report, and is transmitted to the central processing unit that described two-way converting detects opposite end after described the first time of reception stamp position arranges the timestamp corresponding with described time T 2;
The central processing unit that described two-way converting detects opposite end receives after described the first expansion bidirectional forward detection report, assemble described the second expansion bidirectional forward detection report, and the timestamp of the first transmitting time stamp position described in described the first expansion bidirectional forward detection report and described the first time of reception stamp position is copied to the first transmitting time stamp position and the first time of reception stamp position of described the second expansion bidirectional forward detection report, then by described second, expand the hardware processor that bidirectional forward detection report sends to described two-way converting detection opposite end;
The hardware processor that described two-way converting detects opposite end receives described the second expansion bidirectional forward detection report, after described the second transmitting time stamp position arranges the timestamp corresponding with described time T 3, sends to described two-way converting to detect local terminal;
The hardware processor that described two-way converting detects local terminal receives described the second expansion bidirectional forward detection report, and arrange after the timestamp corresponding with described time T 4 in described the second time of reception stamp position, send to described two-way converting to detect the central processing unit of local terminal.
In an embodiment of the present invention, the network delay that described measurement two-way converting detection local terminal and two-way converting detect between opposite end is:
Obtain the measurement times N of setting, described N is more than or equal to 2 integer;
According to the measurement times N of setting, carry out latency test N time, obtain N network delay value T0;
Get the mean value T of described N network delay value T0 as the network delay value finally obtaining.
In an embodiment of the present invention, the described network delay based on measuring configures described two-way converting and detects local terminal and comprise with the detection time of described two-way converting detection opposite end:
Obtain T detection time detect=C*(T/2), described C is link flapping offset, and the value of described C is more than or equal to 1.2, is less than or equal to 1.5;
If described two-way converting detects local terminal and two-way converting detects the time T that opposite end sends bidirectional forward detection report sendwith the time T that receives two-way converting detection receiveequate, and obtain and detect multiple M, obtain M*T send=(T/2).
In order to address the above problem, the present invention also provides a kind of two-way converting detection system, comprises that two-way converting detects local terminal and two-way converting detects opposite end,
Described two-way converting detects local terminal and described two-way converting detection opposite end conjunction measuring obtains the network delay between the two;
Described two-way converting detects the detection time of the network delay configuration of local terminal based on measuring self and described two-way converting detection opposite end.
In an embodiment of the present invention, the network delay that described two-way converting detection local terminal and described two-way converting detection opposite end conjunction measuring obtain between the two comprises:
Described two-way converting detects local terminal and detects opposite end transmission latency test message to described two-way converting, and record sends the transmitting time T1 of described latency test message;
Described two-way converting detects opposite end and receives described latency test message, records time of reception T2, detect local terminal feedback network delay testing response message, and record sends the time T 3 of described latency test response message to described two-way converting;
Described two-way converting detects local terminal and receives described latency test response message, records time of reception T4;
Described two-way converting detect local terminal according to described T1, T2, T3, T4, obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2).
In an embodiment of the present invention, described latency test message is the first expansion bidirectional forward detection report, and described the first expansion bidirectional forward detection report is provided with the first transmitting time stamp position and the first time of reception stamp position;
Described two-way converting detects local terminal and records described time T 1 in described the first transmitting time stamp position, the timestamp corresponding with described time T 1 being set, and described two-way converting detects opposite end and records described time T 2 for the timestamp corresponding with described time T 2 being set in described the first time of reception stamp position;
Described latency test response message is the second expansion bidirectional forward detection report, described the second expansion bidirectional forward detection report is provided with described the first transmitting time stamp position and described the first time of reception stamp position, described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, and described the first time of reception stamp position arranges the timestamp corresponding with described time T 2; Described the second expansion bidirectional forward detection report is also provided with the second transmitting time stamp position and the second time of reception stamp position, described two-way converting detects opposite end and records described time T 3 in described the second transmitting time stamp position, the timestamp corresponding with described time T 3 being set, and described two-way converting detects local terminal and records described time T 4 for the timestamp corresponding with described time T 4 being set in described the second time of reception stamp position.
In an embodiment of the present invention, two-way converting detects local terminal and described two-way converting detection opposite end all comprises central processing unit and hardware processor, described the first expansion bidirectional forward detection report is assembled by the central processing unit of described two-way converting detection local terminal, and after described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, is transmitted to described two-way converting detection opposite end by the hardware processor of described two-way converting detection local terminal;
The hardware processor that described two-way converting detects opposite end receives described the first expansion bidirectional forward detection report, and is transmitted to the central processing unit that described two-way converting detects opposite end after described the first time of reception stamp position arranges the timestamp corresponding with described time T 2;
The central processing unit that described two-way converting detects opposite end receives after described the first expansion bidirectional forward detection report, assemble described the second expansion bidirectional forward detection report, and the timestamp of the first transmitting time stamp position described in described the first expansion bidirectional forward detection report and described the first time of reception stamp position is copied to the first transmitting time stamp position and the first time of reception stamp position of described the second expansion bidirectional forward detection report, then by described second, expand the hardware processor that bidirectional forward detection report sends to described two-way converting detection opposite end;
The hardware processor that described two-way converting detects opposite end receives described the second expansion bidirectional forward detection report, after described the second transmitting time stamp position arranges the timestamp corresponding with described time T 3, sends to described two-way converting to detect local terminal;
The hardware processor that described two-way converting detects local terminal receives described the second expansion bidirectional forward detection report, and arrange after the timestamp corresponding with described time T 4 in described the second time of reception stamp position, send to described two-way converting to detect the central processing unit of local terminal.
In an embodiment of the present invention, between described two-way converting detection local terminal and described two-way converting detection opposite end, conjunction measuring network delay is:
Described two-way converting detects local terminal and obtains the measurement times N of setting, and described N is more than or equal to 2 integer;
Described two-way converting detects local terminal and described two-way converting detection opposite end is carried out latency test N time according to the measurement times N of setting, and obtains N network delay value T0;
The mean value T that described two-way converting detection local terminal is got described N network delay value T0 is as the network delay value finally obtaining.
In an embodiment of the present invention, described two-way converting detects the network delay of local terminal based on measuring and configures described two-way converting and detect local terminal and comprise with the detection time of described two-way converting detection opposite end:
Described two-way converting detects local terminal and obtains T detection time detect=C*(T/2), described C is link flapping offset, and the value of described C is more than or equal to 1.2, is less than or equal to 1.5;
Described two-way converting detection local terminal establishes self and described two-way converting detects the time T that opposite end sends bidirectional forward detection report sendwith the time T that receives two-way converting detection receiveequate, and obtain and detect multiple M, obtain M*T send=C*(T/2).
The invention has the beneficial effects as follows:
Collocation method detection time that two-way converting detection system provided by the invention and two-way converting detect, in realizing two-way converting testing process, test out two-way converting and detect the network delay between local terminal and two-way converting detection opposite end, then the configuration of the network delay based on measuring two-way converting detects the detection time of local terminal and described two-way converting detection opposite end; Also be, the present invention detects local terminal and two-way converting based on two-way converting to detect the detection time that network delay between opposite end configures two-way converting detection, not as existing, only according to the transmitting-receiving inter-packet gap configuring on one-port equipment and detection multiple, configure, can avoid existing hardware processor ability detection time of being consulted by central processing unit not reach causes BFD session to disconnect, and then cause the frequent shake of link to cause the problem of unnecessary overhead, and then improve accuracy rate and the resource utilization that two-way converting detects.
Accompanying drawing explanation
Fig. 1 is the two-way converting detection system schematic diagram of an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of realizing two-way converting detection of the present invention;
Fig. 3 obtains the schematic flow sheet of network delay value in an embodiment of the present invention;
Fig. 4 obtains the schematic flow sheet of final network delay value in an embodiment of the present invention.
Embodiment
The present invention is in two-way converting testing process, test out two-way converting and detect the network delay between local terminal and two-way converting detection opposite end, the network delay configure two-way converting that utilization obtains detects the detection time at two ends, thereby make the detection time of two-way converting detection within zone of reasonableness, avoid existing hardware processor ability detection time of being consulted by central processing unit not reach and cause BFD session to disconnect, and then cause the frequent shake of link to cause the problem of unnecessary overhead.Below by embodiment, by reference to the accompanying drawings the present invention is described in further detail.
Please refer to Fig. 1, Figure 1 shows that the two-way converting detection system that the present embodiment provides, it comprises that two-way converting detects local terminal and two-way converting detects opposite end, it should be noted that, it is relative with two-way converting detection opposite end that two-way converting in the present embodiment detects local terminal, for the ease of statement, below only to be called for short: " local terminal " and " opposite end " respectively two-way converting detected to local terminal and two-way converting detection opposite end describes.Wherein, local terminal and opposite end all comprise central processor CPU and hardware processor.
In the two-way converting detection system shown in Fig. 1, existing two-way testing process comprises and is divided into three phases: session establishment phase, overtime detection-phase and detection time negotiation phase, wherein detection time, negotiation phase was not must the stage.Two-way detection is set up session by the mechanism of three-way handshake, local terminal can be inserted local current session status in Sta field when sending two-way converting detection control message, Sta field and local current sessions state that control message is detected according to the two-way converting of receiving in opposite end carry out the migration of state machine, set up session.Specifically shown in Figure 2, its process is specific as follows:
Receive after the notice of upper layer application local terminal and opposite end, the BFD control message that local terminal is DOWN to opposite end transmission state; The same local terminal of BFD state variation of opposite end;
After opposite end receives that state is the BFD control message of DOWN, local session state moves to INIT by DOWN, and the BFD that transmission state is INIT subsequently controls message; The same opposite end of BFD state variation of local terminal;
After local terminal receives that opposite end state is the BFD control message of INIT, local session state moves to UP by INIT, and the BFD that transmission state is UP subsequently controls in message; The same local terminal of BFD state variation of opposite end;
Local terminal and opposite end state are all UP, and session is successfully set up and started to detect Link State;
After BFD session establishment, the central processing unit of local terminal notice hardware processor starts overtime detection timer, starts to monitor the BFD message of opposite end; Start transmission timer simultaneously, start to send to opposite end BFD message; When not receiving opposite end BFD message within detection time, hardware processor is to central processing unit report and alarm.The same local terminal of processing procedure of opposite end.
In the present embodiment, session establishment phase, the overtime detection-phase adoptable above-mentioned existing mechanism of setting up session and overtime detection still.The present embodiment emphasis to detection time negotiation phase describe, specific as follows:
At local terminal and both-end, carry out in two-way converting testing process, measure the network delay between local terminal and opposite end;
Then the network delay based on measuring to configuring accordingly the detection time of local terminal and opposite end, for example, configures the relation of the interval of giving out a contract for a project, packet receiving interval and the detection multiple of local terminal and opposite end, so that reach the ability of hardware processor detection time.
It should be noted that in the present embodiment, the networking time delay between local terminal and opposite end can realize measurement by the 3rd measurement mechanism, also can directly utilize local terminal and opposite end directly the network delay between the two to be measured.Directly utilize local terminal and opposite end directly the network delay between the two to be measured, do not need to increase third party's measurement mechanism, can better control cost, realize also simpler, convenient, therefore in the present embodiment, to coordinate the example that is measured as of the network delay of realizing between the two by local terminal and opposite end, the present invention is described further, shown in Figure 3, detailed process is as follows:
Step 301: local terminal sends latency test message to opposite end, and record sends the transmitting time T1 of this latency test message;
Step 302: opposite end receives this latency test message, records time of reception T2, to local terminal feedback network delay testing response message, and record sends the time T 3 of this latency test response message;
Step 303: local terminal receives latency test response message, records time of reception T4;
Step 304: local terminal according to T1, T2, T3, T4, obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2).
Meanwhile, in order to obtain more accurate network delay value, in the present embodiment, when carrying out network delay measurement, can set in advance measurement times N, described N is more than or equal to 2 integer; Then according to the measurement times N of setting, according to above-mentioned method of measurement, carry out latency test N time, obtain N network delay value T0; The mean value T of the N obtaining a network delay value T0 is as the network delay value finally obtaining.Certainly, in order obtaining outside more accurate network delay value, also can to take other modes, for example, to measure a plurality of network delay values, maximum and minimum value in a plurality of network delay values are removed, then average etc.
Said process is only to take the explanation that local terminal initiate to be measured and computation and measurement result is carried out as example, it should be noted that the above-mentioned functions of above-mentioned local terminal also can be realized in the opposite end in the present embodiment.
In addition, consider that above-mentioned time measurement process carries out in two-way converting testing process, therefore in order further to improve the utilization ratio of resource, the present embodiment can directly utilize bidirectional forward detection report to realize the measurement of network delay, only need carry out suitable expansion to common bidirectional forward detection report, for example:
It is the first expansion bidirectional forward detection report that latency test message is set, and this first expansion bidirectional forward detection report can be based on RFC5880 standard combination network delay measuring method setting Y.1731; Based on RFC5880 standard, type Type6-255 belongs to retention, the Type that therefore the first expansion bidirectional forward detection report can be set is 47, Length is 66, the first transmitting time stamp position and the first time of reception stamp position are set in the first expansion bidirectional forward detection report, and the form of timestamp can be followed Y.1731 form, and each timestamp accounts for 8 bytes, front four byte unit are wonderful, and rear four byte unit are nanosecond;
It is the second expansion bidirectional forward detection report that latency test response message is set, and the second expansion bidirectional forward detection report also can be based on RFC5880 standard combination network delay measuring method setting Y.1731; Based on RFC5880 standard, type Type6-255 belongs to retention, the Type that therefore the second expansion bidirectional forward detection report can be set is 46, Length is 66, the first transmitting time stamp position, the second transmitting time stamp position and the first time of reception stamp position, the second time of reception stamp position are set in the second expansion bidirectional forward detection report, and the form of timestamp also can be followed Y.1731 form, and each timestamp accounts for 8 bytes, front four byte unit are wonderful, and rear four byte unit are nanosecond.Above extended mode is only to how bidirectional forward detection report being expanded and carried out exemplary explanation in the present embodiment, but is not only confined to above-mentioned extended mode.
Based on above-mentioned setting, local terminal T1 writing time arranges the timestamp corresponding with time T 1 in the first transmitting time stamp position of the first expansion bidirectional forward detection report, and opposite end T2 writing time arranges the timestamp corresponding with time T 2 in the first time of reception stamp position of the first expansion bidirectional forward detection report; The first transmitting time stamp position at the second expansion bidirectional forward detection report also arranges the timestamp corresponding with time T 1, in the first time of reception stamp position of the second expansion bidirectional forward detection report, the timestamp corresponding with time T 2 is set; The second transmitting time stamp position at the second expansion bidirectional forward detection report arranges the timestamp corresponding with time T 3, in the second time of reception stamp position at the second expansion bidirectional forward detection report, the timestamp corresponding with time T 4 is set; Above-mentioned detailed process refers to Fig. 4, comprising:
Step 401: the set out central processing unit of local terminal of user starts bidirectional forward detection report expanded function, and common bidirectional forward detection report is expanded in a manner described and obtained the first expansion bidirectional forward detection report; And obtain the measurement times N that user sets;
Step 402: the central processing unit of local terminal sends to the first expansion bidirectional forward detection report obtaining the hardware processor of local terminal;
Step 403: the hardware processor of local terminal will receive after the first expansion bidirectional forward detection report, at its first transmitting time stamp position setup times stamp, this timestamp is corresponding with time T 1, then this first expansion bidirectional forward detection report is sent to opposite end;
Step 404: the hardware processor of opposite end receives the first expansion bidirectional forward detection report that local terminal sends, and stab at the first time of reception stamp position setup times of the first expansion bidirectional forward detection report, this timestamp is corresponding with time T 2, then this first expansion bidirectional forward detection report is sent to the central processing unit of opposite end;
Step 405: the central processing unit of opposite end receives after this first expansion bidirectional forward detection report, structure the second expansion bidirectional forward detection report;
Step 406: the central processing unit of opposite end copies to second expansion bidirectional forward detection report the first transmitting time stamp position by the timestamp of first expansion bidirectional forward detection report the first transmitting time stamp position, copies to second expansion bidirectional forward detection report the first time of reception stamp position by the timestamp of first expansion bidirectional forward detection report the first time of reception stamp position;
Step 407: the central processing unit of opposite end sends to the second expansion bidirectional forward detection report the hardware processor of opposite end;
Step 408: the hardware processor of opposite end receives after the second expansion bidirectional forward detection report, at its second transmitting time stamp position setup times stamp, this timestamp is corresponding with time T 3; Then the second expansion bidirectional forward detection report is sent to local terminal;
Step 409: the hardware processor of local terminal receives the second expansion bidirectional forward detection report, and at its second time of reception stamp position setup times stamp, this timestamp is corresponding with time T 4, then sends it to the central processing unit of local terminal;
Step 410: the central processing unit of local terminal receives after the second expansion bidirectional forward detection report, therefrom extracts time T T1, T2, T3, T4, and then obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2);
Step 411: the method by step 401-410 obtains other N-1 network delay value T0;
Step 412: the mean value of the N obtaining a network experiment value T0, obtains final network delay value T.
Obtain after final network delay value T, can to the detection time of local terminal and opposite end, arrange based on this network delay value T, detailed process is as follows:
Obtain after network delay value T, calculate the detection time of two-way converting detection and the relation of network delay, because network delay is two-way, and be unidirectional detection time, therefore can obtain T detection time detect=(T/2), then consider the shake of link, also should be multiplied by certain coefficient C the detection time that two-way converting detects, and this coefficient is link flapping offset, and in the present embodiment, the value of C, for being more than or equal to 1.2, is less than or equal to 1.5; Therefore, T inspection survey=C* (T/2).Meanwhile, be that local terminal and opposite end consult to obtain detection time, supposes that the detection multiple that local terminal and opposite end two-way converting detect is M, and two ends send the time T of bidirectional forward detection report sendwith the time T that receives bidirectional forward detection report receiveequate, have T detect=M*T send, and then obtain M*T send=C*(T/2), be also T send=C*T/ (2*M).
The transmitting time T of the two-way converting checkout gear of extrapolating based on above-mentioned network delay value sendwith the configuration relation formula that detects multiple M, get final product the relation of the interval of giving out a contract for a project, packet receiving interval and the detection multiple of the rational configure local terminal of guides user and opposite end, so that can reach the ability of hardware processor detection time, thereby make the detection time of two-way converting detection within zone of reasonableness, avoid existing hardware processor ability detection time of being consulted by central processing unit not reach and cause BFD session to disconnect, and then cause the frequent shake of link to cause the problem of unnecessary overhead.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (12)

1. collocation method detection time that two-way converting detects, is characterized in that comprising:
Measure two-way converting and detect the network delay between local terminal and two-way converting detection opposite end;
Network delay based on measuring configures the detection time that described two-way converting detects local terminal and described two-way converting detection opposite end.
2. collocation method detection time that two-way converting as claimed in claim 1 detects, is characterized in that, the network delay that described measurement two-way converting detects between local terminal and two-way converting detection opposite end comprises:
Described two-way converting detects local terminal and detects opposite end transmission latency test message to described two-way converting, and record sends the transmitting time T1 of described latency test message;
Described two-way converting detects opposite end and receives described latency test message, records time of reception T2, detect local terminal feedback network delay testing response message, and record sends the time T 3 of described latency test response message to described two-way converting;
Described two-way converting detects local terminal and receives described latency test response message, records time of reception T4;
Described two-way converting detect local terminal according to described T1, T2, T3, T4, obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2).
3. collocation method detection time that two-way converting as claimed in claim 2 detects, it is characterized in that, described latency test message is the first expansion bidirectional forward detection report, and described the first expansion bidirectional forward detection report is provided with the first transmitting time stamp position and the first time of reception stamp position;
Described two-way converting detects local terminal and records described time T 1 in described the first transmitting time stamp position, the timestamp corresponding with described time T 1 being set, and described two-way converting detects opposite end and records described time T 2 for the timestamp corresponding with described time T 2 being set in described the first time of reception stamp position;
Described latency test response message is the second expansion bidirectional forward detection report, described the second expansion bidirectional forward detection report is provided with described the first transmitting time stamp position and described the first time of reception stamp position, described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, and described the first time of reception stamp position arranges the timestamp corresponding with described time T 2; Described the second expansion bidirectional forward detection report is also provided with the second transmitting time stamp position and the second time of reception stamp position, described two-way converting detects opposite end and records described time T 3 in described the second transmitting time stamp position, the timestamp corresponding with described time T 3 being set, and described two-way converting detects local terminal and records described time T 4 for the timestamp corresponding with described time T 4 being set in described the second time of reception stamp position.
4. collocation method detection time that two-way converting as claimed in claim 3 detects, it is characterized in that, described the first expansion bidirectional forward detection report is assembled by the central processing unit of described two-way converting detection local terminal, and after described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, is transmitted to described two-way converting detection opposite end by the hardware processor of described two-way converting detection local terminal;
The hardware processor that described two-way converting detects opposite end receives described the first expansion bidirectional forward detection report, and is transmitted to the central processing unit that described two-way converting detects opposite end after described the first time of reception stamp position arranges the timestamp corresponding with described time T 2;
The central processing unit that described two-way converting detects opposite end receives after described the first expansion bidirectional forward detection report, assemble described the second expansion bidirectional forward detection report, and the timestamp of the first transmitting time stamp position described in described the first expansion bidirectional forward detection report and described the first time of reception stamp position is copied to the first transmitting time stamp position and the first time of reception stamp position of described the second expansion bidirectional forward detection report, then by described second, expand the hardware processor that bidirectional forward detection report sends to described two-way converting detection opposite end;
The hardware processor that described two-way converting detects opposite end receives described the second expansion bidirectional forward detection report, after described the second transmitting time stamp position arranges the timestamp corresponding with described time T 3, sends to described two-way converting to detect local terminal;
The hardware processor that described two-way converting detects local terminal receives described the second expansion bidirectional forward detection report, and arrange after the timestamp corresponding with described time T 4 in described the second time of reception stamp position, send to described two-way converting to detect the central processing unit of local terminal.
5. collocation method detection time that the two-way converting as described in claim 2-4 any one detects, is characterized in that, the network delay that described measurement two-way converting detects between local terminal and two-way converting detection opposite end is:
Obtain the measurement times N of setting, described N is more than or equal to 2 integer;
According to the measurement times N of setting, carry out latency test N time, obtain N network delay value T0;
Get the mean value T of described N network delay value T0 as the network delay value finally obtaining.
6. collocation method detection time that two-way converting as claimed in claim 5 detects, is characterized in that, comprises the detection time that the described network delay based on measuring configures described two-way converting detection local terminal and described two-way converting detection opposite end:
Obtain T detection time detect=C*(T/2), described C is link flapping offset, and the value of described C is more than or equal to 1.2, is less than or equal to 1.5;
If described two-way converting detects local terminal and two-way converting detects the time T that opposite end sends bidirectional forward detection report sendwith the time T that receives two-way converting detection receiveequate, and obtain and detect multiple M, obtain M*T send=(T/2).
7. a two-way converting detection system, is characterized in that comprising that two-way converting detects local terminal and two-way converting detects opposite end,
Described two-way converting detects local terminal and described two-way converting detection opposite end conjunction measuring obtains the network delay between the two;
Described two-way converting detects the detection time of the network delay configuration of local terminal based on measuring self and described two-way converting detection opposite end.
8. two-way converting detection system as claimed in claim 7, is characterized in that, the network delay that described two-way converting detection local terminal and described two-way converting detection opposite end conjunction measuring obtain between the two comprises:
Described two-way converting detects local terminal and detects opposite end transmission latency test message to described two-way converting, and record sends the transmitting time T1 of described latency test message;
Described two-way converting detects opposite end and receives described latency test message, records time of reception T2, detect local terminal feedback network delay testing response message, and record sends the time T 3 of described latency test response message to described two-way converting;
Described two-way converting detects local terminal and receives described latency test response message, records time of reception T4;
Described two-way converting detect local terminal according to described T1, T2, T3, T4, obtain the value T0=(T4-T1 of one-shot measurement network delay)-(T3-T2).
9. two-way converting detection system as claimed in claim 8, it is characterized in that, described latency test message is the first expansion bidirectional forward detection report, and described the first expansion bidirectional forward detection report is provided with the first transmitting time stamp position and the first time of reception stamp position;
Described two-way converting detects local terminal and records described time T 1 in described the first transmitting time stamp position, the timestamp corresponding with described time T 1 being set, and described two-way converting detects opposite end and records described time T 2 for the timestamp corresponding with described time T 2 being set in described the first time of reception stamp position;
Described latency test response message is the second expansion bidirectional forward detection report, described the second expansion bidirectional forward detection report is provided with described the first transmitting time stamp position and described the first time of reception stamp position, described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, and described the first time of reception stamp position arranges the timestamp corresponding with described time T 2; Described the second expansion bidirectional forward detection report is also provided with the second transmitting time stamp position and the second time of reception stamp position, described two-way converting detects opposite end and records described time T 3 in described the second transmitting time stamp position, the timestamp corresponding with described time T 3 being set, and described two-way converting detects local terminal and records described time T 4 for the timestamp corresponding with described time T 4 being set in described the second time of reception stamp position.
10. two-way converting detection system as claimed in claim 9, it is characterized in that, two-way converting detects local terminal and described two-way converting detection opposite end all comprises central processing unit and hardware processor, described the first expansion bidirectional forward detection report is assembled by the central processing unit of described two-way converting detection local terminal, and after described the first transmitting time stamp position arranges the timestamp corresponding with described time T 1, is transmitted to described two-way converting detection opposite end by the hardware processor of described two-way converting detection local terminal;
The hardware processor that described two-way converting detects opposite end receives described the first expansion bidirectional forward detection report, and is transmitted to the central processing unit that described two-way converting detects opposite end after described the first time of reception stamp position arranges the timestamp corresponding with described time T 2;
The central processing unit that described two-way converting detects opposite end receives after described the first expansion bidirectional forward detection report, assemble described the second expansion bidirectional forward detection report, and the timestamp of the first transmitting time stamp position described in described the first expansion bidirectional forward detection report and described the first time of reception stamp position is copied to the first transmitting time stamp position and the first time of reception stamp position of described the second expansion bidirectional forward detection report, then by described second, expand the hardware processor that bidirectional forward detection report sends to described two-way converting detection opposite end;
The hardware processor that described two-way converting detects opposite end receives described the second expansion bidirectional forward detection report, after described the second transmitting time stamp position arranges the timestamp corresponding with described time T 3, sends to described two-way converting to detect local terminal;
The hardware processor that described two-way converting detects local terminal receives described the second expansion bidirectional forward detection report, and arrange after the timestamp corresponding with described time T 4 in described the second time of reception stamp position, send to described two-way converting to detect the central processing unit of local terminal.
11. two-way converting detection systems as described in claim 8-10 any one, is characterized in that,
Described two-way converting detects conjunction measuring network delay between local terminal and described two-way converting detection opposite end:
Described two-way converting detects local terminal and obtains the measurement times N of setting, and described N is more than or equal to 2 integer;
Described two-way converting detects local terminal and described two-way converting detection opposite end is carried out latency test N time according to the measurement times N of setting, and obtains N network delay value T0;
The mean value T that described two-way converting detection local terminal is got described N network delay value T0 is as the network delay value finally obtaining.
12. two-way converting detection systems as claimed in claim 11, is characterized in that, comprise the detection time that the network delay of described two-way converting detection local terminal based on measuring configures described two-way converting detection local terminal and described two-way converting detection opposite end:
Described two-way converting detects local terminal and obtains T detection time detect=C*(T/2), described C is link flapping offset, and the value of described C is more than or equal to 1.2, is less than or equal to 1.5;
Described two-way converting detection local terminal establishes self and described two-way converting detects the time T that opposite end sends bidirectional forward detection report sendwith the time T that receives two-way converting detection receiveequate, and obtain and detect multiple M, obtain M*T send=C*(T/2).
CN201310111456.0A 2013-04-01 2013-04-01 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection Pending CN104104644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310111456.0A CN104104644A (en) 2013-04-01 2013-04-01 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310111456.0A CN104104644A (en) 2013-04-01 2013-04-01 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection

Publications (1)

Publication Number Publication Date
CN104104644A true CN104104644A (en) 2014-10-15

Family

ID=51672448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310111456.0A Pending CN104104644A (en) 2013-04-01 2013-04-01 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection

Country Status (1)

Country Link
CN (1) CN104104644A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071833A (en) * 2015-08-31 2015-11-18 中国科学院国家授时中心 Pseudo-random code-based low-voltage power line carrier time-delay measuring method and device
WO2016187980A1 (en) * 2015-05-25 2016-12-01 中兴通讯股份有限公司 Bfd link establishment method and apparatus, and router
WO2017000536A1 (en) * 2015-06-29 2017-01-05 华为技术有限公司 Bfd method and apparatus
CN110535712A (en) * 2019-09-19 2019-12-03 杭州迪普科技股份有限公司 BFD parameter setting method, device, electronic equipment
CN112367255A (en) * 2020-09-25 2021-02-12 新华三信息安全技术有限公司 BFD session processing method, device, storage medium and routing device
CN116321276A (en) * 2023-05-19 2023-06-23 阿里巴巴(中国)有限公司 Time delay determining method, communication network, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247270A (en) * 2008-03-19 2008-08-20 中兴通讯股份有限公司 System and method for implementing bidirectional forwarding detection
CN101252528A (en) * 2008-04-14 2008-08-27 华为技术有限公司 Method and apparatus for detecting malfunction
CN101267389A (en) * 2007-03-14 2008-09-17 株式会社日立制作所 Network system, node device and management server
CN101552703A (en) * 2009-04-10 2009-10-07 中国联合网络通信集团有限公司 A method and device to measure service quality parameters and a method and device to judge service quality
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment
CN102064981A (en) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and system
US20110199929A1 (en) * 2008-10-25 2011-08-18 Huawei Technologies Co., Ltd. Method and device for measuring network performance parameters
CN102487338A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267389A (en) * 2007-03-14 2008-09-17 株式会社日立制作所 Network system, node device and management server
CN101247270A (en) * 2008-03-19 2008-08-20 中兴通讯股份有限公司 System and method for implementing bidirectional forwarding detection
CN101252528A (en) * 2008-04-14 2008-08-27 华为技术有限公司 Method and apparatus for detecting malfunction
US20110199929A1 (en) * 2008-10-25 2011-08-18 Huawei Technologies Co., Ltd. Method and device for measuring network performance parameters
CN101552703A (en) * 2009-04-10 2009-10-07 中国联合网络通信集团有限公司 A method and device to measure service quality parameters and a method and device to judge service quality
CN101848051A (en) * 2010-05-19 2010-09-29 中兴通讯股份有限公司 Method and device for performing clock synchronization between equipment
CN102487338A (en) * 2010-12-01 2012-06-06 中兴通讯股份有限公司 Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter
CN102064981A (en) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301835B (en) * 2015-05-25 2020-03-13 中兴通讯股份有限公司 BFD link establishing method and device and router
WO2016187980A1 (en) * 2015-05-25 2016-12-01 中兴通讯股份有限公司 Bfd link establishment method and apparatus, and router
CN106301835A (en) * 2015-05-25 2017-01-04 中兴通讯股份有限公司 A kind of method of BFD link setup and device, router
WO2017000536A1 (en) * 2015-06-29 2017-01-05 华为技术有限公司 Bfd method and apparatus
CN106330588A (en) * 2015-06-29 2017-01-11 华为技术有限公司 BFD detection method and device
US10447561B2 (en) 2015-06-29 2019-10-15 Huawei Technologies Co., Ltd. BFD method and apparatus
CN106330588B (en) * 2015-06-29 2020-01-10 华为技术有限公司 BFD detection method and device
CN105071833A (en) * 2015-08-31 2015-11-18 中国科学院国家授时中心 Pseudo-random code-based low-voltage power line carrier time-delay measuring method and device
CN110535712A (en) * 2019-09-19 2019-12-03 杭州迪普科技股份有限公司 BFD parameter setting method, device, electronic equipment
CN110535712B (en) * 2019-09-19 2022-08-26 杭州迪普科技股份有限公司 BFD parameter setting method and device and electronic equipment
CN112367255A (en) * 2020-09-25 2021-02-12 新华三信息安全技术有限公司 BFD session processing method, device, storage medium and routing device
CN116321276A (en) * 2023-05-19 2023-06-23 阿里巴巴(中国)有限公司 Time delay determining method, communication network, device and storage medium
CN116321276B (en) * 2023-05-19 2023-10-31 阿里巴巴(中国)有限公司 Time delay determining method, communication network, device and storage medium

Similar Documents

Publication Publication Date Title
CN104104644A (en) Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
TWI528755B (en) A controller for delay measurement, a delay measurement system and a delay measurement method in sdn
CN101695171B (en) Method utilizing stream control transmission protocol to measure network transmission quality and device thereof
EP1931084B1 (en) A method for getting the link estimating parameters
CN105634840A (en) Method and device for measuring packet loss
JP5249682B2 (en) Passage time fixing device for protective relay device
CN102201983A (en) Method, terminal and system for measuring asymmetric time delay of transmission link
CN107579869B (en) Network performance detection method and network equipment
CN106451763A (en) Intelligent substation-level bus network system without requiring global synchronous system
CN102904772A (en) Method and device for realizing throughput test of network equipment
JP2010041899A (en) Protection relay system
CN103023815B (en) Aggregation link load sharing method and device
CN103109497B (en) For measuring the dynamic-configuration of the interconnect equipment of net neutral energy characteristic
CN102487338B (en) Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter
WO2014179876A1 (en) Symmetrical latency with tdm circuit emulated service
WO2010139281A1 (en) Method and apparatus for detecting ethernet operation, administration and maintenance (oam)
CN101185293B (en) Universal measurement or protection device
Knezic et al. Performance analysis of the ethernet powerlink pollresponse chaining mechanism
JP2008244870A (en) Communication system, relay device used for the system, and measuring method of frame loss
EP2773144A1 (en) Method of diagnosis of degradation in a heterogeneous network using a neighbour network
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN105163336A (en) Method and system for optimizing stability of wireless network
KR101156097B1 (en) Master redundancy method in Ethernet powerlink
JP2008182549A (en) Communication system, terminating device used for the same, and delay measuring method
JP5457230B2 (en) Protection relay device and current differential protection relay device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141015

WD01 Invention patent application deemed withdrawn after publication