CN107864026B - Aggregation link frame loss measuring device and method - Google Patents

Aggregation link frame loss measuring device and method Download PDF

Info

Publication number
CN107864026B
CN107864026B CN201610842537.1A CN201610842537A CN107864026B CN 107864026 B CN107864026 B CN 107864026B CN 201610842537 A CN201610842537 A CN 201610842537A CN 107864026 B CN107864026 B CN 107864026B
Authority
CN
China
Prior art keywords
frame
loss measurement
mep
frame loss
packet receiving
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
CN201610842537.1A
Other languages
Chinese (zh)
Other versions
CN107864026A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610842537.1A priority Critical patent/CN107864026B/en
Publication of CN107864026A publication Critical patent/CN107864026A/en
Application granted granted Critical
Publication of CN107864026B publication Critical patent/CN107864026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • 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

Abstract

The invention discloses a device and a method for measuring frame loss of an aggregation link, wherein the device using a source MEP comprises the following steps: the frame sending module is used for sequentially sending a plurality of data measurement frames carrying sending sequence information to the target MEP; when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP; a frame receiving module, configured to receive a frame loss measurement response frame sent by the destination MEP, and obtain a modified destination MEP end packet receiving count value from the frame loss measurement response frame; and the frame loss measurement module is used for carrying out frame loss measurement based on the corrected packet receiving count value of the target MEP end. The invention effectively solves the problem of inaccurate measurement of frame loss caused by the problem of disorder during frame receiving.

Description

Aggregation link frame loss measuring device and method
Technical Field
The present invention relates to the field of link aggregation communication, and in particular, to an apparatus and method for measuring frame loss of an aggregated link.
Background
In the method, in actual measurement, because a frame loss measurement frame LMM at one End, a frame loss measurement response frame LMR and a data measurement frame are selected by an aggregation link according to different strategies to be sent to an opposite End MEP (Maintenance entity group End Point), so that the sequence from the opposite End MEP cannot be ensured, the opposite End MEP has a disorder problem, and the measurement of frame loss is inaccurate.
Disclosure of Invention
In order to overcome the above-mentioned drawbacks of the prior art, the present invention provides an apparatus and a method for measuring frame loss of an aggregation link, so as to solve the problem of inaccurate measurement of frame loss caused by the problem of disorder during frame reception.
In order to solve the above technical problem, an apparatus for measuring frame loss of an aggregation link according to the present invention is used for a source MEP, and the apparatus includes:
the frame sending module is used for sequentially sending a plurality of data measurement frames carrying sending sequence information to the target MEP; when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
a frame receiving module, configured to receive a frame loss measurement response frame sent by the destination MEP, and obtain a modified destination MEP end packet receiving count value from the frame loss measurement response frame;
and the frame loss measurement module is used for carrying out frame loss measurement based on the corrected packet receiving count value of the target MEP end.
Further, the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small.
In order to solve the above technical problem, the present invention provides an apparatus for measuring frame loss of an aggregation link, which is used for a target MEP, and the apparatus includes:
the frame receiving unit is used for receiving the data measurement frames which are sent by the source MEP and carry the sending sequence information, carrying out local end packet receiving counting on each received data measurement frame and recording the sending sequence information carried by each data measurement frame; receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when the frame loss measurement period node;
a packet receiving correction unit, configured to determine whether any data measurement frame and the frame loss measurement frame have an out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information carried by the frame loss measurement frame, and modify a packet receiving count value of the local terminal if the out-of-order arrival exists;
and the frame sending unit is used for adding the corrected packet receiving count value of the local end into a frame loss measurement response frame and sending the frame loss measurement response frame to the source MEP.
Further, the sending sequence information is sequence numbers arranged from small to large;
the packet receiving correction unit is specifically configured to, when a frame loss measurement frame is received, sequentially determine whether a sequence number carried by each recorded data measurement frame is greater than a sequence number carried by the frame loss measurement frame, and if so, subtract 1 from a packet receiving count value of the local terminal.
Further, the apparatus further comprises a delay timing unit for setting a delay time when the frame loss measurement frame is received;
and the packet receiving correction unit is further specifically configured to sequentially judge whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame within the delay time, and if so, add 1 to the packet receiving count value of the local terminal.
Further, the delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
In order to solve the above technical problem, the present invention provides a method for measuring frame loss of an aggregation link, which is used for a source MEP, and the method includes the following steps:
sequentially sending a plurality of data measurement frames carrying sending sequence information to a target MEP;
when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
receiving a frame loss measurement response frame sent by the target MEP, and acquiring a corrected target MEP end packet receiving count value from the frame loss measurement response frame;
and performing frame loss measurement based on the corrected packet receiving count value of the target MEP end.
Further, the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small.
In order to solve the above technical problem, the present invention provides a method for measuring frame loss of an aggregation link, which is used for a target MEP, and the method includes the following steps:
receiving data measurement frames which are sent by a source MEP and carry sending sequence information, performing local packet receiving counting on each received data measurement frame, and recording the sending sequence information carried by each data measurement frame;
receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when a frame loss measurement period node is received;
judging whether any data measurement frame and the frame loss measurement frame have out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information carried by the frame loss measurement frame, and correcting a packet receiving count value of a home terminal under the condition that the out-of-order arrival exists;
and adding the modified local end packet receiving count value into a frame loss measurement response frame and sending the frame loss measurement response frame to the source MEP.
Further, the sending sequence information is sequence numbers arranged from small to large; the step of judging whether any data measurement frame and the frame loss measurement frame have out-of-order arrival or not, and correcting the packet receiving count value of the local terminal under the condition of out-of-order arrival comprises the following steps:
when a frame loss measurement frame is received, sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the local terminal.
Further, the sequentially determining whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, after the step of subtracting 1 from the packet receiving count value of the local terminal, further includes:
and sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame within the preset delay time after the frame loss measurement frame is received, and if so, adding 1 to the packet receiving count value of the local terminal.
Further, the preset delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
The invention has the following beneficial effects:
the embodiment of the invention adds the sending sequence to the data measurement frame and the frame measurement lost frame, so that when the target MEP receives the frame loss measurement frame, whether the received data measurement frame and the frame loss measurement frame arrive out of order or not is judged according to the sending sequence information in the corresponding frame loss measurement period, and the packet receiving count value of the target MEP side in the frame loss measurement response frame is corrected under the condition of out of order. Therefore, the problem of inaccurate frame loss measurement caused by the disorder problem can be effectively solved, and the accuracy of frame near-end loss measurement is effectively improved.
Drawings
Fig. 1 is a schematic structural diagram of an apparatus for measuring frame loss of an aggregation link according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an aggregation link frame loss measurement apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a scenario of performing frame loss measurement in a link aggregation environment according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an out-of-order arrival of frame loss measurements in a link aggregation environment according to an embodiment of the invention;
FIG. 5 is a diagram illustrating frame loss measurement and out-of-order arrival of data measurement frame and LMM frame number transmissions in a link aggregation environment according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for measuring frame loss of an aggregated link according to a third embodiment of the present invention;
fig. 7 is a flowchart of an aggregate link frame loss measurement method according to a fourth embodiment of the present invention.
Detailed Description
In order to solve the problem of inaccurate measurement of frame loss caused by the problem of disorder during frame reception, the present invention provides an aggregation link frame loss measurement apparatus and method, which are described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, an aggregation link frame loss measurement apparatus in an embodiment of the present invention is used for a source MEP, and the apparatus includes:
a frame sending module 100, configured to number the data measurement frames and the frame loss measurement frames according to a sending sequence, and send a plurality of data measurement frames carrying sending sequence information to a target MEP in sequence; when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
a frame receiving module 120, configured to receive a frame loss measurement response frame sent by the destination MEP, and obtain a modified destination MEP end packet receiving count value from the frame loss measurement response frame;
and a frame loss measurement module 140, configured to perform frame loss measurement based on the modified destination MEP end packet receiving count value.
The embodiment of the invention adds the sending sequence to the data measurement frame and the frame measurement lost frame, so that when the target MEP receives the frame loss measurement frame, whether the received data measurement frame and the frame loss measurement frame arrive out of order or not is judged according to the sending sequence information in the corresponding frame loss measurement period, and the packet receiving count value of the target MEP side in the frame loss measurement response frame is corrected under the condition of out of order. Therefore, the problem of inaccurate frame loss measurement caused by the disorder problem can be effectively solved, and the accuracy of frame near-end loss measurement is effectively improved.
The sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small. The size arrangement relationship is used for reflecting the sending sequence.
In an embodiment of the present invention, the apparatus may further include a packet receiving correction module;
the frame receiving module 120 is further configured to receive data measurement frames which are sent by the target MEP and carry sending sequence information, perform local packet receiving counting on each received data measurement frame, and record sending sequence information carried by each data measurement frame; receiving a frame loss measurement response frame carrying transmission sequence information and transmitted by the target MEP when the frame loss measurement period node is received;
a packet receiving correction module, configured to determine whether any data measurement frame and the frame loss measurement response frame have an out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information carried by the frame loss measurement response frame, and modify a packet receiving count value of the local terminal in the case of the out-of-order arrival;
the frame loss measurement module 140 is further configured to perform frame loss measurement based on the modified local packet receiving count value.
That is, the frame loss measurement module 140 performs far-end frame loss measurement based on the modified destination MEP packet receiving count value, and performs near-end frame loss measurement based on the modified home end packet receiving count value. The specific measurement method is implemented by replacing the destination MEP packet receiving count value carried in the LMR in the remote test of the original method with the modified destination MEP packet receiving count value, and replacing the source MEP packet receiving count value in the near-end test of the original method with the modified source MEP packet receiving count value, which is not described in detail herein.
As shown in fig. 2, an aggregation link frame loss measurement apparatus in an embodiment of the present invention is used for a destination MEP, and the apparatus includes:
a frame receiving unit 200, configured to receive data measurement frames carrying sending sequence information sent by a source MEP, perform local packet receiving counting on each received data measurement frame, and record sending sequence information carried by each data measurement frame; receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when the frame loss measurement period node;
a packet receiving correction unit 220, configured to determine whether any data measurement frame and the frame loss measurement frame have an out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information carried by the frame loss measurement frame, and modify a packet receiving count value of the local terminal if the out-of-order arrival exists;
a frame sending unit 240, configured to add the modified local packet receiving count value to the frame loss measurement response frame and send the frame loss measurement response frame to the source MEP.
On the basis of the above-mentioned embodiment, modified embodiments of the above-mentioned embodiment are further proposed, and it is to be noted herein that, in order to make the description brief, only the differences from the above-mentioned embodiment are described in each modified embodiment.
In one embodiment of the present invention, the transmission sequence information is sequence numbers arranged from small to large;
the packet receiving correction unit is specifically configured to, when a frame loss measurement frame is received, sequentially determine whether a sequence number carried by each recorded data measurement frame is greater than a sequence number carried by the frame loss measurement frame, and if so, subtract 1 from a packet receiving count value of the local terminal.
Further, the apparatus further comprises a delay timing unit for setting a delay time when the frame loss measurement frame is received;
and the packet receiving correction unit is further specifically configured to sequentially judge whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame within the delay time, and if so, add 1 to the packet receiving count value of the local terminal.
Of course, the sending sequence information is sequence numbers arranged from large to small; at this time, the packet receiving correction unit is specifically configured to, when a frame loss measurement frame is received, sequentially determine whether a sequence number carried by each recorded data measurement frame is smaller than a sequence number carried by the frame loss measurement frame, and if so, subtract 1 from a packet receiving count value of the local terminal.
Further, the apparatus further comprises a delay timing unit for setting a delay time when the frame loss measurement frame is received;
and the packet receiving correction unit is further specifically configured to sequentially judge whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame within the delay time, and if so, add 1 to the packet receiving count value of the local terminal.
Note that the packet reception correction module of the source MEP corrects the packet reception count value of the source MEP end in the same manner as the packet reception correction unit of the destination MEP corrects the packet reception count value of the destination MEP end.
Further, the delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
Of course, the frame sending unit 240 may also be configured to send a plurality of data measurement frames carrying sending sequence information to the source MEP in sequence; and carrying the sending sequence information by the frame loss measurement response frame sent to the source MEP.
Of course, in a specific implementation, the apparatus shown in fig. 1 may also have each functional module in the apparatus shown in fig. 2; the device shown in fig. 2 may also include functional blocks in the device shown in fig. 1.
Briefly describing the defects of the prior art:
as shown in fig. 3, the MEP that initiates frame loss measurement is referred to as a source MEP, and the MEP that receives the frame loss measurement frame is referred to as a destination MEP. A and Z are a pair of MEPs respectively used for frame loss measurement in the aggregation link, MEP A is a source MEP, and MEP Z is a destination MEP.
The aggregation link between MEP A and MEP Z is formed by aggregating three physical links, and frame loss measurement is carried out between MEP A and MEP Z. Since the actual physical links of the data measurement frame and the frame loss measurement frame LMM in the aggregated link may be different (determined by the link aggregation link selection policy), a phenomenon of disorder may occur, for example, the frame loss measurement frame may arrive at the destination earlier or later than the data frame, as shown in fig. 4 and 5, and the frame loss measurement frame LMM arrives at the destination (MEP Z) before the data measurement frame.
In fig. 4 and 5, it is assumed that the TxFcl value of MEP a (packet sending count value in source MEP side packet sending calculator) when the previous LMM frame (corresponding to the previous frame loss measurement period) is sent is X, and the RxFcl value of MEP Z (packet receiving count value in destination MEP side packet receiving calculator) when the previous LMR frame (corresponding to the previous frame loss measurement period) is sent is Y; the TxFcl value of MEP a when the current LMM frame (corresponding to the current frame loss measurement period) is transmitted is X +5, and the RxFcl value of MEP Z when the current LMR frame is transmitted is Y + 4. The period of the frame loss measurement is assumed to be 100 ms. Assuming that the frame loss measurement is initiated by MEP a, MEP Z does not send a data measurement packet.
The frame loss calculation method defined in y.1731 is as follows:
the value of TxFcf, RxFcf, TxFcb of the received LMR frame and the value of the local counter RxFcl at the time of receipt of the LMR frame. These values are denoted as TxFcf [ tc ], RxFcf [ tc ], TxFcb [ tc ], and TxFcl [ tc ], where tc is the time the current LMR frame is received.
The value of TxFcf, RxFcf, TxFcb of the previous LMR frame and the value of the local counter RxFcl at the time of reception of the LMR frame. These values are denoted as TxFcf [ tp ], RxFcf [ tp ], TxFcb [ tp ], and TxFcl [ tp ], where tp is the time at which the previous LMR frame was received.
Far-end loss of frame | TxFcf [ tc ] -TxFcf [ tp ] | - | RxFcf [ tc ] -RxFcf [ tp ] |;
near-end loss of a frame is | TxFcb [ tc ] -TxFcb [ tp ] | - | RxFcl [ tc ] -RxFcl [ tp ] |.
Specifically, MEP a sends a frame loss measurement frame to MEP Z, and when the TxFcf value of the current LMM frame is LMM frame sending, the value of the counter (TxFcl) of the locally sent data frame of MEP a is X + 5.
After receiving the LMM frame, the MEP Z responds to the LMR frame, and according to the definition of Y.1731, the LMR frame comprises three data:
TxFcf: the value of TxFcf copied from the LMM frame, where the value is X + 5;
RxFcf: when receiving the LMM frame, the value of a local counter RxFcl is Y + 4;
TxFcb: the value of a local counter TxFcl during transmission of the LMR frame;
assuming that only MEP a to MEP Z transmit a data frame, the TxFcb value here is 0.
The MEP A receives the LMR frame sent by the MPE Z and starts to calculate the frame loss.
According to the method:
if the TxFcf value of the previous LMM frame is X, the TxFcf value of the current LMM frame is X +5
The RxFcf value of the previous LMR frame is Y, and the RxFcf value of the current LMR frame is Y +4
Far-end loss of frame | TxFcf [ tc ] -TxFcf [ tp ] | - | RxFcf [ tc ] -RxFcf [ tp ] <' > live
=|X+5-X|-|Y+4-Y|
=1
Since only MEP a sends data frames to MEP Z in the example, there is no need to calculate the near-end loss of a frame.
It can be seen from the calculation result that the frame loss measurement result has an error due to the existence of the aggregation link, and in an actual environment, the measurement result is subject to the packet length of the data measurement packet, the selection strategy of the aggregation link, and the congestion condition of the link, and the error is far larger than the experimental result.
The device in the embodiment of the invention can effectively solve the problem of inaccurate frame loss measurement caused by the disorder problem.
The following takes the frame loss measurement between MEP a and MEP Z as an example to briefly describe the implementation principle of the embodiment of the present invention. The MEP a includes both the apparatus shown in fig. 1 and the apparatus shown in fig. 2, and the MEP Z includes both the apparatus shown in fig. 1 and the apparatus shown in fig. 2.
Step 1, a frame sending module in the MEP A numbers the frame loss measurement message LMM and the data measurement frame according to the sequence (1 type of serial number). As shown in fig. 4, assume that MEP a is transmitted after the previous LMM, and the data frames are numbered a1, a2, a3, a4, a5, a7, and the LMM frame is numbered a 6.
Step 2, a delay timer (delay timing unit) is set, which is assumed to be 20 ms.
And step 3, adding a packet receiving correction counter A _ RxFcl (packet receiving correction unit) for a pair of MEPs for measuring frame loss. (according to the Y.1731 protocol, in a pair of MEPs to be subjected to frame loss, the MEP sets two local counters for each peer MEP, namely TxFcl: a counter for data frames sent to the peer MEP and RxFcl: a counter for data frames received from the peer MEP).
MEP A and MEP Z are divided into two counters specified by Y.1731: besides the sending data frame counter TxFcl and the receiving data frame counter RxFcl, a correction packet receiving counter A _ RxFcl is added.
And starting frame loss measurement, after receiving the data frame, the MEP Z starts counting a local packet receiving counter RxFcl and a correction packet receiving counter A _ RxFcl, which are different from simple accumulation of the RxFcl, and the A _ RxFcl can record the sequence number of the data frame besides accumulating the received data frame.
Before receiving a frame loss measurement message LMM or a frame loss measurement response message LMR, correcting a packet receiving counter to record a related message serial number every time a data message is received, and adding 1 to a count value. As shown in fig. 3, when a1 data frame is received, the value of the local packet receiving counter RxFcl is incremented by 1, the value of the corrected packet receiving counter a _ RxFcl is incremented by 1, and the sequence number a1 of the data frame is recorded, and so on, before the frame loss measurement frame is received, the value of the local packet receiving counter is Y +4, the value of the local corrected packet receiving counter is Y +4, and the recorded message sequence number is: a1, a2, a3 and a 4.
Step 4, when receiving the frame loss measurement message LMM, the MEP Z starts a delay statistic timer (or called delay timer).
A delay statistics timer is started, with a timer time of 20 ms.
And 5, when the MEP Z receives the frame loss measurement message LMM, correcting the statistic value of the correction packet receiving counter.
Comparing and correcting the message sequence number in the packet receiving counter in sequence, if the message sequence number is greater than the sequence number of the LMM frame, and therefore the situation of out-of-order arrival occurs, subtracting 1 from the counter, and deleting the related sequence number, as shown in fig. 3, at this time, the count value in the packet receiving counter is corrected to be 4, and the stored message sequence number is: a1, a2, a3 and a4 are all smaller than the sequence number of the LMM frame, so the counter value does not need to be corrected.
And 6, after receiving the frame loss measurement message LMM, the MEP Z corrects a packet receiving counter to continue to count the received data packets before the time of the delay counting timer is up.
Before the timer time is 20ms, the received data message a5 is smaller than the sequence number a6 of the LMM frame, so that the situation of out-of-order arrival occurs, the value of the corrected packet receiving counter is increased by 1, and the value of the corrected packet receiving counter is Y +5 (the original working mode of the local packet receiving counter is not changed, and every time a data packet is received, the value of the counter is increased by 1, and the value of the local packet receiving counter is Y + 5).
A delay time, wherein the preset delay time is less than or equal to a frame loss measurement period and is greater than or equal to a maximum delay time of all reachable links between the source MEP and the destination MEP.
And 7, the MEP Z receives the frame loss measurement message LMM, replaces the value of the original local packet receiving counter with the value of the correction packet receiving counter when the delay counting timer is up, and replies a frame loss measurement response message LMR.
An MEP Z response frame loss response message LMR, wherein three data are as follows:
TxFcf: the value of TxFcf copied from the LMM frame, where the value is X + 5;
RxFcf: when receiving the LMM frame, locally correcting the value of a packet receiving counter A _ RxFcl, wherein the value is Y + 5;
TxFcb: the value of a local counter TxFcl during transmission of the LMR frame;
assuming that only MEP a to MEP Z transmit a data frame, the value here is 0.
And 8, immediately restoring the value of the correction packet receiving counter to the value of a packet receiving statistical counter Rx _ Fcl at the local end after the MEP Z replies the frame loss measurement response message LMR, and emptying the recorded message serial number.
And the value of the correction packet receiving counter is Y +5, and the recorded message serial number is null at the moment.
And 9, before the MEP A receives the LMR frame, adding 1 to the local correction packet receiving counter of the MEP every time the local correction packet receiving counter of the MEP receives a data frame, and recording the serial number of the data frame.
MEP Z (destination MEP) will also send data measurement frames, which, like the source MEP, will also be numbered with the frame loss measurement response frames. But here no action is required since MEP Z does not send a packet.
And step 10, when the source MEP receives the frame loss measurement response frame LMR, immediately calculating the far end of the frame according to each count value in the LMR. And if the near-end loss needs to be calculated, starting a delay statistic timer.
If the TxFcf value of the previous LMM frame is X, the TxFcf value of the current LMM frame is X + 5;
if the RxFcf value of the previous LMR frame is Y, the RxFcf value of the current LMR frame is Y + 5;
far-end loss of frame | TxFcf [ tc ] -TxFcf [ tp ] | - | RxFcf [ tc ] -RxFcf [ tp ] <' > live
=|X+5-X|-|Y+5-Y|
=0。
Here, since MEP Z does not send a packet, there is no need to calculate the near-end loss of the frame and start the delay statistic timer.
And step 11, when receiving the frame loss measurement response message LMR, the MEP A corrects the statistic value of the correction packet receiving counter. The concrete method is the same as the step 5.
Here, since MEP Z does not transmit a packet, no operation is required.
And step 12, after the source MEP receives the frame loss measurement response message LMR, before the time of the delay counting timer is up, correcting a packet receiving counter to continue counting the received data packets. The concrete method is the same as the step 6.
Here, since MEP Z does not transmit a packet, no operation is required.
And step 13, after receiving the frame loss response message LMR, the source MEP replaces the original value of the local end packet receiving counter Rx _ Fcl by the value in the correction loss timer when the delay counting timer is up, and calculates the near-end loss of the frame.
Here, since MEP Z does not transmit a packet, no operation is required.
And step 14, the value of the corrected packet receiving counter of the source MEP is restored to be consistent with the value of the local end packet receiving counter, and the recorded message serial number is cleared.
Here, since MEP Z does not transmit a packet, no operation is required.
The device numbers a data measurement frame, a frame loss measurement frame LMM and a frame loss measurement response frame LMR according to the sending sequence in a link aggregation environment, and adds a correction packet receiving statistical counter (the correction packet receiving counter can count data packets and also can record serial numbers of the data packets) and a delay statistical timer respectively on a pair of MEPs for performing frame loss measurement.
The statistical value of the packet receiving and correcting counter is compensated and corrected according to the data message serial number through the packet receiving and correcting counter and the delay statistical timer, so that the influence of disordered arrival of an LMM frame, an LMR frame and a data frame on frame loss measurement in a link aggregation environment is reduced, and the accuracy of the frame loss measurement is improved.
The source MEP receives the LMM frame and corrects the correction packet receiving counter (sequentially compares all data packet sequence numbers recorded in the counter, deletes the data frame sequence number larger than the LMM frame sequence number from the correction packet receiving counter, and subtracts 1 from the value of the correction packet receiving counter).
The source MEP receives the LMM frame, starts a delay statistic timer, and compares the sequence number of the received data frame within the delay time (the data frame larger than the sequence number of the LMM frame does not count a correction packet receiving counter, otherwise, the correction packet receiving counter adds 1).
When the delay timer expires, the source MEP reads the value of the correction packet reception counter in response to the LMR.
Similarly, receiving the MEP of the LMR frame, starting the delay statistics timer, correcting the correction packet receiving counter (sequentially comparing all the data packet sequence numbers recorded in the counter, deleting the data frame sequence number greater than the LMR frame sequence number from the correction packet receiving counter, and subtracting 1 from the value of the correction packet receiving counter), and comparing the sequence numbers of the received data frames within the delay time (the data frame greater than the LMR frame sequence number is not counted into the correction packet receiving counter, otherwise, adding 1 to the correction packet receiving counter). And after the time of the delay statistical timer is up, the near-end loss of the frame is calculated, and when the source MEP receives the LMR frame, the far-end loss of the frame can be immediately calculated.
The invention further provides a method for measuring the frame loss of the aggregation link.
As shown in fig. 6, a method for measuring frame loss of an aggregated link in an embodiment of the present invention is used for a source MEP, and the method includes the following steps:
s601, sequentially sending a plurality of data measurement frames carrying sending sequence information to a target MEP;
when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
s602, receiving the frame loss measurement response frame sent by the destination MEP, and obtaining a modified destination MEP end packet receiving count value from the frame loss measurement response frame;
s603, based on the corrected packet receiving count value of the target MEP end, frame loss measurement is carried out.
Further, the transmission sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small.
As shown in fig. 7, an aggregated link frame loss measurement method in an embodiment of the present invention is used for a destination MEP, and the method includes the following steps:
s701, receiving data measurement frames which are sent by a source MEP and carry sending sequence information, performing local-end packet receiving counting on each received data measurement frame, and recording the sending sequence information carried by each data measurement frame;
receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when a frame loss measurement period node is received;
s702, according to the recorded sending sequence information and the sending sequence information in the frame loss measurement frame, judging whether any data measurement frame and the frame loss measurement frame have disorder arrival, and correcting a packet receiving count value of a home terminal under the condition of the disorder arrival;
and S703, adding the modified local end packet receiving count value into a frame loss measurement response frame and sending the frame loss measurement response frame to the source MEP.
Optionally, the sending sequence information is sequence numbers arranged from small to large; the step of judging whether any data measurement frame and the frame loss measurement frame have out-of-order arrival or not, and correcting the packet receiving count value of the local terminal under the condition of out-of-order arrival comprises the following steps:
when a frame loss measurement frame is received, sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the local terminal.
Further, the sequentially determining whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, after the step of subtracting 1 from the packet receiving count value of the local terminal, further includes:
and sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame within the preset delay time after the frame loss measurement frame is received, and if so, adding 1 to the packet receiving count value of the local terminal.
Of course, the sending sequence information is a sequence number arranged from large to small, and at this time, the manner of correcting the packet receiving count value of the local terminal is similar to the above correction principle, and is not described again.
Further, the preset delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
In specific implementation, reference is made to the first embodiment and the second embodiment in the third embodiment and the fourth embodiment.
The method for measuring frame loss of an aggregated link described in connection with the examples disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams (e.g., the corrected packet counting unit) shown in fig. 1 and 5 may correspond to each software module of the computer program flow or each hardware module. These software modules may correspond to the steps shown in fig. 6 and 7, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit. The software module may be stored in the memory of the mobile terminal or in a memory card that is insertable into the mobile terminal. For example, if the mobile terminal uses a MEGA-SIM card with a larger capacity or a flash memory device with a larger capacity, the software module may be stored in the MEGA-SIM card or the flash memory device with a larger capacity.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 1 and 5 (e.g., a frame receive module) may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to fig. 1 and 5 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While this application describes specific examples of the invention, those skilled in the art will appreciate that many modifications are possible in the exemplary embodiments without departing from the inventive concepts herein.
In light of the above teachings, those skilled in the art can make various modifications to the method of the present invention without departing from the scope of the present invention.

Claims (6)

1. An aggregated link frame loss measurement apparatus, for a source MEP, the apparatus comprising:
the frame sending module is used for sequentially sending a plurality of data measurement frames carrying sending sequence information to the target MEP; when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
a frame receiving module, configured to receive a frame loss measurement response frame sent by the destination MEP, and obtain a modified destination MEP end packet receiving count value from the frame loss measurement response frame; the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small; when the sending sequence information is a sequence number arranged from small to large, the modified destination MEP end packet receiving count value includes: when the target MEP receives the frame loss measurement frame, sequentially judging whether a serial number carried by each recorded data measurement frame is greater than a serial number carried by the frame loss measurement frame, if so, subtracting 1 from a packet receiving count value of the target MEP end, and sequentially judging whether the serial number carried by each recorded data measurement frame is less than the serial number carried by the frame loss measurement frame within a preset delay time after the target MEP receives the frame loss measurement frame, if so, adding 1 to the packet receiving count value of the target MEP end;
when the sending sequence information is a sequence number arranged from large to small, the modified destination MEP end packet receiving count value includes: when the target MEP receives the frame loss measurement frame, sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the target MEP end; setting a delay time when the target MEP receives the frame loss measurement frame; in the delay time, sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, if so, adding 1 to the packet receiving count value of the target MEP end;
and the frame loss measurement module is used for carrying out frame loss measurement based on the corrected packet receiving count value of the target MEP end.
2. An aggregated link frame loss measurement apparatus, for a destination MEP, the apparatus comprising:
the frame receiving unit is used for receiving the data measurement frames which are sent by the source MEP and carry the sending sequence information, carrying out local end packet receiving counting on each received data measurement frame and recording the sending sequence information carried by each data measurement frame; receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when the frame loss measurement period node;
a packet receiving correction unit, configured to determine whether any data measurement frame and the frame loss measurement frame have an out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information carried by the frame loss measurement frame, and modify a packet receiving count value of the local terminal if the out-of-order arrival exists;
a frame sending unit, configured to add the modified packet receiving count value of the home terminal to a frame loss measurement response frame, and send the frame loss measurement response frame to the source MEP;
the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small; when the sending sequence information is sequence numbers arranged from small to large, the packet receiving correction unit is specifically configured to, when the frame loss measurement frame is received, sequentially judge whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, subtract 1 from a packet receiving count value of the local terminal; a delay timing unit for setting a delay time when the frame loss measurement frame is received; the packet receiving correction unit is further specifically configured to sequentially determine, within the delay time, whether a sequence number carried by each recorded data measurement frame is smaller than a sequence number carried by the frame loss measurement frame, and if so, add 1 to a packet receiving count value of the home terminal;
when the sending sequence information is a sequence number arranged from large to small, the packet receiving correction unit is specifically configured to, when a frame loss measurement frame is received, sequentially judge whether a sequence number carried by each recorded data measurement frame is smaller than a sequence number carried by the frame loss measurement frame, and if so, subtract 1 from a packet receiving count value of the local terminal; and the packet receiving correction unit is further specifically configured to sequentially judge whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame within the delay time, and if so, add 1 to the packet receiving count value of the local terminal.
3. The apparatus of claim 2, wherein the delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
4. An aggregated link frame loss measurement method for a source MEP, the method comprising the steps of:
sequentially sending a plurality of data measurement frames carrying sending sequence information to a target MEP;
when reaching the node of the frame loss measurement period, sending the frame loss measurement frame carrying the sending sequence information to the target MEP;
receiving a frame loss measurement response frame sent by the target MEP, and acquiring a corrected target MEP end packet receiving count value from the frame loss measurement response frame;
performing frame loss measurement based on the corrected packet receiving count value of the target MEP end;
the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small;
when the sending sequence information is a sequence number arranged from small to large, the modified destination MEP end packet receiving count value includes: when the target MEP receives the frame loss measurement frame, sequentially judging whether a serial number carried by each recorded data measurement frame is greater than a serial number carried by the frame loss measurement frame, if so, subtracting 1 from a packet receiving count value of the target MEP end, and sequentially judging whether the serial number carried by each recorded data measurement frame is less than the serial number carried by the frame loss measurement frame within a preset delay time after the target MEP receives the frame loss measurement frame, if so, adding 1 to the packet receiving count value of the target MEP end;
when the sending sequence information is a sequence number arranged from large to small, the modified destination MEP end packet receiving count value includes: when the target MEP receives the frame loss measurement frame, sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the target MEP end; setting a delay time when the target MEP receives the frame loss measurement frame; and sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame or not in the delay time, and if so, adding 1 to the packet receiving count value of the target MEP end.
5. An aggregated link frame loss measurement method, for a destination MEP, the method comprising the steps of:
receiving data measurement frames which are sent by a source MEP and carry sending sequence information, performing local packet receiving counting on each received data measurement frame, and recording the sending sequence information carried by each data measurement frame;
receiving a frame loss measurement frame which carries transmission sequence information and is transmitted by a source MEP when a frame loss measurement period node is received;
judging whether any data measurement frame and the frame loss measurement frame have out-of-order arrival according to the recorded sending sequence information carried by each data measurement frame and the sending sequence information in the frame loss measurement frame, and correcting a packet receiving count value of a home terminal under the condition that the out-of-order arrival exists;
adding the modified local end packet receiving count value into a frame loss measurement response frame and sending the frame loss measurement response frame to the source MEP;
the sending sequence information is sequence numbers arranged from small to large, or sequence numbers arranged from large to small; when the sending sequence information is a sequence number arranged from small to large, the step of judging whether any data measurement frame and the frame loss measurement frame have disorder arrival or not and correcting the packet receiving count value of the local terminal under the condition of the disorder arrival comprises the following steps:
when the frame loss measurement frame is received, sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the local terminal; the sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame, and if so, after the step of subtracting 1 from the packet receiving count value of the local terminal, further comprising: sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame within the preset delay time after the frame loss measurement frame is received, and if so, adding 1 to the packet receiving count value of the local terminal;
when the sending sequence information is a sequence number arranged from large to small, the step of judging whether any data measurement frame and the frame loss measurement frame have disorder arrival or not and correcting the packet receiving count value of the local terminal under the condition of the disorder arrival comprises the following steps:
when the frame loss measurement frame is received, sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame, and if so, subtracting 1 from the packet receiving count value of the local terminal; the sequentially judging whether the sequence number carried by each recorded data measurement frame is smaller than the sequence number carried by the frame loss measurement frame, and if so, after the step of subtracting 1 from the packet receiving count value of the local terminal, further comprising:
and sequentially judging whether the sequence number carried by each recorded data measurement frame is greater than the sequence number carried by the frame loss measurement frame within the preset delay time after the frame loss measurement frame is received, and if so, adding 1 to the packet receiving count value of the local terminal.
6. The method of claim 5, wherein the preset delay time is less than a frame loss measurement period and greater than a maximum delay time of all reachable links between the source MEP and the destination MEP.
CN201610842537.1A 2016-09-22 2016-09-22 Aggregation link frame loss measuring device and method Active CN107864026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610842537.1A CN107864026B (en) 2016-09-22 2016-09-22 Aggregation link frame loss measuring device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610842537.1A CN107864026B (en) 2016-09-22 2016-09-22 Aggregation link frame loss measuring device and method

Publications (2)

Publication Number Publication Date
CN107864026A CN107864026A (en) 2018-03-30
CN107864026B true CN107864026B (en) 2022-03-25

Family

ID=61699092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610842537.1A Active CN107864026B (en) 2016-09-22 2016-09-22 Aggregation link frame loss measuring device and method

Country Status (1)

Country Link
CN (1) CN107864026B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511381B (en) * 2020-11-20 2022-03-29 鹏城实验室 Link quality event detection method, intelligent terminal and storage medium
CN113910268B (en) * 2021-09-29 2023-07-18 珠海格力电器股份有限公司 Method, device, equipment and medium for detecting loss of parts of industrial robot

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699867A (en) * 2009-10-28 2010-04-28 武汉世纪信通通信产业有限公司 Dynamic adjustment method of video data transmission rate
CN101707509A (en) * 2009-11-19 2010-05-12 中兴通讯股份有限公司 Method, system and device for detecting packet loss rate by using OAM
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss
CN102946330A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Method, device and system for network packet loss measurement
CN103166738A (en) * 2011-12-19 2013-06-19 中兴通讯股份有限公司 Device and method for measuring double-terminal frame loss
CN104579820A (en) * 2014-12-05 2015-04-29 盛科网络(苏州)有限公司 Controllable testing device and method for packet loss probability of MPLS-TP label switching path

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7937549B2 (en) * 2004-09-21 2011-05-03 International Business Machines Corporation Storage system and subsystem to automatically detect hardware configuration changes
JP5076932B2 (en) * 2008-02-01 2012-11-21 富士通株式会社 Frame counter correction device and counter device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699867A (en) * 2009-10-28 2010-04-28 武汉世纪信通通信产业有限公司 Dynamic adjustment method of video data transmission rate
CN101707509A (en) * 2009-11-19 2010-05-12 中兴通讯股份有限公司 Method, system and device for detecting packet loss rate by using OAM
CN102118277A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Method and device for packet loss detection, and a router
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss
CN103166738A (en) * 2011-12-19 2013-06-19 中兴通讯股份有限公司 Device and method for measuring double-terminal frame loss
CN102946330A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Method, device and system for network packet loss measurement
CN104579820A (en) * 2014-12-05 2015-04-29 盛科网络(苏州)有限公司 Controllable testing device and method for packet loss probability of MPLS-TP label switching path

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ITU-T Y.1731的软件实现与优化分析;陶映旭;《中国优秀硕士学位论文全文数据库信息科技辑》;20110915(第9期);全文 *
OAM and its performance monitoring mechanisms for carrier ethernet transport networks;J. Ryoo;《IEEE Communications Magazine》;20080305(第3期);全文 *

Also Published As

Publication number Publication date
CN107864026A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN112217686B (en) System, method and device for evaluating round trip delay
CN107508719B (en) Method and device for measuring network time delay and network node
WO2017107577A1 (en) Node probing method and device, path selection method and device, and network system
CN103152223A (en) Network performance monitoring method and device
US10616088B2 (en) Apparatus and method for measurements at intermediate nodes in end-to-end performance test
EP2760182B1 (en) Data communication apparatus, data transmission method, and computer system
CN105634840B (en) Method and device for measuring packet loss
CN111817977B (en) Network congestion control method and device
CN112040526B (en) Communication path selection method, equipment and communication system
WO2011124165A2 (en) Method and device for detecting link loss ratio
WO2016177065A1 (en) Delay measurement method and device
WO2014098096A1 (en) Data transmission device, data transmission method, and program therefor
JP6575529B2 (en) Usable band estimation system, usable band estimation method, receiving apparatus, and control program for receiving apparatus
CN106656642B (en) Method, device and system for measuring round trip delay
US8879403B2 (en) Link microbenchmarking with idle link correction
CN107864026B (en) Aggregation link frame loss measuring device and method
US20150023189A1 (en) Packet analysis device and packet analyzing method
CN113923140B (en) Round trip delay measuring method, system and storage medium
US10680756B2 (en) Packet classification apparatus, packet classification method and storage medium
CN115002008B (en) Method, device, equipment and storage medium for measuring network delay
WO2015085846A1 (en) Network quality detection method, apparatus and device
JP2013026841A (en) Failure detection device, failure detection method, and failure detection program
JP5937955B2 (en) Packet transfer delay measuring apparatus, method and program
JP2004140596A (en) Method and system for estimating quality in data transfer on transmission control protocol
US9882751B2 (en) Communication system, communication controller, communication control method, and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180420

Address after: 518057, A building, Zhongxing building, Nanshan District science and Technology Park, Shenzhen, Guangdong, five

Applicant after: ZTE Corporation

Address before: 210000 No. 68, Bauhinia Road, Ningnan street, Yuhuatai District, Nanjing, Jiangsu

Applicant before: Nanjing Zhongxing Software Co., Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant