CN106330579A - Packet loss statistic method and apparatus for PTN equipment - Google Patents

Packet loss statistic method and apparatus for PTN equipment Download PDF

Info

Publication number
CN106330579A
CN106330579A CN201510328821.2A CN201510328821A CN106330579A CN 106330579 A CN106330579 A CN 106330579A CN 201510328821 A CN201510328821 A CN 201510328821A CN 106330579 A CN106330579 A CN 106330579A
Authority
CN
China
Prior art keywords
value
memory
packet loss
message
sequence value
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.)
Granted
Application number
CN201510328821.2A
Other languages
Chinese (zh)
Other versions
CN106330579B (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

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, which relates to the communication field, discloses a packet loss statistic method and apparatus for packet transport network (PTN) equipment. The method comprises: a first storage unit of PTN equipment stores practical sequence values of messages received successively and a second storage unit of the PTN equipment stores ideal sequence values corresponding to the practical sequence values; practical sequence values of a current message and a previous message are compared and whether the practical sequence value of the current message increases progressively is determined; if so, a packet loss statistic value is calculated according to the practical sequence values outputted by the first storage unit and ideal sequence values outputted by the second storage unit; and if the practical sequence value of the current message does not increase progressively, whether a phenomenon that practical sequence values of messages with the preset number do not increase progressively exists continuously is determined, and a packet loss statistic value is calculated based on a determination result. Therefore, a packet missing situation can be monitored and fault positioning can be realized conveniently.

Description

A kind of packet loss statistical method for PTN device and device
Technical field
The present invention relates to the communications field, particularly to one for Packet Transport Network (Packet Transport Network, PTN) the packet loss statistical method of equipment and device.
Background technology
Along with network technology evolution and the network integration, in next generation network, based on packet, unit is carried out The mode of network data transmission and exchange will occupy dominant position.Either Internet protocol (Internet Protocol, IP) network, multiprotocol label switching (Multi-Protocol Lable Switch, MPLS) Network is all the representative of packet network.On the other hand, next generation network needs progressively to build up, existing service Voice is announced in PSTN (Public Switched Telephone Network, PSTN) The PDH (Plesiochronous Digital Hierarchy, PDH) of communication service/synchronization Digit sequence (Synchronous Digital Hierarchy, SDH) network also will long-term existence, network Upper a large amount of user's time division multiplex (Time Division Mutiplexing, TDM) equipment existed also will continue Use.In order to protect user's existing investment on TDM equipment, in packet network of future generation, provide TDM Service access and tdm data transparent transmission ability are highly important.
Realizing TDM business transparent transmission PSN network and have two kinds of technology, a kind of is TD multiplexing IP (TD Multiplexing IP, TDMoIP) technology, another kind is based on the packet switching network (Packet Switched Network, PSN) pseudo wire emulation (the Pseudo-Wire Emulation Edge to of edge-to-edge of network Edge, PWE3) technology.TDMoIP technology and PWE3 technology are based on same protocol architecture, TDMoIP technology Constant bit rate (Constant Bit-Rate, CBR) data adaptation is become AAL1 cell, by dynamic bit Rate (Variable Bit-Rate, VBR) data adaptation becomes AAL2 cell, then to AAL1/AAL2 cell Carry out PW and encapsulate transparent transmission.And the VC data of original TDM business or SDH are directly carried out by PWE3 technology PWE3 encapsulates transparent transmission.It uses special circuit simulation heading to be packaged, and carries in specific message head Tdm data business or the frame format information of VC data service, warning information, signaling information and synchronization timing Information.The message carrying tdm data business is referred to as CES PWE3 encapsulation, carries the message of the VC data of SDH It is referred to as CEP PWE3 encapsulation.
Fig. 1 and Fig. 2 is respectively message format and the CEP PWE3 envelope of the CES PWE3 encapsulation that prior art provides The message format schematic diagram of dress, Fig. 3 and Fig. 4 is respectively destructuring and the structured CES that prior art provides The structure chart in the ConWord territory of PWE3 message, the CEP PWE3 message that Fig. 5 provides for prior art The structure chart in CepHeader territory, as shown in Figures 1 to 5, CES PWE3 encapsulation includes destructuring and structure Changing two kinds, wherein, non-structured CES PWE3 is without considering the border of E1 frame, and E1 frame is whole as one Body transmission, it is not necessary to resolve the time slot within E1 frame;And structurized CES PWE3 can identify that E1 frame is tied Structure, needs to resolve the time slot of 64K, and supports time slot compression function, i.e. has only to transmit the time slot of effective traffic, Free timeslot channel can not transmit, for saving Internet resources bandwidth.CEP PWE3 is the VC of SDH Passage encapsulates as a complete payload, the mapping structure in nonrecognition passage.
In the test environment of PTN network, the business that is frequently encountered continues hit or the feelings of the even now flash of business Condition.At simple environment, the most only one or two equipment interconnection, firstly the need of clearly setting when investigating this kind of fault Packet loss whether is there is during standby reception message, and at more complicated environment, fixed in the test of the most multiple equipment interconnections Position is a small amount of continues packet loss or cumbersome, if each equipment packet drop and number of dropped packets can be inquired Amount, it is possible to quickly position the equipment gone wrong, further problem analysis is had very great help.Therefore, system The packet drop of meter equipment is necessary in reality test application.
Summary of the invention
It is an object of the invention to provide a kind of packet loss statistical method for PTN device and device, can be preferably The packet drop of the PWE3 message of monitoring PTN network transmission, to facilitate fault location.
According to an aspect of the invention, it is provided a kind of packet loss statistical method for PTN device, including:
The first memory utilizing Packet Transport Network PTN device stores the actual sequence value of the message received successively, Utilize the second memory storage ideal sequence value corresponding to described actual sequence value of described PTN device;
By comparing the actual sequence value of current message and a upper message, it is judged that the actual sequence value of current message It is incremented by the most continuously;
If judging, the actual sequence value of current message is incremented by continuously, then utilize the reality that described first memory exports Sequential value and the ideal sequence value of second memory output, calculate packet loss statistical value;
If judging, the actual sequence value of current message is not to be incremented by continuously, then judge whether continued presence present count The actual sequence value of the message of amount is not to be incremented by continuously, and according to judged result, calculates packet loss statistical value.
Preferably, according to the timeslot number belonging to described current message, inquire about described first memory, obtain for The actual sequence value of a upper message of the same time slot compared with described current message.
Preferably, the described actual sequence value utilizing described first memory to export and the reason of second memory output Thinking sequential value, the step calculating packet loss statistical value includes:
The ideal sequence value of the actual sequence value exported by described first memory and second memory output is subtracted each other, Obtain the first packet loss value;
Described first packet loss value is added up with the packet loss statistical value in front statistics, obtains new packet loss statistical value.
Preferably, after obtaining the first packet loss value, according to the timeslot number belonging to described current message, by described The actual sequence value of current message preserves to described first memory and second memory.
Preferably, described according to judged result, the step calculating packet loss statistical value includes:
If judging, the actual sequence value of the message of continued presence predetermined number is not to be incremented by, then by described first continuously The actual sequence value of memorizer output and the ideal sequence value of second memory output are subtracted each other, and obtain the second packet loss Value;
Described second packet loss value is added up with the packet loss statistical value in front statistics, obtains new packet loss statistical value.
Preferably, after obtaining the second packet loss value, according to the timeslot number belonging to described current message, by described First memory output actual sequence value add 1 after as described second memory ideal sequence value preserve extremely Described second memory, preserves the actual sequence value of described current message to described first memory.
According to a further aspect in the invention, it is provided that a kind of packet loss statistic device for PTN device, including:
Memory module, for utilizing its first memory to store the actual sequence value of the message received successively, utilizes The storage of its second memory is corresponding to the ideal sequence value of described actual sequence value;
Judge module, for by the actual sequence value comparing current message and a upper message, it is judged that currently report The actual sequence value of literary composition is incremented by the most continuously;
First processing module, for when the actual sequence value judging current message is incremented by continuously, utilizes described the The actual sequence value of one memorizer output and the ideal sequence value of second memory output, calculate packet loss statistical value;
Second processing module, for when the actual sequence value judging current message is not to be incremented by continuously, it is judged that be The actual sequence value of the message of the no predetermined number of continued presence is not to be incremented by continuously, and according to judged result, meter Calculate packet loss statistical value.
Preferably, described judge module, according to the timeslot number belonging to described current message, inquires about described first storage Device, obtains the actual sequence value of a upper message of same time slot for comparing with described current message.
Preferably, the actual sequence value and second that described first memory is exported by described first processing module stores The ideal sequence value of device output is subtracted each other, and obtains the first packet loss value, and by described first packet loss value and in front statistics Packet loss statistical value adds up, and obtains new packet loss statistical value.
Preferably, after obtaining the first packet loss value, described first processing module is according to belonging to described current message Timeslot number, the actual sequence value of described current message is preserved the first memory to described memory module and the Two memorizeies.
Preferably, described second processing module judge continued presence predetermined number message actual sequence value not To be incremented by continuously, then the actual sequence value described first memory exported and the preferable sequence of second memory output Train value subtracts each other, and obtains the second packet loss value, and described second packet loss value is added up with the packet loss statistical value in front statistics, Obtain new packet loss statistical value.
Preferably, described second processing module is after obtaining the second packet loss value, belonging to described current message Timeslot number, the actual sequence value that described first memory is exported add 1 after as the reason of described second memory Think that sequential value preserves to described second memory, the actual sequence value of described current message is preserved to described first Memorizer.
Compared with prior art, the beneficial effects of the present invention is:
The present invention utilizes the actual sequence value of the message of reception and ideal sequence value to carry out the packet loss system of PTN device Meter, uses logical resource less, simple and convenient, it is possible to effectively to position PTN network packet loss.
Accompanying drawing explanation
Fig. 1 is the message format schematic diagram of the CES PWE3 encapsulation that prior art provides;
Fig. 2 is the message format schematic diagram of the CEP PWE3 encapsulation that prior art provides;
Fig. 3 is the structure chart in the unstructured CES PWE3 message ConWord territory that prior art provides;
Fig. 4 is the structure chart in the structured CES PWE3 message ConWord territory that prior art provides;
Fig. 5 is the structure chart in the CEP PWE3 message CepHeader territory that prior art provides;
Fig. 6 is the packet loss statistical method flow chart for PTN device that inventive embodiments provides;
Fig. 7 is the packet loss statistic device block diagram for PTN device that inventive embodiments provides;
The device sketch of the PTN device packet loss statistics that Fig. 8 embodiment of the present invention provides;
The Sequence comparator processor device sketch that Fig. 9 embodiment of the present invention provides;
First schematic diagram of the packet loss statistical analysis that Figure 10 embodiment of the present invention provides;
Second schematic diagram of the packet loss statistical analysis that Figure 11 embodiment of the present invention provides;
3rd schematic diagram of the packet loss statistical analysis that Figure 12 embodiment of the present invention provides;
Detailed description of the invention
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, it will be appreciated that described below Preferred embodiment be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 6 is the packet loss statistical method flow chart for PTN device that inventive embodiments provides, as shown in Figure 6, Step includes:
Step S101: utilize the message that the first memory storage of Packet Transport Network PTN device receives successively Actual sequence value, utilizes the second memory storage ideal corresponding to described actual sequence value of described PTN device Sequential value.
Step S102: by comparing the actual sequence value of current message and a upper message, it is judged that current message Actual sequence value be incremented by the most continuously.
Wherein, according to the timeslot number (such as E1 timeslot number) belonging to described current message, inquire about described first and deposit Reservoir, obtains the actual sequence value of a upper message of E1 time slot for comparing with described current message.
Step S103: the actual sequence value of current message is incremented by continuously if judging, then utilize described first storage The actual sequence value of device output and the ideal sequence value of second memory output, calculate packet loss statistical value.
Specifically, the actual sequence value first described first memory exported and the reason of second memory output Think that sequential value subtracts each other, obtain the first packet loss value, then described first packet loss value is added up with the packet loss in front statistics Value is cumulative, obtains new packet loss statistical value.
Further, after obtaining the first packet loss value, utilize according to the timeslot number (example belonging to described current message Such as E1 timeslot number), the actual sequence value of described current message is preserved to described first memory and the second storage Device.
Step S104: the actual sequence value of current message is not to be incremented by continuously if judging, then judge whether to have connected Renewing the actual sequence value at the message of predetermined number is not to be incremented by continuously, and according to judged result, calculates packet loss Statistical value.
Specifically, if judging, the actual sequence value of the message of continued presence predetermined number is not to be incremented by, then continuously The ideal sequence value of the actual sequence value exported by described first memory and second memory output is subtracted each other, and obtains Second packet loss value;Described second packet loss value is added up with the packet loss statistical value in front statistics, obtains new packet loss system Evaluation.
Further, after obtaining the second packet loss value, according to the timeslot number belonging to described current message, by institute State first memory output actual sequence value add 1 after as described second memory ideal sequence value preserve To described second memory, the actual sequence value of described current message is preserved to described first memory.
Fig. 7 is the packet loss statistic device block diagram for PTN device that inventive embodiments provides, as it is shown in fig. 7, Including: memory module 10, judge module the 20, first processing module 30 and the second processing module 40.
Memory module 10 includes that first memory and second memory, memory module 10 utilize its first memory The actual sequence value of the message that storage receives successively, utilizes its second memory to store corresponding to described actual sequence The ideal sequence value of value.
Judge module 20, for according to the timeslot number belonging to described current message, inquires about described first memory, Obtain the actual sequence value of a upper message of same time slot for comparing with described current message, and will be current The actual sequence value of message compares with the actual sequence value of a upper message, it is judged that the actual sequence of current message Train value is incremented by the most continuously.
First processing module 30, for when the actual sequence value judging current message is incremented by continuously, utilizes described The actual sequence value of first memory output and the ideal sequence value of second memory output, calculate packet loss statistics Value.Specifically, the actual sequence value and second that described first memory is exported by the first processing module 30 is deposited The ideal sequence value of reservoir output is subtracted each other, and obtains the first packet loss value, and by described first packet loss value and in front statistics Packet loss statistical value add up, obtain new packet loss statistical value.Wherein, after obtaining the first packet loss value, first The actual sequence value of described current message, according to the timeslot number belonging to described current message, is protected by processing module 30 Deposit the first memory to described memory module 10 and second memory.
Second processing module 40 is not for when the actual sequence value judging current message is to be incremented by continuously, it is judged that The actual sequence value of the message of continued presence predetermined number the most is not to be incremented by continuously, and according to judged result, Calculate packet loss statistical value.Specifically, the second processing module 40 is at the message judging continued presence predetermined number Actual sequence value be not to be incremented by continuously, then the actual sequence value described first memory exported and the second storage The ideal sequence value of device output is subtracted each other, and obtains the second packet loss value, and by described second packet loss value and in front statistics Packet loss statistical value adds up, and obtains new packet loss statistical value.Further, after obtaining the second packet loss value, press According to the timeslot number belonging to described current message, the actual sequence value that described first memory is exported add 1 after as The ideal sequence value of described second memory preserves to described second memory, by the actual sequence of described current message Train value preserves to described first memory.
Under normal circumstances, the Sequence in the ConWord territory of each PWE3 message and CepHeader territory Information (i.e. Sequence value, sequential value) is incremented by order, PWE3 detected when PTN device receives side The Sequence information of message is not sequentially (to be incremented by the most continuously), at this moment there may be a variety of feelings Condition, such as, big than previous message of the Sequence value of later message in two continuous P WE3 messages, But be not difference 1, or little than previous message of the Sequence value of later message;Three continuous print In PWE3 message, the Sequence value of second message is that exceptional value (is probably in data transmission procedure even existing number According to mistake, be not real packet loss), the Sequence value of the 3rd message than big the two of first message, It it is the relation being incremented by continuously;In the range of a period of time, Sequence value is not had to be incremented by order. Therefore, in view of the presence of multiple situation, when the Sequence value receiving PWE3 message be not sequentially time, Represent that the message received has been likely to occur packet loss or many bags or the situation of wrong bag.
The device sketch of the PTN device packet loss statistics that Fig. 8 embodiment of the present invention provides, Fig. 9 embodiment of the present invention The Sequence comparator processor device sketch provided, as shown in Figure 8 and Figure 9, including:
1. receive packet check module, the Sequence value of the message of reception can be extracted;
2.CPU configures module, it is achieved configure the attribute of the message of reception by Pwlabel;
3. first memory, the content of storage is the Sequence value of current message;
4. second memory, the content reflecting history of storage receives the message of continuous Sequence value The number of the message of Sequence value and discontinuous Sequence value;
5.Sequence comparator processor, it is achieved the output of first memory and second memory is compared, according to Comparable situation completes packet loss statistics.Specifically, it is assumed that first memory is output as Sequence1, second Memorizer is output as Sequence2, Sequence comparator processor and compares Sequence1 and Sequence2. If Sequence1 is equal to Sequence2, the difference that both obtain after subtracting each other is 0, represents sequence of message number (i.e. Sequence value) is continuous, and message is not lost, and does not adds up;If Sequence1 deducts The difference of Sequence2 is more than N (arranging N=4096 here), represents that message dropping is too much, needs to report PWE3 Message dropping alerts, and does not do packet loss statistics;Other situation, Sequence1 deducts the difference of Sequence2, Loss as current message is added up, and is stored in the 3rd memorizer, and now, Sequence comparator processor is by institute The loss statistics of the current message obtained is added with at front statistical value, obtains total message dropping statistics.
The present invention utilizes subtractor the content of first memory and the content of second memory to be subtracted each other to obtain packet loss Statistics.First memory and second memory are all stored by E1 time slot or VC time slot, and first memory is used Sequence value (i.e. actual sequence value) in the current message that storage receives.Therefore, arrive when next message When coming, read the content of first memory, so that it may obtain the Sequence value of a upper message.Second storage The content of device storage is had ready conditions restriction: first determine whether the Sequence value of current message and a upper message Whether Sequence value is relation sequentially, if relation sequentially is then by current message Sequence value stores to second memory;If not relation sequentially, then it represents that message Sequence value is discontinuous, then read the content of second memory, makees after then adding 1 by this content For preferable Sequence value, second memory of restoring (adds 1 expression and have received a message, but receive Be the message of discontinuous Sequence value), therefore the content of second memory storage reflects what history received The number of the message of message continuous print Sequence value and discontinuous Sequence value.
Often receive a new PWE3 message, first memory will be updated, simultaneously according to receiving message Sequence value determines how renewal second memory.Relatively the Sequence value of first memory output is (i.e. The Sequence value of a upper message) and the Sequence value of current message, when judging that Sequence value is even When continuing incremental, in first memory and second memory are exported by the subtractor of Sequence comparator processor Appearance is subtracted each other, and i.e. can get the packet loss statistics of PWE3 message.But can not receive the Sequence being incremented by continuously always In the case of the message of value, just can not get the packet loss statistics of message, enable therefore to start packet loss statistics, this Embodiment receive continuous N (M could be arranged to 1,2,3,4,5 ... .) the Sequence value of individual message When being all discontinuous, the content of second memory utilizes the Sequence value of m-th message to update, and exists simultaneously In this moment, the content carrying out first memory and second memory is subtracted each other.
Owing to Sequence value is by 16bit cycle accumulor, if the Sequence value of first memory storage Less than the Sequence value of second memory storage, it is understood that there may be the most several situations:
If 1. the Sequence value of first memory storage is 16 ' h0, the Sequence of second memory storage Value is 16 ' hffff, and the message number in this case lost is probably 0 or 65536 or 131072 (i.e. 65536+65536=131072) or more.
If 2. the Sequence value of first memory storage is 16 ' h3, the Sequence of second memory storage Value is 16 ' hffff, and the message number in this case lost is probably 3 or 65539 or 131075 (65539+65536=131076) more.
Therefore, directly carry out subtracting each other the packet loss statistics meeting obtained by the output valve of first memory and second memory There is a lot of probability.For statistics network packet loss more accurately, it is ensured that the uniqueness of packet loss statistics, the present invention is only Consider the Sequence value difference scope of first memory and second memory 0 to N (N could be arranged to 0~ Any one value in 65535) situation.When actually Network Packet Loss is more than N number of message, can adopt Client is notified by other means.Assuming N=4096, PTN device receives a PWE3 message every 125us, that Lose the time that 4096 messages need: 4096x125us=512ms.Therefore, arrange a 512ms time Between window, when being all not received by PWE3 message in 512ms time range, then report PWE3 message dropping to accuse Alert, at this moment packet loss statistical value is without reference to meaning.
It is embodied as step:
The first step: in the reception side entrance of PTN device, the legitimacy of the PWE3 message that detection receives, from conjunction The message of method extracts Pwlabel and Sequence, and by illegal packet loss.
Second step: CPU presses the attribute of Pwlabel configuration message.
To CES business, CPU E1 timeslot number as belonging to the CES PWE3 message that Pwlabel configuration receives; To CEP business, CPU VC timeslot number as belonging to the CEP PWE3 message that Pwlabel configuration receives.
With Pwlabel attribute of query message from CPU configures of reception message, obtain current message corresponding E1 time slot or VC time slot.
3rd step: use first memory, by the Sequence of the message that E1 time slot/VC time slot storage receives Value.
Whenever receiving a new PWE3 message, it is required for updating first memory.
4th step: often receive a new PWE3 message, reads the first storage with E1 time slot or VC time slot Device, obtains the output valve of first memory, namely goes up the Sequence value of a message.Then by first The output valve of memorizer and the current Sequence value receiving message compare, it may be judged whether be incremented by relation.As Fruit is incremented by, and by E1 time slot/VC time slot, the Sequence of current message is stored in second memory. If not incremental, the output valve of second memory added 1 and stores again.When receiving continuous N message The relation that Sequence value is not incremented by, adds 1 the output valve of first memory and is then stored into the second storage In device.
5th step: whenever receiving the message of continuous Sequence value or receive continuous N message When Sequence value is all discontinuous, read output valve Sequence1 of first memory and second memory Output valve Sequence2, both do subtraction.When Sequence1 is equal to Sequence2, represent sequence Number continuously, message is not lost;When the difference of Sequence1 and Sequence2 is more than 16 ' h0fff, no Do packet loss statistics, and report message dropping to alert, to notify client;Otherwise, by Sequence1 and Sequence2 Difference lose statistical result as current message.
First schematic diagram of the packet loss statistical analysis that Figure 10 embodiment of the present invention provides, Figure 11 embodiment of the present invention carries Second schematic diagram of the packet loss statistical analysis of confession, the 3rd of the packet loss statistical analysis that Figure 12 embodiment of the present invention provides Schematic diagram, as shown in Figure 10 to Figure 12, by receive message for CES PWE3 as a example by, further explain how utilize The Sequence value of message carries out packet loss statistics.
Assuming that optical interface type is 4xSTM-1, the CES PWE3 message attribute i.e. E1 timeslot number of reception can be by { vc4 [1:0], vc3 [1:0], vc12 [4:0] } represents.CPU configuration Pwlabel is the message attribute of 1, i.e. reports E1 time slot belonging to literary composition is { 2 ' b00,2 ' b00,5 ' b00010}.Assume that Figure 10 to Figure 12 receives message Pwlabel territory is all 1, represents and belongs to an E1 time slot 9 ' h002.
Packet loss statistical analysis schematic diagram as shown in Figure 10, the Sequence value receiving message is initially sequential like State, subsequently receives the message of a discontinuous Sequence value, receives the most again continuous Sequence value Message.
Packet loss statistical analysis schematic diagram as shown in figure 11, the Sequence value receiving message is initially sequential like State, subsequently receives the message (this Sequence value is the biggest) of a discontinuous Sequence value, connects the most again Receive the message of continuous Sequence value, and then receive the message of two equal Sequence.
Packet loss statistical analysis schematic diagram as shown in figure 12, the Sequence value receiving message is initially sequential like State, the Sequence value then receiving M (arranging M=5 here) individual message is all discontinuous, and the company of receiving The message of continuous Sequence value.
1. the Sequence value of the current message received stores in first memory, before storing, reads The Sequence of a upper message, i.e. first memory output valve Sequence1.
2. the Sequence value of current message and a upper message is compared.Pass if Sequence value is order The state increased, then be stored in second memory by the Sequence of current message, otherwise, and the Sequence of current message Do not store in second memory, but be stored to again in second memory after the content of second memory is added 1.
3. when the Sequence value of message is to be incremented by continuously or to receive M (M is set to 5) individual discontinuously During the message of Sequence value, compare the output valve of first memory and second memory.
(1) if Sequence1 is equal to Sequence2, representing that sequence of message number is continuous, message is not lost, Do not add up;
(2) if Sequence1 deducts the difference of Sequence2, more than N (arranging N=4096 here), table Show that message dropping is too many, need to report PWE3 message dropping to alert, do not do packet loss statistics.
(3) other situations, Sequence1 deducts the difference of Sequence2, and the loss as current message is united Meter, is stored in the 3rd memorizer, and E1 time slot pressed by the 3rd memorizer or VC time slot stores each message dropping statistics and adds up Result.
Figure 10 be packet loss statistical result be the situation of 1, Figure 11 be packet loss statistical result be the situation of 0, Figure 12 is for losing Bag statistical result is the situation of 6.
In sum, the present invention has following technical effect that
The present invention utilizes the Sequence information in the ConWord territory of PWE3 message and CepHeader territory with relatively Few logical resource realizes the statistics that PTN network node message is lost, convenient investigation network node, quickly positions The packet drop of PTN device.
Although above the present invention being described in detail, but the invention is not restricted to this, the art technology Personnel can carry out various amendment according to the principle of the present invention.Therefore, all amendments made according to the principle of the invention, All should be understood to fall into protection scope of the present invention.

Claims (12)

1. the packet loss statistical method for PTN device, it is characterised in that including:
The first memory utilizing Packet Transport Network PTN device stores the actual sequence value of the message received successively, Utilize the second memory storage ideal sequence value corresponding to described actual sequence value of described PTN device;
By comparing the actual sequence value of current message and a upper message, it is judged that the actual sequence value of current message It is incremented by the most continuously;
If judging, the actual sequence value of current message is incremented by continuously, then utilize the reality that described first memory exports Sequential value and the ideal sequence value of second memory output, calculate packet loss statistical value;
If judging, the actual sequence value of current message is not to be incremented by continuously, then judge whether continued presence present count The actual sequence value of the message of amount is not to be incremented by continuously, and according to judged result, calculates packet loss statistical value.
Method the most according to claim 1, it is characterised in that according to belonging to described current message time Gap number, inquires about described first memory, obtains upper of same time slot for comparing with described current message The actual sequence value of message.
Method the most according to claim 2, it is characterised in that described utilize described first memory defeated The actual sequence value gone out and the ideal sequence value of second memory output, the step calculating packet loss statistical value includes:
The ideal sequence value of the actual sequence value exported by described first memory and second memory output is subtracted each other, Obtain the first packet loss value;
Described first packet loss value is added up with the packet loss statistical value in front statistics, obtains new packet loss statistical value.
Method the most according to claim 3, it is characterised in that after obtaining the first packet loss value, press According to the timeslot number belonging to described current message, the actual sequence value of described current message is preserved and extremely described first deposits Reservoir and second memory.
Method the most according to claim 2, it is characterised in that described according to judged result, calculating is lost The step of bag statistical value includes:
If judging, the actual sequence value of the message of continued presence predetermined number is not to be incremented by, then by described first continuously The actual sequence value of memorizer output and the ideal sequence value of second memory output are subtracted each other, and obtain the second packet loss Value;
Described second packet loss value is added up with the packet loss statistical value in front statistics, obtains new packet loss statistical value.
Method the most according to claim 5, it is characterised in that after obtaining the second packet loss value, press According to the timeslot number belonging to described current message, the actual sequence value that described first memory is exported add 1 after as The ideal sequence value of described second memory preserves to described second memory, by the actual sequence of described current message Train value preserves to described first memory.
7. the packet loss statistic device for PTN device, it is characterised in that including:
Memory module, for utilizing its first memory to store the actual sequence value of the message received successively, utilizes The storage of its second memory is corresponding to the ideal sequence value of described actual sequence value;
Judge module, for by the actual sequence value comparing current message and a upper message, it is judged that currently report The actual sequence value of literary composition is incremented by the most continuously;
First processing module, for when the actual sequence value judging current message is incremented by continuously, utilizes described the The actual sequence value of one memorizer output and the ideal sequence value of second memory output, calculate packet loss statistical value;
Second processing module, for when the actual sequence value judging current message is not to be incremented by continuously, it is judged that be The actual sequence value of the message of the no predetermined number of continued presence is not to be incremented by continuously, and according to judged result, meter Calculate packet loss statistical value.
Device the most according to claim 7, it is characterised in that described judge module according to described currently Timeslot number belonging to message, inquires about described first memory, obtains for same with what described current message compared The actual sequence value of a upper message of time slot.
Device the most according to claim 8, it is characterised in that described first processing module is by described The actual sequence value of one memorizer output and the ideal sequence value of second memory output are subtracted each other, and obtain the first packet loss Value, and described first packet loss value is added up with the packet loss statistical value in front statistics, obtain new packet loss statistical value.
Device the most according to claim 9, it is characterised in that after obtaining the first packet loss value, institute State the first processing module according to the timeslot number belonging to described current message, by the actual sequence value of described current message Preserve the first memory to described memory module and second memory.
11. devices according to claim 8, it is characterised in that described second processing module is judging even Renewing the actual sequence value at the message of predetermined number is not to be incremented by continuously, then exported by described first memory The ideal sequence value of actual sequence value and second memory output is subtracted each other, and obtains the second packet loss value, and by described the Two packet loss values add up with the packet loss statistical value in front statistics, obtain new packet loss statistical value.
12. devices according to claim 11, it is characterised in that described second processing module is obtaining After second packet loss value, according to the timeslot number belonging to described current message, the reality that described first memory is exported Border sequential value preserves to described second memory, by institute as the ideal sequence value of described second memory after adding 1 The actual sequence value stating current message preserves to described first 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 true CN106330579A (en) 2017-01-11
CN106330579B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055216A (en) * 2017-11-14 2018-05-18 烽火通信科技股份有限公司 PTN chips actively carry out the method and system of packet loss measurement
CN109005081A (en) * 2018-06-26 2018-12-14 卡斯柯信号有限公司 A kind of packet loss automatic checkout system and method
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257216B (en) * 2018-09-18 2021-09-24 北京华环电子股份有限公司 Method for configuring 64K service end-to-end segment
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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020071421A1 (en) * 2000-12-12 2002-06-13 Elan Microelectronics Corporation Method and system for data loss detection and recovery in wireless communication process
US20040042465A1 (en) * 2002-09-04 2004-03-04 Lg Electronics Inc. Radio packet data transmission control system and method
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256572B (en) * 2008-03-21 2011-08-10 华为技术有限公司 Method for operating XML document as well as XDMS

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020071421A1 (en) * 2000-12-12 2002-06-13 Elan Microelectronics Corporation Method and system for data loss detection and recovery in wireless communication process
US20040042465A1 (en) * 2002-09-04 2004-03-04 Lg Electronics Inc. Radio packet data transmission control system and method
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055216A (en) * 2017-11-14 2018-05-18 烽火通信科技股份有限公司 PTN chips actively carry out the method and system of packet loss measurement
CN108055216B (en) * 2017-11-14 2020-07-28 烽火通信科技股份有限公司 Method and system for PTN chip to actively measure packet loss
CN109005081A (en) * 2018-06-26 2018-12-14 卡斯柯信号有限公司 A kind of packet loss automatic checkout system and method
CN109005081B (en) * 2018-06-26 2022-09-23 卡斯柯信号有限公司 System and method for automatically detecting packet loss
CN111026324A (en) * 2018-10-09 2020-04-17 华为技术有限公司 Updating method and device of forwarding table entry
CN111026324B (en) * 2018-10-09 2021-11-19 华为技术有限公司 Updating method and device of forwarding table entry
US11316804B2 (en) 2018-10-09 2022-04-26 Huawei Technologies Co., Ltd. Forwarding entry update method and apparatus in a memory

Also Published As

Publication number Publication date
CN106330579B (en) 2020-04-28
WO2016201866A1 (en) 2016-12-22

Similar Documents

Publication Publication Date Title
CN106330579A (en) Packet loss statistic method and apparatus for PTN equipment
US10432553B2 (en) Systems and methods for transportation of multiple constant bitrate data streams
CN101193060A (en) Method for reliable E1 transmission based on forward error correction mechanism in packet network
CN107438028B (en) Method and equipment for processing customer service
US8023505B2 (en) Circuit emulation service method and telecommunication system for implementing the method
US7876785B2 (en) Transport of aggregated client packets
CN102185780B (en) OAM message processing method and device
CN112866042B (en) Network quality detection method, device, computer equipment and computer readable medium
JP5597765B2 (en) Method, apparatus and system for transmitting SDH / SONET section overhead bytes
CN103825841B (en) A kind of Ethernet packet sorting method and device
CN106921641B (en) Method and device for transmitting message
WO2015172493A1 (en) Data processing method and apparatus and network device
CN102137008B (en) Quality of service (QoS) keeping method, device and system
CA2377093C (en) Method, equipment and system for signaling in a network including ethernet
WO2017181675A1 (en) Method, device and system for data processing in ethernet
CN101336520B (en) A method for measuring relative time delay of data service in optical transmitting network
CN101778040B (en) Method and device for realizing time division multiplex data transmission
CN102546204B (en) The transmission method of TDM circuit emulation service remote alarm information and system
US6937614B1 (en) Transparent port for high rate networking
CN111683306B (en) Multi-service hybrid access method and device
EP3972179A1 (en) Control word transmission method, apparatus, and computer readable storage medium
Cisco Multichannel STM-1 Port Adapter
JP2002176408A (en) Multi-frame multiplex transmission device
CN106571970B (en) The monitoring method and device of bearer network
CN108737911B (en) POTN service bearing method and system based on generalized optical burst switching

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