CN103404080A - Path communication quality detection method and device - Google Patents
Path communication quality detection method and device Download PDFInfo
- Publication number
- CN103404080A CN103404080A CN2011800029659A CN201180002965A CN103404080A CN 103404080 A CN103404080 A CN 103404080A CN 2011800029659 A CN2011800029659 A CN 2011800029659A CN 201180002965 A CN201180002965 A CN 201180002965A CN 103404080 A CN103404080 A CN 103404080A
- Authority
- CN
- China
- Prior art keywords
- counter
- request message
- heartbeat
- heartbeat request
- content
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
Provided are a path communication quality detection method and device, the method comprising: a transmitting terminal transmits a heartbeat request packet to a receiving terminal, the heartbeat request packet carrying a first field and the source address and target address of a to-be-detected path, the first field indicating that the heartbeat request packet is used to detect the path communication quality; the transmitting terminal receives a heartbeat response packet corresponding to the heartbeat request packet, and determines the communication quality of the to-be-detected path according to the heartbeat request packet and the heartbeat response packet. An embodiment of the present invention realizes communication quality detection for a standby path.
Description
The method and apparatus for detecting path communication quality
Technical field
The present invention relates to network communication technology field, more particularly to a kind of method and apparatus for detecting path communication quality.Background technology
SCTP (Stream Control Transmission Protocol, SCTP) is a kind of reliable host-host protocol, and stable, orderly data delivery service is provided between the two endpoints.When there are multiple transmission addresses respectively in SCTP two end points, many transmission paths are there is between two end points.Under normal circumstances with paths transmission services therein, this paths is referred to as primary path, and remaining path is backup path.The communication quality of backup path can not be detected in the prior art.The content of the invention
The embodiment of the present invention provides a kind of method and apparatus for detecting path communication quality, realizes the detection to the communication quality in path.
A kind of method for detecting path communication quality provided in an embodiment of the present invention, including:
Transmitting terminal sends the source address and destination address and the first field for including path to be detected in heartbeat request message, the heartbeat request message to receiving terminal, and first field shows that the heartbeat request message is detected for path communication quality;
Transmitting terminal receives corresponding with heartbeat request message heartbeat response message, and determines according to the heartbeat request message and heartbeat response message the communication quality in the path to be detected.
A kind of equipment for detecting path communication quality provided in an embodiment of the present invention, including:
Transmitting element, for sending heartbeat request message to receiving terminal, the source address and destination address and the first field in path to be detected are included in the heartbeat request message, first field shows that the heartbeat request message is detected for path communication quality;
Receiving unit, for receiving heartbeat response message corresponding with the heartbeat request message;The heartbeat response message that unit is received determines the communication quality in the path to be detected.
Exhibition, the detection of the communication quality in path is completed according to heartbeat request message.Technical scheme in illustrating in order to illustrate the embodiments of the present invention more clearly, the accompanying drawing used required in being described below to embodiment is briefly described, apparently, drawings in the following description are some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of many Home Systems of the embodiment of the present invention;
Fig. 2 detects the schematic flow sheet of the embodiment of method one of path communication quality for the present invention;Fig. 3 is a kind of schematic diagram of the part composition of heartbeat request message in the embodiment of the present invention;Fig. 4 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention;Fig. 5 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention;Fig. 6 is another schematic diagram of the part composition of heartbeat request message in the embodiment of the present invention;Fig. 7 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention;Fig. 8 detects the structural representation of the embodiment of equipment one of path communication quality for the present invention;Fig. 9 detects the structural representation of another embodiment of equipment of path communication quality for the present invention;Figure 10 detects the structural representation of another embodiment of equipment of path communication quality for the present invention;Figure 11 detects the structural representation of another embodiment of equipment of path communication quality for the present invention;Figure 12 detects the structural representation of another embodiment of equipment of path communication quality for the present invention.Embodiment is to make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
In order to be better understood from the embodiment of the present invention, SCTP related notion is described first.
1) address is transmitted( Transport Address ) :It is IP address and the binary combination of port, uniquely
Identify the sender and recipients of a piece of news.
2) end points(Endpoint ) :It is the set of one group of transmission address with identical port.For example, Endpoint=[IP 1, IP2 ..., Ι Ρ η: Port].
3) it is coupled(Association ) :As a connection-oriented host-host protocol, application layer is transferred to data before another end points from an end points, and information is first exchanged between two end points and sets up a correspondence, this correspondence is exactly to be coupled.For example,
Association={[ ΙΡ11,ΙΡ12,...,ΙΡ1η: Portl] :[ IP21,IP22,...,IP2n: Port2]}
4) primary transmission address( Primary Transport Address ):For standby transport address, end points transmits user data using primary transmission address, and load sharing is done without standby transport address.When primary transmission address is in unactivated state, standby transport address transmission data are enabled.
5) path(Path ) :Path is the vector with origin identification of some relative end points, is the address pair of a source-purpose.When purpose transmission address is in unactivated state, it is believed that the path to this transmission address of purpose end points is failure.
6) belong to more(multi-homing ) :If there are multiple transmission addresses in two SCTP endpoint respectively, many transmission paths are there is in this SCTP couplings.Under normal circumstances, with paths transmission services therein, this paths is referred to as primary path, when primary path is deactivated(When inactive), the backup path transmission that service switching is activated to other.
It is the structural representation of many Home Systems of the embodiment of the present invention referring to Fig. 1, the system includes two ports, respectively terminal A and terminal B, terminal A have two IP address, respectively IP1 and IP2, terminal B also has two IP address, respectively IP3 and IP4.
When terminal A and terminal B communication, terminal A [IP1, IP2:100], terminal B [IP3, IP4:100] { [IP1JP2 is coupled between,:100] :[ IP3JP4 : 100]}.Fig. 1 gives two paths:Path 1 (Pathl) and path 2 (Path2), indeed according to the definition in path, 4 paths can be up between the two end points.
In addition, the on off operating mode of heartbeat request packet check backup path can be used in the prior art.For example, port A sends heartbeat request message to port B, the source address and destination address of the heartbeat request message correspond to the source address and destination address of backup path respectively, port A opening timing devices when sending heartbeat request message, if not receiving the heartbeat response message of the corresponding heartbeat request message of port B transmissions after continuous several times timer expiry, then show that the backup path between port A and port B is off, if receiving the heartbeat response message of the corresponding heartbeat request message of port B transmissions before timer expiry
Then show that the backup path between port A and port B is in connected state.
But, the on off operating mode of backup path can only be detected using heartbeat request message in the prior art, the communication quality of backup path can not be further detected, such as can not detect the qos parameter of backup path.
Heartbeat request message is extended in the detection to the communication quality of backup path, the embodiment of the present invention in order to realize so that relevant parameter is carried, to realize the detection of communication quality.It specifically may refer to following embodiments.
Fig. 2 detects the schematic flow sheet of the embodiment of method one of path communication quality for the present invention, including:Step 21:Transmitting terminal sends the source address and destination address and the first field for including path to be detected in heartbeat request message, the heartbeat request message to receiving terminal, and first field shows that the heartbeat request message is detected for path communication quality.
Wherein, by taking the system shown in Fig. 1 as an example, assuming that path to be detected is path 2, and the source address and destination address in path 2 are respectively IP2 and IP4, the source address and destination address that then terminal A is sent to terminal B in heartbeat detection message, and the heading of the heartbeat detection message are filled with IP2 and IP4 respectively.
In addition, also needing to carry the first above-mentioned field in existing heartbeat request message, first field is properly termed as heartbeat request message purposes(Heartbeat Usage) field, it is common heartbeat request message or the heartbeat request message detected for communication quality that heartbeat request message purposes (Heartbeat Usage) field, which is used to identify corresponding heartbeat request message,.
The Heartbeat Usage fields may be embodied in the request of the heart million just blunt specific information of the heart million of literary sender (Sender-Specific Heartbeat Info) part.
Further, the Heartbeat Usage fields can use type lengths values (Type Length
Value, TLV) form.
Specifically, referring to Fig. 3, heartbeat request message includes heartbeat message part, and heartbeat message part is by heartbeat message type(Heartbeat Info Type), heartbeat message length(Heartbeat Info Length) and the specific heartbeat message of sender(Sender-Specific Heartbeat Info) part composition.Heartbeat request message purposes(Heartbeat Usage) field be included in the specific heartbeat message of sender(Sender-Specific Heartbeat Info) part, and heartbeat message part uses TLV forms, by heartbeat request message purposes type(Heartbeat Usage Type), heartbeat request message purposes length(Heartbeat Usage Length) and heartbeat request message purposes content(Heartbeat Usage) composition.Wherein, above-mentioned Heartbeat Info Type value is 1, Heartbeat Usage Type value can be defined as into 2.The value that Heartbeat Usage Length value can be defined as 4, Heartbeat Usage is used to show that heartbeat request message is general
Logical heartbeat request message, or for path communication quality check heartbeat request message, for example, the value be 0 when be shown to be common heartbeat request message, be worth for 1 when be shown to be for path communication quality detect heartbeat request message.
Step 22:Transmitting terminal receives corresponding with heartbeat request message heartbeat response message, and determines according to the heartbeat request message and heartbeat response message the communication quality in the path to be detected.
Wherein, above-mentioned communication quality Ke is using the saltus step situation as Lost bag numbers, or message content.Further, the Lost bags number above stated can be the Lost bag numbers of the message for different length.The detection of Lost bags number and saltus step situation can be referring specifically to following embodiments.
The present embodiment completes the detection of the communication quality in path according to heartbeat request message by being extended to existing heartbeat request message.
Fig. 4 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention, including:Step 41:Terminal A carries out initial setting up.
Wherein, initial setting up can include:
(1) the first counter and the second counter are set, and the initial value of the first counter and the second counter is set to 0, wherein, first counter is used to count the transmission number of the heartbeat request message for detecting communication quality, and the second counter is used for a pair reception number for heartbeat response message corresponding with the heartbeat request message for detecting communication quality and counted.
(2) start and send cycle timer, the transmission cycle timer is used for the transmission cycle for indicating heartbeat request message, i.e., then send a heartbeat request message after cycle timer time-out is sent.
(3) detection cycle timer is started, the detection cycle timer is used to indicate detection cycle, i.e., detects and terminate after detection cycle timer expiry.
The above-mentioned value of transmission cycle timer and the value of detection cycle timer can be set according to actual needs.
Step 42:After cycle timer time-out is sent, terminal A sends heartbeat request message to port B, and the value of the heartbeat request message purposes field of the heartbeat request message is set to indicate that heartbeat request message is used for the value that communication quality is detected.
If for example, the value of heartbeat request message purposes field shows that heartbeat request message is detected for communication quality for 1, the value of above-mentioned heartbeat request message purposes field is set into 1.
In addition, source address and destination address can also be carried in the heading of heartbeat request message, using the path to be detected as backup path, and exemplified by the corresponding source address of backup path and destination address are IP2, IP4,
Then the source address and destination address in the heading of heartbeat request message are respectively IP2 and IP4.
Step 43:The value of first counter is increased by 1 by terminal A after one above-mentioned heartbeat request message of every transmission.
Step 44:Terminal B sends corresponding heartbeat response message after heartbeat request message is received to port A.
Wherein, the source address and destination address of heartbeat response message and the relation that the source address and destination address of corresponding heartbeat request message are exchanges, so that the source address and destination address of above-mentioned heartbeat request message are respectively IP2 and IP4 as an example, then the corresponding blunt literary source addresses of heartbeat response ^ and destination address are respectively IP4 and IP2.
In addition, in the case of not occurring message content saltus step, the payload content of heartbeat response message is identical with the payload content of corresponding heartbeat request message.
Step 45:The value of second counter is increased by 1 by terminal A after one heartbeat response message corresponding with above-mentioned heartbeat request message of every reception.
Wherein, port A can determine whether corresponding with above-mentioned heartbeat request message according to the source address in heartbeat response message and destination address.
In addition, with the continuous time-out for sending cycle timer, heartbeat request message can be repeatedly transmitted, and corresponding heartbeat response message is received, i.e., above-mentioned step 42-45 can be repeatedly executed.
Step 46:After detection cycle timer expiry, terminal A Ji Suan Lost bag rates.
Where it is assumed that the count value of the first counter is A, the count value of the second counter is that the calculation formula of B , Ze Lost bag rates is:(A-B ) /A.
The present embodiment sets counter, the calculating of Ke Yi Shi Xian Lost bag rates by the way that heartbeat request message is detected for communication quality.
Fig. 5 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention, including:Step 51:Terminal A carries out initial setting up.Detection.
In the present embodiment, initial setting up includes:
(1) multiple first counters and multiple second counters are set, and the initial value of the first counter and the second counter is disposed as 0, wherein, each first counter is respectively used to count the transmission number of the heartbeat request message for detecting communication quality of different filling length, each second counter point
Not Yong Yu the reception number of corresponding heartbeat response message counted.
For example, the message length that can be detected in the present embodiment is as shown in table 1:
Table 1
When the message length that can be detected be shown in table 1 for 9 kinds when, 9 the first counters and respectively the second counter corresponding with each first counter can be then set respectively, be respectively used to statistical length for 8,16,32,64....1400 4 blunt Wen Lost bag rates.
(2) start and send cycle timer, the transmission cycle timer is used for the transmission cycle for indicating heartbeat request message, i.e., then send a heartbeat request message after cycle timer time-out is sent.
(3) detection cycle timer is started, the detection cycle timer is used to indicate detection cycle, i.e., examines and terminate after detection cycle timer expiry.
Step 52:After cycle timer time-out is sent, terminal A sends heartbeat request message to terminal B, and the value of the heartbeat request message purposes field of the heartbeat request message is set to indicate that heartbeat request message is used for the value that communication quality is detected, and heartbeat request message is filled the message content of certain length.
Referring to Fig. 6, on the basis of a upper embodiment, further comprising filling in the heartbeat request message of the present embodiment(Fill) field, the filling field can use TLV forms, by filling type(Fill Type), filling length(Fill Length) and filling content(Fill Content) composition.Fill Type value can be pre-defined value, and for example, 3, Fill Content value according to the content being pre-configured with by being filled, and Fill Length value is set according to the length difference of Fill Content content.For example, if configuration is filled in the way of table 1, Fill Content can fill each byte for 0x55,
Totally 8 byte content, now, Fill Length value is 8;Or, Fill Content can fill the content that each byte is OxAA, totally 16 byte, now, and Fill Length value is 16.It is 8 bytes that this, which fills length,(Byte content), it is 8 bytes that second, which can also fill length,(Byte content), or, it is 16 bytes that second, which can fill length,(Byte content).The specific content filled every time can be filled using random manner or by the way of pre-setting.
Further, need to ensure in each position to improve the content filled in the accuracy of transition detection, message(Bit) it can also be filled by 0 filling by 1.For example, for a byte, the content of-secondary filling is 0x55, i.e. 0101, then need to ensure that highest order has the situation for being filled 1 in the message subsequently sent, a secondary high position has the situation for being filled 0, secondary low level has the situation for being filled 1, and lowest order has the situation for being filled 0.Can be specifically that the content filled in next time is 0xAA.
Step 53:The value of the first counter corresponding with the length of the heartbeat request message of transmission is increased by 1 by terminal A after one above-mentioned heartbeat request message of every transmission.
For example, the length of the heartbeat request message filling content sent is 8, then by for filling the value increase by 1 that the heartbeat request message that length is 8 is transmitted the first counter of counting.
Step 54:Terminal B sends the heartbeat response message of corresponding filling length to port A after the heartbeat request message of a certain filling length is received.Location is obtained after exchanging, for example, the source address and destination address of the heartbeat request message received are respectively IP2 and IP4, then the source address and destination address of heartbeat response text can be filled with IP4 and IP2 respectively, and for remaining content of heartbeat request message, the especially filling content of heartbeat request message, can be with the correspondence position of complete copy to heartbeat response message.
Step 55:The value of corresponding second counter is increased by 1 by terminal A after the certain heartbeat response message of every one filling length of reception.
For example, the length of the heartbeat response message filling content received is 8, then by for filling the value increase by 1 that the heartbeat response message that length is 8 carries out the second counter of count pick up.
In addition, with the continuous time-out for sending cycle timer, heartbeat request message can be repeatedly transmitted, and corresponding heartbeat response message is received, i.e., above-mentioned step 52-55 can be repeatedly executed.
Step 56:After detection cycle timer expiry, terminal A calculates the message Lost bag rates of correspondence length.
Where it is assumed that being respectively A1 and B1 for the first counter and the count value of the second counter counted to the filling content that length is 8, then can obtain the message Lost bag rates that length is 8 is: ( A1-B1 ) /A1 ;Assuming that being respectively A2 and B2 for the first counter and the count value of the second counter counted to the filling content that length is 16, then can obtain the message Lost bag rates that length is 16 is:(A2-B2 ) /A2.Similar, the message Lost bag rates of remaining length can be obtained.
The present embodiment sets the counter of the different message lengths of correspondence by the way that heartbeat request message is detected for communication quality, it is possible to achieve the calculating to the message Lost bag rates of different length.
Fig. 7 detects the schematic flow sheet of another embodiment of method of path communication quality for the present invention, including:Step 71:Terminal A carries out initial setting up.
From unlike a upper embodiment, the present embodiment can be by detecting that the content of filling realizes detection to number of transitions.
In the present embodiment, initial setting up includes:
(1) saltus step counter is set, and the initial value of saltus step counter is set to 0.
(2) start and send cycle timer, the transmission cycle timer is used for the transmission cycle of the heartbeat request message indicated, i.e., then send a heartbeat request message after transmission cycle timer is overtime.
(3) detection cycle timer is started, the detection cycle timer is used to indicate detection cycle, i.e., detects and terminate after detection cycle timer expiry.
Step 72:After cycle timer time-out is sent, terminal A sends heartbeat request message to terminal B, and the value of the heartbeat request message purposes field of the heartbeat request message is set to indicate that heartbeat request message is used for the value that communication quality is detected, and heartbeat request message is filled the message content of certain length.
Specific filling mode may refer to an embodiment.
In addition, terminal A also needs to record the filling information of heartbeat request message.For example, the filling content that a source address and destination address are respectively IP2 and IP4 heartbeat request message is:Totally 8 byte, each byte fills 0x55.Further, in the case where that can fill the scene of different lengths, in addition it is also necessary to the length of record filling content, the length of such as record filling is: 8.
Step 73:Terminal B sends corresponding heartbeat response message after heartbeat request message is received to port A.
Step 74:Terminal A is after one heartbeat response message of every reception, compare the filling content in heartbeat response message and the filling content of corresponding heartbeat request message, if there is content saltus step, then per one bit of saltus step, then the count value of saltus step counter is increased by 1.
Wherein, if under the filling scene of single length, terminal A can determine after corresponding heartbeat request message and heartbeat response message that the filling content of relatively more corresponding heartbeat request message and the filling content of heartbeat response message obtain number of transitions according to source address and destination address.For example, filling length is fixed as under the scene of a certain length, if heartbeat request message R1 source address and destination address are respectively IP2 and IP4, the blunt literary A1 of heartbeat response ^ received source address and destination address is respectively IP4 IP2, then compare R1 filling content F1 and A1 filling content F2, if F1 is identical with F2, then show no saltus step, if F1 is different with F2 a certain position, it is 1 then to determine number of transitions, after analog, number of transitions is obtained.
In addition, if under the filling scene of different length, terminal A is determined after heartbeat request message and heartbeat response message according to source address and destination address, also to continue to determine corresponding heartbeat request message and heartbeat response message according to filling length Fill Length, and then the filling content and the filling content of heartbeat response message of relatively more corresponding heartbeat request message, obtain number of transitions.For example, filling length can be under the scene of different lengths, if heartbeat request message R1 source address and destination address are respectively IP2 and IP4, the blunt literary A1 of heartbeat response ^ received source address and destination address is respectively IP4 IP2, then can not as above a scene when directly compare R1 filling content F1 and A1 filling content F2, but also need to obtain R1 Fill Length parts and Al Fill Length parts, if Rl Fill Length parts are identical with Al Fill Length parts, just further compare R1 filling part F1 and A1 filling part, if F1 is identical with F2, then show no saltus step, if F1 is different with F2 a certain position, it is 1 then to determine number of transitions, after analog, obtain number of transitions.
In addition, with the continuous time-out for sending cycle timer, heartbeat request message can be repeatedly transmitted, and corresponding heartbeat response message is received, i.e., above-mentioned step 72-74 can be repeatedly executed.
Step 75:After detection cycle timer expiry, the value of saltus step counter is defined as content number of transitions by terminal A.
In addition, after needing to obtain the number of transitions of message of different length, one saltus step counter can be set to the message of each filling length, number of transitions is determined using the saltus step counter of correspondence different length respectively with the determination of the Lost bag rates of the similar message to different length.
Mode Que shown in 4 or Fig. 5 Dings Lost bag numbers, and determines in the way of shown in Fig. 6 number of transitions.
The present embodiment sets saltus step counter by the way that heartbeat request message is detected for communication quality, it is possible to achieve the calculating to number of transitions.
In addition, the embodiment of the present invention, which increases heartbeat request message, can realize that path communication quality as above is detected after heartbeat request message purposes field.Simultaneously, the heartbeat request message of the embodiment of the present invention can also be served only for existing break-make detection, now, the value of the heartbeat request message purposes field of heartbeat request message can be set to show the value that heartbeat request message is common heartbeat request message, afterwards, it can be handled according to existing break-make detection mode.
After the data of above-mentioned communication quality detection are obtained, different applications can be carried out.Li such as , Lost bags rates are more than after certain threshold value, such as 0.1%, and the sub-health state of backup path is presented by the similar prompting mode such as alarm, diary, reminds user to be investigated, it is ensured that the communications status that backup path is kept fit.When the bag Zong Shi Bei Lost of length-specific are abandoned, presented by the similar prompting mode such as alarm, diary, the progress for reminding user purposive is investigated, it is ensured that the communications status that backup path is kept fit.Backup path communication quality result of detection provides decision data to belonging to SCTP more according to QoS toggle paths, it is ensured that belong to the accurate and effective switched according to QoS SCTP more.
Fig. 8 is the structural representation of the embodiment of equipment one of present invention detection path communication quality, and the equipment can be the sending ending equipment for being able to carry out SCTP, be specifically as follows base station, base station control device, equipment of the core network etc..The equipment includes transmitting element 81, receiving unit 82 and detection unit 83;Transmitting element 81 is used to send heartbeat request message to receiving terminal, the source address and destination address and the first field in path to be detected are included in the heartbeat request message, first field shows that the heartbeat request message is detected for path communication quality;Receiving unit 82 is used to receive heartbeat response message corresponding with the heartbeat request message;Detection unit 83 is used for the communication quality that the path to be detected is determined according to the heartbeat response message that the heartbeat request message and the receiving unit 82 of the transmitting element 81 transmission are received.
Further, Fig. 9 detects the structural representation of another embodiment of equipment of path communication quality for the present invention, on the basis of a upper embodiment, in addition to:First indicating member 91, transmission cycle timer 92, detection cycle timer 93, the first counter 94 and the second counter 95;First indicating member 91, which is used to start, sends cycle timer 92 and detection cycle timer 93, and the initial value of the first counter 94 and the second counter 95 is disposed as into 0;The transmission cycle timer 92 is used to indicate that the transmitting element 81 sends the heartbeat request message after a time out;First counter 94 is used for after the transmitting element 81 often sends a heartbeat request message, and count value is increased into 1;Second counter 95 is used for after the receiving unit 82 often receives a heartbeat response message corresponding with the heartbeat request message, and count value is increased into 1;The detection unit 83 is specifically for fixed in the detection cycle
When the time-out of device 93 after, Lost bag rates are worth to according to the counting of the count value of first counter and second counter.
Further, on the basis of topology examples of the Figure 10 for another embodiment of equipment of present invention detection path communication quality, the present embodiment also includes:Fills unit 101, for filling content in the region filling of heartbeat request text;The transmitting element 81 is specifically for sending the heartbeat request message after filling content through the fills unit 101;The receiving unit 82 fills the heartbeat response message of the heartbeat request message after content specifically for receiving correspondence;The detection unit 83 fills the message Lost bag rates of content specifically for detection.
Further, Figure 11 is the structural representation of another embodiment of equipment of present invention detection path communication quality, and on the basis of a upper embodiment, the present embodiment also includes:Second indicating member 111, transmission cycle timer 112, detection cycle timer 113, the first counter 114 and the second counter 115;Second indicating member i l l, which are used to start, sends cycle timer 112 and detection cycle timer 113, and the initial value of the first counter 114 and the second counter 115 is disposed as into 0;The number difference at least two of the counter 115 of first counter 114 and second, first counter 114 includes being used for the first counter 1140 to filling the length of correspondence first that content is counted for the heartbeat request message of the first length, and second counter 115 includes the second counter 1150 of the length of correspondence first for being used to count the heartbeat response message that filling content is the first length;The content that the fills unit 101 is filled includes the content of the first length;The transmission cycle timer 112 is used to indicate the message after a time out;First counter 1140 of the length of correspondence first is used for after the transmitting element 81 often sends a filling content for the heartbeat request message of the first length, and count value is increased into 1;Second counter 1150 of the length of correspondence first is used for after the receiving unit 82 often receives a heartbeat response message corresponding with the heartbeat request message that the filling content is the first length, and count value is increased into 1;The detection unit 83 is specifically for after the time-out of detection cycle timer 113, the Lost bag rates of the message of the first length are worth to according to the counting of the count value 1140 of the first counter of the length of correspondence first and the second counter 1150 of the length of the correspondence first.
Further, Figure 12 is the structural representation of another embodiment of equipment of present invention detection path communication quality, and on the basis of the embodiment shown in Figure 10, the present embodiment also includes:3rd indicating member 121, transmission cycle timer 122, detection cycle timer 123, saltus step counter 124 and recording unit 125;
3rd indicating member 121, which is used to start, sends cycle timer 122 and detection cycle timer 123, and the initial value of saltus step counter 124 is set into 0;The cycle timer 122 that sends is used for the heartbeat request message for indicating that the transmitting element 81 is sent after filling content through the fills unit 101 after a time out;Recording unit 125 is used for after 101 pairs of the fills unit heartbeat request message is filled, and record first fills content, and the first filling content is the filling content in heartbeat request message;Saltus step counter 124 is used to compare the second filling content and the first filling content, when there is a filling content change, the count value of saltus step counter is increased by 1, the second filling content is the filling content in the blunt text of heartbeat response that receiving unit 82 is received;The detection unit 83 is specifically for after the time-out of detection cycle timer 123, content saltus step number is defined as by the count value of the saltus step counter 124.
The present embodiment completes the detection of the communication quality in path according to heartbeat request message by being extended to existing heartbeat request message.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can be completed by the related hardware of programmed instruction, and foregoing program can be stored in computer read/write memory medium, and the program upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.
Claims (1)
- Claims1st, a kind of method for detecting path communication quality, it is characterised in that including:Transmitting terminal sends the source address and destination address and the first field for including path to be detected in heartbeat request message, the heartbeat request message to receiving terminal, and first field shows that the heartbeat request message is detected for path communication quality;Transmitting terminal receives corresponding with heartbeat request message heartbeat response message, and determines according to the heartbeat request message and the heartbeat response message communication quality in the path to be detected.2nd, according to the method described in claim 1, it is characterised in that also include:First counter and the second counter are set, the initial value of the initial value of first counter and the second counter is set to 0, and start transmission cycle timer and detection cycle timer, first counter is used to count the transmission number of the heartbeat request message, and second counter is used to count the reception number of the heartbeat response message;The transmitting terminal sends heartbeat request message to receiving terminal, including:After the transmission cycle timer is overtime, the blunt text of the heartbeat request 4 is sent;Often send after a heartbeat request message, the count value of first counter is increased by 1;Often receive after a heartbeat response message corresponding with the heartbeat request message, the count value of second counter is increased by 1;The communication quality that the path to be detected is determined according to the heartbeat request message and the heartbeat response message, including:After the detection cycle timer expiry, get Dao Lost bag rates are calculated according to the count value Ji of the count value of first counter and second counter.3rd, according to the method described in claim 1, it is characterised in that region filling is also included in the heartbeat request message, methods described also includes:Heartbeat request message and corresponding heartbeat response message determine the communication quality in the path to be detected.4th, method according to claim 3, it is characterised in that also include:At least two first counters and respectively the second counter corresponding with each first counter are set, the initial value of the initial value of first counter and second counter is set to 0, and start transmission cycle timer and detection cycle timer, the transmission number that each first counter is respectively used to the heartbeat request message of the content to being filled with different length is counted, each second counter be respectively used to pair with The reception number for being filled with the corresponding heartbeat response message of heartbeat request message of the content of different length is counted;The transmitting terminal sends heartbeat request message to receiving terminal, including:After the transmission cycle timer is overtime, sent after the content that the first length is filled to the heartbeat request message;Often send one filling the first length content heartbeat request message after, by should the first length the first counter count value increase by 1;Often receive one with after the corresponding heartbeat response message of heartbeat request message of the content of the first length of the filling, by should the count value of the second counter of the first length increase by 1;The communication quality that the path to be detected is determined according to the heartbeat request message and the heartbeat response message, including:After the detection cycle timer expiry, calculated according to the count value of the count value of the first counter of correspondence first length and the second counter of correspondence first length and obtain filling Lost bag rate of the content for the message of the first length.5th, method according to claim 3, it is characterised in that also include:Saltus step counter is set, and the initial value of the saltus step counter is set to 0, the saltus step counter is used to count the saltus step number of message content;After being filled to the heartbeat request message, record first fills content, and the first filling content is the filling content in the heartbeat request message;Often receive after a heartbeat response message corresponding with the heartbeat request message, compare the second filling content and the first filling content, the second filling content is the filling content in the heartbeat response message, when there is a filling content change, the count value of the saltus step counter is increased by 1;The communication quality that the path to be detected is determined according to the heartbeat request message and the heartbeat response message, including:After the detection cycle timer expiry, the count value of the saltus step counter is defined as to the content saltus step number on the path to be detected.6th, a kind of equipment for detecting path communication quality, it is characterised in that including:Transmitting element, for sending heartbeat request message to receiving terminal, the source address and destination address and the first field in path to be detected are included in the heartbeat request message, first field shows that the heartbeat request message is detected for path communication quality;Receiving unit, for receiving heartbeat response message corresponding with the heartbeat request message; The heartbeat response message that unit is received determines the communication quality in the path to be detected.7th, equipment according to claim 6, it is characterised in that also include:First indicating member, transmission cycle timer, detection cycle timer, the first counter and the second counter, wherein,First indicating member, sends the cycle timer and the detection cycle timer, and the initial value of first counter and second counter is disposed as into 0 for starting;The transmission cycle timer, for indicating that the transmitting element sends the heartbeat request message after a time out;First counter, for after the transmitting element often sends a heartbeat request message, count value to be increased into 1;Second counter, for after the receiving unit often receives a heartbeat response message corresponding with the heartbeat request message, count value to be increased into 1;The detection unit, specifically for after the detection cycle timer expiry, get Dao Lost bag rates are calculated according to the count value Ji of the count value of first counter and second counter.8th, equipment according to claim 6, it is characterised in that region filling is also included in the heartbeat request message, the equipment also includes:Text;The receiving unit, the heartbeat response message specifically for receiving the heartbeat request message after the correspondence filling content;The detection unit, the message Lost bag rates of content are filled specifically for detection.9th, equipment according to claim 8, it is characterised in that also include:Second indicating member, transmission cycle timer, detection cycle timer, the first counter and the second counter, wherein,Second indicating member, for starting the transmission cycle timer and the detection cycle timer, and is disposed as 0 by the initial value of first counter and second counter;The number difference at least two of first counter and second counter, first counter include be used for filling content for the first length heartbeat request message counted to should the first length the first counter, second counter include be used for filling content be the first length heartbeat response message counted to should the first length the second counter; The content of the fills unit filling includes the content of the first length;The transmission cycle timer, for indicating that the transmitting element sends the heartbeat request message for the content including first length filled through the fills unit after a time out;First counter of the length of correspondence first, for after the transmitting element often sends a filling content for the heartbeat request message of the first length, count value to be increased into 1;Second counter of the length of correspondence first, for after the receiving unit often receives a heartbeat response message corresponding with the heartbeat request message that the filling content is the first length, count value to be increased into 1;The detection unit, specifically for after the detection cycle timer expiry, the Lost bag rates for the message for obtaining the first length are calculated according to the count value of the first counter of the length of correspondence first and the count value of the second counter of the length of the correspondence first.10th, equipment according to claim 8, it is characterised in that also include:3rd indicating member, transmission cycle timer, detection cycle timer, saltus step counter and recording unit, wherein,3rd indicating member, for starting the transmission cycle timer and the detection cycle timer, and is set to 0 by the initial value of the saltus step counter;The transmission cycle timer, for indicating that the transmitting element sends the heartbeat request message after filling content through the fills unit after a time out;Record first fills content, and the first filling content is the filling content in the heartbeat request message;The saltus step counter, for comparing the second filling content and the first filling content, when there is a filling content change, the count value of the saltus step counter is increased by 1, the second filling content is the filling content in the heartbeat response message that the receiving unit is received;The detection unit, specifically for after the detection cycle timer expiry, the count value of the saltus step counter is defined as into content saltus step number.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/083050 WO2013078594A1 (en) | 2011-11-28 | 2011-11-28 | Path communication quality detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103404080A true CN103404080A (en) | 2013-11-20 |
CN103404080B CN103404080B (en) | 2016-10-12 |
Family
ID=48534585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180002965.9A Active CN103404080B (en) | 2011-11-28 | 2011-11-28 | The method and apparatus of detection path communication quality |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103404080B (en) |
WO (1) | WO2013078594A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888138A (en) * | 2017-03-17 | 2017-06-23 | 烽火通信科技股份有限公司 | A kind of service channel detecting system and detection method |
CN107193708A (en) * | 2017-05-17 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of condition detection method and system |
CN109495352A (en) * | 2018-12-27 | 2019-03-19 | 新华三技术有限公司 | A kind of determination method and apparatus of transmission path |
CN112866187A (en) * | 2019-11-28 | 2021-05-28 | 华为技术服务有限公司 | Path switching method and path switching device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050169195A1 (en) * | 2002-10-01 | 2005-08-04 | Huawei Technologies Co., Ltd. | Method for adding devices to management system |
CN1897547A (en) * | 2005-07-14 | 2007-01-17 | 华为技术有限公司 | Method for inspecting Qos in telecommunication network |
CN101404597A (en) * | 2008-11-19 | 2009-04-08 | 华为技术有限公司 | Network quality index acquirement method, system and apparatus |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101166122B (en) * | 2006-10-18 | 2011-06-22 | 中兴通讯股份有限公司 | A method for locating network failure between communication terminals |
CN101242320A (en) * | 2008-03-13 | 2008-08-13 | 华为技术有限公司 | Method and device for monitoring network path |
-
2011
- 2011-11-28 CN CN201180002965.9A patent/CN103404080B/en active Active
- 2011-11-28 WO PCT/CN2011/083050 patent/WO2013078594A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050169195A1 (en) * | 2002-10-01 | 2005-08-04 | Huawei Technologies Co., Ltd. | Method for adding devices to management system |
CN1897547A (en) * | 2005-07-14 | 2007-01-17 | 华为技术有限公司 | Method for inspecting Qos in telecommunication network |
CN101404597A (en) * | 2008-11-19 | 2009-04-08 | 华为技术有限公司 | Network quality index acquirement method, system and apparatus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106888138A (en) * | 2017-03-17 | 2017-06-23 | 烽火通信科技股份有限公司 | A kind of service channel detecting system and detection method |
CN106888138B (en) * | 2017-03-17 | 2019-07-16 | 烽火通信科技股份有限公司 | A kind of service channel detection system and test method |
CN107193708A (en) * | 2017-05-17 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of condition detection method and system |
CN109495352A (en) * | 2018-12-27 | 2019-03-19 | 新华三技术有限公司 | A kind of determination method and apparatus of transmission path |
CN109495352B (en) * | 2018-12-27 | 2021-06-08 | 新华三技术有限公司 | Method and device for determining transmission path |
CN112866187A (en) * | 2019-11-28 | 2021-05-28 | 华为技术服务有限公司 | Path switching method and path switching device |
CN112866187B (en) * | 2019-11-28 | 2022-12-27 | 华为技术服务有限公司 | Path switching method and path switching device |
Also Published As
Publication number | Publication date |
---|---|
WO2013078594A1 (en) | 2013-06-06 |
CN103404080B (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102273136B (en) | Method and apparatus for detecting multi-service performance in tunnel | |
CN101404599B (en) | Network fault detection method, primary device, slave device, control terminal and system | |
CN102098301B (en) | The adaptive data transmission method of multilink and system | |
CN104283806B (en) | Business chain processing method and equipment | |
US8839023B2 (en) | Transmitting network information using link or port aggregation protocols | |
CN103220218B (en) | The method and apparatus of anti-loops in vertical stack networking | |
CN100579034C (en) | Method for reporting equipment information, system and device for obtaining equipment information | |
CN102959911B (en) | A kind of equipment and method | |
CN101877659B (en) | Method, device and system for monitoring packet loss | |
CN102035692B (en) | Method and device for detecting quality of link | |
CN102118277A (en) | Method and device for packet loss detection, and a router | |
CN103404100B (en) | The control method of relay, relay and network system | |
CN103404080A (en) | Path communication quality detection method and device | |
CN103684923A (en) | Method for measuring packet loss and network device | |
CN100395981C (en) | Access rate limiting method based on token pail algorithm | |
CN102984018A (en) | Method, device and system for Ethernet packet loss measurement | |
CN105407073A (en) | Flow table aging method, equipment and system based on OpenFlow protocol | |
CN101848155A (en) | Detection method of label switching path and label switching router | |
CN102026244A (en) | Communication node and method of processing communication fault thereof | |
WO2016177190A1 (en) | Method and device for auto-negotiating lacp reference system and reference port | |
CN104683288A (en) | Message continuous transmission method and device | |
CN101159691B (en) | Originated multi-protocol label switching packet maximum length determining method and node | |
CN104350706B (en) | OAM power is grouped | |
CN103546303A (en) | Lost frame measuring method and system | |
CN102752169B (en) | Transmitting, monitoring method and 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |