CN106330579B - Packet loss statistical method and device for PTN (packet transport network) equipment - Google Patents

Packet loss statistical method and device for PTN (packet transport network) equipment Download PDF

Info

Publication number
CN106330579B
CN106330579B CN201510328821.2A CN201510328821A CN106330579B CN 106330579 B CN106330579 B CN 106330579B CN 201510328821 A CN201510328821 A CN 201510328821A CN 106330579 B CN106330579 B CN 106330579B
Authority
CN
China
Prior art keywords
value
actual sequence
sequence value
memory
packet
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
CN201510328821.2A
Other languages
Chinese (zh)
Other versions
CN106330579A (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 CN201510328821.2A priority Critical patent/CN106330579B/en
Priority to PCT/CN2015/094125 priority patent/WO2016201866A1/en
Publication of CN106330579A publication Critical patent/CN106330579A/en
Application granted granted Critical
Publication of CN106330579B publication Critical patent/CN106330579B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks

Landscapes

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

Abstract

The invention discloses a packet loss statistical method and a device for PTN equipment, which relate to the field of communication, and the method comprises the following steps: storing actual sequence values of sequentially received messages by using a first memory of a PTN device, and storing ideal sequence values corresponding to the actual sequence values by using a second memory of the PTN device; judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence values of the current message and the previous message; if the actual sequence value of the current message is judged to be continuously increased, calculating a packet loss statistic value by using the actual sequence value output by the first storage and the ideal sequence value output by the second storage; if the actual sequence value of the current message is judged not to be continuously increased, whether the actual sequence value of the preset number of messages continuously exists is judged not to be continuously increased, and the packet loss statistic value is calculated according to the judgment result. The invention can monitor the packet loss condition and is convenient for fault location.

Description

Packet loss statistical method and device for PTN (packet transport network) equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a Packet loss statistical method and apparatus for Packet Transport Network (PTN) devices.
Background
With the evolution of network technology and network convergence, in the next generation network, the way of performing network data transmission and exchange by using data packet as a basic unit will occupy a dominant position. Both Internet Protocol (IP) networks and Multi-Protocol label switching (MPLS) networks are representative of packet-switched networks. On the other hand, the next generation of networks needs to be built up, and existing Plesiochronous Digital Hierarchy (PDH)/Synchronous Digital Hierarchy (SDH) networks serving Public Switched Telephone Network (PSTN) announces voice communication services will exist for a long Time, and a large amount of Time Division Multiplexing (TDM) equipment will continue to be used. In order to protect the investment of users on the TDM equipment, it is important to provide TDM service access and TDM data transparent transmission capability in the next generation packet switching network.
There are two technologies for implementing the TDM service transparent transmission PSN Network, one is a TD Multiplexing IP (TDMoIP) technology, and the other is a Pseudo Wire Emulation Edge to Edge (PWE 3) technology based on a Packet Switched Network (PSN) Network. The TDMoIP technology and the PWE3 technology are based on the same protocol structure, the TDMoIP technology adapts Constant Bit Rate (CBR) data into AAL1 cells, adapts dynamic Bit Rate (VBR) data into AAL2 cells, and then carries out PW encapsulation transparent transmission on the AAL1/AAL2 cells. And the PWE3 technology directly carries out PWE3 encapsulation transparent transmission on VC data of original TDM services or SDH. It adopts special circuit simulation message head to package, and the special message head carries frame format information, alarm information, signaling information and synchronous timing information of TDM data service or VC data service. The message carrying TDM data service is called CES PWE3 package, and the message carrying SDH VC data is called CEP PWE3 package.
Fig. 1 and fig. 2 are schematic diagrams of a message format encapsulated by CES PWE3 and a message format encapsulated by CEP PWE3 provided in the prior art, respectively, fig. 3 and fig. 4 are schematic diagrams of a common domain of an unstructured and a structured CES PWE3 message provided in the prior art, respectively, and fig. 5 is a schematic diagram of a CEP PWE3 message cephaeder domain provided in the prior art, as shown in fig. 1 to fig. 5, a CES PWE3 encapsulation includes both unstructured and structured, wherein an unstructured CES PWE3 does not need to consider a boundary of an E1 frame, an E1 frame is transmitted as a whole, and a time slot inside the E1 frame does not need to be analyzed; and the structured CES PWE3 can identify the E1 frame structure, needs to parse 64K slots, and supports the slot compression function, i.e. only the slot of the effective service needs to be transmitted, and the idle slot channel may not transmit, so as to save the network resource bandwidth. CEP PWE3 encapsulates the VC path of an SDH as a complete payload without identifying the mapping structure within the path.
In the testing environment of the PTN network, situations of continuous traffic glitches or occasional traffic glitches are often encountered. In a simple environment, for example, only one or two devices are in butt joint, when such a fault is checked, whether packet loss exists when the device receives a message needs to be determined firstly, and in a more complex environment, for example, whether a small amount of continuous packet loss or more troublesome packet loss is positioned in a multi-device butt joint test, if the packet loss condition and the packet loss quantity of each device can be inquired, the device with the problem can be positioned quickly, and great help is provided for further analyzing the problem. Therefore, it is necessary to count the packet loss of the device in practical test applications.
Disclosure of Invention
The invention aims to provide a packet loss statistical method and device for PTN equipment, which can better monitor the packet loss condition of a PWE3 message transmitted by a PTN network so as to facilitate fault location.
According to an aspect of the present invention, there is provided a packet loss statistical method for a PTN device, including:
storing actual sequence values of sequentially received messages by using a first memory of a Packet Transport Network (PTN) device, and storing ideal sequence values corresponding to the actual sequence values by using a second memory of the PTN device;
judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence values of the current message and the previous message;
if the actual sequence value of the current message is judged to be continuously increased, calculating a packet loss statistic value by using the actual sequence value output by the first storage and the ideal sequence value output by the second storage;
if the actual sequence value of the current message is judged not to be continuously increased, whether the actual sequence value of the preset number of messages continuously exists is judged not to be continuously increased, and the packet loss statistic value is calculated according to the judgment result.
Preferably, the first memory is queried according to the timeslot number to which the current packet belongs, so as to obtain an actual sequence value of a previous packet in the same timeslot for comparison with the current packet.
Preferably, the step of calculating the packet loss statistic by using the actual sequence value output by the first memory and the ideal sequence value output by the second memory comprises:
subtracting the actual sequence value output by the first memory from the ideal sequence value output by the second memory to obtain a first packet loss value;
and accumulating the first packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
Preferably, after the first packet loss value is obtained, the actual sequence value of the current packet is stored in the first memory and the second memory according to the timeslot number to which the current packet belongs.
Preferably, the step of calculating the packet loss statistic according to the determination result includes:
if the actual sequence value of the continuously existing messages with the preset number is judged not to be continuously increased, subtracting the ideal sequence value output by the second memory from the actual sequence value output by the first memory to obtain a second packet loss value;
and accumulating the second packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
Preferably, after the second packet loss value is obtained, according to the time slot number to which the current packet belongs, the actual sequence value output by the first memory is added by 1 to serve as an ideal sequence value of the second memory, and the ideal sequence value is stored in the second memory, and the actual sequence value of the current packet is stored in the first memory.
According to another aspect of the present invention, there is provided a packet loss statistic apparatus for a PTN device, including:
the storage module is used for storing actual sequence values of the messages received in sequence by using a first storage of the storage module and storing ideal sequence values corresponding to the actual sequence values by using a second storage of the storage module;
the judging module is used for judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence value of the current message with the actual sequence value of the previous message;
the first processing module is used for calculating a packet loss statistic value by utilizing the actual sequence value output by the first storage and the ideal sequence value output by the second storage when the actual sequence value of the current message is judged to be continuously increased;
and the second processing module is used for judging whether the actual sequence values of the messages with the preset number continuously exist or not is continuously increased when the actual sequence values of the current messages are judged not to be continuously increased, and calculating the packet loss statistical value according to the judgment result.
Preferably, the judging module queries the first memory according to the timeslot number to which the current packet belongs, to obtain an actual sequence value of a previous packet in the same timeslot for comparison with the current packet.
Preferably, the first processing module subtracts the actual sequence value output by the first memory from the ideal sequence value output by the second memory to obtain a first packet loss value, and accumulates the first packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
Preferably, after obtaining the first packet loss value, the first processing module stores the actual sequence value of the current packet to the first memory and the second memory of the storage module according to the timeslot number to which the current packet belongs.
Preferably, when the second processing module determines that the actual sequence value of the continuously existing messages with the preset number is not continuously increased, the actual sequence value output by the first memory is subtracted from the ideal sequence value output by the second memory to obtain a second packet loss value, and the second packet loss value is accumulated with the previously counted packet loss statistical value to obtain a new packet loss statistical value.
Preferably, after obtaining the second packet loss value, the second processing module adds 1 to the actual sequence value output by the first memory according to the timeslot number to which the current packet belongs, and stores the actual sequence value of the current packet in the second memory as an ideal sequence value of the second memory, and stores the actual sequence value of the current packet in the first memory.
Compared with the prior art, the invention has the beneficial effects that:
the packet loss statistics of the PTN equipment is carried out by utilizing the actual sequence value and the ideal sequence value of the received message, the used logic resources are less, the method is simple and convenient, and the packet loss of the PTN network can be effectively positioned.
Drawings
Fig. 1 is a schematic diagram of a message format encapsulated by CES PWE3 provided in the prior art;
FIG. 2 is a schematic diagram of a CEP PWE3 encapsulated message format provided by the prior art;
FIG. 3 is a structural diagram of a ConWord domain of an unstructured CES PWE3 message provided by the prior art;
FIG. 4 is a structural diagram of a structured CES PWE3 message ConWord domain provided by the prior art;
FIG. 5 is a diagram of a CEP PWE3 message CepHeader domain structure provided in the prior art;
fig. 6 is a flowchart of a packet loss statistics method for a PTN device according to an embodiment of the present invention;
fig. 7 is a block diagram of a packet loss statistics apparatus for a PTN device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a device for packet loss statistics of a PTN device according to an embodiment of the present invention;
FIG. 9 is a simplified diagram of a Sequence comparison processor apparatus according to an embodiment of the present invention;
fig. 10 is a first schematic diagram of packet loss statistical analysis according to an embodiment of the present invention;
fig. 11 is a second schematic diagram of packet loss statistical analysis according to an embodiment of the present invention;
fig. 12 is a third schematic diagram of packet loss statistical analysis according to an embodiment of the present invention;
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 6 is a flowchart of a packet loss statistical method for a PTN device according to an embodiment of the present invention, and as shown in fig. 6, the steps include:
step S101: storing actual sequence values of sequentially received messages with a first memory of a packet transport network, PTN, device, and storing ideal sequence values corresponding to the actual sequence values with a second memory of the PTN device.
Step S102: and judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence values of the current message and the previous message.
And querying the first memory according to the time slot number (such as the E1 time slot number) to which the current message belongs to obtain the actual sequence value of the last message of the E1 time slot for comparison with the current message.
Step S103: and if the actual sequence value of the current message is judged to be continuously increased, calculating a packet loss statistic value by using the actual sequence value output by the first storage and the ideal sequence value output by the second storage.
Specifically, the actual sequence value output by the first memory is subtracted from the ideal sequence value output by the second memory to obtain a first packet loss value, and then the first packet loss value is accumulated with the previously counted packet loss statistic value to obtain a new packet loss statistic value.
Further, after the first packet loss value is obtained, the actual sequence value of the current packet is stored in the first memory and the second memory by using the time slot number (for example, the E1 time slot number) to which the current packet belongs.
Step S104: if the actual sequence value of the current message is judged not to be continuously increased, whether the actual sequence value of the preset number of messages continuously exists is judged not to be continuously increased, and the packet loss statistic value is calculated according to the judgment result.
Specifically, if it is determined that the actual sequence value of the continuously existing messages with the preset number is not continuously increased, subtracting the ideal sequence value output by the second memory from the actual sequence value output by the first memory to obtain a second packet loss value; and accumulating the second packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
Further, after a second packet loss value is obtained, according to the time slot number to which the current packet belongs, adding 1 to the actual sequence value output by the first memory, and storing the actual sequence value of the current packet to the second memory as an ideal sequence value of the second memory, and storing the actual sequence value of the current packet to the first memory.
Fig. 7 is a block diagram of a packet loss statistics apparatus for a PTN device according to an embodiment of the present invention, as shown in fig. 7, including: the device comprises a storage module 10, a judgment module 20, a first processing module 30 and a second processing module 40.
The storage module 10 includes a first memory and a second memory, and the storage module 10 stores actual sequence values of sequentially received messages by using the first memory thereof and stores ideal sequence values corresponding to the actual sequence values by using the second memory thereof.
The judging module 20 is configured to query the first memory according to the timeslot number to which the current packet belongs, to obtain an actual sequence value of a previous packet in the same timeslot for comparing with the current packet, compare the actual sequence value of the current packet with the actual sequence value of the previous packet, and judge whether the actual sequence value of the current packet is continuously incremented.
The first processing module 30 is configured to calculate a packet loss statistic value by using the actual sequence value output by the first storage and the ideal sequence value output by the second storage when it is determined that the actual sequence value of the current packet continuously increases. Specifically, the first processing module 30 subtracts the actual sequence value output by the first memory from the ideal sequence value output by the second memory to obtain a first packet loss value, and accumulates the first packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value. After obtaining the first packet loss value, the first processing module 30 stores the actual sequence value of the current packet to the first memory and the second memory of the storage module 10 according to the timeslot number to which the current packet belongs.
The second processing module 40 is configured to, when determining that the actual sequence value of the current packet is not continuously incremented, determine whether the actual sequence value of a preset number of packets continuously exists, and calculate a packet loss statistic value according to a determination result. Specifically, when the second processing module 40 determines that the actual sequence value of the continuously existing messages with the preset number is not continuously increased, the actual sequence value output by the first memory is subtracted from the ideal sequence value output by the second memory to obtain a second packet loss value, and the second packet loss value is accumulated with the previously counted packet loss statistical value to obtain a new packet loss statistical value. Further, after a second packet loss value is obtained, according to the time slot number to which the current packet belongs, adding 1 to the actual sequence value output by the first memory, and storing the actual sequence value of the current packet to the second memory as an ideal sequence value of the second memory, and storing the actual sequence value of the current packet to the first memory.
Normally, the Sequence information (i.e. Sequence value, Sequence value) in the word domain and the cephaeder domain of each PWE3 message is sequentially increased, and when the PTN device receiving side detects that the Sequence information of the PWE3 message is not sequentially increased (i.e. continuously increased), there may be many cases, for example, the Sequence value of the next message in two consecutive PWE3 messages is greater than that of the previous message but not different by 1, or the Sequence value of the next message is smaller than that of the previous message; the Sequence value of the second message in the three continuous PWE3 messages is an abnormal value (possibly, data errors occur occasionally in the data transmission process, and real packet loss is not achieved), and the Sequence value of the third message is two larger than that of the first message and is in a continuously increasing relationship; no Sequence value is sequentially incremented over a time frame, and so on. Therefore, in view of the existing situations, when the Sequence values of the received PWE3 messages are not sequentially increased, the situation that the received messages are lost or multiple packets or wrong packets may occur is shown.
Fig. 8 is a schematic diagram of a packet loss statistics apparatus for a PTN device according to an embodiment of the present invention, and fig. 9 is a schematic diagram of a Sequence comparison processor apparatus according to an embodiment of the present invention, as shown in fig. 8 and fig. 9, including:
1. the received message detection module can extract the Sequence value of the received message;
a CPU configuration module for configuring the attribute of the received message according to Pwlabel;
3. the first memory, the content stored is the Sequence value of the present message;
4. the second memory, the content stored reflects the Sequence value of the message of the continuous Sequence value and the number of the messages of the discontinuous Sequence value received historically;
and 5, the Sequence comparison processor is used for realizing output comparison of the first memory and the second memory and finishing packet loss statistics according to comparison conditions. Specifically, assuming that the output of the first memory is Sequence1, the output of the second memory is Sequence2, and the Sequence comparison processor compares Sequence1 and Sequence 2. If the Sequence1 is equal to the Sequence2, the difference obtained by subtracting the two is 0, which indicates that the message serial numbers (namely the Sequence values) are continuous, the message is not lost, and statistics is not carried out; if the difference value obtained by subtracting the Sequence2 from the Sequence1 is greater than N (N is set to be 4096), the message loss is excessive, a PWE3 message loss alarm needs to be reported, and packet loss statistics is not carried out; otherwise, the difference value of Sequence2 subtracted from Sequence1 is stored in the third memory as the loss statistics of the current message, and at this time, the Sequence comparison processor adds the obtained loss statistics of the current message to the previous statistics value to obtain the total message loss statistics.
The invention uses subtracter to subtract the content of the first memory and the content of the second memory to obtain the packet loss statistics. The first memory and the second memory are both used for storing according to the E1 time slot or the VC time slot, and the first memory is used for storing the Sequence value (namely the actual Sequence value) of the received current message. Therefore, when the next message arrives, the content of the first memory is read, and the Sequence value of the previous message can be obtained. The second memory stores content that is conditionally restricted: firstly, judging whether the Sequence value of the current message and the Sequence value of the previous message are in a sequentially increasing relationship, and if so, storing the Sequence value of the current message into a second memory; if the message is not in the sequentially increasing relationship, the Sequence value of the message is discontinuous, the content of the second memory is read out, then the content is added with 1 to be used as an ideal Sequence value and then stored in the second memory (the addition of 1 indicates that a message is received, but the message with the discontinuous Sequence value is received), and therefore the content stored in the second memory reflects the continuous Sequence value and the number of the messages with the discontinuous Sequence value of the historically received message.
The first memory is updated each time a new PWE3 message is received, and the second memory is updated based on the Sequence value of the received message. And comparing the Sequence value output by the first memory (namely the Sequence value of the previous message) with the Sequence value of the current message, and subtracting the contents output by the first memory and the second memory by a subtracter of the Sequence comparison processor when the Sequence value is judged to be continuously increased, so that the packet loss statistics of the PWE3 message can be obtained. However, in the case that the message with the Sequence value continuously incremented is not received, the packet loss statistics of the message cannot be obtained, so to start the packet loss statistics enabling, in this embodiment, when the Sequence values of M (M may be set to 1, 2, 3, 4, and 5 … ….) messages are received continuously, the content of the second memory is updated with the Sequence value of the mth message, and at this time, the content of the first memory and the content of the second memory are subtracted.
Since the Sequence values are accumulated in a 16-bit loop, if the Sequence value stored in the first memory is smaller than the Sequence value stored in the second memory, there may be several cases:
1. if the Sequence value stored in the first memory is 16 'h 0 and the Sequence value stored in the second memory is 16' hffff, the number of lost packets in this case may be 0 or 65536 or 131072 (i.e., 65536+65536 ═ 131072) or more.
2. If the Sequence value stored in the first memory is 16 'h 3 and the Sequence value stored in the second memory is 16' hffff, the number of lost messages may be 3, 65539, or 131075(65539+65536 ═ 131076) or more.
Therefore, there is a high possibility that the packet loss statistics obtained by directly subtracting the output values of the first memory and the second memory are used. In order to more accurately count the network packet loss and ensure the uniqueness of the packet loss statistics, the invention only considers the case that the difference range of the Sequence values of the first memory and the second memory is 0 to N (N can be set to any value of 0-65535). For the situation that the actual network packet loss is larger than N messages, other means can be adopted to inform the client. Assuming that N is 4096, the PTN device receives one PWE3 message every 125us, then the time required to miss 4096 messages is: 4096x125us ═ 512 ms. Therefore, a 512ms time window is set, when no PWE3 message is received within the 512ms time range, a PWE3 message loss alarm is reported, and the packet loss statistic value has no reference significance.
The method comprises the following specific implementation steps:
the first step is as follows: and detecting the legality of the received PWE3 message at the entrance of the receiving side of the PTN equipment, extracting Pwlabel and Sequence from the legal message, and discarding the illegal message.
The second step is that: and the CPU configures the attribute of the message according to the Pwlabel.
For CES service, the CPU configures the E1 time slot number of the received CES PWE3 message according to Pwlabel; for CEP service, CPU configures VC time slot number of received CEP PWE3 message according to Pwlabel.
And inquiring the attribute of the message from the CPU configuration by using the Pwlabel receiving the message to obtain the E1 time slot or VC time slot corresponding to the current message.
The third step: and storing the Sequence value of the received message according to the E1 time slot/VC time slot by using the first memory.
The first memory needs to be updated each time a new PWE3 message is received.
The fourth step: when a new PWE3 message is received, the first memory is read by using the E1 time slot or the VC time slot to obtain the output value of the first memory, namely the Sequence value of the previous message. Then comparing the output value of the first memory with the Sequence value of the current received message, and judging whether the message is in an increasing relationship. If the current message is increased, storing the Sequence of the current message in a second memory according to the E1 time slot/VC time slot. If not incremented, the output value of the second memory is added by 1 and stored. And when the Sequence values of the received continuous M messages are not in an increasing relationship, adding 1 to the output value of the first memory and then storing the output value into the second memory.
The fifth step: and reading the output value Sequence1 of the first memory and the output value Sequence2 of the second memory and subtracting the two values each time when receiving the messages with continuous Sequence values or when receiving the Sequence values of M continuous messages. When the Sequence1 is equal to the Sequence2, the Sequence numbers are continuous, and the message is not lost; when the difference value between Sequence1 and Sequence2 exceeds 16' h0fff, packet loss statistics is not carried out, and a message loss alarm is reported to inform a client; otherwise, the difference between Sequence1 and Sequence2 is used as the current message loss statistical result.
Fig. 10 is a first schematic diagram of packet loss statistical analysis provided in the embodiment of the present invention, fig. 11 is a second schematic diagram of packet loss statistical analysis provided in the embodiment of the present invention, and fig. 12 is a third schematic diagram of packet loss statistical analysis provided in the embodiment of the present invention, as shown in fig. 10 to fig. 12, taking a received message as CES PWE3 as an example, to further describe how to perform packet loss statistics by using a Sequence value of the message.
Assuming that the type of the optical interface is 4xSTM-1, the attribute of the received CES PWE3 message, i.e. the E1 time slot number, can be represented by { vc4[1:0], vc3[1:0], vc12[4:0 }. The CPU configures the message attribute with Pwlabel of 1, namely the E1 time slot to which the message belongs is {2 ' b00,2 ' b00,5 ' b00010 }. Assume that the Pwlabel fields of the received messages in fig. 10 to 12 are all 1, indicating that they belong to the same E1 timeslot 9' h 002.
As shown in fig. 10, the packet loss statistical analysis diagram shows that the Sequence value of the received packet starts to be in a continuous state, and then receives a packet with a discontinuous Sequence value, and then receives a packet with a continuous Sequence value.
As shown in fig. 11, the packet loss statistical analysis diagram shows that the Sequence value of the received message is continuous, then a message with a discontinuous Sequence value (the Sequence value is large) is received, then a message with a continuous Sequence value is received, and then two messages with the same Sequence are received.
As shown in fig. 12, the packet loss statistical analysis diagram starts with a continuous Sequence value of the received messages, and then receives M (where M is set to 5) messages with discontinuous Sequence values, and then receives messages with continuous Sequence values.
1. The Sequence value of the current message received is stored in the first memory, and before storing, the Sequence of the last message is read, i.e. the first memory outputs the Sequence 1.
2. And comparing the Sequence values of the current message and the previous message. If the Sequence value is in a sequentially increasing state, storing the Sequence of the current message into the second memory, otherwise, not storing the Sequence of the current message into the second memory, but adding 1 to the content of the second memory and then storing the content into the second memory.
3. When the Sequence values of the messages are continuously increased or M (M is set to be 5) messages with discontinuous Sequence values are received, the output values of the first memory and the second memory are compared.
(1) If the Sequence1 is equal to the Sequence2, the message serial numbers are continuous, the message is not lost, and statistics is not carried out;
(2) if the difference value obtained by subtracting the Sequence2 from the Sequence1 is greater than N (where N is 4096), it indicates that too many messages are lost, and PWE3 message loss alarm needs to be reported without packet loss statistics.
(3) In other cases, the difference value of Sequence2 subtracted from Sequence1 is used as the loss statistics of the current message and stored in a third memory, and the third memory stores the accumulated result of each message loss statistics according to the E1 time slot or VC time slot.
Fig. 10 shows a case where the statistical result of packet loss is 1, fig. 11 shows a case where the statistical result of packet loss is 0, and fig. 12 shows a case where the statistical result of packet loss is 6.
In summary, the present invention has the following technical effects:
the invention realizes the statistics of PTN network node message loss by using less logic resources by utilizing the Sequence information in the word domain and the CepHeader domain of the PWE3 message, thereby facilitating the network node examination and rapidly positioning the packet loss condition of the PTN equipment.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (12)

1. A packet loss statistical method for a PTN device, comprising:
storing actual sequence values of sequentially received messages by using a first memory of a Packet Transport Network (PTN) device, and storing ideal sequence values corresponding to the actual sequence values by using a second memory of the PTN device;
judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence values of the current message and the previous message;
if the actual sequence value of the current message is judged to be continuously increased, calculating a packet loss statistic value by using the actual sequence value output by the first storage updated after the current message is received and the ideal sequence value output by the second storage updated after the current message is received;
if the actual sequence value of the current message is judged not to be continuously increased, whether the actual sequence value of the preset number of messages continuously exists is judged not to be continuously increased, and the packet loss statistic value is calculated according to the judgment result.
2. The method according to claim 1, wherein before the first memory stores the actual sequence value of the current packet, the first memory is queried according to the timeslot number to which the current packet belongs, so as to obtain the actual sequence value of the previous packet.
3. The method of claim 2, wherein the step of calculating the packet loss statistic using the actual sequence value output from the first memory updated after receiving the current packet and the ideal sequence value output from the second memory updated after receiving the current packet comprises:
subtracting the actual sequence value output by the first memory updated after the current message is received from the ideal sequence value output by the second memory updated after the current message is received to obtain a first packet loss value;
and accumulating the first packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
4. The method of claim 3,
after obtaining the actual sequence value of the previous message, storing the actual sequence value of the current message to the first memory according to the time slot number to which the current message belongs;
and when the actual sequence value of the current message is judged to be continuously increased, storing the actual sequence value of the current message to a second memory according to the time slot number to which the current message belongs.
5. The method according to claim 2, wherein the step of calculating the packet loss statistic according to the determination result comprises:
if the actual sequence value of the continuously existing messages with the preset number is judged not to be continuously increased, subtracting the ideal sequence value output by the second memory from the actual sequence value output by the first memory to obtain a second packet loss value;
and accumulating the second packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
6. The method of claim 5,
after obtaining the actual sequence value of the previous message, storing the actual sequence value of the current message to the first memory according to the time slot number to which the current message belongs;
and when the actual sequence value of the current message is judged not to be continuously increased, adding 1 to the ideal sequence value of the last message output by the second memory according to the time slot number to which the current message belongs, and storing the ideal sequence value of the current message in the second memory.
7. A packet loss statistic apparatus for a PTN device, comprising:
the storage module is used for storing actual sequence values of the messages received in sequence by using a first storage of the storage module and storing ideal sequence values corresponding to the actual sequence values by using a second storage of the storage module;
the judging module is used for judging whether the actual sequence value of the current message is continuously increased or not by comparing the actual sequence value of the current message with the actual sequence value of the previous message;
the first processing module is used for calculating a packet loss statistic value by utilizing the actual sequence value output by the first storage updated after the current message is received and the ideal sequence value output by the second storage updated after the current message is received when the actual sequence value of the current message is judged to be continuously increased;
and the second processing module is used for judging whether the actual sequence values of the messages with the preset number continuously exist or not is continuously increased when the actual sequence values of the current messages are judged not to be continuously increased, and calculating the packet loss statistical value according to the judgment result.
8. The apparatus according to claim 7, wherein the determining module queries the first memory according to the timeslot number to which the current packet belongs before the first memory stores the actual sequence value of the current packet, to obtain the actual sequence value of the previous packet.
9. The apparatus according to claim 8, wherein the first processing module subtracts an actual sequence value output from a first memory updated after receiving the current packet from an ideal sequence value output from a second memory updated after receiving the current packet to obtain a first packet loss value, and accumulates the first packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
10. The apparatus according to claim 9, wherein after obtaining the actual sequence value of the previous packet, the first processing module stores the actual sequence value of the current packet in the first memory of the storage module according to the timeslot number to which the current packet belongs, and stores the actual sequence value of the current packet in the second memory according to the timeslot number to which the current packet belongs when determining that the actual sequence value of the current packet continuously increases.
11. The apparatus according to claim 8, wherein the second processing module subtracts the actual sequence value output by the first memory from the ideal sequence value output by the second memory to obtain a second packet loss value when determining that the actual sequence value of the predetermined number of consecutive packets is not continuously incremented, and accumulates the second packet loss value and the previously counted packet loss statistic value to obtain a new packet loss statistic value.
12. The apparatus according to claim 11, wherein the second processing module, after obtaining the actual sequence value of the previous packet, stores the actual sequence value of the current packet in the first memory according to the timeslot number to which the current packet belongs, and when determining that the actual sequence value of the current packet is not continuously incremented, adds 1 to the ideal sequence value of the previous packet output by the second memory according to the timeslot number to which the current packet belongs, and stores the value as the ideal sequence value of the current packet in the second memory.
CN201510328821.2A 2015-06-15 2015-06-15 Packet loss statistical method and device for PTN (packet transport network) equipment Active CN106330579B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510328821.2A CN106330579B (en) 2015-06-15 2015-06-15 Packet loss statistical method and device for PTN (packet transport network) equipment
PCT/CN2015/094125 WO2016201866A1 (en) 2015-06-15 2015-11-09 Packet loss counting method and apparatus for ptn device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510328821.2A CN106330579B (en) 2015-06-15 2015-06-15 Packet loss statistical method and device for PTN (packet transport network) equipment

Publications (2)

Publication Number Publication Date
CN106330579A CN106330579A (en) 2017-01-11
CN106330579B true CN106330579B (en) 2020-04-28

Family

ID=57544826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510328821.2A Active CN106330579B (en) 2015-06-15 2015-06-15 Packet loss statistical method and device for PTN (packet transport network) equipment

Country Status (2)

Country Link
CN (1) CN106330579B (en)
WO (1) WO2016201866A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055216B (en) * 2017-11-14 2020-07-28 烽火通信科技股份有限公司 Method and system for PTN chip to actively measure packet loss
CN109005081B (en) * 2018-06-26 2022-09-23 卡斯柯信号有限公司 System and method for automatically detecting packet loss
CN109257216B (en) * 2018-09-18 2021-09-24 北京华环电子股份有限公司 Method for configuring 64K service end-to-end segment
CN111026324B (en) * 2018-10-09 2021-11-19 华为技术有限公司 Updating method and device of forwarding table entry
CN113364722B (en) * 2020-03-04 2023-04-25 阿里巴巴集团控股有限公司 Network security protection method and device
CN111614509B (en) * 2020-04-01 2022-12-13 视联动力信息技术股份有限公司 Packet loss statistical method and device and readable storage medium
CN114006838B (en) * 2021-10-30 2023-06-27 杭州迪普信息技术有限公司 Testing method and system of flow control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064981A (en) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and system
CN102404069A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Method for data encapsulation link packet loss and derangement and system thereof
CN103560923A (en) * 2013-11-20 2014-02-05 烽火通信科技股份有限公司 Network failure quick positioning method of packet transport network
CN103684818A (en) * 2012-09-07 2014-03-26 中兴通讯股份有限公司 Method and device for detecting failures of network channel
CN102868576B (en) * 2012-09-26 2015-05-13 电子科技大学 Method for measuring downlink packet loss rate of access link of broadband network user

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW511340B (en) * 2000-12-12 2002-11-21 Elan Microelectronics Corp Method and system for data loss detection and recovery in wireless communication
KR100825542B1 (en) * 2002-09-04 2008-04-25 엘지노텔 주식회사 Transmission control system and method of wireless packet data using Transmission Control Protocol
CN101256572B (en) * 2008-03-21 2011-08-10 华为技术有限公司 Method for operating XML document as well as XDMS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404069A (en) * 2010-09-07 2012-04-04 中兴通讯股份有限公司 Method for data encapsulation link packet loss and derangement and system thereof
CN102064981A (en) * 2010-12-29 2011-05-18 中兴通讯股份有限公司 Bidirectional forwarding detection (BFD) method and system
CN103684818A (en) * 2012-09-07 2014-03-26 中兴通讯股份有限公司 Method and device for detecting failures of network channel
CN102868576B (en) * 2012-09-26 2015-05-13 电子科技大学 Method for measuring downlink packet loss rate of access link of broadband network user
CN103560923A (en) * 2013-11-20 2014-02-05 烽火通信科技股份有限公司 Network failure quick positioning method of packet transport network

Also Published As

Publication number Publication date
WO2016201866A1 (en) 2016-12-22
CN106330579A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106330579B (en) Packet loss statistical method and device for PTN (packet transport network) equipment
US8774045B2 (en) Packet loss detecting method and apparatus, and router
US20070242620A1 (en) Method, System and Device for Measuring Performance Parameters of Multiprotocol Label Switching Network
US8416770B2 (en) Universal service transport transitional encoding
EP2999261A1 (en) Wireless communication method, wire transmission detection method and related device
CN109787703B (en) Timestamp correction method, clock synchronization method and system
CN102185780B (en) OAM message processing method and device
EP2254276B1 (en) Method for signalling of data transmission path properties to a non-OAM observent client
US11539607B2 (en) Detection block sending and receiving method, and network device and system
US9479619B2 (en) Transmission apparatus, transmission system, and transmission method
US20140341566A1 (en) Speed test throughput distribution
US20170244632A1 (en) Data Processing Method and Apparatus and Network Device
US20200153722A1 (en) Methods, systems, and computer readable media for measuring delivery latency in a frame-preepmtion-capable network
EP3979575B1 (en) Message forwarding method, system, device, node device, and storage medium
US9331927B2 (en) Communication system, communication device, and communication method
EP2930875B1 (en) Data transmission method, device, and system
EP2661015A1 (en) Method and system for detecting signal degrade (sd) alarm
US8422363B2 (en) Method and apparatus for service protection
CN101336520B (en) A method for measuring relative time delay of data service in optical transmitting network
US11582156B2 (en) Traffic detection method, apparatus, and system
CN108737911B (en) POTN service bearing method and system based on generalized optical burst switching
JP2011114380A (en) Communication system, transmitter, receiver, communication device, transmission line quality estimating method, and program
WO2021073570A1 (en) Communication method, apparatus and system
WO2017118042A1 (en) Method and apparatus for determining channel state
CN107835466B (en) Statistical method and statistical system for PON equipment service flow

Legal Events

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