CN109728967A - Communication quality detection method, communication equipment and system - Google Patents
Communication quality detection method, communication equipment and system Download PDFInfo
- Publication number
- CN109728967A CN109728967A CN201711048338.4A CN201711048338A CN109728967A CN 109728967 A CN109728967 A CN 109728967A CN 201711048338 A CN201711048338 A CN 201711048338A CN 109728967 A CN109728967 A CN 109728967A
- Authority
- CN
- China
- Prior art keywords
- communication
- communication link
- parameter
- detection messages
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The present invention provides a kind of communication quality detection method, communication equipment and system, the system comprises receiving device and sending ending equipments, the described method includes: receiving device receives sending ending equipment from least two communication links according to the synchronous detection messages sent of scheduled rate, the detection messages include the sequence of message number incremented by successively according to transmission times;Receiving device records the sequence of message number for the detection messages that receiving port corresponding with each communication link receives, and the sequence of message number according to the detection messages obtains the communication quality parameter of the communication link.Detection messages are sent through different communication chain road direction receiving device is synchronous by sending ending equipment, receiving device calculates the communication quality for judging each communication link according to the sequence of message number carried in the detection messages.In this way, being the communication quality that can determine different links by simple process logic and interactive process in the case where not depending on quality testing agreement.
Description
Technical field
The present invention relates to data communication technology fields, in particular to a kind of communication quality detection method, communication equipment
And system.
Background technique
In communication networking, in order to avoid communication link fails influence the reliability of network, often in a pair of of phase intercommunication
Multiple communication links are arranged between the network node of letter, and when certain communication link breaks down, network node automatically leads to failure
The data transmission service of letter chain road is transferred to other communication links, to guarantee the normal transmission of data, improves the reliable of network
Property.It is generally required in communication link switchover policy by the testing result to communication quality, common communication quality detection method
In, or only can be carried out the detection of data accessibility, detailed communication quality can not be detected;Or it needs to rely on detection protocol and is answered
Communication quality detection, the burden and communications cost of increased communication equipment are realized in miscellaneous data interaction.
Summary of the invention
In order to overcome above-mentioned deficiency in the prior art, the purpose of the present invention is to provide a kind of communication quality detection sides
Method, applied to the receiving device for establishing at least two communication links with sending ending equipment, which comprises
The sending ending equipment is received from least two communication link according to the synchronous detection report sent of scheduled rate
Text, the detection messages include the sequence of message number incremented by successively according to transmission number;
Record the sequence of message number for the detection messages that receiving port corresponding with each communication link receives, foundation
The sequence of message number of the detection messages obtains the communication quality parameter of the communication link.
Optionally, in the above-mentioned methods, record receiving port corresponding with each communication link receives described
The sequence of message number of detection messages, the sequence of message number according to the detection messages obtain the communication quality parameter of the communication link
The step of, comprising:
In the measurement period of setting, the detection messages received from the corresponding receiving port of the communication link are recorded
Sum, maximum message segment sequence number and minimum sequence of message number;
It calculates according to the sum of the detection messages, maximum message segment sequence number and minimum sequence of message number and obtains the communication
The communication quality parameter of link.
Optionally, in the above-mentioned methods, described in the measurement period of setting, record the institute received from the communication link
State the sum, maximum message segment sequence number and minimum sequence of message number of detection messages, comprising:
In the measurement period of setting, for each communication link, it is recorded in the measurement period from the communication
The sum for the detection messages that the corresponding receiving port of link receives;
After measurement period starting, the first detection messages that are received from the corresponding receiving port of the communication link
Sequence of message number is as the minimum sequence of message number;
By the detection messages that last time is received from the corresponding receiving port of the communication link in the measurement period
Sequence of message number be used as the maximum message segment sequence number.
Optionally, in the above-mentioned methods, the communication quality parameter includes packet loss parameter;Obtain the packet loss parameter
The step of, comprising:
The difference of the maximum message segment sequence number and the minimum sequence of message number is calculated, calculating connects from the communication link
The packet loss parameter of the sum of the detection messages received and the quotient of the difference as the communication link;Wherein, the quotient
Value it is bigger, the packet loss for characterizing the communication link is smaller.
Optionally, in the above-mentioned methods, the communication quality parameter further includes bandwidth parameter;Obtain the bandwidth parameter
Step, comprising:
Using the sum of the detection messages received from the communication link as the bandwidth parameter of the communication link,
In, the bandwidth parameter is bigger, and the data transfer bandwidth for characterizing the communication link is bigger.
Optionally, in the above-mentioned methods, the communication quality parameter further includes delay parameter;Obtain the delay parameter
Step, comprising:
After the measurement period starting of setting, record receives first test report from the corresponding receiving port of the communication link
System time when literary, using the system time as the delay parameter of the communication link, wherein the delay parameter
System time is more early, and the transmission delay for characterizing the communication link is smaller.
Optionally, in the above-mentioned methods, the communication quality parameter further includes link alive time parameter;Calculate the chain
The step of road time-to-live parameter, comprising:
Calculate the difference of the maximum message segment sequence number and the minimum sequence of message number, the chain as the communication link
Road time-to-live parameter, wherein the link alive time parameter is bigger, and the time-to-live for characterizing the communication link is longer.
Optionally, in the above-mentioned methods, the method also includes:
It is determining preferred between the sending ending equipment according to the communication quality parameter of at least two communication link
Communication link;
Notify the sending ending equipment using described preferably logical by receiving port corresponding with the preferred communications link
Letter link carries out data transmission.
Another object of the present invention is to provide a kind of communication equipment, the communication equipment is as receiving device and sends
When end equipment is communicated, the receiving device includes:
Message receiving module, it is synchronous according to scheduled rate from least two communication links for receiving the sending ending equipment
Detection messages are sent, the detection messages include the sequence of message number incremented by successively according to transmission times;
Message accounting module, the detection messages received for recording receiving port corresponding with each communication link
Sequence of message number;
Quality Calculation Module calculates for the sequence of message number according to the detection messages and obtains the logical of the communication link
Believe mass parameter.
Optionally, in above-mentioned communication equipment, for the message accounting module in the measurement period of setting, record is logical from this
Sum, maximum message segment sequence number and the minimum sequence of message for the detection messages that the corresponding receiving port of letter link receives
Number;
The Quality Calculation Module is according to the sum of the detection messages, maximum message segment sequence number and minimum sequence of message
Number calculate obtain the communication link communication quality parameter.
Optionally, in above-mentioned communication equipment, the communication quality parameter includes packet loss parameter;The Mass Calculation mould
Block obtains the packet loss parameter in the following manner:
The difference of the maximum message segment sequence number and the minimum sequence of message number is calculated, calculating connects from the communication link
The packet loss parameter of the sum of the detection messages received and the quotient of the difference as the communication link;Wherein, the quotient
Value it is bigger, the packet loss for characterizing the communication link is smaller.
Optionally, in above-mentioned communication equipment, the communication quality parameter further includes bandwidth parameter;The Mass Calculation mould
Block obtains the bandwidth parameter in the following manner, comprising:
Using the sum of the detection messages received from the communication link as the bandwidth parameter of the communication link,
In, the bandwidth parameter is bigger, and the data transfer bandwidth for characterizing the communication link is bigger.
Optionally, in above-mentioned communication equipment, the communication quality parameter includes delay parameter;The Quality Calculation Module
The delay parameter parameter is obtained in the following manner:
After the measurement period starting of setting, record receives first test report from the corresponding receiving port of the communication link
System time when literary, using the system time as the delay parameter of the communication link, wherein the delay parameter
System time is more early, and the transmission delay for characterizing the communication link is smaller.
Optionally, in above-mentioned communication equipment, the communication equipment further include:
Link chooses module, for the communication quality parameter according at least two communication link, the determining and hair
Preferred communications link between sending end equipment;
Notification module, for notifying the sending ending equipment to adopt by receiving port corresponding with the preferred communications link
Carried out data transmission with the preferred communications link.
Another object of the present invention is to provide a kind of communication system, the communication system includes above-mentioned communication equipment,
Wherein, the communication equipment is as receiving device;The communication system further includes establishing at least two with the receiving device
The sending ending equipment of a communication link;
The sending ending equipment is synchronous according to scheduled rate from least two communication link to the receiving device
Detection messages are sent, the detection messages include the sequence of message number incremented by successively according to transmission times.
In terms of existing technologies, the invention has the following advantages:
Communication quality detection method, communication equipment and system provided by the invention, by the sending ending equipment through difference
Communication link sends detection messages to the receiving device is synchronous, and the receiving device is carried according in the detection messages
Sequence of message number calculate and judge the communication quality of each communication link.In this way, leading in the case where not depending on quality testing agreement
It crosses simple process logic and interactive process i.e. and can determine the communication quality of different links.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the interaction schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 2 is one of the step flow diagram of communication quality detection method provided in an embodiment of the present invention;
Fig. 3 is the two of the step flow diagram of communication quality detection method provided in an embodiment of the present invention;
Fig. 4 is one of the schematic diagram of communication equipment provided in an embodiment of the present invention;
Fig. 5 is the two of the schematic diagram of communication equipment provided in an embodiment of the present invention.
Icon: 10- communication system;100- receiving device;111- message receiving module;112- message accounting module;
113- Quality Calculation Module;114- link chooses module;115- notification module;200- sending ending equipment.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present invention, it should be noted that term " first ", " second ", " third " etc. are only used for distinguishing and retouch
It states, is not understood to indicate or imply relative importance.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in the present invention.
Fig. 1 is please referred to, Fig. 1 is a kind of interaction schematic diagram for communication system 10 that present pre-ferred embodiments provide, wherein
It is equipment that the communication system 10, which may include at least two communications, the communication equipment can be divided into receiving device 100 and
Sending ending equipment 200, can be feasible by least two between the receiving device 100 and the sending ending equipment 200
Communication link is communicated.
Different communication links can be for by different intermediate equipment relay forwardings or the communication chain through different routed paths
Road, since the path of each communication link is different, communication quality is also different, in the present embodiment, by sending ending equipment 200 to
Detection messages are sent through receiving device 100 described in different communication link, the receiving device 100 is according to the detection messages
Calculate the communication quality of each link.
Specifically, referring to figure 2., Fig. 2 is using a kind of communication quality detection method with communication system 10 shown in Fig. 1
Flow chart, below will be to the method includes each steps to be described in detail.
Step S110, the sending ending equipment 200 is from least two communication links to the receiving device 100 according to pre-
If the detection messages that rate synchronization is sent, the detection messages include the sequence of message number incremented by successively according to transmission times.
In the present embodiment, the sending ending equipment 200 passes through between the receiving device 100 according to scheduled rate
All communication links synchronous send the detection messages.It in the detection messages may include one and record the sequence of message
Number sequence-number field, the sequence of message number recorded in the sequence-number field is according to the transmission number for sending the detection messages
It is incremented by successively.For example, the sequence of message number for the detection messages that the sending ending equipment 200 is sent every time is in upper primary transmission
On the basis of plus 1.
Optionally, since the sending ending equipment 200 may be communicated with multiple receiving devices 100, in this implementation
In example, for different receiving devices 100, the sending ending equipment 200, which can be managed independently, maintains one group of incremental report
Literary sequence number.
It optionally, in the present embodiment, can also include the transmission for indicating to send the detection messages in the detection messages
The identity information of end equipment 200 and receive the detection messages receiving device 100 identity information, the identity information can be with
For the information that can indicate 200 unique identities of the receiving device 100 or sending ending equipment, for example, IP address, MAC Address
Or equipment ID number etc..
It optionally, in the present embodiment, can also include type of message field, the type of message in the detection messages
Field is used to identify the effect or type of the message, and for the detection messages, the sending ending equipment 200 is by the message class
The first preset value is inserted in type-word section, is for carrying out communication quality detection detection messages used to characterize the message.It is described
Receiving device 100 carries out corresponding subsequent processing after can identifying the detection messages according to the type of message field.
It is worth noting that in the present embodiment, when the communication system 10 includes multiple communication equipments, each
The communication equipment can independently manage its period for sending the detection messages, do not need the progress overall situation and be uniformly controlled.
Step S120, the receiving device 100 record the institute that receiving port corresponding with each communication link receives
The sequence of message number for stating detection messages, the sequence of message number according to the detection messages obtain the communication quality ginseng of the communication link
Number.
In the present embodiment, for the receiving device 100 in the measurement period of setting, record is corresponding from the communication link
The detection messages that receive of receiving port sum, maximum message segment sequence number and minimum sequence of message number.
Specifically, the receiving device 100 identifies institute according to the type of message field in the message received
State detection messages.Then the identity information and sequence of message number of sender in the detection messages are extracted, and is obtained described in reception
The link identification of detection messages.In the present embodiment, the identity information of sender can be denoted as sendId, by the message sequence
Row number is denoted as rxPktSeq, and the link identification for receiving the detection messages is denoted as rxLinkId.
The receiving device 100 is that index sorts out the detection messages received with sendId, i.e., will be
The detection messages that the same received same sending ending equipment 200 of receiving port is sent are calculated separately as one group
Judgement.
Firstly, for the communication link, the receiving device each of between the same sending ending equipment 200
100 in the measurement period of setting, records sum, the maximum message segment sequence of the detection messages received from the communication link
Number and minimum sequence of message number, the starting of the measurement period opportunity of detection messages is sent independent of sending ending equipment 200, tool
Body mode is as follows:
A. the receiving device 100 is in the measurement period of setting, for each communication link, is recorded in described
The sum of the detection messages received in measurement period from the corresponding receiving port of the communication link.In the present embodiment,
The sum of the detection messages can be denoted as to rxPktCount, and when receiving new detection messages every time, updated corresponding
The rxPktCount value of communication link.Also, the sending ending equipment 200 records the last when receiving the detection messages
Message receiving time point.
B. after the receiving device 100 starts the measurement period, from the corresponding receiving port of the communication link
The sequence of message number of the first detection messages received is as the minimum sequence of message number.In the present embodiment, the minimum
Sequence of message number can be denoted as minSeq.
C. the receiving device 100 will be in the measurement period for the last time from the corresponding receiving end of the communication link
The sequence of message number for the detection messages that mouth receives is used as the maximum message segment sequence number.In the present embodiment, the maximum report
Literary sequence number can be denoted as maxSeq.
Then, the sending ending equipment 200 is according to the sum of the detection messages, maximum message segment sequence number and minimum message
Sequence number calculates the communication quality parameter for obtaining the communication link, and the communication quality parameter may include multiple.
Optionally, in the present embodiment, the communication quality parameter includes packet loss parameter.
The receiving device 100 calculates the difference of the maximum message segment sequence number and the minimum sequence of message number, meter
Packet loss of the quotient of the sum and the difference of calculating the detection messages received from the communication link as the communication link
Rate parameter.The packet loss rate parameter can be expressed as rxPktCount/ (maxSeq-minSeq).Wherein, maxSeq-
MinSeq is the sum for the detection messages that should be received from the communication link, and rxPktCount is from the communication link
The sum for the detection messages of physical record received, the more big then communication chain of rxPktCount/ (maxSeq-minSeq)
The packet loss on road is with regard to smaller.Optionally, in the present embodiment, the communication quality parameter can also include bandwidth parameter.
The receiving device 100 is using the sum of the detection messages received from the communication link as the communication
The bandwidth parameter of link.In the present embodiment, i.e., using rxPktCount as the bandwidth parameter, under the same time, from certain
The quantity for the detection messages that one communication link receives is more, means that the transmission speed of the communication link is faster, described
Bandwidth parameter is bigger, and the data transfer bandwidth that can characterize the communication link is bigger.
Optionally, in the present embodiment, the communication quality parameter further includes delay parameter.
In the present embodiment, after the measurement period starting of setting, record connects from the corresponding receiving port of the communication link
System time when first test packet is received, using the system time as the delay parameter of the communication link.Wherein,
The system time of the delay parameter is more early, then the transmission delay of the communication link is with regard to smaller.
Optionally, in the present embodiment, the communication quality parameter further includes link alive time parameter.
The receiving device 100 calculates the difference of the maximum message segment sequence number and the minimum sequence of message number, makees
For the link alive time parameter of the communication link, i.e., using maxSeq-minSeq as the link alive time parameter.Institute
The value for stating link alive time parameter is bigger, then the time-to-live of the communication link is longer, and it is more steady can to characterize the communication link
It is fixed.
Based on above-mentioned design, communication quality detection method provided in this embodiment can not depend on additional communication quality
Detection protocol in the case where being not take up a large amount of system resources, is patrolled by carrying out simple process to sequence number in the detection messages
Volume, it can be obtained more reliably communicating for each communication link between the receiving device 100 and the sending ending equipment 200
Mass parameter.
It is worth noting that in the present embodiment, a receiving device 100 can be set with multiple transmitting terminals
Standby 200, which carry out cooperation, realizes method provided in this embodiment, and a sending ending equipment 200 can also be set with multiple receiving ends
Standby 100, which carry out cooperation, realizes method provided in this embodiment.One communication equipment is as a receiving device 100 and one
While sending ending equipment 200 is cooperated, the sending ending equipment 200 and another receiving device can also be used as
100 are cooperated.
Further, due to the communication quality parameter that method provided in this embodiment is between each communication link of detection, therefore
In the present embodiment, the receiving device 100 can have new communication link to cut detecting between the sending ending equipment 200
When shifting to available mode, the detection messages of other associated communication links between the sending ending equipment 200 of record are removed
Sum, maximum message segment sequence number and minimum sequence of message number.In this way, allow the communication link being newly added and other
Communication link re-starts the calculating of same communication quality parameter together.
Further, due to the sum of the detection messages of long time integration detection record, maximum message segment sequence number and
Minimum sequence of message number may impact communication quality judgement in the short time, therefore in the present embodiment, the receiving end is set
Standby 100 can remove all communication links between the sending ending equipment 200 of record after the measurement period of setting
Sum, maximum message segment sequence number and the minimum sequence of message number of detection messages, restart measurement period.In this way, can make
The communication quality parameter for each communication link being calculated can more accurately react the current communication shape of each communication link
State.
Further, to guarantee that the communication quality parameter can reflect current communication quality in time, in the present embodiment,
The receiving device 100 is directed to each communication link according to default measurement period, receives according to from the communication link
The detection messages sequence of message number, calculate obtain the communication link communication quality parameter.For example, the default statistics
Period can be set to 1 second.
Further, referring to figure 3., in the present embodiment, it is calculated after the communication quality parameter of each communication link,
The method can also include step S130 and step S140.
Step S130, the receiving device 100 are determined according to the communication quality parameter of at least two communication link
With the preferred communications link between the sending ending equipment 200.
In the present embodiment, due to the communication quality parameter may include it is multiple, different communication mass parameter can have
There is different preferential judgement grades.In this way, when carrying out is that preferred communications link is chosen, it can be according to the communication quality parameter
Preferential judgement grade, each communication link is ranked up, the optimal link of communication quality is chosen as excellent according to sequence
Select communication link.
In the present embodiment, can be joined according to the bandwidth parameter, delay parameter, packet loss parameter, link alive time
Sequence of the number according to priority from high to low, is ranked up multiple communication links.
For example, being first ranked up from big to small to the bandwidth parameter of each communication link.It is identical for the bandwidth parameter
Communication link is ranked up after arriving first according still further to the time point for characterizing the delay parameter.Still for the delay parameter
Identical communication link is ranked up from big to small according still further to the packet loss parameter.For the packet loss parameter still phase
Same communication link, is ranked up from big to small according still further to the link alive time parameter.
Then, the receiving device 100 can determine the optimal link of communication quality as preferred communication according to sorting
Link.
Step S140, the receiving device 100 pass through described in the corresponding receiving port notice of the preferred communications link
Sending ending equipment 200 is carried out data transmission using the preferred communications link.
After determining the preferred communications link, the receiving device 100 can be corresponding by the preferred communications link
Receiving port to the sending ending equipment 200 send notification packet, the notification packet includes the preferred communications link
Link identification, so that the sending ending equipment 200 selects corresponding communication link and the receiving end according to the link identification
Equipment 100 carries out data transmission.The link identification can be the information that can characterize the communication link unique identities, such as hold
Mouth name, port id etc..
The sending ending equipment 200 selects corresponding after receiving the notification packet according to link identification therein
Communication link carries out data transmission with the receiving device 100.
It optionally, in the present embodiment, can also include type of message field in the detection messages, for the notice
Message, the receiving device 100 will insert the value made an appointment in the type of message field, with characterize the message be for
Carry out the notification packet of link selection.The sending ending equipment 200 can identify described logical according to the type of message field
Corresponding subsequent processing is carried out after accusing message.
Further, if the communication quality of multiple communication links is not much different, multiple communication links is may cause and handed over repeatedly
For by as preferred communications link, at the switching repeatedly for carrying out data transmission link.
Therefore in the present embodiment, the receiving device 100 is not described currently carrying out the communication link that transmission uses
When preferred communications link, calculates each communication quality parameter of the preferred communications link and currently carry out the communication link of transmission use
Difference degree between each communication quality parameter.
When the difference degree of one or more of the communication quality parameter is more than corresponding preset threshold, institute
It states receiving device 100 and sends notification packet to the sending ending equipment 200, switch to and carried out using the preferred communications link
Data transmission.In this way, the transmission of data caused by carrying out data transmission the switching repeatedly of link can be prevented unstable.
Referring to figure 4., the present embodiment also provides a kind of communication equipment, and the communication equipment can be used as shown in FIG. 1 connect
Receiving end equipment 100 may include message receiving module 111, message when the communication equipment is as device receiving device 100
Logging modle 112 and Quality Calculation Module 113.
The message receiving module 111 is logical from least two according to scheduled rate for receiving the sending ending equipment 200
Believe that link synchronization sends detection messages, the detection messages include the sequence of message number incremented by successively according to transmission times.
In the present embodiment, the message receiving module 111 can be used for executing step S110 shown in Fig. 2, about the report
The specific descriptions of literary receiving module 111 can join the description to the step S110.
The message accounting module 112, for recording described in corresponding with each communication link receiving port receives
The sequence of message number of detection messages.
In the present embodiment, the message accounting module 112 can be used for executing step S120 shown in Fig. 2, about the report
The specific descriptions of literary logging modle 112 can join the description to the step S120.
Optionally, in the present embodiment, for the message accounting module 112 in the measurement period of setting, record is logical from this
Sum, maximum message segment sequence number and the minimum sequence of message for the detection messages that the corresponding receiving port of letter link receives
Number.
The Quality Calculation Module 113 calculates for the sequence of message number according to the detection messages and obtains the communication chain
The communication quality parameter on road.
In the present embodiment, the Quality Calculation Module 113 can be used for executing step S120 shown in Fig. 2, about the matter
The specific descriptions of amount computing module 113 can join the description to the step S120.
Optionally, in the present embodiment, sum, maximum report of the Quality Calculation Module 113 according to the detection messages
Literary sequence number and minimum sequence of message number calculate the communication quality parameter for obtaining the communication link.
Optionally, in the present embodiment, the communication quality parameter includes packet loss parameter.Quality Calculation Module 113 is counted
The difference for calculating the maximum message segment sequence number and the minimum sequence of message number calculates described in receiving from the communication link
The packet loss parameter of the sum of detection messages and the quotient of the difference as the communication link.Wherein, the value of the quotient is bigger, table
The packet loss for levying the communication link is smaller.
Optionally, in the present embodiment, the communication quality parameter further includes bandwidth parameter.Quality Calculation Module 113 will
Bandwidth parameter of the sum of the detection messages received from the communication link as the communication link, wherein the band
Wide parameter is bigger, and the data transfer bandwidth for characterizing the communication link is bigger.
Optionally, in the present embodiment, the communication quality parameter further includes delay parameter.Quality Calculation Module 113 exists
After the measurement period starting of setting, system when receiving first test packet from the corresponding receiving port of the communication link is recorded
Time, using the system time as the delay parameter of the communication link, wherein the system time of the delay parameter is got over
Early, the transmission delay for characterizing the communication link is smaller.
Optionally, in the present embodiment, the communication quality parameter further includes link alive time parameter.Mass Calculation mould
Block 113 calculates the difference of the maximum message segment sequence number and the minimum sequence of message number, the link as the communication link
Time-to-live parameter, wherein the link alive time parameter is bigger, and the time-to-live for characterizing the communication link is longer.
Optionally, referring to figure 5., in the present embodiment, the communication equipment is gone back when as the receiving device 100
It may include that link chooses 114 pieces of module and notification module 115.
The link chooses module 114, for the communication quality parameter according at least two communication link, determine with
Preferred communications link between the sending ending equipment 200.
In the present embodiment, the link, which chooses module 114, can be used for executing step S130 shown in Fig. 2, about the chain
The specific descriptions that module 114 is chosen on road can join the description to the step S130.
The notification module 115, for notifying the transmission by receiving port corresponding with the preferred communications link
End equipment 200 is carried out data transmission using the preferred communications link.
In the present embodiment, the notification module 115 can be used for executing step S140 shown in Fig. 2, about the notice mould
The specific descriptions of block 115 can join the description to the step S140.
In conclusion communication quality detection method, communication equipment and system provided by the invention, are set by the transmitting terminal
Standby 200 send detection messages, 100 basis of receiving device through receiving device 100 described in different communication chain road direction is synchronous
The sequence of message number carried in the detection messages calculates the communication quality for judging each communication link.In this way, not depending on quality
It is the communication quality that can determine different links by simple process logic and interactive process in the case where detection protocol.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (15)
1. a kind of communication quality detection method, which is characterized in that establish at least two communication links applied to sending ending equipment
Receiving device, which comprises
The sending ending equipment is received from least two communication link according to the synchronous detection messages sent of scheduled rate, institute
Stating detection messages includes the sequence of message number incremented by successively according to transmission number;
The sequence of message number for recording the detection messages that receiving port corresponding with each communication link receives, according to described in
The sequence of message number of detection messages obtains the communication quality parameter of the communication link.
2. the method according to claim 1, wherein record receiving port corresponding with each communication link
The sequence of message number of the detection messages received, the sequence of message number according to the detection messages obtain the communication link
The step of communication quality parameter, comprising:
In the measurement period of setting, the total of the detection messages received from the corresponding receiving port of the communication link is recorded
Number, maximum message segment sequence number and minimum sequence of message number;
It calculates according to the sum of the detection messages, maximum message segment sequence number and minimum sequence of message number and obtains the communication link
Communication quality parameter.
3. according to the method described in claim 2, it is characterized in that, described in the measurement period of setting, record is from the communication
Sum, maximum message segment sequence number and the minimum sequence of message number for the detection messages that link receives, comprising:
In the measurement period of setting, for each communication link, it is recorded in the measurement period from the communication link
The sum for the detection messages that corresponding receiving port receives;
After measurement period starting, the message of the first detection messages received from the corresponding receiving port of the communication link
Sequence number is as the minimum sequence of message number;
By the report for the detection messages that last time is received from the corresponding receiving port of the communication link in the measurement period
Literary sequence number is as the maximum message segment sequence number.
4. according to the method described in claim 2, it is characterized in that, the communication quality parameter includes packet loss parameter;It obtains
The step of packet loss parameter, comprising:
The difference of the maximum message segment sequence number and the minimum sequence of message number is calculated, calculating is received from the communication link
The detection messages packet loss parameter of the sum with the quotient of the difference as the communication link;Wherein, the value of the quotient
Bigger, the packet loss for characterizing the communication link is smaller.
5. according to the method described in claim 4, it is characterized in that, the communication quality parameter further includes bandwidth parameter;It obtains
The step of bandwidth parameter, comprising:
Using the sum of the detection messages received from the communication link as the bandwidth parameter of the communication link, wherein
The bandwidth parameter is bigger, and the data transfer bandwidth for characterizing the communication link is bigger.
6. according to the method described in claim 5, it is characterized in that, the communication quality parameter further includes delay parameter;It obtains
The step of delay parameter, comprising:
After the measurement period starting of setting, when record receives first test packet from the corresponding receiving port of the communication link
System time, using the system time as the delay parameter of the communication link, wherein the system of the delay parameter
Time is more early, and the transmission delay for characterizing the communication link is smaller.
7. according to the method described in claim 6, it is characterized in that, the communication quality parameter further includes link alive time ginseng
Number;The step of calculating the link alive time parameter, comprising:
The difference of the maximum message segment sequence number and the minimum sequence of message number is calculated, the link as the communication link is deposited
Live time parameter, wherein the link alive time parameter is bigger, and the time-to-live for characterizing the communication link is longer.
8. method according to claim 1-7, which is characterized in that the method also includes:
According to the communication quality parameter of at least two communication link, the determining preferred communication between the sending ending equipment
Link;
Notify the sending ending equipment using the preferred communication chain by receiving port corresponding with the preferred communications link
Road carries out data transmission.
9. a kind of communication equipment, which is characterized in that the communication equipment is communicated as receiving device with sending ending equipment
When, the receiving device includes:
Message receiving module is sent from least two communication links according to scheduled rate is synchronous for receiving the sending ending equipment
Detection messages, the detection messages include the sequence of message number incremented by successively according to transmission times;
Message accounting module, for recording the report for the detection messages that receiving port corresponding with each communication link receives
Literary sequence number;
Quality Calculation Module obtains the communication quality ginseng of the communication link for the sequence of message number according to the detection messages
Number.
10. communication equipment according to claim 9, which is characterized in that
The message accounting module is specifically used for, and in the measurement period of setting, records from the corresponding receiving end of the communication link
Sum, maximum message segment sequence number and the minimum sequence of message number for the detection messages that mouth receives;
The Quality Calculation Module, specifically for the sum, maximum message segment sequence number and most tabloid according to the detection messages
Literary sequence number calculates the communication quality parameter for obtaining the communication link.
11. communication equipment according to claim 10, which is characterized in that the communication quality parameter includes packet loss ginseng
Number;The Quality Calculation Module obtains the packet loss parameter in the following manner:
The difference of the maximum message segment sequence number and the minimum sequence of message number is calculated, calculating is received from the communication link
The detection messages packet loss parameter of the sum with the quotient of the difference as the communication link;Wherein, the value of the quotient
Bigger, the packet loss for characterizing the communication link is smaller.
12. communication equipment according to claim 11, which is characterized in that the communication quality parameter further includes bandwidth ginseng
Number;The Quality Calculation Module obtains the bandwidth parameter in the following manner, comprising:
Using the sum of the detection messages received from the communication link as the bandwidth parameter of the communication link, wherein
The bandwidth parameter is bigger, and the data transfer bandwidth for characterizing the communication link is bigger.
13. communication equipment according to claim 12, which is characterized in that the communication quality parameter includes delay parameter;
The Quality Calculation Module obtains the delay parameter parameter in the following manner:
After the measurement period starting of setting, when record receives first test packet from the corresponding receiving port of the communication link
System time, using the system time as the delay parameter of the communication link, wherein the system of the delay parameter
Time is more early, and the transmission delay for characterizing the communication link is smaller.
14. according to the described in any item communication equipments of claim 9-13, which is characterized in that the communication equipment further include:
Link chooses module, for the communication quality parameter according at least two communication link, the determining and transmitting terminal
Preferred communications link between equipment;
Notification module, for notifying the sending ending equipment using institute by receiving port corresponding with the preferred communications link
Preferred communications link is stated to carry out data transmission.
15. a kind of communication system, which is characterized in that the communication system includes such as the described in any item communications of claim 9-14
Equipment;The communication equipment is as receiving device, and establishes with the receiving device hair of at least two communication links
Sending end equipment;
The sending ending equipment, for synchronous according to scheduled rate from least two communication link to the receiving device
Detection messages are sent, the detection messages include the sequence of message number incremented by successively according to transmission times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711048338.4A CN109728967A (en) | 2017-10-31 | 2017-10-31 | Communication quality detection method, communication equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711048338.4A CN109728967A (en) | 2017-10-31 | 2017-10-31 | Communication quality detection method, communication equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109728967A true CN109728967A (en) | 2019-05-07 |
Family
ID=66293108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711048338.4A Pending CN109728967A (en) | 2017-10-31 | 2017-10-31 | Communication quality detection method, communication equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109728967A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505123A (en) * | 2019-09-04 | 2019-11-26 | 深圳前海达闼云端智能科技有限公司 | Packet loss rate calculation method, server and computer-readable storage medium |
CN111245670A (en) * | 2019-12-24 | 2020-06-05 | 厦门亿联网络技术股份有限公司 | Method and system for measuring real-time packet loss rate of link |
CN111314779A (en) * | 2020-02-13 | 2020-06-19 | 网宿科技股份有限公司 | Method and device for determining streaming media transmission quality |
CN112073128A (en) * | 2020-08-18 | 2020-12-11 | 江苏创通电子股份有限公司 | Communication equipment performance test method and device |
CN112584413A (en) * | 2020-11-13 | 2021-03-30 | 普联国际有限公司 | Wireless communication link self-checking protection method, device, equipment and storage medium |
CN113630220A (en) * | 2021-07-30 | 2021-11-09 | 中车青岛四方机车车辆股份有限公司 | Double-path redundant communication method, device and system |
CN114641045A (en) * | 2022-02-24 | 2022-06-17 | 云南电网有限责任公司 | Power transmission line communication channel switching method and system based on communication quality perception |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488835A (en) * | 2009-02-13 | 2009-07-22 | 华为技术有限公司 | Link detection method, apparatus and communication system |
CN101552703A (en) * | 2009-04-10 | 2009-10-07 | 中国联合网络通信集团有限公司 | A method and device to measure service quality parameters and a method and device to judge service quality |
CN101610535A (en) * | 2009-07-30 | 2009-12-23 | 杭州华三通信技术有限公司 | Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down |
US20130089090A1 (en) * | 2011-10-11 | 2013-04-11 | Stefano Binetti | Single timestamp engine for generating timing information for inclusion in packets complying with multiple networking protocols |
CN103259696A (en) * | 2013-04-19 | 2013-08-21 | 华为技术有限公司 | Network bandwidth detecting method and device and network devices |
CN103312632A (en) * | 2013-07-01 | 2013-09-18 | 北京邮电大学 | Method for measuring available bandwidth |
-
2017
- 2017-10-31 CN CN201711048338.4A patent/CN109728967A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488835A (en) * | 2009-02-13 | 2009-07-22 | 华为技术有限公司 | Link detection method, apparatus and communication system |
CN101552703A (en) * | 2009-04-10 | 2009-10-07 | 中国联合网络通信集团有限公司 | A method and device to measure service quality parameters and a method and device to judge service quality |
CN101610535A (en) * | 2009-07-30 | 2009-12-23 | 杭州华三通信技术有限公司 | Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down |
US20130089090A1 (en) * | 2011-10-11 | 2013-04-11 | Stefano Binetti | Single timestamp engine for generating timing information for inclusion in packets complying with multiple networking protocols |
CN103259696A (en) * | 2013-04-19 | 2013-08-21 | 华为技术有限公司 | Network bandwidth detecting method and device and network devices |
CN103312632A (en) * | 2013-07-01 | 2013-09-18 | 北京邮电大学 | Method for measuring available bandwidth |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505123A (en) * | 2019-09-04 | 2019-11-26 | 深圳前海达闼云端智能科技有限公司 | Packet loss rate calculation method, server and computer-readable storage medium |
CN111245670A (en) * | 2019-12-24 | 2020-06-05 | 厦门亿联网络技术股份有限公司 | Method and system for measuring real-time packet loss rate of link |
CN111314779A (en) * | 2020-02-13 | 2020-06-19 | 网宿科技股份有限公司 | Method and device for determining streaming media transmission quality |
CN111314779B (en) * | 2020-02-13 | 2022-03-11 | 网宿科技股份有限公司 | Method and device for determining streaming media transmission quality |
CN112073128A (en) * | 2020-08-18 | 2020-12-11 | 江苏创通电子股份有限公司 | Communication equipment performance test method and device |
CN112584413A (en) * | 2020-11-13 | 2021-03-30 | 普联国际有限公司 | Wireless communication link self-checking protection method, device, equipment and storage medium |
CN113630220A (en) * | 2021-07-30 | 2021-11-09 | 中车青岛四方机车车辆股份有限公司 | Double-path redundant communication method, device and system |
CN114641045A (en) * | 2022-02-24 | 2022-06-17 | 云南电网有限责任公司 | Power transmission line communication channel switching method and system based on communication quality perception |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109728967A (en) | Communication quality detection method, communication equipment and system | |
CN101132320B (en) | Method for detecting interface trouble and network node equipment | |
CN100382517C (en) | Network QoS test method and system | |
CN102273136B (en) | Method and apparatus for detecting multi-service performance in tunnel | |
CN101595686B (en) | Triggering flow analysis at intermediary devices | |
CN103916275A (en) | BFD detection device and method | |
EP2553870B1 (en) | An operations, administrations and management proxy and a method for handling operations, administrations and management messages | |
CN111682989B (en) | Method, device and system for detecting port link state | |
CN102594600A (en) | Method and system for determining failure position of bidirectional forwarding detection session | |
CN103957538A (en) | Method and device for detecting network quality | |
CN102195832A (en) | Loopback testing method, device and system | |
US8477655B2 (en) | Method, device, and system for establishing label switching path in fast rerouting switching | |
CN109714742A (en) | A kind of Internet of Things Wi-Fi module network self-adapting switching method | |
CN108400911A (en) | A kind of device and method for realizing Micro-BFD agreements | |
CN104580013A (en) | Network communication method and system capable of realizing fast access point selection | |
CN102209003A (en) | Link detection method, system and loopback initiation equipment | |
CN102217257B (en) | Method, destination network node apparatus and mobile transmission network system for processing packet loss | |
CN102487338A (en) | Method and device for adjusting bidirectional forwarding detection (BFD) sending interval according to network jitter | |
CN102594696B (en) | A kind of method and device managing network device link aggregation group | |
CN104363138A (en) | Interface backup method and device | |
CN109347790B (en) | Security attack test system and test method for electric power MPLS VPN network | |
US20120170573A1 (en) | Methods And Systems For Load Balancing Call Sessions Over A Dual Ring Internet Protocol (IP) Network | |
CN112714060B (en) | Link detection method and device | |
CN106341297B (en) | Networking method and device for monitoring ring network | |
CN100433722C (en) | Method for recognizing multiple emulation service flow path |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190507 |
|
RJ01 | Rejection of invention patent application after publication |