CN103404080B - The method and apparatus of detection path communication quality - Google Patents
The method and apparatus of detection path communication quality Download PDFInfo
- Publication number
- CN103404080B CN103404080B CN201180002965.9A CN201180002965A CN103404080B CN 103404080 B CN103404080 B CN 103404080B CN 201180002965 A CN201180002965 A CN 201180002965A CN 103404080 B CN103404080 B CN 103404080B
- Authority
- CN
- China
- Prior art keywords
- request message
- heartbeat request
- enumerator
- content
- path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
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
The present invention provides a kind of method and apparatus detecting path communication quality.The method includes that transmitting terminal sends heartbeat request message to receiving terminal, comprises the source address in path to be detected and destination address and the first field in described heartbeat request message, and described first field shows that described heartbeat request message detects for path communication quality;Transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and determines the communication quality in described path to be detected according to described heartbeat request message and heart beating response message.The embodiment of the present invention can realize the detection of the communication quality to backup path.
Description
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of method and apparatus detecting path communication quality.
Background technology
SCTP (Stream Control Transmission Protocol, SCTP) is a kind of reliable
Host-host protocol, provides stable, orderly data delivery service between the two endpoints.Many when having respectively in two end points of SCTP
Individual transmission address, exists for many transmission paths between these two end points.Under normal circumstances by a paths transmission business therein,
This paths is referred to as primary path, and remaining path is backup path.Prior art can not detect the communication quality of backup path.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus detecting path communication quality, it is achieved the communication quality to path
Detection.
A kind of method detecting path communication quality that the embodiment of the present invention provides, including:
Transmitting terminal sends heartbeat request message to receiving terminal, comprises the source in path to be detected in described heartbeat request message
Address and destination address and the first field, described first field shows that described heartbeat request message is examined for path communication quality
Survey;
Transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and according to described heartbeat request message
With the communication quality that heart beating response message determines described path to be detected.
A kind of equipment detecting path communication quality that the embodiment of the present invention provides, including:
Transmitting element, for sending heartbeat request message to receiving terminal, comprises to be detected in described heartbeat request message
The source address in path and destination address and the first field, described first field shows that described heartbeat request message is logical for path
Letter quality testing;
Receive unit, for receiving the heart beating response message corresponding with described heartbeat request message;
Detector unit, receives for the described heartbeat request message sent according to described transmitting element and described reception unit
Described heart beating response message determine the communication quality in described path to be detected.
As shown from the above technical solution, the embodiment of the present invention by existing heartbeat request message is extended, according to
Heartbeat request message completes the detection of the communication quality in path.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be some embodiments of the present invention, for this
From the point of view of the those of ordinary skill of field, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the structural representation of the many Home Systems of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet that the present invention detects method one embodiment of path communication quality;
Fig. 3 is a kind of schematic diagram of the part composition of heart beating request message in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality;
Fig. 5 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality;
Fig. 6 is the another kind of schematic diagram of the part composition of heart beating request message in the embodiment of the present invention;
Fig. 7 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality;
Fig. 8 is the structural representation that the present invention detects equipment one embodiment of path communication quality;
Fig. 9 is the structural representation that the present invention detects another embodiment of equipment of path communication quality;
Figure 10 is the structural representation that the present invention detects another embodiment of equipment of path communication quality;
Figure 11 is the structural representation that the present invention detects another embodiment of equipment of path communication quality;
Figure 12 is the structural representation that the present invention detects another embodiment of equipment of path communication quality.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
In order to be better understood from the embodiment of the present invention, first the related notion of SCTP is described.
1) transmission address (Transport Address): be the binary combination of IP address and port, uniquely identify
The sender and recipient of message.
2) end points (Endpoint): be the set of one group of transmission address with same port.Such as, Endpoint=
[IP1, IP2 ..., IPn:Port].
3) coupling (Association): as a connection-oriented host-host protocol, application layer data from an end points
Before being transferred to another end points, the information that first exchanges between two end points sets up a correspondence, and this correspondence is exactly coupling.
Such as,
Association={ [IP11, IP12 ..., IP1n:Port1]: [IP21, IP22 ..., IP2n:Port2] }
4) primary transmission address (Primary Transport Address): for standby transport address, end points
Use primary transmission address to transmit user data, do load sharing without standby transport address.When primary transmission address is in not
During state of activation, enable standby transport address transmission data.
5) path (Path): path is the vector with origin identification of certain end points relatively, is the ground of a source-purpose
Location pair.When purpose transmission address is in unactivated state, it is believed that the path to this transmission address of purpose end points is fault.
6) belong to (multi-homing): if there being multiple transmission address in two SCTP endpoint respectively more, then this
Many transmission paths are existed in SCTP coupling.Under normal circumstances, by a paths transmission business therein, this paths is referred to as
Primary path, as primary path deexcitation (inactive), business is switched to other backup path activated transmission.
Seeing Fig. 1, for the structural representation of the many Home Systems of the embodiment of the present invention, this system includes two ports, point
Not Wei terminal A and terminal B, terminal A has two IP addresses, respectively IP1 and IP2, and terminal B also has two IP addresses, point
Wei IP3 and IP4.
When terminal A communicates with terminal B, terminal A [IP1, IP2:100], terminal B [IP3, IP4:100], between coupling
{ [IP1, IP2:100]: [IP3, IP4:100] }.Fig. 1 gives two paths: path 1 (Path1) and path 2 (Path2), real
Definition according to path on border, can be up to 4 paths between the two end points.
Additionally, prior art can use the on off operating mode of heartbeat request packet check backup path.Such as, port A
The source of heartbeat request message, the source address of this heartbeat request message and destination address corresponding backup path respectively is sent to port B
Address and destination address, port A is opening timing device when sending heartbeat request message, if do not had after continuous several times timer expiry
Have and receive the heart beating response message of corresponding heartbeat request message that port B sends, then show between port A and port B is standby
Path is off, if receiving the heart beating response of the corresponding heartbeat request message that port B sends before timer expiry
Message, then show that the backup path between port A and port B is in connected state.
But, prior art uses heartbeat request message can only detect the on off operating mode of backup path, one can not be entered
The communication quality of step detection backup path, such as, can not detect the qos parameter etc. of backup path.
In order to realize the detection of the communication quality to backup path, heartbeat request message is expanded by the embodiment of the present invention
Exhibition so that carry relevant parameter, in order to realize the detection of communication quality.Specifically may refer to following embodiment.
Fig. 2 is the schematic flow sheet that the present invention detects method one embodiment of path communication quality, including:
Step 21: transmitting terminal sends heartbeat request message to receiving terminal, comprises to be detected in described heartbeat request message
The source address in path and destination address and the first field, described first field shows that described heartbeat request message is logical for path
Letter quality testing.
Wherein, as a example by the system shown in Fig. 1, it is assumed that path to be detected is path 2, and the source address in path 2 and mesh
Address be respectively IP2 and IP4, then terminal A sends heartbeat detection message, and the heading of this heartbeat detection message to terminal B
In source address and destination address be filled to IP2 and IP4 respectively.
Additionally, also need to carry the first above-mentioned field in existing heartbeat request message, this first field is properly termed as
Heartbeat request message purposes (Heartbeat Usage) field, this heartbeat request message purposes (Heartbeat Usage) field
It is common heartbeat request message or the heartbeat request for communication quality detection for identifying the heartbeat request message of correspondence
Message.
This Heartbeat Usage field may be embodied in the specific heartbeat message of sender of heartbeat request message
(Sender-Specific Heartbeat Info) part.
Further, this Heartbeat Usage field can use type lengths values (Type LengthValue,
TLV) form.
Specifically, seeing Fig. 3, heartbeat request message comprises heartbeat message part, and heartbeat message part is by heartbeat message class
Type (Heartbeat Info Type), heartbeat message length (Heartbeat Info Length) and sender's specific heart beating letter
Breath (Sender-Specific Heartbeat Info) part composition.Heartbeat request message purposes (Heartbeat Usage)
Field is included in the specific heartbeat message of sender (Sender-SpecificHeartbeat Info) part, and heartbeat message portion
Point use TLV form, long by heartbeat request message purposes type (Heartbeat Usage Type), heartbeat request message purposes
Degree (Heartbeat Usage Length) and heartbeat request message purposes content (Heartbeat Usage) composition.Wherein, on
The value of the Heartbeat InfoType stated is 1, the value of Heartbeat Usage Type can be defined as 2.Heartbeat
The value of UsageLength can be defined as 4, and the value of Heartbeat Usage is for showing that heartbeat request message is the common heart
Jump request message, or for path communication quality check heartbeat request message, such as, this value be shown to be when 0 common
Heartbeat request message, value is to be shown to be the heartbeat request message for path communication quality detection when 1.
Step 22: transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and according to described heart beating
Request message and heart beating response message determine the communication quality in described path to be detected.
Wherein, above-mentioned communication quality can be number of dropped packets, or the saltus step situation of message content.Further, above-mentioned
Number of dropped packets can be the number of dropped packets of the message for different length.The detection of number of dropped packets and saltus step situation can be referring specifically to
Following embodiment.
The present embodiment, by being extended existing heartbeat request message, completes the logical of path according to heartbeat request message
The detection of letter quality.
Fig. 4 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality, including:
Step 41: terminal A carries out initial setting up.
Wherein, initial setting up may include that
(1) the first enumerator and the second enumerator are set, and the initial value of the first enumerator and the second enumerator is arranged
Being 0, wherein, the first enumerator is used for counting the transmission number of the heartbeat request message for detecting communication quality, and second
Enumerator is based on carrying out the reception number of the heart beating response message corresponding with the heartbeat request message by detecting communication quality
Number.
(2) starting transmission cycle timer, this transmission cycle timer is used for indicating the transmission cycle of heartbeat request message,
I.e. after sending cycle timer time-out, then send a heartbeat request message.
(3) starting detection cycle timer, this detection cycle timer is used for indicating the detection cycle, i.e. fixed when the detection cycle
Time device time-out after detect and terminate.
The value of the above-mentioned value sending cycle timer and detection cycle timer can be arranged according to actual needs.
Step 42: after sending cycle timer time-out, terminal A sends heartbeat request message to port B, and this heart beating please
The value seeking the heartbeat request message purposes field of message is set to indicate that heartbeat request message is for value that communication quality detects.
Such as, if the value of heartbeat request message purposes field be 1 show heartbeat request message for communication quality detect,
Then the value of above-mentioned heartbeat request message purposes field is set to 1.
It addition, the heading of heartbeat request message can also carry source address and destination address, with path to be detected
For backup path, and as a example by source address corresponding to backup path and destination address are IP2, IP4, then the message of heartbeat request message
Source address and destination address in Tou are respectively IP2 and IP4.
Step 43: the value of the first enumerator, after often sending an above-mentioned heartbeat request message, is increased by 1 by terminal A.
Step 44: terminal B, after receiving heartbeat request message, sends corresponding heart beating response message to port A.
Wherein, the source address of the source address of heart beating response message and destination address and corresponding heartbeat request message and purpose
Address is the relation exchanged, as a example by the source address of above-mentioned heartbeat request message and destination address are respectively IP2 and IP4, the most right
Source address and the destination address of the heart beating response message answered are respectively IP4 and IP2.
Additionally, in the case of there is not message content saltus step, the payload content of heart beating response message please with corresponding heart beating
The payload content seeking message is identical.
Step 45: terminal A is after often receiving a heart beating response message corresponding with above-mentioned heartbeat request message, by
The value of two enumerators increases by 1.
Wherein, port A can determine whether and the above-mentioned heart according to the source address in heart beating response message and destination address
Jumping request message is corresponding.
Additionally, along with sending the continuous overtime of cycle timer, heartbeat request message can be repeatedly transmitted, and receives
Corresponding heart beating response message, the most above-mentioned step 42-45 can be repeatedly executed.
Step 46: when, after detection cycle timer time-out, terminal A calculates packet loss.
Where it is assumed that the count value of the first enumerator is A, the count value of the second enumerator is B, then the calculating of packet loss is public
Formula is: (A-B)/A.
The present embodiment detects by heartbeat request message is used for communication quality, and arranges enumerator, it is possible to achieve packet loss
The calculating of rate.
Fig. 5 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality, including:
Step 51: terminal A carries out initial setting up.
Unlike a upper embodiment, the present embodiment can realize the detection of the packet loss of the message to different length.
In the present embodiment, initial setting up includes:
(1) multiple first enumerator and multiple second enumerator are set, and by the beginning of the first enumerator and the second enumerator
Initial value is disposed as 0, and wherein, each first enumerator is respectively used to fill difference the heart for detecting communication quality of length
The transmission number jumping request message counts, and the reception number of the heart beating response message that each second enumerator is respectively used to correspondence enters
Row counting.
Such as, the message length that can detect in the present embodiment is as shown in table 1:
Table 1
Fill Length | Fill Content |
8 | 8 byte, each byte fill 0x55 |
16 | 16 byte, each byte fill 0xAA |
32 | 32 byte, each byte fill 0x55 |
64 | 64 byte, each byte fill 0xAA |
128 | 128 byte, each byte fill 0x55 |
256 | 256 byte, each byte fill 0xAA |
512 | 512 byte, each byte fill 0x55 |
1024 | 1024 byte, each byte fill 0xAA |
1400 | 1400 byte, each byte fill 0x55 |
1400 | 1400 byte, each byte fill 0xAA |
When the message length that can detect be shown in table 1 for 9 kinds time, then can be respectively provided with 9 the first enumerators and
The second corresponding with each first enumerator respectively enumerator, be respectively used to statistical length be 8,16,32, the report of 64....1400
The packet loss of literary composition.
(2) starting transmission cycle timer, this transmission cycle timer is used for indicating the transmission cycle of heartbeat request message,
I.e. after sending cycle timer time-out, then send a heartbeat request message.
(3) starting detection cycle timer, this detection cycle timer is used for indicating the detection cycle, i.e. fixed when the detection cycle
Time device time-out after detect and terminate.
Step 52: after sending cycle timer time-out, terminal A sends heartbeat request message to terminal B, and this heart beating please
The value seeking the heartbeat request message purposes field of message be set to indicate that heartbeat request message for the value that communication quality detects,
And heartbeat request message is filled the message content of certain length.
See Fig. 6, on the basis of a upper embodiment, the heartbeat request message of the present embodiment comprises filling further
(Fill) field, this filling field can use TLV form, by filling type (Fill Type), filling length (Fill
Length) form with filling content (Fill Content).The value of Fill Type can be predefined value, for example, 3,
The value of Fill Content is by being filled with according to the content being pre-configured with, and the value of Fill Length is according to Fill
The length difference of the content of Content is arranged.Such as, if configuration is filled with according to the mode of table 1, then Fill Content
Can fill each byte is 0x55, the content of totally 8 byte, and now, the value of Fill Length is 8;Or, Fill
It is 0xAA that Content can fill each byte, the content of totally 16 byte, and now, the value of Fill Length is 16.Additionally,
The filling content of the heartbeat request message every time sent can be identical or different, such as, fills a length of 8 bytes for the first time
(Byte) content, can also fill the content of a length of 8 bytes (Byte) for the second time, or, second time can fill length
Degree is the content of 16 bytes (Byte).The concrete content every time filled can use random manner or the side pre-set
Formula is filled with.
Further, in order to improve the accuracy of transition detection, the content filled in message needs to ensure in each position
(bit) can be filled by 0 also can be by 1 filling.Such as, for a byte, the content once filled is 0x55, i.e. 0101, then exist
The message of follow-up transmission needs ensure that highest order has the situation being filled 1, a secondary high position to have the situation being filled 0, secondary low level to have
Being filled the situation of 1, lowest order has the situation being filled 0.Can be specifically next time fill content be 0xAA.
Step 53: terminal A after often send an above-mentioned heartbeat request message, by with the heartbeat request message sent
The value of the first enumerator that length is corresponding increases by 1.
Such as, the heartbeat request message of transmission fills a length of the 8 of content, then will be used for the heart beating filling a length of 8
Request message is transmitted the value of the first enumerator of counting increases by 1.
Step 54: terminal B, after the heartbeat request message receiving a certain filling length, sends corresponding filling out to port A
Fill the heart beating response message of length.
Wherein, after heart beating response message can be by exchanging the source address of corresponding heartbeat request message and destination address
Obtaining, such as, source address and the destination address of a heart beating request message of reception are respectively IP2 and IP4, then can heart beating be answered
Source address and the destination address of answering message are filled to IP4 and IP2 respectively, and for remaining content of heartbeat request message, especially
It is the filling content of heartbeat request message, can be with the correspondence position of complete copy to heart beating response message.
Step 55: terminal A is after often receiving a certain heart beating response message of filling length, by the second corresponding counting
The value of device increases by 1.
Such as, the heart beating response message of reception fills a length of the 8 of content, then will be used for the heart beating filling a length of 8
Response message is received the value of the second enumerator of counting increases by 1.
Additionally, along with sending the continuous overtime of cycle timer, heartbeat request message can be repeatedly transmitted, and receives
Corresponding heart beating response message, the most above-mentioned step 52-55 can be repeatedly executed.
Step 56: when, after detection cycle timer time-out, terminal A calculates the packet loss of the message of corresponding length.
Where it is assumed that based on the first enumerator that the filling content of a length of 8 is counted and the second enumerator
Numerical value is respectively A1 and B1, then the packet loss of the message that can obtain a length of 8 is: (A1-B1)/A1;Assume for length
Be 16 filling content carry out the count value of the first enumerator and the second enumerator counted and be respectively A2 and B2, then can obtain
The packet loss of the message of a length of 16 is: (A2-B2)/A2.It is similar to, the packet loss of the message of remaining length can be obtained.
The present embodiment detects by heartbeat request message is used for communication quality, and arranges the meter of corresponding different message length
Number devices, it is possible to achieve the calculating to the packet loss of the message of different length.
Fig. 7 is the schematic flow sheet that the present invention detects another embodiment of method of path communication quality, including:
Step 71: terminal A carries out initial setting up.
Unlike a upper embodiment, the present embodiment can realize the inspection to number of transitions by the content that detection is filled
Survey.
In the present embodiment, initial setting up includes:
(1) saltus step enumerator is set, and the initial value of saltus step enumerator is set to 0.
(2) starting transmission cycle timer, this transmission cycle timer is for the transmission week of the heartbeat request message of instruction
Phase, i.e. after sending cycle timer time-out, then send a heartbeat request message.
(3) starting detection cycle timer, this detection cycle timer is used for indicating the detection cycle, i.e. fixed when the detection cycle
Time device time-out after detect and terminate.
Step 72: after sending cycle timer time-out, terminal A sends heartbeat request message to terminal B, and this heart beating please
The value seeking the heartbeat request message purposes field of message be set to indicate that heartbeat request message for the value that communication quality detects,
And heartbeat request message is filled the message content of certain length.
Concrete filling mode may refer to an embodiment.
Additionally, terminal A also needs to record the filling information of heartbeat request message.Such as, a source address and destination address
The filling content of the heartbeat request message being respectively IP2 and IP4 is: totally 8 byte, each byte fill 0x55.Further,
Under the scene that can fill different lengths, in addition it is also necessary to the length of content filled in record, as recorded a length of of filling: 8.
Step 73: terminal B, after receiving heartbeat request message, sends corresponding heart beating response message to port A.
Step 74: terminal A after often receiving a heart beating response message, compare filling content in heart beating response message with
The filling content of corresponding heartbeat request message, if there is content saltus step, then every one bit of saltus step, then by saltus step enumerator
Count value increase by 1.
Wherein, if under the filling scene of single length, terminal A can determine correspondence according to source address and destination address
Heartbeat request message and heart beating response message after, the filling content of relatively more corresponding heartbeat request message and heart beating response message
Filling content, obtain number of transitions.Such as, fill under the scene that length is fixed as a certain length, if heartbeat request message R1
Source address and destination address be respectively IP2 and IP4, the source address of the heart beating response message A1 received and destination address
It is respectively IP4 IP2, then compares filling content F1 of R1 and filling content F2 of A1, if F1 with F2 is identical, then show do not have
Saltus step, if a certain position of F1 with F2 is different, it is determined that number of transitions is 1, after analog, obtains number of transitions.
If it addition, under the filling scene of different length, terminal A determines heartbeat request according to source address and destination address
After message and heart beating response message, also to continue according to fill length Fill Length determine correspondence heartbeat request message and
Heart beating response message, and then compare filling content and the filling content of heart beating response message of the most corresponding heartbeat request message,
To number of transitions.Such as, fill under the scene that length can be different lengths, if the source address of heartbeat request message R1 and purpose
Address is respectively IP2 and IP4, and the source address of the heart beating response message A1 received and destination address are respectively IP4
IP2, then can not as above a scene time directly compare filling content F1 of R1 and filling content F2 of A1, but also need to obtain R1
Fill Length part and the Fill Length part of A1, if the Fill Length part of R1 and the Fill of A1
Length part is identical, compares filling part F1 of R1 and the filling part of A1 the most further, if F1 with F2 is identical, then shows
There is no saltus step, if a certain position of F1 with F2 is different, it is determined that number of transitions is 1, after analog, obtains number of transitions.
Additionally, along with sending the continuous overtime of cycle timer, heartbeat request message can be repeatedly transmitted, and receives
Corresponding heart beating response message, the most above-mentioned step 72-74 can be repeatedly executed.
Step 75: when, after detection cycle timer time-out, the value of saltus step enumerator is defined as content number of transitions by terminal A.
Additionally, after needing the number of transitions of message of acquisition different length, losing of the message to different length can be similar to
The determination of bag rate, arranges a saltus step enumerator to the message of each filling length, uses the saltus step counting of corresponding different length
Device determines number of transitions respectively.
Furthermore, the present embodiment can be carried out, such as, both according to shown in Fig. 4 or Fig. 5 with the embodiment of detection number of dropped packets simultaneously
Mode determine number of dropped packets, determine number of transitions according to the mode shown in Fig. 6 again.
The present embodiment detects by heartbeat request message is used for communication quality, and arranges saltus step enumerator, it is possible to achieve
Calculating to number of transitions.
It addition, the embodiment of the present invention can realize as above after heartbeat request message is increased heartbeat request message purposes field
Path communication quality detection.Meanwhile, the heartbeat request message of the embodiment of the present invention can also be served only for the detection of existing break-make,
At this point it is possible to be set to show that heartbeat request message is common by the value of the heartbeat request message purposes field of heartbeat request message
The value of heartbeat request message, afterwards, can process according to existing break-make detection mode.
After the data obtaining the detection of above-mentioned communication quality, different application can be carried out.Such as, packet loss is more than certain
Threshold value, after 0.1%, is presented the sub-health state of backup path, reminds user by the prompting mode that alarm, diary etc. are similar
Investigate, it is ensured that the communications status that backup path is kept fit.When the bag of length-specific is always dropped, by alarm, day
The prompting mode that note etc. are similar presents, and the carrying out reminding user purposive is investigated, it is ensured that the communication that backup path is kept fit
State.Backup path communication quality result of detection provides decision data to the many ownership of SCTP according to QoS toggle path, it is ensured that SCTP
Many ownership are according to the accurate and effective of QoS switching.
Fig. 8 is the structural representation that the present invention detects equipment one embodiment of path communication quality, and this equipment can be energy
Enough perform the sending ending equipment of SCTP, be specifically as follows base station, base station control device, equipment of the core network etc..This equipment includes sending out
Send unit 81, receive unit 82 and detector unit 83;Transmitting element 81 is for sending heartbeat request message, the described heart to receiving terminal
Jumping the source address and destination address and the first field comprising path to be detected in request message, described first field shows institute
State heartbeat request message to detect for path communication quality;Receive unit 82 corresponding with described heartbeat request message for receiving
Heart beating response message;Detector unit 83 is for the described heartbeat request message sent according to described transmitting element 81 and described reception
The described heart beating response message that unit 82 receives determines the communication quality in described path to be detected.
Further, Fig. 9 is the structural representation that the present invention detects another embodiment of equipment of path communication quality, upper
On the basis of one embodiment, also include: the first indicating member 91, transmission cycle timer 92, detection cycle timer 93, first
Enumerator 94 and the second enumerator 95;First indicating member 91 is used for starting transmission cycle timer 92 and detection cycle timer
93, and the initial value of the first enumerator 94 and the second enumerator 95 is disposed as 0;Described transmission cycle timer 92 is used for
Described transmitting element 81 is indicated to send described heartbeat request message after time-out;Described first enumerator 94 is for sending list described
After unit 81 often sends a described heartbeat request message, count value is increased by 1;Described second enumerator 95 is in described reception
After unit 82 often receives a heart beating response message corresponding with described heartbeat request message, count value is increased by 1;Described detection
Unit 83 is specifically for after described detection cycle timer 93 time-out, according to the count value and described of described first enumerator
The count value of two enumerators obtains packet loss.
Further, Figure 10 is the structural representation that the present invention detects another embodiment of equipment of path communication quality, this
Also comprising region filling in described heartbeat request message in embodiment, on the basis of the embodiment shown in Fig. 8, the present embodiment is also
Including: fill unit 101, for filling content in the described region filling of described heartbeat request message;Described transmitting element 81
Specifically for sending the heartbeat request message after described filling unit 101 fills content;Described reception unit 82 specifically for
Receive the heart beating response message of the heartbeat request message after correspondence filling content;Described detector unit 83 is filled specifically for detection
The packet loss of the message of content.
Further, Figure 11 is the structural representation that the present invention detects another embodiment of equipment of path communication quality,
On the basis of a upper embodiment, the present embodiment also includes: the second indicating member 111, transmission cycle timer 112, detection cycle
Intervalometer the 113, first enumerator 114 and the second enumerator 115;Second indicating member 111 is used for starting transmission cycle timer
112 and detection cycle timer 113, and the initial value of the first enumerator 114 and the second enumerator 115 is disposed as 0;Described
The number of the first enumerator 114 and the second enumerator 115 at least two respectively, described first enumerator 114 includes for right
Filling content is the first enumerator 1140 that the heartbeat request message of the first length carries out correspondence the first length counted, described the
Two enumerators 115 include for filling correspondence the first length that the heart beating response message that content is the first length counts
Second enumerator 1150;The content that described filling unit 101 is filled includes the content of the first length;Described transmission cycle timer
112 for indicate after a time out described transmitting element 81 send through described filling unit 101 fill include the first length in
The heartbeat request message held;First enumerator 1140 of described corresponding first length is for often sending one at described transmitting element 81
After individual filling content is the heartbeat request message of the first length, count value is increased by 1;Second counting of described corresponding first length
Device 1150 for described reception unit 82 often receive one with the heartbeat request message pair that described filling content is the first length
After the heart beating response message answered, count value is increased by 1;Described detector unit 83 is specifically at described detection cycle timer
After 113 time-out, according to the count value 1140 and the of described corresponding first length of the first enumerator of described corresponding first length
The count value of two enumerators 1150 obtains the packet loss of the message of the first length.
Further, Figure 12 is the structural representation that the present invention detects another embodiment of equipment of path communication quality,
On the basis of embodiment shown in Figure 10, the present embodiment also includes: the 3rd indicating member 121, transmission cycle timer 122, inspection
Survey cycle timer 123, saltus step enumerator 124 and record unit 125;It is fixed that 3rd indicating member 121 is used for starting transmission circulation
Time device 122 and detection cycle timer 123, and the initial value of saltus step enumerator 124 is set to 0;Described transmission circulation timing
Device 122 is for indicating described transmitting element 81 to send the heartbeat request after described filling unit 101 fills content after a time out
Message;Record unit 125 is for after described heartbeat request message is filled with by described filling unit 101, and record first is filled out
Filling content, described first filling content is the filling content in heartbeat request message;Saltus step enumerator 124 is used for comparing second and fills out
Fill content and first and fill content, when having one and filling content change, by the count value increase by 1 of saltus step enumerator, described
Second fills the filling content in the heart beating response message that content is reception unit 82 reception;Described detector unit 83 specifically for
After described detection cycle timer 123 time-out, the count value of described saltus step enumerator 124 is defined as content saltus step number.
The present embodiment, by being extended existing heartbeat request message, completes the logical of path according to heartbeat request message
The detection of letter quality.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through
The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in computer read/write memory medium, and this program exists
During execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: ROM, RAM, magnetic disc or CD
Etc. the various media that can store program code.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although
With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used
So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent;
And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (6)
1. the method detecting path communication quality, it is characterised in that including:
Transmitting terminal sends heartbeat request message to receiving terminal, comprises the source address in path to be detected in described heartbeat request message
With destination address and the first field, described first field shows that described heartbeat request message detects for path communication quality;
Transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and according to described heartbeat request message and institute
State heart beating response message and determine the communication quality in described path to be detected;
The method of described detection path communication quality also includes: arrange the first enumerator and the second enumerator, by the first enumerator
Initial value and the initial value of the second enumerator be set to 0, and start transmission cycle timer and detection cycle timer, described
First enumerator is for counting the transmission number of described heartbeat request message, and described second enumerator is for described heart beating
The reception number of response message counts;
Described transmitting terminal sends heartbeat request message to receiving terminal, including: when, after described transmission cycle timer time-out, sending institute
State heartbeat request message;
After often sending a described heartbeat request message, the count value of described first enumerator is increased by 1;
After often receiving a described heart beating response message corresponding with described heartbeat request message, by the meter of described second enumerator
Numerical value increases by 1;
The described communication quality determining described path to be detected according to described heartbeat request message and described heart beating response message,
Including:
When after described detection cycle timer time-out, according to count value and the meter of described second enumerator of described first enumerator
Numerical computations obtains packet loss.
2. the method detecting path communication quality, it is characterised in that including:
Transmitting terminal sends heartbeat request message to receiving terminal, comprises the source address in path to be detected in described heartbeat request message
With destination address and the first field, described first field shows that described heartbeat request message detects for path communication quality;
Transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and according to described heartbeat request message and institute
State heart beating response message and determine the communication quality in described path to be detected;
Also comprising region filling in described heartbeat request message, described method also includes:
In the described region filling of described heartbeat request message, fill content and send, according to the heartbeat request report after filling content
Civilian and corresponding heart beating response message determines the communication quality in described path to be detected;
Described method also includes: arrange at least two the first enumerator and the second corresponding with each first enumerator respectively counting
Device, is set to 0 by the initial value of described first enumerator and the initial value of described second enumerator, and starts transmission circulation timing
Device and detection cycle timer, each first enumerator is respectively used to the heartbeat request message to the content being filled with different length
Transmission number count, each second enumerator is respectively used to the heartbeat request message with the content being filled with different length
The reception number of corresponding heart beating response message counts;
Described transmitting terminal sends heartbeat request message to receiving terminal, including: when after described transmission cycle timer time-out, to described
Heartbeat request message sends after filling the content of the first length;
After often sending the heartbeat request message of a content filling the first length, by should the first enumerator of the first length
Count value increase by 1;
After often receiving a heart beating response message corresponding with the heartbeat request message of the content of described filling the first length, by right
Should the first length the second enumerator count value increase by 1;
The described communication quality determining described path to be detected according to described heartbeat request message and described heart beating response message,
Including:
When after described detection cycle timer time-out, according to count value and the correspondence of the first enumerator of corresponding described first length
The count value of the second enumerator of described first length is calculated the packet loss filling the message that content is the first length.
3. the method detecting path communication quality, it is characterised in that including:
Transmitting terminal sends heartbeat request message to receiving terminal, comprises the source address in path to be detected in described heartbeat request message
With destination address and the first field, described first field shows that described heartbeat request message detects for path communication quality;
Transmitting terminal receives the heart beating response message corresponding with described heartbeat request message, and according to described heartbeat request message and institute
State heart beating response message and determine the communication quality in described path to be detected;
Also comprising region filling in described heartbeat request message, described method also includes:
In the described region filling of described heartbeat request message, fill content and send, according to the heartbeat request report after filling content
Civilian and corresponding heart beating response message determines the communication quality in described path to be detected;
Described method also includes: arrange saltus step enumerator, and the initial value of described saltus step enumerator is set to 0, described saltus step
Enumerator is for counting the saltus step number of message content;And start transmission cycle timer and detection cycle timer;
After being filled with described heartbeat request message, record the first filling content, described first filling content is described heart beating
Filling content in request message;
Often receive after a heart beating response message corresponding with described heartbeat request message, compare the second filling content and described the
One fills content, and described second filling content is the filling content in described heart beating response message, fills content when there being one
During change, the count value of described saltus step enumerator is increased by 1;
The described communication quality determining described path to be detected according to described heartbeat request message and described heart beating response message,
Including:
When after described detection cycle timer time-out, the count value of described saltus step enumerator is defined as described path to be detected
On content saltus step number.
4. the equipment detecting path communication quality, it is characterised in that including:
Transmitting element, for sending heartbeat request message to receiving terminal, comprises path to be detected in described heartbeat request message
Source address and destination address and the first field, described first field shows that described heartbeat request message is for path communication matter
Amount detection;
Receive unit, for receiving the heart beating response message corresponding with described heartbeat request message;
Detector unit, the institute received for the described heartbeat request message sent according to described transmitting element and described reception unit
State heart beating response message and determine the communication quality in described path to be detected;
The equipment of described detection path communication quality also includes: the first indicating member, transmission cycle timer, the timing of detection cycle
Device, the first enumerator and the second enumerator, wherein,
Described first indicating member, is used for starting the described cycle timer of transmission and described detection cycle timer, and by described
The initial value of the first enumerator and described second enumerator is disposed as 0;
Described transmission cycle timer, for indicating described transmitting element to send described heartbeat request message after a time out;
Described first enumerator, for after described transmitting element often sends a described heartbeat request message, increases count value
Add 1;
Described second enumerator, should for often receiving a heart beating corresponding with described heartbeat request message at described reception unit
After answering message, count value is increased by 1;
Described detector unit, specifically for after described detection cycle timer time-out, according to the counting of described first enumerator
The count value of value and described second enumerator is calculated packet loss.
5. the equipment detecting path communication quality, it is characterised in that including:
Transmitting element, for sending heartbeat request message to receiving terminal, comprises path to be detected in described heartbeat request message
Source address and destination address and the first field, described first field shows that described heartbeat request message is for path communication matter
Amount detection;
Receive unit, for receiving the heart beating response message corresponding with described heartbeat request message;
Detector unit, the institute received for the described heartbeat request message sent according to described transmitting element and described reception unit
State heart beating response message and determine the communication quality in described path to be detected;
Fill unit, for filling content in the region filling of described heartbeat request message;
Described transmitting element, specifically for sending the heartbeat request message after described filling unit fills content;
Described reception unit, specifically for the heart beating response message of the heartbeat request message after the corresponding described filling content of reception;
The equipment of described detection path communication quality also includes:
Second indicating member, transmission cycle timer, detection cycle timer, the first enumerator and the second enumerator, wherein,
Described second indicating member, is used for starting described transmission cycle timer and described detection cycle timer, and by described
The initial value of the first enumerator and described second enumerator is disposed as 0;
The number of described first enumerator and described second enumerator at least two respectively, described first enumerator include for
To fill content be the heartbeat request message of the first length count to should the first enumerator of the first length, described the
Two enumerators include for fill content be the heart beating response message of the first length count to should the first length
Second enumerator;
The content that described filling unit is filled includes the content of the first length;
Described transmission cycle timer, the bag filled through described filling unit for indicating described transmitting element to send after a time out
Include the heartbeat request message of the content of described first length;
First enumerator of described corresponding first length, is the first length for often send one filling content at described transmitting element
After the heartbeat request message of degree, count value is increased by 1;
Second enumerator of described corresponding first length, for often receiving one at described reception unit with described filling content be
After the heart beating response message that the heartbeat request message of the first length is corresponding, count value is increased by 1;
Described detector unit, specifically for after described detection cycle timer time-out, according to the of described corresponding first length
The count value of the count value of one enumerator and the second enumerator of described corresponding first length is calculated the message of the first length
Packet loss.
6. the equipment detecting path communication quality, it is characterised in that including:
Transmitting element, for sending heartbeat request message to receiving terminal, comprises path to be detected in described heartbeat request message
Source address and destination address and the first field, described first field shows that described heartbeat request message is for path communication matter
Amount detection;
Receive unit, for receiving the heart beating response message corresponding with described heartbeat request message;
Detector unit, the institute received for the described heartbeat request message sent according to described transmitting element and described reception unit
State heart beating response message and determine the communication quality in described path to be detected;
Fill unit, for filling content in the region filling of described heartbeat request message;
Described transmitting element, specifically for sending the heartbeat request message after described filling unit fills content;
Described reception unit, specifically for the heart beating response message of the heartbeat request message after the corresponding described filling content of reception;
The equipment of described detection path communication quality also includes:
3rd indicating member, transmission cycle timer, detection cycle timer, saltus step enumerator and record unit, wherein,
Described 3rd indicating member, is used for starting described transmission cycle timer and described detection cycle timer, and by described
The initial value of saltus step enumerator is set to 0;
Described transmission cycle timer, fills content for indicating described transmitting element to send after a time out through described filling unit
After heartbeat request message;
Described record unit, for after described heartbeat request message is filled with by described filling unit, record first is filled
Content, described first filling content is the filling content in described heartbeat request message;
Described saltus step enumerator, is used for comparing the second filling content and described first and fills content, fill content when there being one
During change, the count value of described saltus step enumerator increasing by 1, described second fills the heart beating that content is the reception of described reception unit
Filling content in response message;
Described detector unit, specifically for after described detection cycle timer time-out, by the count value of described saltus step enumerator
It is defined as 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 CN103404080A (en) | 2013-11-20 |
CN103404080B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN109495352B (en) * | 2018-12-27 | 2021-06-08 | 新华三技术有限公司 | Method and device for determining transmission path |
CN112866187B (en) * | 2019-11-28 | 2022-12-27 | 华为技术服务有限公司 | Path switching method and path switching device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222354A (en) * | 2002-10-01 | 2008-07-16 | 华为技术有限公司 | Intelligent terminal management method |
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103404080A (en) | 2013-11-20 |
WO2013078594A1 (en) | 2013-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8370697B2 (en) | System and method for power outage and restoration notification in an advanced metering infrastructure network | |
CN101257388B (en) | Lawless exterior joint detecting method, apparatus and system | |
CN101404599B (en) | Network fault detection method, primary device, slave device, control terminal and system | |
CN102546117B (en) | A kind of LOF method of measurement, Apparatus and system | |
CN103404080B (en) | The method and apparatus of detection path communication quality | |
CN101345708B (en) | Method and apparatus for generating forwarding table | |
CN102045222B (en) | Real-time overall test method of network system | |
CN102594600B (en) | A kind of method and system of definite two-way converting inspection session abort situation | |
US20110188380A1 (en) | Packet loss rate detection method, apparatus, and system | |
CN101877659B (en) | Method, device and system for monitoring packet loss | |
CN104753614B (en) | A kind of detection method and device of power information acquisition system failure | |
CN101202664A (en) | Method for reporting equipment information, system and method for obtaining equipment information | |
CN106411625A (en) | Link message packet loss measurement method and system, target node and initiator node | |
CN102984018A (en) | Method, device and system for Ethernet packet loss measurement | |
US8972524B2 (en) | Internet protocol message routing over a wireless network of metering devices | |
US20140141711A1 (en) | Use of a mobile data collection device | |
CN101800672B (en) | Equipment detection method and equipment | |
US8526334B2 (en) | Choosing connectable end points for network test | |
CN105099762B (en) | A kind of self checking method and self-checking system of system O&M function | |
CN101997774A (en) | Recoding method for forwarding time delay and router | |
CN105871661A (en) | Public network server detection method and detection server | |
KR20130052009A (en) | Method of enabling a packet loss measurement in a packet transport network | |
CN106506265B (en) | Detection fpga chip hangs dead method and device | |
CN108063814A (en) | A kind of load-balancing method and device | |
CN103546303A (en) | Lost frame measuring method 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |