CN116137599A - Message statistics method and related equipment - Google Patents

Message statistics method and related equipment Download PDF

Info

Publication number
CN116137599A
CN116137599A CN202111371165.6A CN202111371165A CN116137599A CN 116137599 A CN116137599 A CN 116137599A CN 202111371165 A CN202111371165 A CN 202111371165A CN 116137599 A CN116137599 A CN 116137599A
Authority
CN
China
Prior art keywords
period
message
messages
sent
cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111371165.6A
Other languages
Chinese (zh)
Inventor
葛金亮
陈瑜芳
郑好棉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111371165.6A priority Critical patent/CN116137599A/en
Publication of CN116137599A publication Critical patent/CN116137599A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

Abstract

The application discloses a message statistics method and related equipment. The message statistics method comprises the following steps. The transmitting end equipment generates a plurality of messages. The header of each message includes a target field, where the target field is used to indicate a period number of a message sent by the sender device. And then, the transmitting end equipment transmits a plurality of messages to the receiving end equipment in a plurality of periods. Furthermore, the receiving end device determines the number of the messages corresponding to each period number according to the period numbers of the messages. Because each message carries the corresponding period number, the number of the messages in each period can be counted without depending on time synchronization, decoupling of packet loss detection and time synchronization is realized, and the realization cost of packet loss detection is reduced.

Description

Message statistics method and related equipment
Technical Field
The present disclosure relates to the field of communications, and in particular, to a method and related device for packet statistics.
Background
There are many kinds of operation, maintenance and administration (Operation Administration and Maintenance, OAM) techniques for ethernet traffic. The flow-by-flow detection (In-situ Flow Information Telemetry, IFIT) is a technology for directly detecting actual service flows, and the performance indexes such as the real packet loss rate, time delay and the like of the network can be obtained through measurement, so that the statistical accuracy is high.
In the current IFIT packet loss detection technology, a source node performs alternate dyeing of 0 and 1 on input service data sequentially according to a periodic sequence. After receiving the dyed message, the intermediate node counts the dyed message, reports the counted result to the network management unit, and the network management unit calculates the packet loss rate. It should be understood that the precondition for implementation of this packet loss detection technique is that the source node and the intermediate node remain time synchronized, i.e. the timestamp of the source node at the same time is the same as the timestamp of the intermediate node. However, if there is a packet loss in the service data, the time synchronization protocol packet may be lost, so that the time synchronization function is damaged, resulting in a decrease in the accuracy of packet loss detection. That is, the current IFIT packet loss detection technique relies on time synchronization, and the implementation cost is high.
Disclosure of Invention
The embodiment of the application provides a message statistics method and related equipment, which realize decoupling of packet loss detection and time synchronization and reduce the realization cost of packet loss detection.
In a first aspect, the present application provides a packet statistics method, which is performed by a receiving end device. The method comprises the following steps: the receiving end equipment receives a plurality of messages sent by the sending end equipment. Wherein, a plurality of messages are sent in a plurality of periods. The header of each message includes a target field, where the target field is used to indicate the cycle number of the message sent by the sender device. Furthermore, the receiving end device determines the number of the messages corresponding to each period number according to the period numbers of the messages.
In this embodiment, the header of each message sent by the sender device includes a target field, where the target field is used to indicate the cycle number of the message sent by the sender device. After receiving the messages, the receiving end device can extract the period number of each message, so as to count the number of the messages corresponding to each period number. Because each message carries the corresponding period number, the number of the messages in each period can be counted without depending on time synchronization, decoupling of packet loss detection and time synchronization is realized, and the realization cost of packet loss detection is reduced.
In some possible embodiments, the plurality of cycles includes a first cycle and a second cycle, the second cycle being a next cycle after the first cycle. The first message is sent in a first period and the second message is sent in a second period. The first message has a first cycle number and the second message has a second cycle number. The target field in the second message is further used to indicate a first number of first messages sent by the sender device in the first period. In this embodiment, the receiving end device may learn, according to the target field of the received packet, the number of packets actually sent by the sending end device in each period, so as to facilitate the subsequent statistics of the packet loss rate.
In some possible embodiments, the determining, by the receiving device, the number of messages corresponding to each period number according to the period numbers of the plurality of messages includes: the receiving end equipment determines a second number of the first messages in the plurality of messages according to the first period number. The method further comprises the steps of: and the receiving end equipment determines the packet loss rate of the first message according to the first number and the second number. In this embodiment, the receiving end device may count the packet loss rate of each transmission period. Therefore, the receiving end equipment does not need to report the counted number of the messages corresponding to each period number to the network management unit, and the burden of the network management unit is reduced. The application effect is ideal especially in the scene of more nodes and larger traffic.
In some possible embodiments, the target field is located in the IFIT header in the header, that is, the target field is extended based on the original IFIT header, which enhances the practicality of the present scheme.
In some possible embodiments, the transmitting end device is a source node and the receiving end device is an intermediate node or a sink node.
In a second aspect, the present application provides a packet statistics method, which is performed by a sender device. The method comprises the following steps: the transmitting end equipment generates a plurality of messages. The header of each message includes a target field, where the target field is used to indicate a period number of a message sent by the sender device. Furthermore, the transmitting end device transmits a plurality of messages to the receiving end device in a plurality of periods, so that the receiving end device determines the number of messages corresponding to each period number according to the period number of the received messages.
In some possible embodiments, the plurality of periods includes a first period and a second period, the second period is a next period after the first period, the first message is sent in the first period, the second message is sent in the second period, the first message has a first period number, the second message has a second period number, and the target field in the second message is further used to indicate a first number of the first messages sent by the sender device in the first period.
In some possible implementations, the target field is located in an IFIT header in the header.
In some possible embodiments, the transmitting end device is a source node and the receiving end device is an intermediate node or a sink node.
In a third aspect, an embodiment of the present application provides a receiving end device. The receiving end device comprises a processing unit and a receiving and transmitting unit. The receiving and transmitting unit is used for: and receiving a plurality of messages sent by the sending terminal equipment. The method comprises the steps that a plurality of messages are sent in a plurality of periods, and a header of each message comprises a target field, wherein the target field is used for indicating a period number of the message sent by a sending terminal device. The processing unit is used for: and determining the number of the messages corresponding to each period number according to the period numbers of the messages.
In some possible embodiments, the plurality of periods includes a first period and a second period, the second period is a next period after the first period, the first message is sent in the first period, the second message is sent in the second period, the first message has a first period number, the second message has a second period number, and the target field in the second message is further used to indicate a first number of the first messages sent by the sender device in the first period.
In some possible embodiments, the processing unit is specifically configured to: and determining a second number of the first message in the plurality of messages according to the first period number, and determining the packet loss rate of the first message according to the first number and the second number.
In some possible implementations, the target field is located in an IFIT header in the header.
In some possible embodiments, the transmitting end device is a source node, the receiving end device is an intermediate node, or the transmitting end device is an intermediate node, and the receiving end device is a sink node.
In a fourth aspect, an embodiment of the present application provides a transmitting end device. The transmitting end device comprises a processing unit and a receiving and transmitting unit. The processing unit is used for: generating a plurality of messages. The header of each message includes a target field, where the target field is used to indicate a period number of a message sent by the sender device. The receiving and transmitting unit is used for: and sending a plurality of messages to the receiving end equipment in a plurality of periods, so that the receiving end equipment determines the number of messages corresponding to each period number according to the period number of the received messages.
In some possible embodiments, the plurality of periods includes a first period and a second period, the second period is a next period after the first period, the first message is sent in the first period, the second message is sent in the second period, the first message has a first period number, the second message has a second period number, and the target field in the second message is further used to indicate a first number of the first messages sent by the sender device in the first period.
In some possible implementations, the target field is located in an IFIT header in the header.
In some possible embodiments, the transmitting end device is a source node, the receiving end device is an intermediate node, or the transmitting end device is an intermediate node, and the receiving end device is a sink node.
In a fifth aspect, the embodiment of the present application further provides a communication system, where the communication system includes a transmitting end device as described in any embodiment of the fourth aspect and a receiving end device as described in any embodiment of the third aspect.
In this embodiment of the present application, the header of each message sent by the sender device includes a target field, where the target field is used to indicate the period number of the message sent by the sender device. After receiving the messages, the receiving end device can extract the period number of each message, so as to count the number of the messages corresponding to each period number. Because each message carries the corresponding period number, the number of the messages in each period can be counted without depending on time synchronization, decoupling of packet loss detection and time synchronization is realized, and the realization cost of packet loss detection is reduced.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a first embodiment of a packet statistics method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a message in an embodiment of the present application;
fig. 4 is a schematic diagram of an application scenario of a statistics packet in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a possible transmitting end device in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another possible transmitting end device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a possible receiving-end device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another possible receiving-end apparatus according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a message statistics method and related equipment, which realize decoupling of packet loss detection and time synchronization and reduce the realization cost of packet loss detection. It should be noted that the terms "first" and "second" and the like in the description and claims of the present application and the above drawings are used for distinguishing between similar objects and not for limiting a particular order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein are capable of operation in sequences other than described of illustrated herein. Furthermore, the term "include" and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic structural diagram of a communication system to which an embodiment of the present application is applied. The optical transmission system as shown in fig. 1 comprises a source node 101, at least one intermediate node 102 and a sink node 103. The source node 101 encapsulates the received service data into a message and sends the message to the intermediate node 102. Each intermediate node 102 transparently passes the message to the sink node 103. Wherein, each intermediate node 102 and the destination node 103 can count the messages received by themselves. As an example, the communication system may be specifically an optical transport network (Optical transport Network, OTN), where the source node 101, the intermediate node 102 and the sink node 103 are specifically OTN devices on a customer service transmission path. For convenience of description, hereinafter, a source node is denoted by a "transmitting end device", and intermediate nodes and sink nodes are denoted by a "receiving end device".
Fig. 2 is a schematic diagram of a first embodiment of a packet statistics method in an embodiment of the present application. In this example, the message statistics method includes the following steps.
201. The transmitting end equipment generates a plurality of messages.
And the sending end equipment encapsulates the service data to be sent into a message. Wherein the message includes a header and a payload region. The payload area is used to carry traffic data. The message header includes a target field, where the target field is used to indicate a period number of a message sent by the sender device. It should be noted that, the "period number" may also be referred to as "dyeing value", but the dyeing manner of the message in this embodiment is different from the conventional manner. Specifically, the messages sent in each period have a period number uniquely corresponding to the message, that is, the dyeing values of the messages sent in different periods are different. For example, the period number of each message sent in the 1 st period is "1", the period number of each message sent in the 2 nd period is "2", the period number of each message sent in the 3 rd period is "3", and so on. It should be understood that the above-described target field includes a plurality of bits, and the present application is not limited to a specific number of bits. In addition, the design rule of the target field for different periods is not limited, and the target field of the message sent in different periods is guaranteed to be different.
In one possible implementation, the target field is located In a stream-by-stream detection (In-situ Flow Information Telemetry, IFIT) header In the header. Fig. 3 is a schematic structural diagram of a message in an embodiment of the present application. As shown in fig. 3, the header includes an IP header and an IFIT header, which in turn includes a stream instruction identification (Flow Instruction Indicator, FII), a stream instruction header (Flow Instruction Header, FIH), a stream instruction extension header (Flow Instruction Extension Header, FIEH), and a target field. The FII is used for identifying the beginning of the IFIT message head and defining the whole length of the IFIT message head, the FIH is used for uniquely identifying one service flow, the FIEH is used for defining an extension function, and the target field is used for indicating a period number. It should be understood that the structure shown in fig. 3 expands the target field based on the original IFIT header, unlike the manner of dyeing the message by the "L" bit and the "D" bit of the FIH in the conventional scheme. It should be noted that fig. 3 above only provides an example of a specific location of the target field in the message structure, and in practical application, the target field may also be located in other reserved fields in the IFIT header or other locations in the header except the IFIT header, which is not limited herein.
Optionally, the target field of the message sent in the current period may also indicate the number of messages sent in the previous period. That is, after all the messages are sent in one period, the sending end device can count the number of the messages sent in the period, and add the number of the messages to the target field of the message sent in the next period. Taking two adjacent periods as an example, period 1 and period 2 respectively, period 2 is the next period of period 1. The period number of the message transmitted in the period 1 is "1", and the period number of the message transmitted in the period 2 is "2". Assuming that the number of messages sent by the sending end device in the period 1 is 5, the target field of each message sent in the period 2 is also used to indicate that the number of messages sent in the period 1 is 5. As an example, the target field includes a subfield 1 and a subfield 2, where the subfield 1 is used to indicate a period number of a current period, and the subfield 2 is used to indicate a number of messages sent in a previous period. It should be understood that adding the number of the messages sent in the last period to the target field is mainly convenient for the receiving end device to count the packet loss rate.
202. The transmitting end equipment transmits the message to the receiving end equipment.
The sending end device sends the message to be sent to the receiving end device according to the period. It should be appreciated that if the receiving end device is an intermediate node, the intermediate node will also continue to send the received message to the next receiving end device until the message is transmitted to the sink node. It should be noted that the length of the period and the number of messages sent in each period should be based on practical application, and the present invention is not limited herein.
203. The receiving end equipment counts the number of the messages corresponding to each period number.
In this embodiment, the receiving end device will count the received messages according to the sending period, that is, the receiving end device will extract the period number of each message, and count the number of messages corresponding to each period number. It should be understood that, in practical applications, the cycle numbers of the multiple messages received by the receiving end device in the same cycle may not be the same. For example, every 10s is a sending period, if the message of each period is normal transmission, the receiving end device receives the message of which the period number is 1 in the 1 st 10s, receives the message of which the period number is 2 in the 2 nd 10s, and so on. However, the partial packet with the period number of 1 may be delayed to be sent due to transmission congestion, and then the receiving device may also receive the packet with the period number of 1 within the 2 nd 10 s. Alternatively, the receiving device may receive the packet with the period number 3 within the 2 nd 10s due to the error of time synchronization. Therefore, if the receiving end device relies on time synchronization to count the sending periods from which the received messages are sent, the statistics result may be inaccurate due to various reasons. In the application, each message carries a period number, and the receiving end device can accurately count the number of the messages received by the receiving end device in each transmission period according to the period number of the message, so that the packet loss rate of each transmission period is calculated by further combining the number of the messages actually transmitted in each transmission period. It should be noted that, on the transmission path of the message, whether it is an intermediate node or a destination node, each receiving end device counts the number of the message corresponding to each period number, so as to calculate the packet loss rate of the message transmission between any two adjacent nodes.
204. The receiving end equipment calculates the packet loss rate of each sending period.
In some possible embodiments, the target field may also indicate the number of messages sent by the sender device in the last period. Then, the receiving end device can learn the number of the messages actually sent by the sending end device in each period according to the target field. Furthermore, the receiving end device can count the packet loss rate of the messages in each sending period by combining the number of the messages corresponding to each period number actually received. For example, if the period number of the message sent by the sending end device in the period 1 is "1" and the number of messages is 5, the target field of each message sent in the period 2 is further used to indicate that the number of messages sent in the period 1 is 5. The number of messages with the period number of 1 actually counted by the receiving end equipment is 3. Then, the packet loss rate of the packet in the period 1 is 5-3/5=40%. It should be noted that, on the transmission path of the message, whether it is an intermediate node or a destination node, each receiving end device calculates the packet loss rate, so as to facilitate analysis and summarization in the later period.
In this embodiment, since the target field of each packet may also indicate the number of packets sent by the sending end device in the previous period, the receiving end device may count the packet loss rate of each sending period. Therefore, the receiving end equipment does not need to report the counted number of the messages corresponding to each period number to the network management unit, and the burden of the network management unit is reduced. The application effect is ideal especially in the scene of more nodes and larger traffic.
205. The receiving terminal device reports the packet loss rate calculated by the receiving terminal device to the network management unit.
Based on the step 204, the receiving end device may report the packet loss rate calculated by itself to the network management unit, and then the network management unit performs analysis and summarization. In practical application, the receiving end device may also count the total packet loss rate of all the sending periods and report the total packet loss rate, or count the maximum packet loss rate of all the sending periods and report the total packet loss rate of all the sending periods, or count the minimum packet loss rate of all the sending periods and report the minimum packet loss rate, which is not limited in the specific application.
The above-described message statistics method is further described below in conjunction with a specific example.
Fig. 4 is a schematic diagram of an application scenario of a statistics packet in an embodiment of the present application. As shown in fig. 4, assuming that each period is 10s long, the number of messages transmitted by the transmitting end device in each period is 3. Wherein, the light boxes represent cycle numbers, and the dark boxes represent the number of messages sent in the last cycle. Taking statistics of the previous three periods as an example, the intermediate node counts 3 messages with period number 1, 2 messages with period number 2 and 3 messages with period number 3. Therefore, the intermediate node can calculate that the packet loss rate of the period 1 is 0%, the packet loss rate of the period 2 is 33.3%, and the packet loss rate of the period 3 is 33.3%. Wherein, the total packet loss rate of the three periods is 22.2%, the maximum packet loss rate is 33.3%, and the minimum packet loss rate is 0%. The sink node counts that the number of the messages with the period number of 1 is 2, the number of the messages with the period number of 2 is 2, and the number of the messages with the period number of 3 is 1. Therefore, the intermediate node can calculate that the packet loss rate of the period 1 is 33.3%, the packet loss rate of the period 2 is 33.3%, and the packet loss rate of the period 3 is 66.6%. Wherein, the total packet loss rate of the three periods is 44.4%, the maximum packet loss rate is 66.6%, and the minimum packet loss rate is 33.3%. The intermediate node and the destination node can report the calculated packet loss rate to the network management unit respectively, and the network management unit can obtain that the total packet loss rate from the source node to the intermediate node is 22.2% and the total packet loss rate from the intermediate node to the destination node is 22.2% through analysis.
In this embodiment of the present application, the header of each message sent by the sender device includes a target field, where the target field is used to indicate the period number of the message sent by the sender device. After receiving the messages, the receiving end device can extract the period number of each message, so as to count the number of the messages corresponding to each period number. Because each message carries the corresponding period number, the number of the messages in each period can be counted without depending on time synchronization, decoupling of packet loss detection and time synchronization is realized, and the realization cost of packet loss detection is reduced.
The following describes a transmitting end device and a receiving end device provided in the embodiments of the present application.
Fig. 5 is a schematic structural diagram of a possible transmitting end device in an embodiment of the present application. As shown in fig. 5, the transmitting-end apparatus includes a processing unit 501 and a transceiving unit 502. Specifically, the processing unit 501 is configured to execute step 201 in the embodiment shown in fig. 2. The transceiver unit 502 is configured to perform step 202 in the embodiment shown in fig. 2.
Fig. 6 is a schematic structural diagram of another possible transmitting end device in an embodiment of the present application. As shown in fig. 6, the transmitting-end apparatus includes a processor 601 and a transceiver 602, and the processor 601 and the transceiver 602 are connected to each other by a line. It should be noted that, the transceiver 602 is configured to perform the operations of transmitting and receiving information by the transmitting end device in the embodiment shown in fig. 2. The processor 601 is configured to perform the operations of the transmitting device other than the information transceiving in the embodiment shown in fig. 2. In some possible embodiments, the processor 601 includes the processing unit 501 described above, and the transceiver 602 includes the transceiver unit 502 described above. Optionally, the sender device may further comprise a memory 603, wherein the memory 603 is used for storing program instructions and data.
Fig. 7 is a schematic structural diagram of a possible receiving-end device in an embodiment of the present application. As shown in fig. 7, the receiving-end apparatus includes a processing unit 701 and a transceiving unit 702. Specifically, the processing unit 701 is configured to perform the steps 203 and 204 in the embodiment shown in fig. 2. The transceiver unit 702 is configured to perform the steps 202 and 205 in the embodiment shown in fig. 2.
Fig. 8 is a schematic structural diagram of another possible receiving-end apparatus according to an embodiment of the present application. As shown in fig. 8, the receiving-end apparatus includes a processor 801 and a transceiver 802, and the processor 801 and the transceiver 802 are connected to each other by a line. It should be noted that, the transceiver 802 is configured to perform the operations of receiving and transmitting information by the receiving end device in the embodiment shown in fig. 2. The processor 801 is configured to perform other operations of the receiving device in addition to the information transceiving in the embodiment shown in fig. 2 described above. In some possible embodiments, the processor 801 includes the processing unit 701 described above, and the transceiver 802 includes the transceiver unit 702 described above. Optionally, the receiving end device may further comprise a memory 803, wherein the memory 803 is used for storing program instructions and data.
It should be noted that the processors shown in fig. 6 and fig. 8 may be general-purpose central processing units (Central Processing Unit, CPU), microprocessors, application specific integrated circuits ASICs, or at least one integrated circuit for executing related programs to implement the technical solutions provided in the embodiments of the present application. The memory shown in fig. 6 and 8 described above may store an operating system and other application programs. When the technical solution provided in the embodiments of the present application is implemented by software or firmware, program codes for implementing the technical solution provided in the embodiments of the present application are stored in a memory and executed by a processor. In one embodiment, the processor may include memory within. In another embodiment, the processor and the memory are two separate structures.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing the relevant hardware, where the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a random access memory, etc. Specifically, for example: the processing unit or processor may be a central processing unit, a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
When implemented in software, the method steps described in the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.

Claims (19)

1. A method for message statistics, comprising:
the method comprises the steps that a receiving end device receives a plurality of messages sent by a sending end device, wherein the messages are sent in a plurality of periods, and the header of each message comprises a target field which is used for indicating the period number of the messages sent by the sending end device;
and the receiving terminal equipment determines the number of the messages corresponding to each period number according to the period numbers of the messages.
2. The method of claim 1, wherein the plurality of cycles includes a first cycle and a second cycle, the second cycle being a next cycle after the first cycle, a first message being sent in the first cycle, a second message being sent in the second cycle, the first message having a first cycle number, the second message having a second cycle number, a destination field in the second message further being used to indicate a first number of first messages sent by the sender device in the first cycle.
3. The method of claim 2, wherein the determining, by the receiving device, the number of messages corresponding to each cycle number according to the cycle numbers of the plurality of messages includes:
the receiving terminal equipment determines a second number of first messages in the plurality of messages according to the first period number;
the method further comprises the steps of:
and the receiving end equipment determines the packet loss rate of the first message according to the first quantity and the second quantity.
4. A method according to any one of claims 1 to 3, wherein the target field is located in a stream-by-stream detection IFIT header in the header.
5. The method according to any one of claims 1 to 4, wherein the sender device is a source node and the receiver device is an intermediate node or a sink node.
6. A method for message statistics, comprising:
the method comprises the steps that a sending end device generates a plurality of messages, and the header of each message comprises a target field, wherein the target field is used for indicating a period number of the message sent by the sending end device;
the sending end equipment sends the messages to the receiving end equipment in a plurality of periods, so that the receiving end equipment determines the number of the messages corresponding to each period number according to the period number of the received messages.
7. The method of claim 6, wherein the plurality of cycles includes a first cycle and a second cycle, the second cycle being a next cycle after the first cycle, a first message being sent in the first cycle, a second message being sent in the second cycle, the first message having a first cycle number, the second message having a second cycle number, a destination field in the second message further being used to indicate a first number of first messages sent by the sender device in the first cycle.
8. The method according to claim 6 or 7, wherein the target field is located in a stream-by-stream detection IFIT header in the header.
9. The method according to any of claims 6 to 8, wherein the sender device is a source node and the receiver device is an intermediate node or a sink node.
10. A receiving-end apparatus, characterized by comprising: a processing unit and a receiving and transmitting unit;
the receiving and transmitting unit is used for: receiving a plurality of messages sent by a sending terminal device, wherein the messages are sent in a plurality of periods, and the header of each message comprises a target field, wherein the target field is used for indicating the period number of the message sent by the sending terminal device;
the processing unit is used for: and determining the number of the messages corresponding to each period number according to the period numbers of the messages.
11. The receiver device of claim 10, wherein the plurality of periods includes a first period and a second period, the second period being a next period after the first period, a first message being sent in the first period, a second message being sent in the second period, the first message having a first period number, the second message having a second period number, a destination field in the second message further being used to indicate a first number of first messages sent by the transmitter device in the first period.
12. The receiving end device according to claim 11, wherein the processing unit is specifically configured to:
determining a second number of first messages in the plurality of messages according to the first period number;
and determining the packet loss rate of the first message according to the first number and the second number.
13. The receiver device of any of claims 10-12, wherein the target field is located in a stream-by-stream detection IFIT header in the header.
14. The receiving end device according to any one of claims 10 to 13, wherein the transmitting end device is a source node, the receiving end device is an intermediate node, or the transmitting end device is an intermediate node, and the receiving end device is a sink node.
15. A transmitting-end apparatus, characterized by comprising: a processing unit and a receiving and transmitting unit;
the processing unit is used for: generating a plurality of messages, wherein the header of each message comprises a target field, and the target field is used for indicating the period number of the message sent by the sending terminal equipment;
the receiving and transmitting unit is used for: and sending the messages to the receiving end equipment in a plurality of periods, so that the receiving end equipment determines the number of messages corresponding to each period number according to the period number of the received messages.
16. The transmitting device of claim 15, wherein the plurality of periods includes a first period and a second period, the second period being a next period after the first period, a first message being sent in the first period, a second message being sent in the second period, the first message having a first period number, the second message having a second period number, a destination field in the second message further being used to indicate a first number of first messages sent by the transmitting device in the first period.
17. The transmitting device of claim 15 or 16, wherein the target field is located in a stream-by-stream detection IFIT header in the header.
18. The transmitting device according to any one of claims 15 to 17, wherein the transmitting device is a source node, the receiving device is an intermediate node, or the transmitting device is an intermediate node, and the receiving device is a sink node.
19. A communication system comprising a transmitting end device according to any one of claims 15 to 18 and a receiving end device according to any one of claims 10 to 14.
CN202111371165.6A 2021-11-18 2021-11-18 Message statistics method and related equipment Pending CN116137599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111371165.6A CN116137599A (en) 2021-11-18 2021-11-18 Message statistics method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111371165.6A CN116137599A (en) 2021-11-18 2021-11-18 Message statistics method and related equipment

Publications (1)

Publication Number Publication Date
CN116137599A true CN116137599A (en) 2023-05-19

Family

ID=86333240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111371165.6A Pending CN116137599A (en) 2021-11-18 2021-11-18 Message statistics method and related equipment

Country Status (1)

Country Link
CN (1) CN116137599A (en)

Similar Documents

Publication Publication Date Title
CN107508719B (en) Method and device for measuring network time delay and network node
CN100583784C (en) Method for monitoring frame loss rate in multi protocol label exchange network
CN102783089B (en) Method for estimating the available bandwidth of subpath
CN105072629B (en) Method, equipment and the system of the quality of the business run in measuring terminals
EP3817298A1 (en) Data message detection method, device and system
US8130752B2 (en) Real-time network measurement
US10616088B2 (en) Apparatus and method for measurements at intermediate nodes in end-to-end performance test
US8923142B2 (en) Passive monitoring of network performance
JP2013516807A (en) Packet loss detection method and apparatus, and router
CN113328902B (en) Network performance detection method and device and network equipment
CN110971331B (en) Hop-by-hop time delay measurement method and system
US8165011B2 (en) Real-time network measurement
CN108777646A (en) Flux monitoring method and device
CN112398557B (en) Time delay statistical method, device, storage medium and system
US9331927B2 (en) Communication system, communication device, and communication method
CN103416022A (en) In-service throughput testing in distributed router/switch architectures
CN100550786C (en) In data network operation and maintenance agreement to the method for performance monitoring of frame transmission
US10181994B2 (en) Probing a network
US11121938B2 (en) Performance measurement in a packet-switched communication network
CN116137599A (en) Message statistics method and related equipment
CN113708985B (en) Flow detection method, device and system
CN112769631B (en) Method for measuring data transmission quality, forwarding device and readable storage medium
WO2020259113A1 (en) Network performance measurement device and method
CN106961344B (en) Network fault detection method and device
JP4938042B2 (en) Flow information transmitting apparatus, intermediate apparatus, flow information transmitting method and program

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