CN104322017B - Method, device, and system for identifying network packet loss type - Google Patents

Method, device, and system for identifying network packet loss type Download PDF

Info

Publication number
CN104322017B
CN104322017B CN201280002149.2A CN201280002149A CN104322017B CN 104322017 B CN104322017 B CN 104322017B CN 201280002149 A CN201280002149 A CN 201280002149A CN 104322017 B CN104322017 B CN 104322017B
Authority
CN
China
Prior art keywords
packet
bag
statistics
packet loss
network element
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
Application number
CN201280002149.2A
Other languages
Chinese (zh)
Other versions
CN104322017A (en
Inventor
蓝海青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104322017A publication Critical patent/CN104322017A/en
Application granted granted Critical
Publication of CN104322017B publication Critical patent/CN104322017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the field of communications. Embodiments of the present invention provide a method, a device, and a system for identifying a network packet loss type, which can precisely and rapidly determine a network packet loss type. The method comprises: a first network element device sending data packets to a second network element device; the first network element device classifying the data packets sent to the second network element device in a first classification manner; the first network element device counting the number of data packets of various packet lengths in the data packets sent to the second network element device, to generate a first counting result; and the first network element device sending the first counting result to the second network element device, so that the second network element device determines, according to the first counting result and a second counting result, a network packet loss type between the first network element device and the second network element device. The embodiments of the present invention are applied in identification of a packet loss type of network data packets.

Description

A kind of Network Packet Loss kind identification method, equipment and system
Technical field
The present invention relates to the communications field, more particularly to a kind of Network Packet Loss kind identification method, equipment and system.
Background technology
Two equipment by go-between transmission packet be current information communication primary demand, go-between it is basic Function is exactly to make full use of the bandwidth of oneself that the packet of two equipment is as much as possible and accurately and reliably transmit.But by In a variety of causes, packet occurs packet loss when go-between is transmitted, so as to affect two equipment before communication.
At present packet loss is mainly caused by two kinds of reasons, and one kind is that middle bandwidth is not enough, and network congestion occurs and causes and lose Bag;Another is that go-between the wrong bag of transmission occurs, causes network active packet loss, such as microwave transmission error code occur, and product is wrong Bag.
Network Packet Loss can affect upper-layer service quality, it is necessary to make full use of the network bandwidth to improve using certain method Economic benefit, will also reduce packet loss, ensure business experience.For the packet loss that the first reason causes, the user equipment at two ends Congestion can be released by reduction of speed, for the packet loss that second reason causes, end equipment occurs can be with the anti-transmission of redundant transmission Mistake bag.Premise ustomer premises access equipment must judge it is clearly packet loss which kind of reason causes, if it is determined that error, causes on the contrary into one Step degrading transmission.If actual conditions are packet lost by corruption, but it is congestion packet loss to misjudge, and equipment attempts to be released using reduction of speed to gather around Plug, but packet loss actually can not be still reduced, cause the continuous reduction of speed of equipment, until packet transmission speed breaks off the base.In addition, if Actual conditions are congestion packet loss, but are misjudged to transmit wrong bag packet loss, and equipment two ends are anti-dropout using redundant transmission, but increase on the contrary Offered load, so as to cause more serious congestion, it is possible to cause go-between to collapse.
But in many cases, terminal device cannot coordinate the reason for obtaining Network Packet Loss together with go-between, therefore It is main at present still to adopt the packet loss that manual evaluation in advance is that congestion causes, or the packet loss that loading error occurring causes, from configuration phase The anti-network congestion closed or the function of error resilience bag, inventor's discovery in above process, existing technology can not accurately judge The dynamic change of packet loss reason and packet loss reason, therefore accurately can not quickly judge Network Packet Loss type.
The content of the invention
Embodiments of the invention provide a kind of Network Packet Loss kind identification method, equipment and system, being capable of accurate basis The dynamic change of Network Packet Loss reason and packet loss reason, accurately quickly judges Network Packet Loss type.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of first aspect, there is provided Network Packet Loss kind identification method, including:
First network element device to the second network element device sends packet;
First network element device carries out the packet sent to second network element device point by the first mode classification Class, first mode classification is by the preset range that bag is long or bag the is long classification of the packet;
First network element device counts the number for sending all kinds of bag length into the packet of second network element device According to bag quantity, the first statistics is generated;
First network element device sends first statistics to second network element device, so as to described second Network element device judges first network element device with second network element according to first statistics and the second statistics The type of the Network Packet Loss of equipment room;
Or,
First network element device receives second statistics that second network element device sends, first net Element device judges first network element device with second net according to first statistics and second statistics The type of the Network Packet Loss between element device;
Wherein, second statistics is that second network element device classifies the packet for receiving by described first Statistics after mode is classified, to the data packet number of all kinds of bag length in the packet for receiving.
In the first possible implementation, with reference in a first aspect, first network element device is according to the described first system Meter result and second statistics judge the Network Packet Loss between first network element device and second network element device Type includes:
Obtain the data of first kind bag length at least one times in first statistics and in second statistics The statistics of the packet of bag and Equations of The Second Kind bag length, the average bag length of the packet of the first kind bag length is more than described second The average bag of the packet of class bag length is long;
Calculate the packet packet loss of the first kind bag length and the packet packet loss of the Equations of The Second Kind bag length, the number According to bag packet loss be in first statistics and second statistics in same class bag length packet number it is poor It is worth the ratio with the number of the packet of same class bag length described in first statistics;
When the packet packet loss of the first kind bag length is more than the number of times of the packet packet loss of the Equations of The Second Kind bag length During more than default number of times, judge the packet loss type of current network as packet lost by corruption;
When the packet packet loss of the first kind bag length is less than or equal to the packet packet loss of the Equations of The Second Kind bag length Number of times be more than default number of times when, judge the packet loss type of current network as congestion packet loss.
In second possible implementation, with reference in a first aspect, first network element device is according to the described first system Meter result and second statistics judge the Network Packet Loss between first network element device and second network element device Type includes:
According to first mode classification in first statistics and in second statistics, obtain default The statistics of the individual different packets for wrapping long classification, calculates the described default different numbers for wrapping each long classification of bag in long classification According to bag packet loss, the packet packet loss is that same class bag is long in first statistics and in second statistics Packet number difference packet corresponding with same class bag length described in first statistics number ratio;
The default different packets for wrapping long classification are carried out into ascending sort according to long classification is wrapped, described default is not It is ascending order arrangement with the packet packet loss in the packet packet loss of the long classification of bag at least including predetermined number, then judges current The packet loss type of network is packet lost by corruption;
If the packet packet loss arranged according to ascending order in the default different packet packet loss for wrapping long classification Number is less than the predetermined number, then judge the packet loss type of current network as congestion packet loss.
In the third possible implementation, with reference in a first aspect, in the first or second possible implementation Any one, methods described also includes:
When the packet loss type of current network is judged as packet lost by corruption, by the average of the packet of the long classification of at least one bag The packet packet loss of the long classification of at least one bag carries out linear fit described in Bao Changyu;
When the slope of a curve that obtains of fitting is ascendant trend or the slope of a curve is consolidating more than default slope During definite value, then judge that current network has packet lost by corruption;
When the corresponding packet packet loss of the long classification of all bags is all higher than default packet and loses in the curve that obtains of fitting During bag rate threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;Wherein it is described be fitted the curve that obtains with The long classification of the bag is the abscissa in coordinate space, with the packet packet loss as ordinate.
In the 4th kind of possible implementation, with reference in a first aspect, in the first or second possible implementation Any one, methods described includes:
When the packet loss type of current network is judged as packet lost by corruption, obtain second network element device and currently receive at least One packet when extend to the average delay of the second network element device receiving data bag, current receive at least one when described When the time delay of packet is more than the average delay of the receiving data bag, then judge that current network has packet lost by corruption and gather around simultaneously Plug packet loss;
When the current time delay for receiving at least one packet is less than or equal to the average delay of the receiving data bag When, judge that current network has packet lost by corruption.
A kind of second aspect, there is provided Network Packet Loss kind identification method, including
Second network element device receives the packet that the first network element device sends;
The packet for receiving is classified according to the first mode classification, first mode classification is by the data The preset range that bag is long or bag the is long classification of bag;
The data packet number of all kinds of bag length, generates second in the packet received described in the second network element device statistics Statistics;
Second network element device sends second statistics to first network element device, so as to described first Network element device judges first network element device with second network element according to first statistics and the second statistics The type of the Network Packet Loss of equipment room;
Or,
Second network element device receives first statistics that first network element device sends, second net Element device judges first network element device with second net according to first statistics and second statistics The type of the Network Packet Loss between element device;
Wherein, first statistics is that first network element device will send the data to second network element device After bag is by first mode classification classification, to the number for sending all kinds of bag length into the packet of second network element device According to the statistics of bag quantity.
In the first possible implementation, with reference to second aspect, second network element device is according to the described first system Meter result and second statistics judge the Network Packet Loss between first network element device and second network element device Type includes:
Obtain the data of first kind bag length at least one times in first statistics and in second statistics The statistics of the packet of bag and Equations of The Second Kind bag length, the average bag length of the packet of the first kind bag length is more than described second The average bag of the packet of class bag length is long;
Calculate the packet packet loss of the first kind bag length and the packet packet loss of the Equations of The Second Kind bag length, the number According to bag packet loss be in first statistics and second statistics in same class bag length packet number it is poor It is worth the ratio with the number of the packet of same class bag length described in first statistics;
When the packet packet loss of the first kind bag length is more than the number of times of the packet packet loss of the Equations of The Second Kind bag length During more than default number of times, judge the packet loss type of current network as packet lost by corruption;
When the packet packet loss of the first kind bag length is less than or equal to the packet packet loss of the Equations of The Second Kind bag length Number of times be more than default number of times when, judge the packet loss type of current network as congestion packet loss.
In second possible implementation, with reference to second aspect, second network element device is according to the described first system Meter result and second statistics judge the Network Packet Loss between first network element device and second network element device Type includes:
According to first mode classification in first statistics and in second statistics, obtain default The statistics of the individual different packets for wrapping long classification, calculates the described default different numbers for wrapping each long classification of bag in long classification According to bag packet loss, the packet packet loss is that same class bag is long in first statistics and in second statistics Packet number difference packet corresponding with same class bag length described in first statistics number ratio;
The default different packets for wrapping long classification are carried out into ascending sort according to long classification is wrapped, described default is not It is ascending order arrangement with the packet packet loss in the packet packet loss of the long classification of bag at least including predetermined number, then judges current The packet loss type of network is packet lost by corruption;
If the packet packet loss arranged according to ascending order in the default different packet packet loss for wrapping long classification Number is less than the predetermined number, then judge the packet loss type of current network as congestion packet loss.
In the third possible implementation, with reference to second aspect, in the first or second possible implementation Any one, methods described also includes:
When the packet loss type of current network is judged as packet lost by corruption, by the average of the packet of the long classification of at least one bag The packet packet loss of the long classification of at least one bag carries out linear fit described in Bao Changyu;
When the slope of a curve that obtains of fitting is ascendant trend or the slope of a curve is consolidating more than default slope During definite value, then judge that current network has packet lost by corruption;
When the corresponding packet packet loss of the long classification of all bags is all higher than default packet and loses in the curve that obtains of fitting During bag rate threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;Wherein it is described be fitted the curve that obtains with The long classification of the bag is the abscissa in coordinate space, with the packet packet loss as ordinate.
In the 4th kind of possible implementation, with reference in a first aspect, in the first or second possible implementation Any one, methods described also includes:
When the packet loss type of current network is judged as packet lost by corruption, the current time delay for receiving at least one packet is obtained And the average delay of receiving data bag, when the current time delay for receiving at least one packet is more than the receiving data bag During average delay, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;
When the current time delay for receiving at least one packet is less than or equal to the average delay of the receiving data bag When, judge that current network has packet lost by corruption.
A kind of third aspect, there is provided first network element device, including:
Data transmission unit, for sending packet to the second network element device;
Data sorting unit, for the data transmission unit to be sent the packet to second network element device by One mode classification is classified, and first mode classification is by the preset range that bag is long or bag the is long classification of the packet;
Statistic unit, for counting the sorted packet of the data sorting unit in all kinds of bag length packet Quantity, generates the first statistics;
The data transmission unit, is additionally operable to first statistics that the statistic unit is forwarded be sent to described Second network element device, so that second network element device judges described according to first statistics and the second statistics The type of the Network Packet Loss between one network element device and second network element device;
Or,
Packet loss recognition unit, for receiving second statistics that second network element device sends, according to described First statistics and second statistics of statistic unit forwarding judges first network element device with described the The type of the Network Packet Loss between two network element devices;
Wherein, second statistics is that second network element device classifies the packet for receiving by described first Statistics after mode is classified, to the data packet number of all kinds of bag length in the packet for receiving.
In the first possible implementation, with reference to the third aspect, the packet loss recognition unit, including:
Sampling subelement, for obtaining at least one times in first statistics and in second statistics The statistics of the packet of one class bag length and the packet of Equations of The Second Kind bag length, the average bag of the packet of the first kind bag length The average bag of the long packet more than the Equations of The Second Kind bag length is long;
Subelement is processed, for calculating the packet packet loss of the first kind bag length and the data of the Equations of The Second Kind bag length Bag packet loss, the packet packet loss be in first statistics and second statistics in same class bag length The ratio of the number difference of packet and the number of the packet of same class bag length described in first statistics;
Subelement is differentiated, for when the packet packet loss of the first kind bag length is more than the data of the Equations of The Second Kind bag length When the number of times of bag packet loss is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the first kind The long packet packet loss of bag is more than default number of times less than or equal to the number of times of the packet packet loss of the Equations of The Second Kind bag length When, judge the packet loss type of current network as congestion packet loss.
In second possible implementation, with reference to the third aspect, the packet loss recognition unit includes:
Sampling subelement, in first statistics and second statistics according to described first point Class mode, obtains the statistics that default difference wraps the packets of long classification, calculates the default difference and wraps in long classification The packet packet loss of each long classification of bag, the packet packet loss is in first statistics and the described second statistics As a result the number difference of the packet of middle same class bag length number corresponding with same class bag length described in first statistics According to the ratio of the number of bag;
Contrast subunit, for the default different packets for wrapping long classification to be carried out into ascending order row according to long classification is wrapped Sequence, the packet packet loss that predetermined number is at least included in the default different packet packet loss for wrapping long classification is ascending order Arrangement, then judge the packet loss type of current network as packet lost by corruption;If the default different packet packet losses for wrapping long classification The number of the packet packet loss arranged according to ascending order in rate is less than the predetermined number, then judge the packet loss type of current network For congestion packet loss.
In the third possible implementation, with reference to the third aspect, in the first or second possible implementation Any one, first network element device also includes:
Fitting unit, for when the packet loss type of current network is judged as packet lost by corruption, by the long classification of at least one bag Packet average Bao Changyu described in the packet packet loss of at least one long classification of bag carry out linear fit;
Major punishment unit, for when the slope of a curve that obtains of fitting be ascendant trend or the slope of a curve be more than During the fixed value of default slope, then judge that current network has packet lost by corruption;When the long classification of all bags in the curve that fitting is obtained When corresponding packet packet loss is all higher than default packet packet loss threshold value, then judge that current network has error code and loses simultaneously Bag and congestion packet loss;Wherein it is described be fitted the curve that obtains with the long classification of the bag as coordinate space in abscissa, with described Packet packet loss is ordinate.
In the 4th kind of possible implementation, with reference to the third aspect, in the first or second possible implementation Any one, first network element device also includes:
Time delay major punishment unit, for when the packet loss type of current network is judged as packet lost by corruption, obtaining second net Element device currently receive at least one packet when extend to the average delay of the second network element device receiving data bag, work as institute When the time delay for stating at least one packet of current reception is more than the average delay of the receiving data bag, then judge that current network is same When there is packet lost by corruption and congestion packet loss;When the current time delay for receiving at least one packet is less than or equal to the reception During the average delay of packet, judge that current network has packet lost by corruption.
A kind of fourth aspect, there is provided second network element device, including:
Data receipt unit, for receiving the packet that the first network element device sends;
Data sorting unit, the packet for the data receipt unit to be received is carried out according to the first mode classification Classification, first mode classification is by the preset range that bag is long or bag the is long classification of the packet;
Statistic unit, for counting the sorted packet for receiving of the data sorting unit in all kinds of bags it is long Data packet number, generate the second statistics;
Data transmission unit, second statistics for the statistic unit to be forwarded is sent to first net Element device, so that first network element device judges first network element according to first statistics and the second statistics The type of the Network Packet Loss between equipment and second network element device;
Or,
Packet loss recognition unit, for receiving first statistics that first network element device sends, according to described First statistics and second statistics of statistic unit forwarding judges first network element device with described the The type of the Network Packet Loss between two network element devices;
Wherein, first statistics is that first network element device will send the data to second network element device After bag is by first mode classification classification, to the number for sending all kinds of bag length into the packet of second network element device According to the statistics of bag quantity.
In the first possible implementation, with reference to the third aspect, the packet loss recognition unit includes:
Sampling subelement, for obtaining at least one times in first statistics and in second statistics The statistics of the packet of one class bag length and the packet of Equations of The Second Kind bag length, the average bag of the packet of the first kind bag length The average bag of the long packet more than the Equations of The Second Kind bag length is long;
Subelement is processed, for calculating the packet packet loss of the first kind bag length and the data of the Equations of The Second Kind bag length Bag packet loss, the packet packet loss be in first statistics and second statistics in same class bag length The ratio of the number difference of packet and the number of the packet of same class bag length described in first statistics;
Subelement is differentiated, for when the packet packet loss of the first kind bag length is more than the data of the Equations of The Second Kind bag length When the number of times of bag packet loss is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the first kind The long packet packet loss of bag is more than default number of times less than or equal to the number of times of the packet packet loss of the Equations of The Second Kind bag length When, judge the packet loss type of current network as congestion packet loss.
In second possible implementation, with reference to the third aspect, the packet loss recognition unit includes:
Sampling subelement, in first statistics and second statistics according to described first point Class mode, obtains the statistics that default difference wraps the packets of long classification, calculates the default difference and wraps in long classification The packet packet loss of each long classification of bag, the packet packet loss is in first statistics and the described second statistics As a result the number difference of the packet of middle same class bag length number corresponding with same class bag length described in first statistics According to the ratio of the number of bag;
Contrast subunit, for the default different packets for wrapping long classification to be carried out into ascending order row according to long classification is wrapped Sequence, the packet packet loss that predetermined number is at least included in the default different packet packet loss for wrapping long classification is ascending order Arrangement, then judge the packet loss type of current network as packet lost by corruption;If the default different packet packet losses for wrapping long classification The number of the packet packet loss arranged according to ascending order in rate is less than the predetermined number, then judge the packet loss type of current network For congestion packet loss.
In the third possible implementation, with reference to fourth aspect, in the first or second possible implementation Any one, the packet loss recognition unit includes:
Fitting unit, for when the packet loss type of current network is judged as packet lost by corruption, by the long classification of at least one bag Packet average Bao Changyu described in the packet packet loss of at least one long classification of bag carry out linear fit;
Major punishment unit, for when the slope of a curve that obtains of fitting be ascendant trend or the slope of a curve be more than During the fixed value of default slope, then judge that current network has packet lost by corruption;When the long classification of all bags in the curve that fitting is obtained When corresponding packet packet loss is all higher than default packet packet loss threshold value, then judge that current network has error code and loses simultaneously Bag and congestion packet loss;Wherein it is described be fitted the curve that obtains with the long classification of the bag as coordinate space in abscissa, with described Packet packet loss is ordinate.
In the 4th kind of possible implementation, with reference to fourth aspect, in the first or second possible implementation Any one, first network element device also includes:
Time delay major punishment unit, for when the packet loss type of current network is judged as packet lost by corruption, acquisition currently receive to A few packet when extend to the average delay of receiving data bag, when the current time delay for receiving at least one packet it is big When the average delay of the receiving data bag, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;When described When the current time delay for receiving at least one packet is less than or equal to the average delay of the receiving data bag, current network is judged There is packet lost by corruption.
5th aspect, there is provided a kind of network system, including at least one first network element devices and second network element device, Wherein described first network element device and the second network element device are connected by switching network, and first network element device is above-mentioned arbitrary First network element device, second network element device is the second any of the above-described network element device.
Embodiments of the invention Network Packet Loss kind identification method, equipment and system, by passing through between network element device The packet loss of the packet that bag is long and difference bag is long of the packet of transmission accurately quickly judges Network Packet Loss type.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of Network Packet Loss kind identification method schematic flow sheet that Fig. 1 is provided for embodiments of the invention;
Another kind of Network Packet Loss kind identification method schematic flow sheet that Fig. 2 is provided for embodiments of the invention;
A kind of Network Packet Loss kind identification method schematic flow sheet that Fig. 3 is provided for another embodiment of the present invention;
A kind of Network Packet Loss kind identification method schematic flow sheet that Fig. 4 is provided for another embodiment of the present invention;
Fig. 5 is the embodiments of the invention a kind of packet packet loss for providing and the linear fit schematic diagram for wrapping long classification;
One kind the first network element device structural representation that Fig. 6 is provided for embodiments of the invention;
Another kind the first network element device structural representation that Fig. 7 is provided for embodiments of the invention;
Another first network element device structural representation that Fig. 8 is provided for embodiments of the invention;
Another first network element device structural representation that Fig. 9 is provided for embodiments of the invention;
One kind the second network element device structural representation that Figure 10 is provided for another embodiment of the present invention;
Another kind the second network element device structural representation that Figure 11 is provided for another embodiment of the present invention;
Another first network element device structural representation that Figure 12 is provided for another embodiment of the present invention;
Another first network element device structural representation that Figure 13 is provided for another embodiment of the present invention;
One kind the first network element device structural representation that Figure 14 is provided for another embodiment of the present invention;
One kind the second network element device structural representation that Figure 15 is provided for one more embodiment of the present invention;
A kind of network architecture schematic diagram that Figure 16 is provided for embodiments of the invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In existing various communication system net structures, two network element devices are current letters by go-between transmission packet The primary demand of message communication, the basic function of go-between is exactly to make full use of the bandwidth of oneself to use up the packet of two equipment May more than and accurately and reliably transmit.But due to a variety of causes, packet occurs packet loss when go-between is transmitted, from And the communication before two equipment is affected, it is real-time in order to what is transmitted to current network in order to accurately identify the type of Network Packet Loss Control and regulation, the present invention provides a kind of Network Packet Loss kind identification method, in the first network element that side is sent as packet Equipment side, with reference to shown in Fig. 1, including:
101st, the first network element device sends packet to the second network element device.
102nd, the first network element device will send to the packet of the second network element device and be classified by the first mode classification.
First mode classification is by the long preset range classification of the bag length or bag of packet, certainly here with specific bag length The long classification of bag when value is classified in the first mode classification is specific bag long value, and with when wrapping long preset range and classifying, can be with Using each default average bag long value for wrapping the packet in long scope as long classification is wrapped, specifically divided with wrapping long preset range The concrete form of class can be that packet sorts according to bag is long according to arithmetic progression, using default bit number as tolerance value, With the long initial value of a length of bag of the maximum or most parcel of packet, such as with the long initial value of a length of bag of the maximum bag of packet, tolerance value It is set as n-bit, then is set as same class data less than the packet of the long all bag length in the range of n-bit of maximum bag Bag, is accordingly successively respectively set as the packet in the range of each tolerance n-bit according to the long direction that reduces of bag of packet One class, now using the average bag long value of packet in each margin of tolerance as the long classification of bag.
103rd, the first network element device statistics is sent to the data packet number of all kinds of bag length in the packet of the second network element device, Generate the first statistics.
104th, the first network element device sends the first statistics to the second network element device.
So that the second network element device judges the first network element device and second according to the first statistics and the second statistics The type of the Network Packet Loss between network element device.
Or,
105th, the first network element device receives the second statistics that the second network element device sends, and the first network element device is according to the One statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device.
Wherein, the second statistics be the second network element device by the packet for receiving by the classification of the first mode classification after, Statistics to the data packet number of all kinds of bag length in the packet that receives.
The present invention provides a kind of Network Packet Loss kind identification method, in the second network element device that side is received as packet Side, with reference to shown in Fig. 2, including:
201st, the second network element device receives the packet that the first network element device sends.
202nd, the second network element device is classified the packet for receiving according to the first mode classification.
Wherein, the first mode classification is by the preset range that bag is long or bag the is long classification of packet, certainly here with concrete Bag long classification of bag long value when classifying in the first mode classification be specific bag long value, and to wrap long preset range classification When, can be using each default average bag long value for wrapping the packet in long scope as long classification is wrapped, specifically with the pre- of bag length If the concrete form of scope classification can be according to the long sequence of bag according to arithmetic progression by packet, using default bit number as Tolerance value, with the long initial value of a length of bag of the maximum or most parcel of packet, such as with the long initial value of a length of bag of the maximum bag of packet, Tolerance value is set as n-bit, then be set as same class less than the packet of the long all bag length in the range of n-bit of maximum bag Packet, accordingly successively respectively sets the packet in the range of each tolerance n-bit according to the long direction that reduces of bag of packet It is set to a class, now using the average bag long value of packet in each margin of tolerance as the long classification of bag.
203rd, the second network element device counts the data packet number of all kinds of bag length in the packet for receiving, and generates second and counts As a result.
204th, the second network element device sends the second statistics to the first network element device.
So that the first network element device judges the first network element device and second according to the first statistics and the second statistics The type of the Network Packet Loss between network element device.
Or,
205th, the second network element device receives the first statistics that the first network element device sends, and the second network element device is according to the One statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device.
Wherein, the first statistics is that the first network element device classifies the packet sent to the second network element device by first After mode is classified, to sending to the statistics of the data packet number of all kinds of bag length in the packet of the second network element device.
Embodiments of the invention Network Packet Loss kind identification method, equipment and system, by passing through between network element device The packet loss of the packet that bag is long and difference bag is long of the packet of transmission accurately quickly judges Network Packet Loss type.
Specifically, illustrate below in conjunction with specific embodiment.
With reference to shown in Fig. 3, can be on the basis of the embodiment shown in Fig. 1 and Fig. 2, embodiments of the invention provide a kind of net Network packet loss kind identification method, there is provided network element device is according to the first statistics and the second statistics to losing between network element device The concrete grammar that Packet type differentiates, specifically includes following steps:
301st, the first network element device sends packet to the second network element device.
302nd, the first network element device will send to the packet of the second network element device and be classified by the first mode classification.
First mode classification is by the preset range that bag is long or bag the is long classification of packet.
303rd, the first network element device statistics is sent to the data packet number of all kinds of bag length in the packet of the second network element device, Generate the first statistics.
304th, the second network element device receives the packet that the first network element device sends.
305th, the second network element device is classified the packet for receiving according to the first mode classification.
First mode classification is by the long preset range classification of the bag length or bag of packet, certainly here with specific bag length The long classification of bag when value is classified in the first mode classification is specific bag long value, and with when wrapping long preset range and classifying, can be with Using each default average bag long value for wrapping the packet in long scope as long classification is wrapped, specifically divided with wrapping long preset range The concrete form of class can be that packet sorts according to bag is long according to arithmetic progression, using default bit number as tolerance value, With the long initial value of a length of bag of the maximum or most parcel of packet, such as with the long initial value of a length of bag of the maximum bag of packet, tolerance value It is set as n-bit, then is set as same class data less than the packet of the long all bag length in the range of n-bit of maximum bag Bag, is accordingly successively respectively set as the packet in the range of each tolerance n-bit according to the long direction that reduces of bag of packet One class, now using the average bag long value of packet in each margin of tolerance as the long classification of bag.
306th, the second network element device counts the data packet number of all kinds of bag length in the packet for receiving, and generates second and counts As a result.
307th, the second network element device sends the second statistics to the first network element device, so as to the first network element device according to First statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device.
308th, the first network element device receives the second statistics that the second network element device sends, in the neutralization of the first statistics Obtain the statistics of the packet of first kind bag length and the packet of Equations of The Second Kind bag length in second statistics at least one times, the The average bag length of the packet of one class bag length is long more than the average bag of the packet of Equations of The Second Kind bag length.
Here according to the specific mode classification employed in step 302, this is average if being classified with specific bag long value Long the corresponding in classification of bag wraps long value, if classification is with the long scope classification of multiple default bags, averagely bag herein is a length of should The default long mean value of bag for wrapping long scope.
Assume to be extracted in the first statistics and the second statistics the packet M and second obtained to first kind bag length The statistics of the packet of the long N of class bag, and the bag indicated by M is long more than the bag indicated by N when long.
309th, the first network element device calculates the packet packet loss of first kind bag length and the packet packet loss of Equations of The Second Kind bag length Rate.
Packet packet loss is the number that the first statistics neutralizes the packet of same class bag length in the second statistics The ratio of the number of the packet of same class bag length in difference and the first statistics.
Specifically, according to first in the packet M numbers and the second statistics of first kind bag length in the first statistics The packet M numbers of class bag length obtain the packet loss X of the packet M of first kind bag length;According to Equations of The Second Kind in the first statistics The N number of number of the packet of Equations of The Second Kind bag length obtains the data of Equations of The Second Kind bag length in the long N number of number of packet of bag and the second statistics The packet loss X of bag N.
310th, when the packet packet loss of first kind bag length is more than more than the number of times of the packet packet loss of Equations of The Second Kind bag length During default number of times, judge the packet loss type of current network as packet lost by corruption;When the packet packet loss of first kind bag length is less than Or when equal to the number of times of the packet packet loss of Equations of The Second Kind bag length being more than default number of times, judge the packet loss type of current network as Congestion packet loss.
In communication process between network element device, if during congestion packet loss, the Bao Changwu of packet packet loss and packet Close, the packet loss of the packet of all kinds of bag length is that in a balanced way, and in the case of the packet loss that error code causes, the long packets of Bao Changyue are lost Bag rate is bigger, obtains the statistics knot of the packet of first kind bag length and the packet of Equations of The Second Kind bag length at least one times in addition Really, when the statistics of the packet of packet and Equations of The Second Kind bag length of a first kind bag length is only obtained, one can only be characterized In individual comparison short period, the packet loss type of network judges the packet loss type of current network as packet lost by corruption when X is more than Y, if X Then judge the packet loss type of current network as congestion packet loss less than or equal to Y;Yet with the first system in data transmission procedure Meter result and the second statistics are dynamic changes in each stage, therefore can also obtain the data of first kind bag length for K time The statistics of the packet of bag and Equations of The Second Kind bag length, according to each sampled result, when the packet packet loss of the long M of first kind bag When the number of times of packet packet loss of the rate more than the long N of Equations of The Second Kind bag is more than default number of times, the packet loss type of current network is judged For packet lost by corruption;Otherwise, it is determined that the packet loss type of current network is congestion packet loss.
Certainly, step 307 can also be replaced with:First statistics is sent to the second network element and is set by the first network element device Standby, such second network element device can also be according to the first statistics and the second statistics knot after first statistics is received Method in fruit execution step 308~310 performed by first network element device, dotted portion is illustrated in accompanying drawing 3, is specifically no longer gone to live in the household of one's in-laws on getting married State.
The Network Packet Loss kind identification method that embodiments of the invention are provided, the packet that can be sent according to the equipment of transmission The bag length and the dynamic change of packet loss of the packet received with receiving device, accurately quickly judges Network Packet Loss class Type.
With reference to shown in Fig. 4, can be on the basis of the embodiment shown in Fig. 1 and Fig. 2, embodiments of the invention provide a kind of net Network packet loss kind identification method, there is provided network element device is according to the first statistics and the second statistics to losing between network element device The concrete grammar that Packet type differentiates, specifically includes following steps:
401st, the first network element device sends packet to the second network element device.
402nd, the first network element device will send to the packet of the second network element device and be classified by the first mode classification.
First mode classification is by the long preset range classification of the bag length or bag of packet, certainly here with specific bag length The long classification of bag when value is classified in the first mode classification is specific bag long value, and with when wrapping long preset range and classifying, can be with Using each default average bag long value for wrapping the packet in long scope as long classification is wrapped, specifically divided with wrapping long preset range The concrete form of class can be that packet sorts according to bag is long according to arithmetic progression, using default bit number as tolerance value, With the long initial value of a length of bag of the maximum or most parcel of packet, such as with the long initial value of a length of bag of the maximum bag of packet, tolerance value It is set as n-bit, then is set as same class data less than the packet of the long all bag length in the range of n-bit of maximum bag Bag, is accordingly successively respectively set as the packet in the range of each tolerance n-bit according to the long direction that reduces of bag of packet One class, now using the average bag long value of packet in each margin of tolerance as the long classification of bag.
403rd, the first network element device statistics is sent to the data packet number of all kinds of bag length in the packet of the second network element device, Generate the first statistics.
404th, the second network element device receives the packet that the first network element device sends.
405th, the second network element device is classified the packet for receiving according to the first mode classification.
First mode classification is by the preset range that bag is long or bag the is long classification of packet.
406th, the second network element device counts the data packet number of all kinds of bag length in the packet for receiving, and generates second and counts As a result.
407th, the second network element device sends the second statistics to the first network element device, so as to the first network element device according to First statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device.
408th, the first network element device receives the second statistics that the second network element device sends, in the neutralization of the first statistics According to first mode classification in second statistics, the statistics of the default different packets for wrapping long classification is obtained, Calculate the default different packet packet loss for wrapping each long classification of bag in long classification.
Packet packet loss is the number that the first statistics neutralizes the packet of same class bag length in the second statistics The ratio of the number of difference packet corresponding with same class bag length in the first statistics;Here can use K difference and wrap long class The statistics of other packet, and the K different packet packet loss for wrapping long classification is calculated according to statistics, obtain correspondence K packet packet loss.
409th, default difference is wrapped long classification and carries out ascending sort according to bag length by the first network element device, presets individual difference bag Packet packet loss in the packet packet loss of long classification at least including predetermined number is ascending order arrangement, then judge current network Packet loss type be packet lost by corruption;If the packet arranged according to ascending order in the default different packet packet loss for wrapping long classification The number of packet loss is less than predetermined number, then judge the packet loss type of current network as congestion packet loss.
Here wrap long classification by K in statistics to be ranked up, then the corresponding number of the long classification of the bag of detection data bag According to the ordering scenario of bag packet loss, sentence when the packet packet loss of at least predetermined number in K packet loss is arranged for ascending order The packet loss type for determining current network is packet lost by corruption, otherwise judges the packet loss type of current network as congestion packet loss.In the same manner in net In communication process between element device, if during congestion packet loss, packet loss is unrelated with the bag length of packet, the packet of all kinds of bag length Packet loss is that in a balanced way, and in the case of the packet loss that error code causes, the long packet loss of Bao Changyue is bigger, therefore according to sequence The number of the packet packet loss for as a result arranging according to ascending order exceedes predetermined number, and (certainly predetermined number here is less than or waits In K's) after it is bigger for the probability of packet lost by corruption the reason for more at most cause current network packet loss.
Certainly, step 407 can also be replaced with:First statistics is sent to the second network element and is set by the first network element device Standby, such second network element device can also be according to the first statistics and the second statistics knot after first statistics is received Method in fruit execution step 408~409 performed by first network element device, dotted portion is illustrated in accompanying drawing 4, is specifically no longer gone to live in the household of one's in-laws on getting married State.
The Network Packet Loss kind identification method that embodiments of the invention are provided, the packet that can be sent according to the equipment of transmission The bag length and the dynamic change of packet loss of the packet received with receiving device, accurately quickly judges Network Packet Loss class Type.
Further, optionally, after judging the packet loss type of current network as packet lost by corruption according to the above embodiments, the party Case also includes:
A1, the first network element device are by the Bao Changyu of the packet of at least one long classification of the bag long classifications of at least one bag The packet loss of packet carries out linear fit;
B1, it is ascendant trend or slope of a curve is more than the fixation of default slope when the slope of a curve that obtains of fitting During value, then judge that current network has packet lost by corruption;
C1, when in the curve that obtains of fitting the corresponding packet packet loss of the long classification of all bags be all higher than default packet During packet loss threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously.
Abscissa of the curve for obtaining in wrapping long classification as coordinate space is wherein fitted, with packet packet loss as vertical seat Mark.
Shown in specific reference Fig. 5, packet packet loss is carried out into linear fit, approximating method with the relation of the long classification of bag Do not limit, wherein when wrapping a length of 0, packet packet loss is J.The slope value of the curve l that fitting is obtained should now be passed through to rise During trend, then judge that current network only exists packet lost by corruption;Or the curve that fitting is obtained is fixed slope K1, that is, what is be fitted arrives Be the straight line of K1 for slope, when K1 is more than default slope K 2, then judge that current network only exists packet lost by corruption;Such as Fig. 5 institutes Show, then with i, j is respectively in abscissa (the long classification of bag) and the coordinate system of ordinate (packet packet loss), coordinate points (i, J)=(0, J) is the intersection point of matched curve l and axis of ordinates i=0, when the long classification pair of all bags in the curve l that fitting is obtained When the packet packet loss answered is all higher than default packet packet loss threshold value, then judge that current network has packet lost by corruption simultaneously And congestion packet loss;When linear fit obtain for curve when, due to slope be ascendant trend, as long as therefore coordinate points (0, J) place J be more than default packet packet loss threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously.
Certain packet loss type that current network ought be judged according to the above embodiments is packet lost by corruption as the second network element device When making, step a1, b1, c1 also can be performed by the second network element device, and here is omitted.
Optionally, after judging the packet loss type of current network as packet lost by corruption according to the above embodiments, the program is also wrapped Include:
A2, the second network element device obtain the second network element device receive at least one packet when extend to the second network element device The average delay of receiving data bag, when the time delay for receiving at least one packet is more than the average delay of receiving data bag, then Judge that current network has packet lost by corruption and congestion packet loss simultaneously;When the current time delay for receiving at least one packet is less than or waits When the average delay of receiving data bag, judge that current network has packet lost by corruption.
Second network element device in one time period is now received the time delay of at least one packet and the mean time of the overall situation Prolong and be compared, when the time delay of at least one packet is received in a time period more than global average delay, explanation Network there is a possibility that congestion packet loss.
Certainly step a2 is that the first network element device performs the time delay now needed from the second network element device side acquisition correlation, when So according to the above embodiments when the packet loss type for judging current network is made as packet lost by corruption as the second network element device, the step Rapid a2 also can directly be performed by the second network element device.
Cause because congestion packet loss is mainly network condition factor, if therefore the packet loss factor of current network lose including congestion Bao Shi, then receiving terminal receiving data bag when postpone a meeting or conference increase, therefore, when the time delay of at least one packet of the reception is more than institute When stating the average delay of receiving data bag, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;Otherwise judge to work as There is packet lost by corruption in front network.
Embodiments of the invention provide a kind of first network element device, and first network element device is specifically as follows in network architecture Any node network element device, such as switching equipment, Remote Radio Unit, base station, mobile terminal or base station side be used for packet Arbitrary equipment that can realize data pack receiving and transmitting in network architecture such as the unit of transmitting-receiving, module or entity, in the reality of the present invention Apply in example and the concrete form of network element device is not particularly limited, so that above-mentioned that embodiments of the invention are provided can be realized One Network Packet Loss kind identification method is defined, and specific with reference to shown in Fig. 6, the network element device includes:
Data transmission unit 61, for sending packet to the second network element device;
Data sorting unit 62, for data transmission unit 61 to be sent the packet to the second network element device by first point Class mode is classified, and the first mode classification is by the preset range that bag is long or bag the is long classification of packet;
Statistic unit 63, for the number-of-packet of all kinds of bag length in the sorted packet of statistics taxon 62 Amount, generates the first statistics;
The data transmission unit 61, the first statistics for being additionally operable to forward statistic unit 63 is sent to the second network element Equipment, so that the second network element device judges the first network element device and the second network element according to the first statistics and the second statistics The type of the Network Packet Loss of equipment room;
Or,
Packet loss recognition unit 64, for receiving the second statistics that the second network element device sends, according to statistic unit 63 First statistics and the second statistics of forwarding judges the Network Packet Loss between the first network element device and the second network element device Type;
Wherein, the second statistics be the second network element device by the packet for receiving by the classification of the first mode classification after, Statistics to the data packet number of all kinds of bag length in the packet that receives.
Optionally, with reference to shown in Fig. 7, packet loss recognition unit 64, including:
Sampling subelement 641, for neutralizing in the second statistics used in the first statistics first is obtained at least one times The statistics of the packet of class bag length and the packet of Equations of The Second Kind bag length, the average bag length of the packet of first kind bag length is more than The average bag of the packet of Equations of The Second Kind bag length is long;
Subelement 642 is processed, the packet of packet packet loss and Equations of The Second Kind bag length for calculating first kind bag length is lost Bag rate, packet packet loss be in first statistics and second statistics in same class bag length packet The ratio of the number of the packet of same class bag length in number difference and the first statistics;
Subelement 643 is differentiated, for losing more than the packet of Equations of The Second Kind bag length when the packet packet loss of first kind bag length When the number of times of bag rate is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the number of first kind bag length When being more than default number of times less than or equal to the number of times of the packet packet loss of Equations of The Second Kind bag length according to bag packet loss, current net is judged The packet loss type of network is congestion packet loss.
Optionally, with reference to shown in Fig. 8, packet loss recognition unit 64, including:
Sampling subelement 644, for, according to the first mode classification, obtaining in neutralizing the second statistics in the first statistics The statistics that default difference wraps the packets of long classification is taken, default difference is calculated and is wrapped each long classification of bag in long classification Packet packet loss, packet packet loss be in the first statistics and second statistics in same class bag length data The ratio of the number of the number difference of bag packet corresponding with same class bag length in the first statistics;
Contrast subunit 645, for the default different packets for wrapping long classification to be carried out into ascending order row according to long classification is wrapped Sequence, the packet packet loss preset in a different packet packet loss for wrapping long classification at least including predetermined number is ascending order row Row, then judge the packet loss type of current network as packet lost by corruption;If pressing in the default different packet packet loss for wrapping long classification The predetermined number is less than according to the number of the packet packet loss of ascending order arrangement, then judges the packet loss type of current network as congestion Packet loss.
Further, it is optional with reference to shown in Fig. 9, when the first network element device 6 includes packet loss recognition unit 64, the first network element Equipment 6 also includes:
Fitting unit 65, for when the packet loss type of current network is judged as packet lost by corruption, by the long class of at least one bag The average Bao Changyu at least one of other packet wraps the packet packet loss of long classification and carries out linear fit;
Major punishment unit 66, for being ascendant trend or slope of a curve is more than pre- when the slope of a curve that obtains of fitting If during the fixed value of slope, then judging that current network has packet lost by corruption;When the long classification pair of all bags in the curve that fitting is obtained When the packet packet loss answered is all higher than default packet packet loss threshold value, then judge that current network has packet lost by corruption simultaneously And congestion packet loss;Abscissa of the curve for obtaining in wrapping long classification as coordinate space is wherein fitted, is with packet packet loss Ordinate.
Optionally, with reference to shown in Fig. 9, when the first network element device 6 includes packet loss recognition unit 64, the first network element device 6 Also include:
Time delay major punishment unit 67, for when the packet loss type of current network is judged as packet lost by corruption, obtaining the second network element Equipment currently receive at least one packet when extend to the average delay of the second network element device receiving data bag, when current reception When the time delay of at least one packet is more than the average delay of receiving data bag, then judge that current network has packet lost by corruption simultaneously And congestion packet loss;When average delay of the current time delay for receiving at least one packet less than or equal to receiving data bag, sentence Determine current network and there is packet lost by corruption.
The first network element device that embodiments of the invention are provided, can receive according to the packet and receiving device that send Packet bag is long and dynamic change of packet loss, accurately quickly judge Network Packet Loss type.
Embodiments of the invention provide a kind of second network element device, and second network element device is specifically as follows in network architecture Any node network element device, such as switching equipment, Remote Radio Unit, base station, mobile terminal or base station side be used for packet Arbitrary equipment that can realize data pack receiving and transmitting in network architecture such as the unit of transmitting-receiving, module or entity, in the reality of the present invention Apply in example and the concrete form of network element device is not particularly limited, so that above-mentioned that embodiments of the invention are provided can be realized One Network Packet Loss kind identification method is defined, and specific with reference to shown in Figure 10, the network element device includes:
Data receipt unit 71, for receiving the packet that the first network element device sends;
Data sorting unit 72, the packet for data receipt unit 71 to be received is carried out according to the first mode classification Classification, the first mode classification is by the preset range that bag is long or bag the is long classification of packet;
Statistic unit 73, for the number of all kinds of bag length in the sorted packet for receiving of statistics taxon 72 According to bag quantity, the second statistics is generated;
Data transmission unit 74, the second statistics for statistic unit 73 to be forwarded is sent to the first network element device, So that the first network element device judges the first network element device and the second network element device according to the first statistics and the second statistics Between Network Packet Loss type;
Or,
Packet loss recognition unit 75, for receiving the first statistics that the first network element device sends, according to statistic unit 73 First statistics and the second statistics of forwarding judges the Network Packet Loss between the first network element device and the second network element device Type;
Wherein, the first statistics is that the first network element device classifies the packet sent to the second network element device by first After mode is classified, to sending to the statistics of the data packet number of all kinds of bag length in the packet of the second network element device.
Optionally, with reference to shown in Figure 11, packet loss recognition unit 75 includes:
Sampling subelement 751, for obtaining the first kind at least one times in neutralizing the second statistics in the first statistics The statistics of the packet of the long packet of bag and Equations of The Second Kind bag length, the average bag length of the packet of first kind bag length is more than the The average bag of the packet of two class bag length is long;
Subelement 752 is processed, the packet of packet packet loss and Equations of The Second Kind bag length for calculating first kind bag length is lost Bag rate, packet packet loss is the number difference that the first statistics neutralizes the packet of same class bag length in the second statistics With the ratio of the number of the packet of same class bag length described in the first statistics;
Subelement 753 is differentiated, for losing more than the packet of Equations of The Second Kind bag length when the packet packet loss of first kind bag length When the number of times of bag rate is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the number of first kind bag length When being more than default number of times less than or equal to the number of times of the packet packet loss of Equations of The Second Kind bag length according to bag packet loss, current net is judged The packet loss type of network is congestion packet loss.
Optionally, with reference to shown in Figure 12, packet loss recognition unit 75 includes:
Sampling subelement 754, for, according to the first mode classification, obtaining in neutralizing the second statistics in the first statistics The statistics that default difference wraps the packets of long classification is taken, default difference is calculated and is wrapped each long classification of bag in long classification Packet packet loss, packet packet loss be in the first statistics and second statistics in same class bag length data The ratio of the number of the number difference of bag packet corresponding with same class bag length described in the first statistics;
Contrast subunit 755, for the default different packets for wrapping long classification to be carried out into ascending order row according to long classification is wrapped Sequence, the packet packet loss preset in a different packet packet loss for wrapping long classification at least including predetermined number is ascending order row Row, then judge the packet loss type of current network as packet lost by corruption;If pressing in the default different packet packet loss for wrapping long classification The predetermined number is less than according to the number of the packet packet loss of ascending order arrangement, then judges the packet loss type of current network as congestion Packet loss.
Further alternative, with reference to shown in Figure 13, the second network element device also includes:
Fitting unit 76, for when the packet loss type of current network is judged as packet lost by corruption, by the long class of at least one bag The average Bao Changyu at least one of other packet wraps the packet packet loss of long classification and carries out linear fit;
Major punishment unit 77, for being ascendant trend or slope of a curve is more than pre- when the slope of a curve that obtains of fitting If during the fixed value of slope, then judging that current network has packet lost by corruption;When the long classification pair of all bags in the curve that fitting is obtained When the packet packet loss answered is all higher than default packet packet loss threshold value, then judge that current network has packet lost by corruption simultaneously And congestion packet loss;Abscissa of the curve for obtaining in wrapping long classification as coordinate space is wherein fitted, is with packet packet loss Ordinate.
Optionally, with reference to shown in Figure 13, the second network element device also includes:Also include:
Time delay major punishment unit 78, for when the packet loss type of current network is judged as packet lost by corruption, obtaining the second network element Equipment currently receive at least one packet when extend to the average delay of the second network element device receiving data bag, when current reception When the time delay of at least one packet is more than the average delay of receiving data bag, then judge that current network has packet lost by corruption simultaneously And congestion packet loss;When average delay of the current time delay for receiving at least one packet less than or equal to receiving data bag, sentence Determine current network and there is packet lost by corruption.
The second network element device that embodiments of the invention are provided, according to the packet of transmission equipment transmission and can receive Packet bag is long and dynamic change of packet loss, accurately quickly judge Network Packet Loss type.
Embodiments of the invention provide a kind of first network element device, and first network element device is specifically as follows in network architecture Any node network element device, such as switching equipment, Remote Radio Unit, base station, mobile terminal or base station side be used for packet Arbitrary equipment that can realize data pack receiving and transmitting in network architecture such as the unit of transmitting-receiving, module or entity, in the reality of the present invention Apply in example and the concrete form of network element device is not particularly limited, so that above-mentioned that embodiments of the invention are provided can be realized One Network Packet Loss kind identification method is defined, and specific with reference to shown in Figure 14, the network element device includes:Including:At at least one Reason device 81, memory 82, COM1 83 and bus 84, at least one processor 81, memory 82 and communication interface 83 are led to Cross bus 84 and connect and complete mutual communication.
The bus 84 can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension Industry Standard Architecture knot Structure (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 84 can be divided into Address bus, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Figure 14, it is not intended that only A piece bus or a type of bus.Wherein:
Memory 82 is used to store executable program code, and the program code includes computer-managed instruction.Memory 82 High-speed RAM memory may be included, it is also possible to also including nonvolatile memory (non-volatile memory), for example extremely A few magnetic disc store.Store in the storage device:Operating system, application program, for realizing the embodiment of the present invention Program code.The operating system is used to controlling and realizing the processing function that the processing unit is performed.The application package Containing program code, such as Word, email softwares.
Processor 81 is probably a central processing unit (Central Processing Unit, referred to as CPU), or It is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or is matched somebody with somebody It is set to one or more integrated circuits for implementing the embodiment of the present invention.
Communication interface 83, is mainly used in realizing the communication between the device in the present embodiment.
The processor 81, for sending packet to the second network element device by COM1 83;
Processor 81 sends packet to the second network element device and carries out point by the first mode classification by COM1 83 Class, the first mode classification is by the preset range that bag is long or bag the is long classification of packet;
Processor 81, for the data packet number of all kinds of bag length in the packet after statistical classification, generates the first statistics knot Really;
Processor 81, for the first statistics being sent to the second network element device, so as to second by COM1 83 Network element device judges the network between the first network element device and the second network element device according to the first statistics and the second statistics The type of packet loss;
Or,
Processor 81, for receiving the second statistics that the second network element device sends by COM1 83, according to the One statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device;
Wherein, the second statistics be the second network element device by the packet for receiving by the classification of the first mode classification after, Statistics to the data packet number of all kinds of bag length in the packet that receives.
Optionally,
Processor 81, specifically obtains at least one times first kind bag length in the first statistics neutralizes the second statistics The statistics of the packet of packet and Equations of The Second Kind bag length, the average bag length of the packet of first kind bag length is more than Equations of The Second Kind bag The average bag of long packet is long;
Processor 81, for calculating the packet packet loss of first kind bag length and the packet packet loss of Equations of The Second Kind bag length, Packet packet loss is that the first statistics neutralizes the number difference of the packet of same class bag length and the in the second statistics The ratio of the number of the packet of same class bag length described in one statistics;
Processor 81, for when the packet packet loss of first kind bag length is more than the packet packet loss of Equations of The Second Kind bag length When number of times is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the packet of first kind bag length is lost When bag rate is more than default number of times less than or equal to the number of times of the packet packet loss of Equations of The Second Kind bag length, losing for current network is judged Packet type is congestion packet loss.
Optionally, processor 81, for the first statistics neutralize the second statistics according to the first mode classification, The statistics that default difference wraps the packets of long classification is obtained, default difference is calculated and is wrapped each long classification of bag in long classification Packet packet loss, packet packet loss be the first statistics neutralize the second statistics in same class bag length packet Number difference packet corresponding with same class bag length in the first statistics number ratio;
Processor 81, for the default different packets for wrapping long classification to be carried out into ascending sort according to long classification is wrapped, in advance If the packet packet loss in the individual different packet packet loss for wrapping long classification at least including predetermined number is ascending order arrangement, then sentence The packet loss type for determining current network is packet lost by corruption;If arranging according to ascending order in the default different packet packet loss for wrapping long classification The number of the packet packet loss of row is less than predetermined number, then judge the packet loss type of current network as congestion packet loss.
Further, optionally, processor 81, are additionally operable to when the packet loss type of current network is judged as packet lost by corruption, will The average Bao Changyu at least one of the packet of the long classification of at least one bag wraps the packet packet loss of long classification and carries out Linear Quasi Close;
Processor 81, the slope of a curve for obtaining when fitting is more than default for ascendant trend or slope of a curve During the fixed value of slope, then judge that current network has packet lost by corruption;When the long classification correspondence of all bags in the curve that fitting is obtained Packet packet loss judge when being all higher than default packet packet loss threshold value, then current network exist simultaneously packet lost by corruption and Congestion packet loss;Abscissa during the curve for obtaining wherein is fitted with the long classification of the bag as coordinate space, is lost with the packet Bag rate is ordinate
Optionally,
Processor 81, for when the packet loss type of current network is judged as packet lost by corruption, being obtained by communication interface 83 Second network element device currently receive at least one packet when extend to the average delay of the second network element device receiving data bag, when When the current time delay for receiving at least one packet is more than the average delay of receiving data bag, then judge that current network exists simultaneously Packet lost by corruption and congestion packet loss;When the current time delay for receiving at least one packet is less than or equal to the mean time of receiving data bag Time delay, judges that current network has packet lost by corruption.
The first network element device that embodiments of the invention are provided, can receive according to the packet and receiving device that send Packet bag is long and dynamic change of packet loss, accurately quickly judge Network Packet Loss type.
Embodiments of the invention provide a kind of second network element device, and the network element device is specifically as follows appointing in network architecture One node network element device, such as switching equipment, Remote Radio Unit, base station, mobile terminal or base station side are used for data pack receiving and transmitting Unit, module or entity etc. in network architecture arbitrary equipment that can realize data pack receiving and transmitting, in embodiments of the invention In the concrete form of network element device is not particularly limited, so that any of the above-described net that embodiments of the invention are provided can be realized Network packet loss kind identification method is defined, and specific with reference to shown in Figure 15, the network element device includes:Including:At least one processor 91st, memory 92, COM1 93 and bus 94, at least one processor 91, memory 92 and communication interface 93 are by total Line 94 connects and completes mutual communication.
The bus 94 can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extension Industry Standard Architecture knot Structure (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 94 can be divided into Address bus, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Figure 15, it is not intended that only A piece bus or a type of bus.Wherein:
Memory 92 is used to store executable program code, and the program code includes computer-managed instruction.Memory 92 High-speed RAM memory may be included, it is also possible to also including nonvolatile memory (non-volatile memory), for example extremely A few magnetic disc store.Store in the storage device:Operating system, application program, for realizing the embodiment of the present invention Program code.The operating system is used to controlling and realizing the processing function that the processing unit is performed.The application package Containing program code, such as Word, email softwares.
Processor 91 is probably a central processing unit (Central Processing Unit, referred to as CPU), or It is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or is matched somebody with somebody It is set to one or more integrated circuits for implementing the embodiment of the present invention.
Communication interface 93, is mainly used in realizing the communication between the device in the present embodiment.
Processor 91, for receiving the packet that the first network element device sends by COM1 93;
Processor 91, for the packet received by COM1 93 to be classified according to the first mode classification, First mode classification is by the preset range that bag is long or bag the is long classification of packet;
Processor 91, for the data packet number of all kinds of bag length in the sorted packet for receiving, generates second and unites Meter result;
Processor 91, for the second statistics to be sent to the first network element device, so as to first by COM1 93 Network element device judges the network between the first network element device and the second network element device according to the first statistics and the second statistics The type of packet loss;
Or,
Processor 91, for receiving the first statistics that the first network element device sends by COM1 93, according to the One statistics and the second statistics judge the type of the Network Packet Loss between the first network element device and the second network element device;
Wherein, the first statistics is that the first network element device classifies the packet sent to the second network element device by first After mode is classified, to sending to the statistics of the data packet number of all kinds of bag length in the packet of the second network element device.
Optionally, processor 91, specifically for obtaining at least one times in the first statistics the second statistics of neutralization The statistics of the packet of first kind bag length and the packet of Equations of The Second Kind bag length, the average bag of the packet of first kind bag length is long It is long more than the average bag of the packet of the Equations of The Second Kind bag length;
Processor 91, for calculating the packet packet loss of first kind bag length and the packet packet loss of Equations of The Second Kind bag length, Packet packet loss is that the first statistics neutralizes the number difference of the packet of same class bag length and the in the second statistics The ratio of the number of the packet of same class bag length in one statistics;
Processor 91, for when the packet packet loss of first kind bag length is more than the packet packet loss of Equations of The Second Kind bag length When number of times is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the packet of first kind bag length is lost When bag rate is more than default number of times less than or equal to the number of times of the packet packet loss of Equations of The Second Kind bag length, losing for current network is judged Packet type is congestion packet loss.
Optionally, processor 91, specifically for classifying according to first in the first statistics the second statistics of neutralization Mode, obtains the statistics that default difference wraps the packets of long classification, calculates default difference and wraps each bag in long classification The packet packet loss of long classification, packet packet loss is that the first statistics neutralizes same class bag length in the second statistics The ratio of the number of the number difference of packet packet corresponding with same class bag length in the first statistics;
Processor 91, for the default different packets for wrapping long classification to be carried out into ascending sort according to long classification is wrapped, in advance If the packet packet loss in the individual different packet packet loss for wrapping long classification at least including predetermined number is ascending order arrangement, then sentence The packet loss type for determining current network is packet lost by corruption;If arranging according to ascending order in the default different packet packet loss for wrapping long classification The number of the packet packet loss of row is less than predetermined number, then judge the packet loss type of current network as congestion packet loss.
It is further alternative, processor 91, for when the packet loss type of current network is judged as packet lost by corruption, will at least The packet packet loss of the long classification of at least one bag carries out Linear Quasi described in the average Bao Changyu of one packet for wrapping long classification Close;
Processor 91, the slope of a curve for obtaining when fitting is more than default for ascendant trend or slope of a curve During the fixed value of slope, then judge that current network has packet lost by corruption;When the long classification correspondence of all bags in the curve that fitting is obtained Packet packet loss judge when being all higher than default packet packet loss threshold value, then current network exist simultaneously packet lost by corruption and Congestion packet loss;Abscissa during the curve for obtaining wherein is fitted with the long classification of the bag as coordinate space, with packet packet loss For ordinate.
Optionally, processor 91, for when the packet loss type of current network is judged as packet lost by corruption, obtaining current reception At least one packet when extend to the average delay of receiving data bag, when the current time delay for receiving at least one packet is more than During the average delay of receiving data bag, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;When currently receive to When the time delay of a few packet is less than or equal to the average delay of receiving data bag, judge that current network has packet lost by corruption.
The second network element device that embodiments of the invention are provided, according to the packet of transmission equipment transmission and can receive Packet bag is long and dynamic change of packet loss, accurately quickly judge Network Packet Loss type.
With reference to shown in Figure 16, a kind of network system that embodiments of the invention are provided, including at least one first network elements set For 101 and second network element device 102, wherein the first network element device 101 and the second network element device 102 are connected by switching network Connect, arbitrary first network element device that the first network element device 101 is provided for the said equipment embodiment, the second network element device 102 is upper Arbitrary second network element device of apparatus embodiments offer is provided.Certainly the network system that embodiments of the invention are provided can be applied The network element device that embodiments of the invention are provided realizes the Network Packet Loss kind identification method that embodiments of the invention are provided, Wherein, the structure of each network element device that the system is included, and the Network Packet Loss type realized by each network element device The detailed process of recognition methods is repeated no more here with reference to the description of the embodiment above with respect to method and apparatus.
The network system that embodiments of the invention are provided, the packet and receiving device that can be sent according to transmission equipment connects The bag length and the dynamic change of packet loss of the packet for receiving, accurately quickly judges Network Packet Loss type.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of said method embodiment can pass through Completing, aforesaid program can be stored in a computer read/write memory medium the related hardware of programmed instruction, the program Upon execution, the step of including said method embodiment is performed;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (21)

1. a kind of Network Packet Loss kind identification method, it is characterised in that include:
First network element device to the second network element device sends packet;
First network element device will be sent to the packet of second network element device is classified by the first mode classification, institute It is by the preset range that bag is long or bag the is long classification of the packet to state the first mode classification;
First network element device counts the packet for sending all kinds of bag length into the packet of second network element device Quantity, generates the first statistics;
First network element device sends first statistics to second network element device, so as to second network element Equipment judges first network element device with second network element device according to first statistics and the second statistics Between Network Packet Loss type;
Or,
First network element device receives second statistics that second network element device sends, and first network element sets It is standby to judge that first network element device sets with second network element according to first statistics and second statistics The type of the Network Packet Loss between standby;
Wherein, second statistics be second network element device by the packet for receiving by first mode classification Statistics after classification, to the data packet number of all kinds of bag length in the packet for receiving.
2. method according to claim 1, it is characterised in that first network element device is according to first statistics And second statistics judges the type bag of the Network Packet Loss between first network element device and second network element device Include:
In first statistics and second statistics in obtain at least one times first kind bag length packet and The statistics of the packet of Equations of The Second Kind bag length, the average bag length of the packet of the first kind bag length is more than the Equations of The Second Kind bag The average bag of long packet is long;
Calculate the packet packet loss of the first kind bag length and the packet packet loss of the Equations of The Second Kind bag length, the packet Packet loss be in first statistics and in second statistics number difference of the packet of same class bag length with The ratio of the number of the packet of same class bag length described in first statistics;
When the packet packet loss of the first kind bag length is more than more than the number of times of the packet packet loss of the Equations of The Second Kind bag length During default number of times, judge the packet loss type of current network as packet lost by corruption;
When the packet packet loss of the first kind bag length is less than or equal to the secondary of the packet packet loss of the Equations of The Second Kind bag length When number is more than default number of times, judge the packet loss type of current network as congestion packet loss.
3. method according to claim 1, it is characterised in that first network element device is according to first statistics And second statistics judges the type bag of the Network Packet Loss between first network element device and second network element device Include:
According to first mode classification in first statistics and in second statistics, default is obtained not With the statistics of the packet of the long classification of bag, the packet for presetting each long classification of bag in the long classification of individual different bags is calculated Packet loss, the packet packet loss be in first statistics and second statistics in same class bag length number According to the ratio of the number of the number difference packet corresponding with same class bag length described in first statistics of bag;
The packets of the long classification of the default difference bag are carried out into ascending sort, the default difference bag according to long classification is wrapped Packet packet loss in the packet packet loss of long classification at least including predetermined number is ascending order arrangement, then judge current network Packet loss type be packet lost by corruption;
If the number of the packet packet loss arranged according to ascending order in the default different packet packet loss for wrapping long classification Less than the predetermined number, then judge the packet loss type of current network as congestion packet loss.
4. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
It is when the packet loss type of current network is judged as packet lost by corruption, the average bag of the packet of the long classification of at least one bag is long Linear fit is carried out with the packet packet loss of the long classification of described at least one bag;
When the slope of a curve that obtains of fitting is ascendant trend or the slope of a curve is more than the fixed value of default slope When, then judge that current network has packet lost by corruption;
When the corresponding packet packet loss of the long classification of all bags is all higher than default packet packet loss in the curve that fitting is obtained During threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;The wherein described curve for obtaining that is fitted is with described It is the abscissa in coordinate space to wrap long classification, with the packet packet loss as ordinate.
5. the method according to any one of claims 1 to 3, it is characterised in that methods described also includes:
When the packet loss type of current network is judged as packet lost by corruption, obtain second network element device and currently receive at least one Packet when extend to the average delay of the second network element device receiving data bag, when at least one data of the current reception When the time delay of bag is more than the average delay of the receiving data bag, then judge that current network has packet lost by corruption simultaneously and congestion is lost Bag;
When average delay of the current time delay for receiving at least one packet less than or equal to the receiving data bag, sentence Determine current network and there is packet lost by corruption.
6. a kind of Network Packet Loss kind identification method, it is characterised in that include
Second network element device receives the packet that the first network element device sends;
The packet for receiving is classified according to the first mode classification, first mode classification is by the packet The preset range classification that bag is long or bag is long;
The data packet number of all kinds of bag length, generates second and counts in the packet received described in the second network element device statistics As a result;
Second network element device sends second statistics to first network element device, so as to first network element Equipment is judged between first network element device and second network element device according to the first statistics and the second statistics The type of Network Packet Loss;
Or,
Second network element device receives first statistics that first network element device sends, and second network element sets It is standby to judge that first network element device sets with second network element according to first statistics and second statistics The type of the Network Packet Loss between standby;
Wherein, first statistics to be first network element device will send packet to second network element device by After the first mode classification classification, to the packet for sending all kinds of bag length into the packet of second network element device The statistics of quantity.
7. method according to claim 6, it is characterised in that second network element device is according to first statistics And second statistics judges the type bag of the Network Packet Loss between first network element device and second network element device Include:
In first statistics and second statistics in obtain at least one times first kind bag length packet and The statistics of the packet of Equations of The Second Kind bag length, the average bag length of the packet of the first kind bag length is more than the Equations of The Second Kind bag The average bag of long packet is long;
Calculate the packet packet loss of the first kind bag length and the packet packet loss of the Equations of The Second Kind bag length, the packet Packet loss be in first statistics and in second statistics number difference of the packet of same class bag length with The ratio of the number of the packet of same class bag length described in first statistics;
When the packet packet loss of the first kind bag length is more than more than the number of times of the packet packet loss of the Equations of The Second Kind bag length During default number of times, judge the packet loss type of current network as packet lost by corruption;
When the packet packet loss of the first kind bag length is less than or equal to the secondary of the packet packet loss of the Equations of The Second Kind bag length When number is more than default number of times, judge the packet loss type of current network as congestion packet loss.
8. method according to claim 6, it is characterised in that second network element device is according to first statistics And second statistics judges the type bag of the Network Packet Loss between first network element device and second network element device Include:
According to first mode classification in first statistics and in second statistics, default is obtained not With the statistics of the packet of the long classification of bag, the packet for presetting each long classification of bag in the long classification of individual different bags is calculated Packet loss, the packet packet loss be in first statistics and second statistics in same class bag length number According to the ratio of the number of the number difference packet corresponding with same class bag length described in first statistics of bag;
The packets of the long classification of the default difference bag are carried out into ascending sort, the default difference bag according to long classification is wrapped Packet packet loss in the packet packet loss of long classification at least including predetermined number is ascending order arrangement, then judge current network Packet loss type be packet lost by corruption;
If the number of the packet packet loss arranged according to ascending order in the default different packet packet loss for wrapping long classification Less than the predetermined number, then judge the packet loss type of current network as congestion packet loss.
9. the method according to any one of claim 6~8, it is characterised in that methods described also includes:
It is when the packet loss type of current network is judged as packet lost by corruption, the average bag of the packet of the long classification of at least one bag is long Linear fit is carried out with the packet packet loss of the long classification of described at least one bag;
When the slope of a curve that obtains of fitting is ascendant trend or the slope of a curve is more than the fixed value of default slope When, then judge that current network has packet lost by corruption;
When the corresponding packet packet loss of the long classification of all bags is all higher than default packet packet loss in the curve that fitting is obtained During threshold value, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;The wherein described curve for obtaining that is fitted is with described It is the abscissa in coordinate space to wrap long classification, with the packet packet loss as ordinate.
10. the method according to any one of claim 6~8, it is characterised in that methods described also includes:
When the packet loss type of current network is judged as packet lost by corruption, obtain it is current receive at least one packet when extend to connect The average delay of packet is received, when the current time delay for receiving at least one packet is more than the average of the receiving data bag When time delay, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;
When average delay of the current time delay for receiving at least one packet less than or equal to the receiving data bag, sentence Determine current network and there is packet lost by corruption.
11. a kind of first network element devices, it is characterised in that include:
Data transmission unit, for sending packet to the second network element device;
Data sorting unit, for the data transmission unit to be sent the packet to second network element device by first point Class mode is classified, and first mode classification is by the preset range that bag is long or bag the is long classification of the packet;
Statistic unit, for counting the sorted packet of the data sorting unit in all kinds of bag length number-of-packet Amount, generates the first statistics;
The data transmission unit, is additionally operable to first statistics that the statistic unit is forwarded be sent to described second Network element device, so that second network element device judges first net according to first statistics and the second statistics The type of the Network Packet Loss between element device and second network element device;
Or,
Packet loss recognition unit, for receiving second statistics that second network element device sends, according to the statistics First statistics and second statistics of unit forwards judges first network element device with second net The type of the Network Packet Loss between element device;
Wherein, second statistics be second network element device by the packet for receiving by first mode classification Statistics after classification, to the data packet number of all kinds of bag length in the packet for receiving.
12. equipment according to claim 11, it is characterised in that the packet loss recognition unit, including:
Sampling subelement, for obtaining in first statistics and at least one times the first kind in second statistics The statistics of the packet of the long packet of bag and Equations of The Second Kind bag length, the average bag of the packet of the first kind bag length is grown up It is long in the average bag of the packet of the Equations of The Second Kind bag length;
Subelement is processed, the packet of packet packet loss and the Equations of The Second Kind bag length for calculating the first kind bag length is lost Bag rate, the packet packet loss be in first statistics and second statistics in same class bag length data The ratio of the number difference of bag and the number of the packet of same class bag length described in first statistics;
Subelement is differentiated, for losing more than the packet of the Equations of The Second Kind bag length when the packet packet loss of the first kind bag length When the number of times of bag rate is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the first kind bag it is long Packet packet loss less than or equal to the Equations of The Second Kind bag length packet packet loss number of times be more than default number of times when, sentence The packet loss type for determining current network is congestion packet loss.
13. equipment according to claim 11, it is characterised in that the packet loss recognition unit includes:
Sampling subelement, in first statistics and second statistics according to the first classification side Formula, obtains a statistics for the packets of the long classification of default different bag, calculates in the long classification of described default different bag each The packet packet loss of long classification is wrapped, the packet packet loss is in first statistics and second statistics The number difference of the packet of middle same class bag length packet corresponding with same class bag length described in first statistics Number ratio;
Contrast subunit, for the default different packets for wrapping long classification to be carried out into ascending sort according to long classification is wrapped, Packet packet loss in the default different packet packet loss for wrapping long classification at least including predetermined number is ascending order row Row, then judge the packet loss type of current network as packet lost by corruption;If the default different packet packet loss for wrapping long classification In the number of packet packet loss that arranges according to ascending order be less than the predetermined number, then judge the packet loss type of current network as Congestion packet loss.
14. equipment according to any one of claim 11~13, it is characterised in that first network element device also includes:
Fitting unit, for when the packet loss type of current network is judged as packet lost by corruption, by the number of the long classification of at least one bag Linear fit is carried out according to the packet packet loss of the long classification of at least one bag described in the average Bao Changyu for wrapping;
Major punishment unit, the slope of a curve for obtaining when fitting is more than default for ascendant trend or the slope of a curve During the fixed value of slope, then judge that current network has packet lost by corruption;When the long classification correspondence of all bags in the curve that fitting is obtained Packet packet loss judge when being all higher than default packet packet loss threshold value, then current network exist simultaneously packet lost by corruption and Congestion packet loss;Wherein it is described be fitted the curve that obtains with the long classification of the bag as coordinate space in abscissa, with the data Bag packet loss is ordinate.
15. equipment according to any one of claim 11~13, it is characterised in that first network element device also includes:
Time delay major punishment unit, sets for when the packet loss type of current network is judged as packet lost by corruption, obtaining second network element It is standby current receive at least one packet when extend to the average delay of the second network element device receiving data bag, work as when described When the front time delay for receiving at least one packet is more than the average delay of the receiving data bag, then judge that current network is deposited simultaneously In packet lost by corruption and congestion packet loss;When the current time delay for receiving at least one packet is less than or equal to the receiving data During the average delay of bag, judge that current network has packet lost by corruption.
16. a kind of second network element devices, it is characterised in that include
Data receipt unit, for receiving the packet that the first network element device sends;
Data sorting unit, is carried out point for the packet that receives the data receipt unit according to the first mode classification Class, first mode classification is by the preset range that bag is long or bag the is long classification of the packet;
Statistic unit, for counting the sorted packet for receiving of the data sorting unit in all kinds of bag length number According to bag quantity, the second statistics is generated;
Data transmission unit, second statistics for the statistic unit to be forwarded sends to first network element and sets It is standby, so that first network element device judges first network element device and institute according to the first statistics and the second statistics State the type of the Network Packet Loss between the second network element device;
Or,
Packet loss recognition unit, for receiving first statistics that first network element device sends, according to the statistics First statistics and second statistics of unit forwards judges first network element device with second net The type of the Network Packet Loss between element device;
Wherein, first statistics to be first network element device will send packet to second network element device by After the first mode classification classification, to the packet for sending all kinds of bag length into the packet of second network element device The statistics of quantity.
17. equipment according to claim 16, it is characterised in that the packet loss recognition unit includes:
Sampling subelement, for obtaining in first statistics and at least one times the first kind in second statistics The statistics of the packet of the long packet of bag and Equations of The Second Kind bag length, the average bag of the packet of the first kind bag length is grown up It is long in the average bag of the packet of the Equations of The Second Kind bag length;
Subelement is processed, the packet of packet packet loss and the Equations of The Second Kind bag length for calculating the first kind bag length is lost Bag rate, the packet packet loss be in first statistics and second statistics in same class bag length data The ratio of the number difference of bag and the number of the packet of same class bag length described in first statistics;
Subelement is differentiated, for losing more than the packet of the Equations of The Second Kind bag length when the packet packet loss of the first kind bag length When the number of times of bag rate is more than default number of times, judge the packet loss type of current network as packet lost by corruption;When the first kind bag it is long Packet packet loss less than or equal to the Equations of The Second Kind bag length packet packet loss number of times be more than default number of times when, sentence The packet loss type for determining current network is congestion packet loss.
18. equipment according to claim 16, it is characterised in that the packet loss recognition unit includes:
Sampling subelement, in first statistics and second statistics according to the first classification side Formula, obtains a statistics for the packets of the long classification of default different bag, calculates in the long classification of described default different bag each The packet packet loss of long classification is wrapped, the packet packet loss is in first statistics and second statistics The number difference of the packet of middle same class bag length packet corresponding with same class bag length described in first statistics Number ratio;
Contrast subunit, for the default different packets for wrapping long classification to be carried out into ascending sort according to long classification is wrapped, Packet packet loss in the default different packet packet loss for wrapping long classification at least including predetermined number is ascending order row Row, then judge the packet loss type of current network as packet lost by corruption;If the default different packet packet loss for wrapping long classification In the number of packet packet loss that arranges according to ascending order be less than the predetermined number, then judge the packet loss type of current network as Congestion packet loss.
19. equipment according to any one of claim 16~18, it is characterised in that second network element device includes:
Fitting unit, for when the packet loss type of current network is judged as packet lost by corruption, by the number of the long classification of at least one bag Linear fit is carried out according to the packet packet loss of the long classification of at least one bag described in the average Bao Changyu for wrapping;
Major punishment unit, the slope of a curve for obtaining when fitting is more than default for ascendant trend or the slope of a curve During the fixed value of slope, then judge that current network has packet lost by corruption;When the long classification correspondence of all bags in the curve that fitting is obtained Packet packet loss judge when being all higher than default packet packet loss threshold value, then current network exist simultaneously packet lost by corruption and Congestion packet loss;Wherein it is described be fitted the curve that obtains with the long classification of the bag as coordinate space in abscissa, with the data Bag packet loss is ordinate.
20. equipment according to any one of claim 16~18, it is characterised in that second network element device also includes:
Time delay major punishment unit, for when the packet loss type of current network is judged as packet lost by corruption, obtaining current reception at least Individual packet when extend to the average delay of receiving data bag, when the current time delay for receiving at least one packet is more than institute When stating the average delay of receiving data bag, then judge that current network has packet lost by corruption and congestion packet loss simultaneously;When described current When the time delay for receiving at least one packet is less than or equal to the average delay of the receiving data bag, judge that current network is present Packet lost by corruption.
21. a kind of network systems, it is characterised in that including at least one first network element devices and second network element device, its Described in the first network element device and the second network element device connected by switching network, first network element device be claim 11~ Network element device described in 15 any one, second network element device is the network element device described in any one of claim 16~20.
CN201280002149.2A 2012-12-27 2012-12-27 Method, device, and system for identifying network packet loss type Active CN104322017B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087673 WO2014101047A1 (en) 2012-12-27 2012-12-27 Method, device, and system for identifying network packet loss type

Publications (2)

Publication Number Publication Date
CN104322017A CN104322017A (en) 2015-01-28
CN104322017B true CN104322017B (en) 2017-04-26

Family

ID=51019699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002149.2A Active CN104322017B (en) 2012-12-27 2012-12-27 Method, device, and system for identifying network packet loss type

Country Status (2)

Country Link
CN (1) CN104322017B (en)
WO (1) WO2014101047A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913421A (en) * 2018-09-18 2020-03-24 大唐移动通信设备有限公司 Method and device for determining voice packet number

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10523549B1 (en) * 2019-06-02 2019-12-31 Cybertoka Ltd Method and system for detecting and classifying networked devices
CN112953847B (en) * 2021-01-27 2022-11-11 北京字跳网络技术有限公司 Network congestion control method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686100A (en) * 2008-09-25 2010-03-31 华为技术有限公司 Method for disposing lost packet, method for controlling transmission quality, device and system thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004088858A2 (en) * 2003-03-29 2004-10-14 Regents Of University Of California Method and apparatus for improved data transmission
CN101146033B (en) * 2007-10-31 2010-04-14 重庆邮电大学 A method for improving radio Ad hoc performance based on layer-spanning collaborative mechanism
CN102104468A (en) * 2011-02-18 2011-06-22 中兴通讯股份有限公司 Routing agent-based media sensing automatic retransmission request (ARQ) control method and system
CN102204164B (en) * 2011-05-24 2014-05-21 华为技术有限公司 Method and apparatus for reporting network packet-losing message

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686100A (en) * 2008-09-25 2010-03-31 华为技术有限公司 Method for disposing lost packet, method for controlling transmission quality, device and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913421A (en) * 2018-09-18 2020-03-24 大唐移动通信设备有限公司 Method and device for determining voice packet number

Also Published As

Publication number Publication date
CN104322017A (en) 2015-01-28
WO2014101047A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
Kwiatkowska et al. Probabilistic model checking of the IEEE 802.11 wireless local area network protocol
CN103716136B (en) A kind of data transferring method and system
CN103648058B (en) 3G media stream cross-layer rate control method based on channel measurement
CN107276910A (en) The real-time adjusting apparatus of video code rate and system, video server
CN102299899B (en) Method for accelerating TCP (Transmission Control Protocol) under severe channel
JP2003078565A (en) Wireless communication equipment
CN103348647A (en) Mechanisms to improve the transmission control protocol performance in wireless networks
CN115037700B (en) Complex network data packet transmission method, system, terminal and storage medium
CN102811176B (en) A kind of data flow control method and device
CN104322017B (en) Method, device, and system for identifying network packet loss type
CN101547159A (en) Method and device for preventing network congestion
CN102984077A (en) Network congestion control method and system
CN113259391B (en) Data transmission method and device applied to multi-level node network
CN102724123A (en) Network traffic control method and network traffic control device
CN100420334C (en) Method of blind detecting transfer patterns
CN111682994A (en) Annular or linear network system based on EPA protocol and transmission method of non-real-time data
CN103945441B (en) The method and apparatus of adaptive adjustment qos parameter
CN102065015B (en) Data transmission method, network equipment and device
CN107547430A (en) A kind of file transmitting method and device
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN102316483B (en) A kind of EVDO system ensures the method and device of applied business QoS
CN111404872A (en) Message processing method, device and system
CN102487330B (en) Method and device for sending operation, administration and maintenance messages
US7535834B2 (en) Node device configuring ring network and data frame control method
CN111740922B (en) Data transmission method, device, electronic equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant