CN101478459A - Method for detecting network time delay and network node equipment - Google Patents

Method for detecting network time delay and network node equipment Download PDF

Info

Publication number
CN101478459A
CN101478459A CNA2009100781081A CN200910078108A CN101478459A CN 101478459 A CN101478459 A CN 101478459A CN A2009100781081 A CNA2009100781081 A CN A2009100781081A CN 200910078108 A CN200910078108 A CN 200910078108A CN 101478459 A CN101478459 A CN 101478459A
Authority
CN
China
Prior art keywords
network
message
network node
delay
time
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
CNA2009100781081A
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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CNA2009100781081A priority Critical patent/CN101478459A/en
Publication of CN101478459A publication Critical patent/CN101478459A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for detecting network delay and network node equipment thereof. The method comprises the following steps: a first network node is instructed by a detection request message to send a detection message so as to detect the network delay between the first network node and a second network node; the first network node sends the detection message to the second network node according to the instruction and records the sending time; the first network node records the time of receiving a detection respond message returned from the second network node; and the first network node calculates the network delay according to the time of sending the detection message and the time of receiving the detection respond message, and generates and returns a detection request response message. The detection request message, the detection message, the detection response message and the detection request response message are both network delay detection protocol (NDDP) messages; the value of a target IP address field in the detection request message is the IP address of the second network node; and the detection request response message includes the network delay. The method detects the network delay via the NDDP messages, so as to improve the efficiency of network delay detection.

Description

The method and the apparatus for network node of detection network time-delay
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus for network node of detection network time-delay.
Background technology
In the data communication network, when two network nodes communicated, transmit leg sent a packet earlier to the recipient; The recipient receives and replys if desired after the packet, then returns a reply data bag.Sending the time interval of packet to recipient's echo reply packet from transmit leg, is exactly the network stand-by period, also is network delay.As shown in Figure 1, the moment that the sending direction recipient sends message is t1, and the moment of receiving the response message that the recipient returns is t2, then network delay=t2-t1.
In network management, detection network time-delay tool has very important significance.Be mainly reflected in: the network manager can understand the communication quality of communication line according to network delay, and the foundation of further decision-making is provided for maintaining network, investigation fault, circuit dilatation etc.If the network delay of certain bar communication line is excessive, the user on this circuit will feel that network speed is very slow, such as needing the long period just can open with IE browser browsing page.At this moment, the network manager can find that by network delay which line load is bigger.Often cause by line load because network delay is excessive above line bandwidth, therefore, the network manager can be by revising network equipments configuration, the network flow quantity shunting that load is bigger is to the less circuit of load, perhaps increases the network equipment, dilatation network line bandwidth solves this problem.Therefore, the network delay of any two network nodes is extremely important in the real-time detection current network.
In the prior art, the internodal network delay of detection network adopt internet control information agreement (InternetControl Message Protocol, ICMP).As shown in Figure 2, suppose to have two network nodes, one is node A, and another is a Node B, adopts the process of network delay between icmp probe node A and the Node B to comprise:
The network manager lands node A;
After node A " ping " Node B,, note the moment t1 that sends this request message to sending an ICMP request message;
After Node B is received the ICMP request message,, respond an ICMP response message to node A according to the regulation of ICMP.Suppose that the time that node A receives this ICMP response message is t2, then t2-t1 is exactly two network delays between network node.
There is following defective at least in prior art.
At first, because the equipment of detection network time-delay is one of network node to be measured, therefore, the ICMP technology can only detect the network delay of transmit leg and purpose side, it promptly is initial point with the transmit leg, to with the time-delay of each network node being network node on the concentric circles of radius, and can't detect the network delay between any two network nodes in the network.As shown in Figure 2, node A-node D is the network equipment of having realized ICMP.Cost between node A and the Node B (cost) is 10, and the cost between Node B and the node C is 2, and the cost between node A and the node D is 4, and the cost between node D and the node C is 5.Cost is the value that present network routing protocol carries out the forward-path decision-making, and the forward-path basis is selected to the value of the cost of destination, and choosing the minimum path of cost, destination usually is forward-path.Is example with node A as detection network time-delay equipment, supposes that to the forward-path of Node B be A-〉B (cost is 10), be A-to the forward-path of node C D-C (cost is 9).Use the ICMP agreement, can only calculate between node A and the Node B, the network delay between node A and the node C, between node A and the node D, and can't obtain network delay between Node B and the node C, because node A is by node D rather than passes through Node B to the path of C.For another shown in Figure 3, can't obtain between Node B and the node C, the network delay between node C and the node D, between Node B and the node D.
Secondly, if survey network delay between any two network nodes, need reselect detecting devices and as the control authority of the network node of new detecting devices.With Fig. 3 is example, if want between probe node B and the node C, the network delay between node C and the node D, between Node B and the node D, needs be surveyed as detecting devices with Node B, node C, node D respectively.As the network delay between probe node B and the node D, with node D during as detecting devices, the control authority that at first needs to obtain node D is landed node D, then by node D " ping " Node B, send the ICMP request message to Node B, according to the network delay between Time Calculation Node B that receives response and the node D.But, can't obtain under the most of situation of the control authority of network node, thereby also just can't carry out network delay and survey not having execution ICMP agreement on the network node of authority.
Once more, because the flow of network is dynamic change, network delay is real-time change also, even the control authority of all-network node in the network is arranged, before detection, still need to land earlier network node, and need another network node by this network node " ping " network delay, when n network node arranged in the network, survey that network delay need respectively to need manual n* (n-1)/2 time " ping " command operation at least of carrying out between any two network nodes on the all-network node.Therefore, the network delay that detects not is the network delay before landing, the network delay that promptly obtains produces and lags behind, and the time that lags behind and network size (node number in the network), obtains that the network node authority is consuming time etc. to be directly proportional, thereby can't accurately detect the network delay of current time.
Summary of the invention
The objective of the invention is to propose a kind of method and apparatus for network node of detection network time-delay, to improve the detection efficient of network delay.
For achieving the above object, the invention provides a kind of method of detection network time-delay, comprising:
Indicate first network node to send probe messages by the probe requests thereby message, to survey the network delay between described first network node and second network node;
Described first network node sends probe messages according to indication to described second network node, and the record transmitting time;
Described second network node of the described first network node recorder returns the time of response detected message;
Described first network node generates and returns detection request response message according to time that sends probe messages and the Time Calculation network delay that receives the response detected message;
Described probe requests thereby message, probe messages, response detected message, detection request response message are network delay and survey protocol massages, comprise operation field, time field and purpose IP address field; The value of the purpose IP address field in the described probe requests thereby message is the IP address of described second network node; The value of the time field in the described detection request response message is described network delay.
The present invention also provides a kind of apparatus for network node, comprising:
Indicating module is used for indicating first network node to send probe messages by the probe requests thereby message, to survey the network delay between described first network node and second network node;
Receiver module is used to receive the detection request response message that described first network node returns;
Described probe requests thereby message, detection request response message and described probe messages are network delay and survey protocol massages, comprise operation field, time field and purpose IP address field; The value of the purpose IP address field in the described probe requests thereby message is the IP address of described second network node; The value of the time field in the described detection request response message is described network delay.
The present invention also provides a kind of apparatus for network node, comprising:
First receiver module is used to receive the probe requests thereby message that is used to indicate the transmission probe messages; Described probe requests thereby message and described probe messages are surveyed the value generation of the operation field in the protocol massages by network delay is set; Described network delay is surveyed protocol massages and is carried operation field, time field and purpose IP address field;
First generation module, the indication that is used for receiving according to described first receiver module is surveyed the value generation probe messages of the operation field of protocol massages by described network delay is set;
First sending module is used for sending described probe messages according to described purpose IP address field;
First logging modle is used to write down the time that sends described probe messages;
Second receiver module is used to receive the response detected message that returns according to described probe messages;
Second logging modle is used for time of the described response detected message of recorder;
Second generation module is used for obtaining network delay according to the time of described first logging modle record and the Time Calculation of described second logging modle record, generates detection request response message; Described detection request response message is surveyed the value generation of the operation field in the protocol massages by described network delay is set; The value of the time field in the described detection request response message is described network delay;
Second sending module is used to send described detection request response message.
The present invention also provides a kind of apparatus for network node, comprising:
Receiver module is used to receive probe messages;
Generation module is used for generating the response detected message according to described probe messages; Described response detected message is provided with the value generation that described network delay is surveyed the operation field in the protocol massages according to the sign of described operation field;
Sending module is used to send described response detected message.
Technique scheme is surveyed agreement (Network Delay Detect Protocol by network delay, NDDP) and between the network node to be measured communicate, avoided that ICMP must be by apparatus for network node to be measured initiator as the detection network time-delay in the prior art, thereby the initiator who has solved the time-delay of prior art detection network can only survey the network delay problem between this node and other nodes, has realized that initiator that detection network is delayed time can survey the network delay between any two network nodes.Simultaneously, the initiator of detection network time-delay can survey network delay between this node and other nodes by any one network node in the network, avoided because the logon problem again that the initiator of detection network time-delay changes and causes, and, because the initiator of detection network time-delay need not " ping " network node to be measured, save the operating time before surveying greatly, improved the detection efficient of network delay, reduced the lag time of the network delay that obtains.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the schematic diagram of network delay in the prior art;
Fig. 2 is for utilizing the schematic diagram of icmp probe network delay in the prior art;
Fig. 3 is the network delay schematic diagram between node A and other network nodes in the prior art;
Fig. 4 is the flow chart of the method embodiment of detection network time-delay of the present invention;
Fig. 5 is network topology schematic diagram among the method embodiment of detection network time-delay of the present invention;
Fig. 6 is the schematic diagram of NDDP message among the method embodiment of detection network time-delay of the present invention;
Fig. 7 is the structural representation of the present invention one apparatus for network node embodiment;
Fig. 8 is the structural representation of another apparatus for network node of the present invention embodiment;
Fig. 9 is the structural representation of the another apparatus for network node embodiment of the present invention.
Embodiment
Fig. 4 is the flow chart of the method embodiment of detection network time-delay of the present invention.The network delay of surveying between first network node and second network node comprises:
The initiator of step 41, detection network time-delay indicates described first network node to send probe messages by the probe requests thereby message, to survey the network delay between first network node and second network node; Described probe requests thereby message and probe messages generate by the value that the operation field in the NDDP message is set; Described NDDP message carries operation field, time field and identifies purpose Internet Protocol (Internet Protocol, IP) address field of second network node; The value of the purpose IP address field in the described probe requests thereby message is the IP address of described second network node;
Step 42, described first network node send probe messages according to indication to second network node of described purpose IP address field sign, and the record transmitting time;
Step 43, described second network node of the described first network node recorder return the time of response detected message; Described response detected message is provided with the value generation that described network delay is surveyed the operation field in the protocol massages according to the sign of described operation field;
Step 44, described first network node utilize the described network delay of described time word segment identification according to time that sends probe messages and the Time Calculation network delay that receives the response detected message, generate and return detection request response message; Described detection request response message generates by the value that the operation field in the NDDP message is set.
The initiator of detection network time-delay also can survey network delay between first network node and second network node by second network node, at this moment, only needs first network node and second network node in above-mentioned steps 41 and the step 42 are replaced.
Above-mentioned steps 41 is to step 44, and the NDDP message can (Transmission Control Protocol, TCP) (UserDatagram Protocol UDP) realizes transmission on the message for message or User Datagram Protoco (UDP) by being carried on transmission control protocol.Or (Internet Protocol IP) realizes transmission in the message directly to be encapsulated in Internet Protocol.
Client-server (Client-Server, C-S) tactic pattern are adopted in the realization of NDDP.Wherein, need know that the network node of delaying time between any two network nodes is called Client, provide the network node of network delay information between two network nodes to be called i.e. first network node of Server to Client.Such as in Fig. 5, if personal computer (PC) utilizes NDDP to know network delay between network node A and Node B, and A provides the information of the network delay between A and B to PC, and then PC is Client, and network node A is Server.
Be carried as example with the TCP message.
As shown in Figure 6, the NDDP message can comprise 3 fields: operation (operation) field, time (time) field and purpose IP address (destination ip address) field.
The operation field length can be 1 byte, and span is 0-255, and the expression recipient receives needs the processing done behind the message.With value 0-4 is that example describes, and also can define other value operations according to actual needs.The implication of operation field is as shown in table 1.
Table 1 operation field implication
Operation field value Implication
0 The miscue message.Expression Client does not identify the destination field value, or destination ip address field value sign does not meet IP address presentation format.
1 The probe requests thereby message.After Server receives this message, need set up a TCP to the purpose side by destination ip address field identification and connect, send probe messages, record sends this machine time t1 of probe messages simultaneously.Operation field is 1 o'clock, and destination ip address field can not be sky.If destination ip address is empty, then return the miscue message to Client.
2 Probe messages.After the recipient receives this probe messages, need to respond a response detected message to opposite end Server at once.
3 The response detected message.After Server receives the response detected message, need record to receive this machine time t2 of this message.
4 Detection request response message.The message of network delay between two network nodes is surveyed in record, and the time field needs to resolve.
The Time field length can be 3 bytes, and span is from 0-16777215, and unit is a millisecond, and promptly surveying the network delay time length that obtains is 0-16777 second.If time is set to 16777 seconds, represent that then route is unreachable between two network nodes.
Destination ip address field length can be 4 bytes, provides the IP address of purpose network node to be detected, and this field contents need meet IP address presentation format.
Further specify below in conjunction with the method for test topology schematic diagram shown in Figure 5 detection network time-delay of the present invention.PC, network node A and network node B connect by network, suppose at the network delay of surveying on the PC between A and B point.Detection process comprises:
The first step: the network node that input will be tested on PC comprises the IP address of starting point A and terminal point B;
Second step: PC sets up TCP with network node A and is connected;
The 3rd step: PC sends NDDP probe requests thereby message to network node A, operation field=1 is set, destination ip address field=192.168.20.5;
The 4th step: network node A sets up TCP with network node B and is connected;
The 5th step: node A sends the NDDP probe messages to Node B, and operation field=2 are set; Record sends this machine time t1 of this message simultaneously;
The 6th step: Node B is received the NDDP probe messages of node A, replys a NDDP response detected message, and operation field=3 are set;
The 7th step: node A receives the NDDP response detected message of Node B, notes this machine time t2 that receives this message;
The 8th step: node A disconnects and being connected with the TCP of Node B;
The 9th step: node A sends the NDDP detection request response message to PC, and operation field=4 are set, and time field=t2-t1 is a network delay;
The tenth step: PC receives the NDDP message of node A, takes out value and demonstration in the time field, as:
“E:\perl?program>NDDP.pl
Please import the IP address of the starting point A that will test: 172.16.20.2
Please import the IP address of the terminal point B that will test: 192.168.20.5
A sets up TCP with B and is connected ...
Set up successfully.Testing the network delay of A and B, please wait a moment ...
The network delay of A and B is: 32ms
E:\perl?program>”。
The 11 step: PC disconnects and being connected with the TCP of node A, finishes the detection of network delay.
Wherein, the PC state machine as Client is that handling process comprises:
The first step: PC starts TCP and connects, and connects the specific network ports 3999 as the network node A of Server.Because 1-1024 is system's reserved port, therefore using more than 1024 is the network port of 1025-65535 as Client, the last NDDP of Server.Here be that example describes with 3999.
If TCP connects the foundation failure then directly returns and survey failure, carried out for the 4th step; Otherwise, carried out for second step;
Second step: the Client sends NDDP probe requests thereby message to Server, operation field=1 is set, the IP address of destination ip address field=network node B.Simultaneously can start overtime timer, overtime timer duration=60 seconds.
When overtime timer expired, Client directly shows the information of surveying failure, changes for the 4th step and handles.The overtime timer time can be set according to actual needs, is set at 60 seconds here, and expression surpasses nonsensical or first network node of 60 seconds network delay breaks down, and for not wasting system resource, disconnects TCP and connects.Simultaneously, overtime timer being set is in order to prevent because lasting existence of TCP connection that system breaks down and causes.Otherwise, carried out for the 3rd step;
The 3rd step: PC waits for the NDDP message that Server returns and resolves.
If operation field=4 of NDDP message represent that then the NDDP message is a detection request response message, the time field in the message is taken out and echo.Changeing for the 4th step handles.
If operation field=0 of NDDP message represents that then the NDDP message is the miscue message, show error message.Changeing for the 4th step handles.
The 4th step: PC finishes to be connected with the TCP of Server.
Network node A condition machine as Server is that handling process comprises:
The first step: network node A starts the NDDP service, continues to monitor the network port 3999.
Second step: if connection request is arranged, then set up TCP and be connected, changeed for the 3rd step and handle with the requesting party.
The 3rd step: check the NDDP message that receives.
When the operation of NDDP message field=1, represent that then the NDDP message is the probe requests thereby message, check the destination ip address field of receiving message.
If Destination ip address field is not a legal IP address, then return the miscue message, operation field=0 is set, so that receiving to disconnect behind this message, Client is connected with the TCP of oneself.
If destination ip address field is a legal IP address, then changeed for the 4th step and handle.
When the operation field in the NDDP message=2, represent that then the NDDP message is a probe messages, need to respond a response detected message to the opposite end at once, operation field=3 are set.As network node A during, carry out this operation as the recipient of probe messages.In the present embodiment, network node B carries out this operation as the recipient, and network node A can be connected with the TCP of network node B after receiving the response detected message in the active disconnection, so network node B only need send the response detected message and need not subsequent operation.
When the operation field in the NDDP message=3, represent that then the NDDP message is the response detected message, note this machine time t2 that receives this message, disconnecting with the opposite end is that the TCP of network node B is connected, changes the 6th and goes on foot processing.
The 4th step: the network node B of the IP address designation in destination ip address field initiates the TCP connection request, connects the network port 3999 of network node B.
If the TCP connection failure is then returned detection request response message to Client, operation field=4 are set, time field=16777, route is unreachable between expression network node A and Node B, so that Client can disconnect the TCP connection after receiving this message.
If the TCP successful connection was changeed for the 5th step and is handled.
The 5th step: send probe messages to B, operation field=2 are set, record sends this machine time t1 of this message simultaneously, changes for the 3rd step and handles.
The 6th step: send detection request response message to Client, operation field=4 are set, time field value=t2-t1.
When NDDP is carried on UDP and goes up, need not to connect, only need to send and receive the NDDP message.
In the present embodiment, be used for the equipment of detection network time-delay by communicating between NDDP agreement and the network node to be measured, avoided that ICMP must be by apparatus for network node to be measured initiator as the detection network time-delay in the prior art, thereby the initiator who has solved the time-delay of prior art detection network can only survey the network delay problem between this node and other nodes, has realized that initiator that detection network is delayed time can survey the network delay between any two network nodes.Simultaneously, the initiator of detection network time-delay can survey network delay between this node and other nodes by any one network node in the network, avoided because the logon problem again that the initiator of detection network time-delay changes and causes, and because the initiator of detection network time-delay need not " ping " network node to be measured, saved the operating time before surveying greatly, improve the detection efficient of network delay, reduced the lag time of the network delay that obtains.
Fig. 7 is the structural representation of the present invention one apparatus for network node embodiment.Apparatus for network node comprises: indicating module 71 and receiver module 72.Suppose to survey the network delay between first network node and second network node, indicating module 71 is used for indicating first network node to send probe messages by the NDDP message, to survey the network delay between first network node and second network node.Described NDDP message carries operation field, time field and identifies the purpose IP address field of second network node; Receiver module 72 is used to receive the NDDP message that sign that described first network node returns has network delay.The Client that apparatus for network node in the present embodiment can be used as among the said method embodiment is that the equipment that detection network is delayed time uses.
In the present embodiment, apparatus for network node indicates first network node to send probe messages by the NDDP message is set, and makes the network node of winning send probe messages according to the indication of apparatus for network node, thereby can obtain the zero-time of network delay.
Fig. 8 is the structural representation of another apparatus for network node of the present invention embodiment.In the present embodiment, apparatus for network node can comprise: first receiver module 81, first generation module 82, first sending module 83, first logging modle 84, second receiver module 85, second logging modle 86, second generation module 87 and second sending module 88.First receiver module 81 is used to receive the NDDP message that is used to indicate the transmission probe messages; The value that first generation module 82 is used for the indication that receives according to described first receiver module 81 operation field by the NDDP message is set generates probe messages NDDP message and generates probe messages; First sending module 83 is used to send described probe messages; First logging modle 84 is used to write down the time that sends described probe messages; Second receiver module 85 is used to receive the response detected message that returns according to described probe messages; Described response detected message is provided with the value generation of the operation field in the described NDDP message according to the sign of described operation field; Second logging modle 86 is used for the time of the described response detected message of recorder; Second generation module 87 is used for obtaining network delay according to the Time Calculation of the time of described first logging modle record and described second logging modle record, and utilize the described network delay of time word segment identification in the NDDP message, generate detection request response message; Second sending module 88 is used to send described detection request response message.The Server that apparatus for network node in the present embodiment can be used as among the said method embodiment uses.
Apparatus for network node with respect to the network delay between above-mentioned detection first network node shown in Figure 7 and second network node is Client, it also is Server that apparatus for network node in the present embodiment can be as described first network node, according to time that sends probe messages and the time that receives the response detected message, obtained network delay, feasible apparatus for network node as Client still can obtain network delay under the control that is not subjected to ICMP.
Fig. 9 is the structural representation of the another apparatus for network node embodiment of the present invention.In the present embodiment, apparatus for network node comprises: receiver module 91, generation module 92 and sending module 93, and receiver module 91 is used to receive probe messages; Generation module 92 is used for generating the response detected message according to described probe messages, and described response detected message is provided with the value generation of the operation field in the described NDDP message according to the sign of described operation field; Sending module 93 is used to send described response detected message.The network node C that apparatus for network node in the present embodiment can be used as among the method embodiment uses.
Apparatus for network node with respect to the network delay between above-mentioned detection first network node shown in Figure 7 and second network node is Client, apparatus for network node in the present embodiment can be as described second network node, send the time of response detected message according to the probe messages that receives, making can be according to the time acquisition network delay that receives the response detected message as first apparatus for network node of Server, and return to Client, like this, the apparatus for network node as Client still can obtain network delay under the control that is not subjected to ICMP.
In order to make any network node in the network can both be as Client, Server or network node C, all modules in above-mentioned three apparatus embodiments can be arranged in the same apparatus for network node.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1, a kind of method of detection network time-delay is characterized in that, comprising:
Indicate first network node to send probe messages by the probe requests thereby message, to survey the network delay between described first network node and second network node;
Described first network node sends probe messages according to indication to described second network node, and the record transmitting time;
Described second network node of the described first network node recorder returns the time of response detected message;
Described first network node generates and returns detection request response message according to time that sends probe messages and the Time Calculation network delay that receives the response detected message;
Described probe requests thereby message, probe messages, response detected message, detection request response message are network delay and survey protocol massages, comprise operation field, time field and purpose IP address field; The value of the purpose IP address field in the described probe requests thereby message is the IP address of described second network node; The value of the time field in the described detection request response message is described network delay.
2, the method for detection network time-delay according to claim 1 is characterized in that, described network delay is surveyed protocol massages and realized transmission in the transmission control protocol message by being encapsulated in.
3, the method for detection network according to claim 2 time-delay is characterized in that, also comprises: for the connection of described transmission control protocol is provided with overtime timer.
4, the method for detection network time-delay according to claim 3 is characterized in that, when described overtime timer expired, finishes to survey.
5, the method for detection network according to claim 2 time-delay is characterized in that, under the situation of the transmission control protocol connection failure of described first network node and described second network node, described first network node returns detection request response message; It is unreachable that described detection request response message is used to identify between described first network node and described second network node route.
6, the method for detection network time-delay according to claim 1 is characterized in that, described network delay is surveyed protocol massages and is to realize in the user datagram protocol message transmission by encapsulation.
According to the method for each described detection network time-delay in the claim 1 to 6, it is characterized in that 7, it is that the network port in 1025~65535 is as interactive interface with port numbers that described network delay is surveyed protocol massages.
8, a kind of apparatus for network node is characterized in that, comprising:
Indicating module is used for indicating first network node to send probe messages by the probe requests thereby message, to survey the network delay between described first network node and second network node;
Receiver module is used to receive the detection request response message that described first network node returns;
Described probe requests thereby message, detection request response message and described probe messages are network delay and survey protocol massages, comprise operation field, time field and purpose IP address field; The value of the purpose IP address field in the described probe requests thereby message is the IP address of described second network node; The value of the time field in the described detection request response message is described network delay.
9, a kind of apparatus for network node is characterized in that, comprising:
First receiver module is used to receive the probe requests thereby message that is used to indicate the transmission probe messages; Described probe requests thereby message and described probe messages are surveyed the value generation of the operation field in the protocol massages by network delay is set; Described network delay is surveyed protocol massages and is carried operation field, time field and purpose IP address field;
First generation module, the indication that is used for receiving according to described first receiver module is surveyed the value generation probe messages of the operation field of protocol massages by described network delay is set;
First sending module is used for sending described probe messages according to described purpose IP address field;
First logging modle is used to write down the time that sends described probe messages;
Second receiver module is used to receive the response detected message that returns according to described probe messages;
Second logging modle is used for time of the described response detected message of recorder;
Second generation module is used for obtaining network delay according to the time of described first logging modle record and the Time Calculation of described second logging modle record, generates detection request response message; Described detection request response message is surveyed the value generation of the operation field in the protocol massages by described network delay is set; The value of the time field in the described detection request response message is described network delay;
Second sending module is used to send described detection request response message.
10, a kind of apparatus for network node is characterized in that, comprising:
Receiver module is used to receive probe messages;
Generation module is used for generating the response detected message according to described probe messages; Described response detected message is provided with the value generation that described network delay is surveyed the operation field in the protocol massages according to the sign of described operation field;
Sending module is used to send described response detected message.
CNA2009100781081A 2009-02-16 2009-02-16 Method for detecting network time delay and network node equipment Pending CN101478459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100781081A CN101478459A (en) 2009-02-16 2009-02-16 Method for detecting network time delay and network node equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100781081A CN101478459A (en) 2009-02-16 2009-02-16 Method for detecting network time delay and network node equipment

Publications (1)

Publication Number Publication Date
CN101478459A true CN101478459A (en) 2009-07-08

Family

ID=40839094

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100781081A Pending CN101478459A (en) 2009-02-16 2009-02-16 Method for detecting network time delay and network node equipment

Country Status (1)

Country Link
CN (1) CN101478459A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185740A (en) * 2011-05-13 2011-09-14 北京星网锐捷网络技术有限公司 Heartbeat detection method and network equipment
CN102843276A (en) * 2011-10-18 2012-12-26 国网电力科学研究院 Network time delay collecting method based on distributed deployment
WO2013029424A1 (en) * 2011-08-30 2013-03-07 中兴通讯股份有限公司 Network detection method, device, and system
CN107612660A (en) * 2017-09-28 2018-01-19 上海盈联电信科技有限公司 Network node scanning method
CN112511454A (en) * 2020-10-14 2021-03-16 网宿科技股份有限公司 Method, system and device for detecting network quality
CN114172830A (en) * 2021-10-28 2022-03-11 阿里巴巴(中国)有限公司 Network delay detection method, device and system
CN114629816A (en) * 2022-03-14 2022-06-14 京东科技信息技术有限公司 Method and system for detecting public network IP network state

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185740A (en) * 2011-05-13 2011-09-14 北京星网锐捷网络技术有限公司 Heartbeat detection method and network equipment
CN102185740B (en) * 2011-05-13 2013-09-18 北京星网锐捷网络技术有限公司 Heartbeat detection method and network equipment
WO2013029424A1 (en) * 2011-08-30 2013-03-07 中兴通讯股份有限公司 Network detection method, device, and system
CN102843276A (en) * 2011-10-18 2012-12-26 国网电力科学研究院 Network time delay collecting method based on distributed deployment
CN102843276B (en) * 2011-10-18 2015-07-08 国网电力科学研究院 Network time delay collecting method based on distributed deployment
CN107612660A (en) * 2017-09-28 2018-01-19 上海盈联电信科技有限公司 Network node scanning method
CN112511454A (en) * 2020-10-14 2021-03-16 网宿科技股份有限公司 Method, system and device for detecting network quality
CN114172830A (en) * 2021-10-28 2022-03-11 阿里巴巴(中国)有限公司 Network delay detection method, device and system
CN114172830B (en) * 2021-10-28 2023-12-12 阿里巴巴(中国)有限公司 Network delay detection method, device and system
CN114629816A (en) * 2022-03-14 2022-06-14 京东科技信息技术有限公司 Method and system for detecting public network IP network state
CN114629816B (en) * 2022-03-14 2023-11-03 京东科技信息技术有限公司 Public network IP network state detection method and system

Similar Documents

Publication Publication Date Title
CN101478459A (en) Method for detecting network time delay and network node equipment
CN102694701B (en) Message based method of testing and system
KR101451194B1 (en) Method and apparatus for measuring distance in contents delivery network
CN107465556B (en) Method, device and system for switching main server and standby server
US20020083191A1 (en) Communication distribution controlling method and apparatus
CN101945018B (en) Node detection method and device and central node of network
CN112737935B (en) Gateway-based data processing method, edge gateway and control system
CN109412966B (en) Large-scale log transmission method, device and system
CN103945411A (en) Method and device for selecting network access points
CN101651721B (en) Method and system for judging type of network address translation equipment
CN105591912A (en) Forwarding path selection method and device
TWI599201B (en) Network system and method for establishing data connection
WO2017218659A1 (en) Generating and transmitting back-to-source routing information
CN105450479A (en) Method and apparatus for monitoring module
CN108667732A (en) A kind of message forwarding method and device
CN107249136A (en) Method for connecting network and device
CN101997774A (en) Recoding method for forwarding time delay and router
CN115208806A (en) Method and device for testing response capability of NTP (network time protocol) server
US9893945B2 (en) Process system for constructing network structure deployment diagram and method thereof and computer program product storing analysis program of network structure deployment
CN103036789B (en) File transmitting method, device and network gateway devices
CN103701626B (en) The preparation method of bandwidth information and the equipment for obtaining bandwidth information
CN111737029A (en) Server, data pushing method and data pushing system
CN103885877A (en) Method and device for generating simulation browser testing script of HTTP
CN110166322A (en) A kind of detection method and relevant apparatus of metering automation terminal
CN105763347A (en) Method for obtaining parameter, network equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090708