Method and system for enabling round trip packet loss measurements in a packet switched communication network
By exchanging packets with packet loss fields between two nodes of the packet switching communication network and counting them, the problem of inaccurate round-trip packet loss measurement is solved and accurate measurement of packet loss in directions with different packet rates is achieved. , improving the reliability of communication network performance evaluation.
Patent Information
- Application Number
- CN202080011181.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-29
- Filing Date
- 2020-01-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-01-27
AI Technical Summary
The existing technology cannot accurately measure round-trip packet loss in a packet-switched communication network, especially when the packet rates in the two opposite propagation directions are different, resulting in inaccurate measurement results.
Accurate round-trip packet loss is achieved by exchanging packets containing a packet loss field between two nodes of the communication network, setting the packet loss field to an idle value or at least a measured value, and counting the corresponding number of packets in each direction. Measurement.
This method can accurately measure the round-trip packet loss taking into account the different packet rates in the two directions, provide more accurate communication network performance indicators, and improve the reliability and accuracy of the measurement.
Smart Images

Figure CN113508557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication networks. In particular, the present invention relates to a method for enabling round trip packet loss measurement in a packet switched communication network and a packet switched network configured to implement such a method. Background Art
[0002] In a packet-switched communication network, a flow of packets is sent from a source node to a destination node via possible intermediate nodes. Exemplary packet-switched networks are IP (Internet Protocol) networks, Ethernet networks and MPLS (Multi-Protocol Label Switching) networks.
[0003] Packets do not always arrive at their destination nodes, i.e., they may be lost during transmission through the network. Packets are lost for different reasons. For example, a node or link may fail, or packets may be dropped by a node due to congestion at its port. Furthermore, packets may be dropped by nodes because they contain bit errors.
[0004] When providing communication services (particularly, real-time voice or data services such as calls, conference calls, video conferences, etc.) by means of a packet-switched network, performance measurements in terms of packet loss, one-way delay and / or jitter on the packet flows carrying the service provide an indication of the quality of service (QoS) perceived by the end-users of the service. In addition, packet loss and high delay / jitter may require retransmissions, thus reducing the efficiency of the communication network. Measuring packet loss of packet flows in a communication network is therefore of particular interest to network operators.
[0005] WO 2010 / 072251 in the name of the same applicant discloses a method for measuring packet loss on a packet stream using an alternating marking technique, whereby the packet stream to be measured is divided into packet blocks including a first marking value (e.g., a dedicated marking bit in their header is set to "1") and packet blocks including a second marking value (e.g., a dedicated marking bit in their header is set to "0"). The marking values are periodically switched so that the packet blocks with the first marking value alternate with the packet blocks with the second marking value. Two measurement points are provided on the path of the marked packets. Each measurement point implements a pair of counters that count the number of packets with the first marking value and the second marking value, respectively. The counter values are used to calculate the packet loss between the two measurement points.
[0006] As known, QUIC (Quick UDP Internet Connections) is a transport layer (layer 4) network protocol designed to support multiplexed connections between two endpoints over the User Datagram Protocol (UDP). To manage receive sequence errors, the QUIC header includes a packet number field, where each packet is written with the packet number when it is sent.
[0007] B. Trammel et al., Internet Draft "The addition of a Spin Bit to the QUIC Transport Protocol draft-trammel-quic-spin-01", December 13, 2017, describes the addition of a so-called "delay spin bit" (or simply "spin bit") in the QUIC header, which allows RTT (round trip time) measurement on two counter-propagating packet streams exchanged between two nodes. According to the Internet Draft, two nodes (also referred to as "client" and "server") initially send their respective packets with the value of their spin bits set to 0. The client starts the RTT measurement by setting its spin bit to 1. This change in the spin position can be seen as an edge in the spin bit signal sent from the client to the server. When the server receives such an edge, it changes the value of its own spin bit from 0 to 1. In this way, the server essentially reflects the edge of the spin bit signal back to the client. When the client receives the reflected edge of the spin bit signal from the server, it switches the value of its spin bit back to 0. This can be seen as another edge in the Spin Bit signal sent from the client to the server, which is received at the server and reflected back to the client as described above. The approximate RTT can then be measured as the duration of the Spin Bit period (i.e., the time elapsed between the passage of two consecutive edges of the Spin Bit signal in the same direction (e.g., from the client to the server) at any intermediate measurement point placed between the client and the server. Summary of the invention
[0008] Applicants have recognised a need to provide methods for enabling packet loss measurement in packet-switched communications networks - while the above-described spin bit technique allows measurement of approximate RTT - allowing any intermediate measurement point placed between two nodes (e.g., a client and a server, in QUIC terminology) to measure an approximate "round trip packet loss" between the two nodes, where the expression "round trip packet loss" indicates a measurement of the number of packets lost in two counter-propagating streams exchanged between the two nodes.
[0009] The Applicant has noticed that such round trip packet loss cannot be measured as the sum of the unidirectional packet losses affecting two counter-propagating flows and measured, for example, according to the above mentioned WO 2010 / 072251.
[0010] First, in practice, each measurement of unidirectional packet loss will require two measurement points.
[0011] Furthermore, the applicant has noted that summing only the unidirectional packet losses does not take into account the fact that, typically, the two counter-propagation directions of a link (e.g., upstream and downstream) exhibit very different packet rates, e.g., 1:10. Thus, during a marking period, unidirectional packet losses may be measured on different numbers of packets in the two directions, and thus, the same number of lost packets may have very different weights in the two directions.
[0012] For example, if 1 packet out of 100 packets sent is lost in one direction (e.g., downstream) during a marking period, and 1 packet out of 10 packets sent is lost in the other direction (e.g., upstream) during the same marking period, then the sum of the unidirectional packet losses alone will be 2, which, averaged over the total number of packets sent 100+10, will provide a round-trip packet loss rate of 2 / 110.
[0013] As another example, if 2 packets out of 100 sent packets are lost in the downstream direction, and no packets out of 10 sent packets are lost in the upstream direction, then the sum of the one-way packet losses alone will again be 2. The round-trip packet loss ratio will then again be 2 / 110, despite the fact that - unlike the previous case - the lost packets are now all concentrated in the downstream direction with a higher packet rate, so the loss weight is reduced.
[0014] In view of the above, the Applicant has solved the problem of providing a method for enabling packet loss measurement in a packet switched communication network which allows any intermediate measurement point placed between two nodes to measure the round trip packet loss taking into account the fact that the packet rates in the two directions may be different.
[0015] In the following description and in the claims, the expression "enabling performance measurements in a packet-switched communication network" will specify the operation of marking and / or conditioning packets exchanged between two nodes of a packet-switched communication network in such a way that packet loss measurements can be made (possibly at intermediate nodes).
[0016] Applicants have recognised that in order to provide an accurate measure of round trip packet loss that properly accounts for the different packet rates in the two counter-propagation directions, the measurement should be performed on the same number of packets in both directions.
[0017] For example, if 1 packet out of 100 sent packets is lost in one direction (e.g., downstream) during a certain marking period, and 1 packet out of 10 sent packets is lost in the other direction (e.g., upstream) during the same marking period, then the measurement in the downstream direction will be performed only on 10 packets out of the 100 sent packets. If the packets under consideration include the lost one (the less likely case), the downstream packet loss will again be 1, which provides a round-trip packet loss ratio of 2 / 20. Otherwise (the more likely case), the downstream packet loss is 0, which provides a round-trip packet loss ratio of 1 / 20. By repeating such downstream measurements several times, an average downstream packet loss of 0.1 will be found, which will provide an average round-trip packet loss ratio of 1.1 / 20.
[0018] If, on the contrary, 2 packets out of 100 sent packets are lost in the downstream direction, and none of the 10 sent packets are lost in the upstream direction, the measurement in the downstream direction is performed only on 10 packets out of 100 sent packets, and in the case where the packets under consideration include the lost packets (the less likely case), the downstream packet loss will again be 2, with a round-trip packet loss rate of 2 / 20. Otherwise (the more likely case), the downstream packet loss is 0, which provides a round-trip packet loss rate of 0. By repeating such downstream measurements several times, an average downstream packet loss of 0.2 will be found, which will provide an average round-trip packet loss rate of 0.2 / 20. It can be appreciated that this value is lower than the value obtained in the previous case (1.1 / 20), because it takes into account the fact that the lost packets are now all concentrated in the direction with the higher packet rate (downstream), making their weight lower than in the previous case where the lost packets were equally distributed in both directions.
[0019] Such a numerical example clearly shows that if unidirectional packet loss is measured on the same number of sent packets, the different packet rates in the two directions are properly accounted for so that the number of lost packets in each direction has a 50% weight in the final value of the round-trip packet loss rate.
[0020] According to an embodiment of the present invention, the above problem is solved by the following method, in which a first node and a second node of a communication network exchange packets including a packet loss field, which can be set to either an idle value or at least one measurement value. The first node sends a first packet with its packet loss field set to the at least one measurement value to the second node. After receiving each packet in the first packet from the first node, the second node sends a corresponding second packet including the at least one measurement value to the first node. After receiving each packet in the second packet from the second node, the first node sends a corresponding third packet including the at least one measurement value to the second node.
[0021] The measurement point may then count the number of first packets and the number of third packets sent from the first node to the second node, based on which a round trip packet loss measurement may then be performed. It should be noted that the measurement point may be implemented and operated by an entity other than an entity that manages the setting of the packet loss field of packets at the first node and the second node of the communication network.
[0022] Thus, advantageously, because the first packet and the third packet on which the measurement is performed are sent in the same direction (i.e., from the first node to the second node), the round-trip packet loss can be measured by a single measurement point located between the first node and the second node and configured to detect packets in that direction.
[0023] Furthermore, because the third packet is obtained by double reflection of the first packet (at the second node and then at the first node), the measurement of round-trip packet loss is advantageously performed on the same number of packets (lacking lost packets) sent in both directions between the first node and the second node, independent of the packet rates in the two directions. Thus, as discussed above, the measurement is accurate even when the two directions exhibit different packet rates.
[0024] According to a first aspect, the invention provides a method for enabling round trip packet loss measurement in a packet switched communication network, the method comprising exchanging packets comprising a packet loss field between a first node and a second node of the communication network, wherein the packet loss field is settable to either an idle value or at least one measured value, the exchanging comprising:
[0025] a) the first node sends a first packet to a second node, the first packet having a packet loss field set to the at least one measurement value;
[0026] b) after receiving each of the first packets from the first node, the second node sending a corresponding second packet to the first node, the second packet having a packet loss field set to the at least one measurement value; and
[0027] c) after receiving each of the second packets from the second node, the first node sends a corresponding third packet to the second node, the third packet having a packet loss field set to the at least one measurement value.
[0028] Preferably, step a) comprises, upon receipt of a packet from the second node, setting a packet loss field of a packet to be sent to the second node equal to said at least one measurement value.
[0029] Preferably, step a) is terminated when the first node receives the first packet of the second packets from the second node.
[0030] According to a first embodiment, the Packet Loss field may be set to either an idle value or a measured value.
[0031] According to the first embodiment, the first node performs at least one of the following:
[0032] - a first pause at the end of step a) before starting step c); and
[0033] - a second pause at the end of step c) before repeating step a), the first pause and the second pause comprising forcing the packet loss field of each packet to be sent to the second node to an idle value.
[0034] According to a first variant of the first embodiment, at least one of step a) and step c) comprises ignoring packets received at the first node from the second node after a time gap has elapsed since the start of step a) and step c), respectively.
[0035] According to a second variation of the first embodiment, the first node performs at least one of the following:
[0036] - a further pause since the second node received the last of the second packets before starting step c); and
[0037] - a further pause from the reception of the last packet of a fourth packet (Pk') having the Packet Loss field set to the measured value and sent by the second node after the reception of the third packet, before repeating step a),
[0038] The another pause and the further pause comprise forcing a packet loss field of each packet to be sent to the second node to an idle value.
[0039] According to a second embodiment, the Packet Loss field may be set to either an idle value or any one of at least two different and ordered measured values.
[0040] According to the second embodiment:
[0041] - step a) comprises setting the packet loss field of packets to be sent to the second node to the measured value MV(k) when a packet whose packet loss field is either equal to the idle value or to the previous measured value MV(k-1) is received from the second node;
[0042] - step b) comprises, after receiving from the first node each of the first packets having a packet loss field equal to the measured value MV(k), sending to the first node a corresponding second packet having a packet loss field set to the measured value MV(k); and
[0043] - Step c) comprises, after receiving from the second node each of the second packets having a packet loss field equal to the measured value MV(k), sending to the second node a corresponding third packet having a packet loss field set to the measured value MV(k+1).
[0044] According to a second aspect, the present invention provides a method for performing round trip packet loss measurements in a packet switched communication network, the method comprising the steps of the method as described above and the following steps:
[0045] d) At a measurement point, the number of first packets is counted, and the number of third packets is counted, the round trip packet loss measurement being based on the number of first packets and the number of third packets.
[0046] Optionally, the method further comprises providing a round trip time measurement between the first node and the second node as a difference between detection times T1 and T2 of a first detected packet in the first packets and a last detected packet in the first packets.
[0047] According to a third aspect, the invention provides a method for exchanging packets between a first node and a second node of a packet switched communication network comprising a packet loss field, the packet loss field being settable to either an idle value or at least one measured value, the method comprising:
[0048] a) the first node sends a first packet having a packet loss field set to the at least one measurement value to a second node;
[0049] b) after receiving each of the first packets from the first node, the second node sending a corresponding second packet to the first node, the second packet having a packet loss field set to the at least one measurement value; and
[0050] c) after receiving each of the second packets from the second node, the first node sends a corresponding third packet to the second node, the third packet having the packet loss field set to the at least one measurement value.
[0051] According to a fourth aspect, the present invention provides a packet switched communication network comprising a first node and a second node configured to exchange packets comprising a packet loss field, wherein the packet loss field is settable to either an idle value or at least one measured value, wherein:
[0052] - the first node is configured to send a first packet to the second node, the first packet having a packet loss field set to the at least one measurement value;
[0053] - the second node is configured to, after receiving each of the first packets from the first node, send to the first node a corresponding second packet, the second packet having a packet loss field set to the at least one measurement value; and
[0054] - the first node is further configured to, after receiving each of the second packets from the second node, send a corresponding third packet to the second node, the third packet having the packet loss field set to the at least one measurement value.
[0055] Preferably, the packet-switched communication network further comprises at least one measurement point configured to count the number of first packets and the number of third packets, the round trip packet loss measurement being based on the number of first packets and the number of third packets. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The invention will become more apparent from the following detailed description, given by way of example and not limitation, with reference to the accompanying drawings, in which:
[0057] - Figure 1 schematically illustrates a packet switched communication network in which an embodiment according to the present invention is implemented for enabling round trip packet loss measurement;
[0058] - Figure 2 Schematically illustrating an embodiment of the present invention Figure 1 The structure of packets exchanged in a communication network;
[0059] - Figure 3 According to the first embodiment of the present invention Figure 1 A flowchart of the operation of a first node and a second node of a communication network;
[0060] - Figure 4 Schematically showing the Figure 3 A flowchart of an operation of a first node and a second node exchanging packets;
[0061] - Figure 5 According to the second embodiment of the present invention Figure 1 A flowchart of the operation of a first node and a second node of a communication network;
[0062] - Figure 6 Schematically showing the Figure 5 A flowchart of an operation of a first node and a second node exchanging packets;
[0063] - Figure 7 According to the third embodiment of the present invention Figure 1 A flowchart of the operation of a first node and a second node of a communication network; and
[0064] - Figure 8 Schematically showing the Figure 7 Flowchart of the operation of a first node and a second node exchanging packets. DETAILED DESCRIPTION
[0065] Figure 1 A packet-switched communication network 100 configured to enable round-trip packet loss measurements according to an embodiment of the invention is schematically illustrated.
[0066] The communication network 100 includes a plurality of nodes interconnected with each other by physical links according to any known topology, including Figure 1 Two nodes 1 and 2 are shown. Nodes 1 and 2 may be connected via a single physical link, or via a series of several physical links and intermediate nodes (not shown in the figure). Communication network 100 may be, for example, an IP network.
[0067] like Figure 1 , node 1 is configured to send packets Pk to node 2, while node 2 is configured to send packets Pk' to node 1. Packets Pk may belong to the same packet flow (i.e., they may all have the same source address and the same destination address), or to different packet flows whose paths overlap between node 1 and node 2. Similarly, packets Pk' may belong to the same packet flow, or to different packet flows whose paths overlap between node 2 and node 1.
[0068] The packets Pk, Pk' are formatted according to a certain network protocol. As a non-limiting example, the network protocol may be the QUIC protocol mentioned above.
[0069] like Figure 2 As schematically depicted in FIG. 1 , each packet Pk, Pk' comprises a payload PL and a header H. The payload PL comprises user data. The header H of each packet Pk, Pk' is formatted according to a network protocol supported by the network 100 and comprises packet forwarding information ( Figure 2 ), ie information that allows the nodes of the network 100 to properly process the packets Pk, Pk′ so that they reach their destination node.
[0070] According to an embodiment of the present invention, the header H of each packet Pk, Pk' preferably also includes a packet loss field PLF. The packet loss field PLF includes one or more bits. The packet loss field PLF can be set to any one of the following:
[0071] - an idle value (e.g., "0" in the case of a one-bit packet loss field, or "00" in the case of a two-bit packet loss field); and
[0072] - At least one measurement value (eg, "1" in the case of a one-bit packet loss field, "01", "11" and "10" in the case of a two-bit packet loss field).
[0073] Now refer to Figure 3 , describing in detail the operations of nodes 1 and 2 according to an embodiment of the present invention.
[0074] Preferably, node 1 usually sends a packet Pk whose packet loss field PLF is set to an idle value to node 2 (step 300).
[0075] Preferably, when node 1 determines that a round-trip measurement should be started (step 301), it preferably performs a generation step (step 302), which includes switching the value of the packet loss field PLF applicable to the packet Pk to be sent from an idle value to a measurement value (hereinafter, it is assumed that nodes 1 and 2 use a single measurement value, for example, "1").
[0076] Therefore, in the generating step 302, node 1 starts to send packets Pk whose packet loss field PLF is set to the measured value to node 2. Node 1 preferably continues to send packets Pk whose packet loss field PLF is set to the measured value until a predefined condition occurs. The predefined condition may be, for example:
[0077] (i) the number of packets Pk sent with the packet loss field PLF set to a measured value has reached a certain value Nb; or
[0078] (ii) The time Tb has expired since the first packet whose packet loss field PLF is set to the measured value was sent.
[0079] After said predefined condition occurs, the node 1 determines the occurrence step 302 by again switching the value of the packet loss field PLF applicable to the packet Pk to be sent from the measured value to the idle value.
[0080] Thus, during the generation step 302, node 1 essentially sends to node 2 a block B1 of packets Pk whose packet loss field PLF is set to the measured value. Block B1 comprises N1 packets, where N1 is fixed and equal to Nb if condition (i) above applies, and is variable and depends on Tb and the packet rate in the direction from node 1 to node 2 if condition (ii) above applies.
[0081] In any case, in this first embodiment, it is assumed that the duration of block B1 (ie, the difference between the transmission times of the last packet Pk and the first packet Pk of block B1) is lower than the RTT between node 1 and node 2.
[0082] When the node 2 receives the block B1 of packets Pk generated during the generation step 302, it preferably reflects it back to the node 1 (step 303). Reflecting a block of packets means in this context sending a block of packets including packets that the node needs to send toward the opposite node in a direction opposite to the direction in which the block of packets was received, but each packet has a value of a packet loss field PLF set in a functional relationship to the value of a packet loss field PLF included in a corresponding packet Pk received from the opposite node.
[0083] Specifically, the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packet Pk received from the node 1 toward the node 1. Therefore, when the node 2 receives the packet Pk whose packet loss field PLF is set to the idle value from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the idle value. Similarly, when the node 2 receives the packet Pk whose packet loss field PLF is set to the measured value from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the measured value.
[0084] Therefore, in the reflection step 303, when the node 2 receives the block B1 of packets Pk whose packet loss field PLF is set to the measured value, it basically sends back to the node 1 a block B2 of packets Pk' whose packet loss field PLF is set to the measured value. If no packet loss occurs, the block B2 includes the same number N2=N1 of packets Pk' as the block B1. On the contrary, if packet loss occurs, the number N2 of packets Pk' included in the block B2 is lower than N1.
[0085] Since it has been assumed that the duration of block B1 is lower than the RTT between node 1 and node 2, when node 1 receives the first packet Pk' of block B2, the generation step 302 is completed.
[0086] When node 1 receives block B2 of block Pk' generated during reflection step 303, it preferably reflects it back to node 2 again (step 304). The operation of node 1 during reflection step 304 is similar to that of node 2, i.e., node 1 reflects the value of packet loss field PLF included in packet Pk' received from node 2 toward node 2. Therefore, in reflection step 304, when node 1 receives block B2 of packet Pk' whose packet loss field PLF is set to the measured value, it basically sends block B2 of packet Pk whose packet loss field PLF is set to the measured value to node 2. If no packet loss occurs, block B3 includes the same number N3=N2 of packets Pk as block B2. Conversely, if packet loss occurs, the number N3 of packets Pk in block B3 is lower than N2.
[0087] When the node 2 receives the block B3 of packets Pk generated during the reflection step 304, it preferably reflects it back to the node 1 again (step 305). Specifically, since the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packets Pk received from the node 1 toward the node 1, in the reflection step 305, when the node 2 receives the block B3 of packets Pk whose packet loss field PLF is set to the measured value, it basically sends the block B4 of packets Pk' whose packet loss field PLF is set to the measured value to the node 1. If no packet loss occurs, the block B4 includes the same number N4=N3 of packets Pk' as the block B3. On the contrary, if packet loss occurs, the number N4 of packets Pk' in the block B4 is lower than N3.
[0088] After receiving block B4 with packet Pk' whose packet loss field PLF is set to the measured value, node 1 determines whether the round-trip packet loss measurement should be terminated (step 306).
[0089] In the affirmative, node 1 preferably returns to step 300, ie it continues to send packets Pk to node 2 whose packet loss field PLF is set to an idle value.
[0090] In the negative case, node 1 preferably returns to generation step 302, thereby sending to node 2 a new block B1 of packets Pk whose packet loss field PLF is set to the measured value, which block B1 will then pass through the above-mentioned reflection steps 303, 304 and 305.
[0091] Therefore, for each iteration of steps 301-305 performed between the start and end of the measurement session, node 1 and node 2 preferably exchange four blocks B1, B2, B3, B4 of packets whose packet loss field PLF is set to the measured value. If no packet loss occurs, blocks B1, B2, B3, B4 include the same number of packets.
[0092] To perform a round-trip packet loss measurement between node 1 and node 2, Figure 1 As schematically depicted in FIG. 1 , a measurement point 10 may be provided at an intermediate position between node 1 and node 2. This is not restrictive. The measurement point 10 may be provided either in an intermediate position between node 1 and node 2 or at node 1 or 2.
[0093] Assume, for example, that the measurement point 10 is configured to detect packets Pk sent in the direction from node 1 to node 2, such as Figure 4As schematically depicted in FIG, the measurement point 10 preferably counts the number N1 of packets Pk included in block B1 generated by node 1 and the number N3 of packets Pk included in block B3 caused by double reflections of block B1. The round-trip packet loss between node 1 and node 2 can then be calculated as the difference N1-N3. The calculation can be repeated for each pair of blocks B1-B3, thereby providing periodic monitoring of the round-trip packet loss.
[0094] If instead the measuring point 10 is configured to detect packets Pk' sent in the opposite direction from node 2 to node 1, then Figure 4 , the measuring point 10 preferably counts the number N2 of packets Pk' comprised in block B2 and the number N4 of packets Pk' comprised in block B4 resulting from the double reflection of block B2 at node 2. The round trip packet loss between node 1 and node 2 can then be calculated in this case as the difference N2 - N4. The calculation can be repeated for each pair of blocks B2-B4, thereby providing periodic monitoring of the round trip packet loss.
[0095] In both cases, the packet loss measure obtained is a "round trip" in that it does not provide any indication about the distribution of lost packets between the two directions.
[0096] However, because each chunk B3 of packet Pk is obtained by double reflection of the corresponding chunk B1 of packet Pk (at node 2 and then at node 1) (and, similarly, in the opposite direction, each chunk B4 of packet Pk' is obtained by double reflection of the corresponding chunk B2 of packet Pk' (at node 1 and then at node 2)), the measurement of round-trip packet loss is advantageously performed on the same number of packets sent in both directions between nodes 1 and 2, independent of the packet rates in the two directions. Thus, as discussed above, the measurement is accurate even when the two directions exhibit different packet rates.
[0097] Applicants have noticed that, due to the very different packet rates in the two directions, reflections at nodes sending at the lower packet rate may take too long. For example, if the packet rate from node 2 to node 1 is 1 / 10 of the packet rate from node 1 to node 2, too much time may elapse before node 2 sends N2=N1 packets Pk' whose packet loss field PLF is set to the measured value. This is undesirable, since measurement periods of the order of tens or hundreds of milliseconds are typically desired in order to monitor round-trip packet loss.
[0098] Furthermore, it must be ensured that the measuring point 10 is able to properly distinguish packets Pk or Pk' sent in the same direction and belonging to different blocks B1, B3 or B2, B4. Otherwise, the measuring point 10 cannot count the number of packets N1, N3 or N2, N4 belonging to two blocks in a proper manner and thus cannot provide a correct value for the round-trip packet loss.
[0099] Figure 5 is a flowchart illustrating operations of node 1 and node 2 according to another embodiment of the present invention.
[0100] According to such an embodiment, nodes 1 and 2 preferably use a single measured value for the packet loss field PLF of exchanged packets Pk and Pk'.Therefore, the packet loss field PLF may be a one-bit field that may be set to either an idle value "0" or a measured value "1".
[0101] Preferably, node 1 usually sends a packet Pk whose packet loss field PLF is set to an idle value to node 2 (step 500).
[0102] Preferably, when node 1 determines that a round trip measurement should be started (step 501), it performs a generation step 502 comprising setting the packet loss field PLF of a packet Pk to be sent equal to the measurement value each time a packet Pk' is received from node 2.
[0103] This can be performed, for example, by node 1 by means of a generation counter which node 1 increments by 1 each time a packet Pk' is received from node 2 and which node 1 decrements by 1 each time a packet Pk whose packet loss field PLF is equal to the measured value is sent to node 2. As long as the generation counter is above 0, node 1 preferably sets the packet loss field PLF of the packet Pk to be sent to be equal to the measured value. Conversely, when the generation counter is equal to 0, node 1 preferably keeps the packet loss field PLF of the packet Pk to be sent equal to the idle value.
[0104] The generation step 502 then causes node 1 to send a block B1 of packets Pk whose packet loss field PLF is set to the measured value to node 2. According to this embodiment, the packets Pk of block B1 may not be contiguous. If the packet rate in the direction from node 2 to node 1 is lower than the packet rate from node 1 to node 2, in practice, some packets Pk whose packet loss field PLF is equal to the idle value will be sent between the reception of two consecutive packets Pk' from node 2.
[0105] When node 2 receives block B1 of packet Pk generated during generation step 502, it preferably reflects it back to node 1 (step 503).
[0106] Specifically, also according to this embodiment, the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packet Pk received from the node 1 toward the node 1. Therefore, when the node 2 receives the packet Pk whose packet loss field PLF is set to the idle value from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the idle value. Similarly, when the node 2 receives the packet Pk whose packet loss field PLF is set to the measured value from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the measured value.
[0107] For example, the reflection at the node 2 can be performed by implementing a marked packet counter, which is incremented by 1 each time a packet Pk whose packet loss field PLF is equal to the measured value is received from the node 1, and which is decremented by 1 each time a packet Pk' whose packet loss field PLF is equal to the measured value is sent to the node 1. As long as the marked packet counter is higher than 0, the node 2 preferably sets the packet loss field PLF of the packet Pk' to be sent to be equal to the measured value. Conversely, when the marked packet counter is equal to 0, the node 2 preferably keeps the packet loss field PLF of the packet Pk' to be sent equal to the idle value.
[0108] Therefore, in the reflection step 503, when the node 2 receives the block B1 of packets Pk whose packet loss field PLF is set to the measured value, it basically sends to the node 1 the block B2 of packets Pk' whose packet loss field PLF is set to the measured value.
[0109] According to this embodiment, when node 1 receives the first packet of block B2, node 1 preferably terminates the generation step 502. To terminate the generation step 502, node 1 preferably forces the generation counter to zero.
[0110] At the end of generation step 502, node 1 preferably calculates the RTT as the difference between the reception time of the first packet of block B2 and the transmission time of the first packet of block B1 (step 502a).
[0111] Then, the node 1 preferably performs a first pause (step 504a) before starting the reflection of the block B2. To perform the first pause 504a, the node 1 preferably forces the packet loss field PLF of the packet Pk to be sent to be equal to the idle value.
[0112] Furthermore, during the first pause 504a, node 1 also preferably initializes a reflection counter to 1, which is then incremented by 1 each time a packet Pk' of block B2 (ie a packet Pk' whose packet loss field PLF is equal to the measured value) is received from node 2.
[0113] Preferably, the duration of the first pause 504a is equal to the RTT calculated by Node 1 at step 502a.
[0114] Then, after the first pause 504a has expired, the node 1 preferably starts a reflection step 504 by reflecting towards the node 2 the value of the packet loss field PLF comprised in the packet Pk' received from the node 2. Preferably, in the reflection step 504, each time a packet Pk' is received from the node 2, the node 1 sets the packet loss field PLF of the packet Pk to be sent to be equal to the measured value.
[0115] Specifically, node 1 sends packets Pk whose packet loss field PLF is equal to the measured value as long as the value of the reflection counter initialized during the first pause 504a is higher than 0. Each time a packet Pk whose packet loss field PLF is equal to the measured value is sent, the reflection counter is decremented by 1. When all packets Pk' of block B2 have been reflected, that is, when the reflection counter reaches the value 0, the reflection step 504 ends.
[0116] Thus, in a reflection step 504, node 1 essentially sends back to node 2 a block B3 of packets Pk whose packet loss field PLF is set to the measured value.
[0117] It should be noted that, although in principle, all packets Pk' of block B2 should be received at node 1 before the expiration of the first pause 504a, some packets Pk' of block B2 may experience abnormal delays and be received at node 1 after the end of the first pause 504a. In order to avoid the risk of such packets Pk', once reflected, being confused with packets Pk of block B1 to be sent at the next iteration of the generation step 502, node 1 preferably starts to ignore received packets Pk' whose packet loss field PLF is equal to the measured value after a certain time gap from the expiration of the first pause 504a. This time gap is preferably equal to half the RTT calculated by node 1 in step 502a. Preferably, in order to ignore such late packets Pk', node 1 preferably prevents any further increase of the reflection counter after the expiration of said time gap from the expiration of the first pause 504a.
[0118] When the node 2 receives the block B3 of the packet Pk generated during the reflection step 504, it preferably reflects it back to the node 1 again (step 505). Specifically, because the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packet Pk received from the node 1 toward the node 1, in the reflection step 505, when the node 2 receives the block B3 of the packet Pk whose packet loss field PLF is set to the measured value, it basically sends back to the node 1 the block B4 of the packet Pk' whose packet loss field PLF is set to the measured value.
[0119] As described above with respect to the reflection step 503, the reflection step 505 may be implemented by means of a marking packet counter.
[0120] While node 2 is performing the reflection step 505, at the end of the reflection step 504, node 1 preferably performs a second pause (step 504b) between the end of the reflection of block B2 and the start of the generation of the next block B1. To perform the second pause 504b, node 1 preferably again forces the packet loss field PLF of the packet Pk to be transmitted to be equal to the idle value.
[0121] Preferably, the duration of the second pause 504b is equal to the RTT calculated by node 1 in step 502a. Alternatively, node 1 may calculate an updated RTT value as the difference between the reception time of the first packet of block B4 and the transmission time of the first packet of block B3, and use such updated RTT to determine the duration of the second pause 504b.
[0122] After the second pause 504b expires, Node 1 determines whether the round trip packet loss measurement should be terminated (step 506).
[0123] In the affirmative, node 1 preferably returns to step 500, ie it continues to send packets Pk to node 2 whose packet loss field PLF is set to an idle value.
[0124] In the negative case, node 1 preferably returns to generation step 502, sending to node 2 a new block B1 of packets Pk whose packet loss fields PLF are set to the measured value, these packets Pk then being subject to the above-mentioned reflection steps 503, 504 and 505.
[0125] For reasons similar to those discussed above with respect to the reflection step 504, preferably, at each iteration of the generation step 502 after the first packet, the node 1 preferably starts waiting for the first generated packet only after a time gap has elapsed since the end of the previous second pause 504b. The time gap is preferably equal to half of the RTT, the value RTT being either the value calculated in step 502a or the value updated before the second pause 504b.
[0126] Therefore, at each iteration of steps 501-505 between the start and end of the measurement session, node 1 and node 2 preferably exchange four blocks B1, B2, B3, B4 of packets whose packet loss field PLF is set to the measured value. If no packet loss occurs, blocks B1, B2, B3, B4 include the same number of packets.
[0127] As described above, the measurement point 10 may perform round-trip packet loss measurements between the node 1 and the node 2 on the packet Pk of the blocks B1 and B3 , or on the packet Pk′ of the blocks B2 and B4 .
[0128] Figure 6 The following shows the assumption that the packet rate in the direction from node 2 to node 1 is approximately half of the packet rate in the direction from node 1 to node 2. Figure 5 Flowchart of the operation is an exemplary exchange of packets between Node 1 and Node 2.
[0129] exist Figure 6 In FIG. 5 , it can be seen that during the generation step 502 , a block B1 of N1=4 packets Pk is generated, each packet Pk of the block B1 being sent in response to receiving a corresponding packet Pk′ from the node 2 , regardless of the value of its packet loss field PLF. Figure 6 In FIG. 5 , packets having a packet loss field PLF equal to the measured value are represented by bold lines.
[0130] If no packet loss occurs among the packets Pk of the block B1 , then in a reflection step 503 , the node 2 reflects the block B2 of N2=4 packets Pk′ back to the node 1 .
[0131] When node 1 receives the first packet Pk' of block B2, it ends the generation step 502 and enters the first pause 504a. During the first pause 504a, the packet Pk' of block B2 is received at node 1, which accordingly increases its reflection counter. Assuming that no packet loss occurs in the packet Pk' of block B2, and all the packets Pk' of block B2 are not received at node 1 before the first pause 504a expires, the reflection counter increases from 1 to 4 during the first pause 504a.
[0132] Then, after the first pause 504a has expired, the node 1 starts a reflection step 504 so that it reflects a block B3 of N3=4 packets Pk back to the node 2. During the reflection step 504, the reflection counter is decremented from 4 to zero.
[0133] When the reflection counter reaches the value 0, the reflection step 504 is terminated and node 1 enters a second pause 504b.
[0134] Meanwhile, if no packet loss occurs among the packets Pk of the block B3 , then in the reflection step 505 , the node 2 reflects the block B4 of N4=4 packets Pk′ back to the node 1 .
[0135] As mentioned above about Figure 3As described in the embodiment of the present invention, the measurement point 10 can perform round-trip packet loss measurement by counting the number N1 of packets Pk of block B1, the number N3 of packets Pk of block B3, and then calculate the round-trip packet loss as the difference between N1 and N3. In the opposite direction, the measurement point 10 can perform round-trip packet loss measurement by counting the number N2 of packets Pk' of block B2 and the number of packets Pk' of block B4, and then calculate the round-trip packet loss as the difference between N2 and N4.
[0136] More specifically, referring to the direction from node 1 to node 2, for example, the measuring point 10 may implement a counter that counts the number of packets Pk whose packet loss field PLF is equal to the measured value. Therefore, the measuring point 10 preferably increases the counter each time it detects a packet Pk having a packet loss field PLF equal to the measured value.
[0137] Preferably, when the measuring point 10 detects a first pause longer than a minimum threshold value since the start of the measurement session between the detection of two consecutive packets Pk' whose packet loss field PLF is equal to the measured value, it preferably sets the first variable C1 equal to the difference between the current counter value and the counter value at the end of the previous pause (or to 0 if there was no previous pause, i.e. at the first iteration). The minimum threshold value may for example be equal to half the RTT calculated by applying the known spinning bit technique.
[0138] At the end of the pause, the measuring point 10 continues to increment the counter.
[0139] Then, after detecting the next pause between two consecutive detections of packets Pk whose packet loss field PLF is equal to the measured value, it preferably sets the second variable C2 equal to the difference between the current counter value and the counter value at the end of the previous pause.
[0140] The measurement point 10 then preferably calculates the round trip packet loss as the difference between C1 and C2.
[0141] The measurement point 10 essentially provides a periodic monitoring of the round trip packet loss between Node 1 and Node 2 by alternately setting the values of C1 and C2 throughout the measurement session.
[0142] It can be appreciated that, since in the generation step 502, node 1 sends the packet Pk of block B1 only after receiving the packet Pk from node 2, the number of packets Pk of block B1 is such that even when the packet rate from node 2 is much lower than the packet rate from node 1, the reflection steps 503, 504 can be managed by node 2 in a reasonable time. This allows to avoid congestion at node 2 and provide a measurement period equal to about 4 RTTs, i.e., a measurement period of the order of 100-200 milliseconds. It should be noted that the round-trip packet loss measurement is performed on about 1 / 4 of the packets sent in the direction with the lower packet rate (from node 1 to node 2, or vice versa).
[0143] Furthermore, the pauses 504a, 504b advantageously ensure that the measurement point 10 can properly distinguish packets Pk or Pk' sent in the same direction and belonging to different blocks B1, B3 or B2, B4. Thus, the measurement point 10 can count the number N1, N3 or N2, N4 of packets belonging to two blocks in a proper manner, thus providing a correct value for the round-trip packet loss.
[0144] Furthermore, the applicant has estimated that if the generating step 502 and the reflecting step 504 at node 1 are performed by ignoring packets Pk' received from node 2 after a time gap of RTT / 2 has expired since the expiration of the first pause 504a and the second pause 504b, respectively, then the method provides correct measurement results if the variation of the RTT between node 1 and node 2 does not exceed ±50% RTT within the same measurement session.
[0145] According to an advantageous variant of the first embodiment, preferably after another pause has elapsed since the reception of the last packet of block B2, preferably of duration equal to the RTT calculated in step 502a, node 1 starts the reflection step 504. Similarly, preferably after another pause has elapsed since the reception of the last packet of block B4, preferably of duration equal to the RTT calculated in step 502a, node 1 returns to a new generation step 502.
[0146] In this way, the measurement period is longer (i.e., about 6 RTTs), but, advantageously, the various iterations of the algorithm are well separated and the risk of overlaps due to abnormal delays of packets is advantageously minimized. Thus, the round-trip packet loss measurement is advantageously corrected even in the case of large variations in the RTT. It should be noted that in this case, the round-trip packet loss measurement is performed on about 1 / 6 of the packets sent in the direction from node 1 to node 2 or vice versa with a lower packet rate.
[0147] The measuring point 10 may also be configured to provide a RTT (round trip time) measurement between the node 1 and the node 2. For this purpose, the measuring point 10 preferably records the detection time T1 of the first packet Pk (i.e., the packet Pk of the block B1) detected after the end of the pause with a packet loss field PLF equal to the measured value and the detection time T2 of the last packet Pk (i.e., the last packet of the block B1) detected before the start of the following pause with a packet loss field PLF equal to the measured value. The RTT is then calculated as the difference between T2 and T1. Since, at the first iteration of the RTT calculation, the measuring point 10 should detect the pause before it has calculated the value of the RTT, in order to detect the pause, the measuring point 10 may use, for example, the RTT calculated using the known spinning bit technique, at least at the first iteration. Then, for each subsequent iteration, in order to detect the pause, the measuring point 10 may use the value of the RTT calculated at the previous iteration as described above.
[0148] The Applicant has noted that the RTT calculated in this way provides a measurement period that is, on average, 1 / 4 (or 1 / 6, according to the above variants) of the measurement period in the case of RTT measurements performed according to the Internet draft "The addition of a Spin Bit to the QUIC Transport Protocol draft-trammel-quic-spin-01" by B. Trammel et al., December 13, 2017. The RTT measurement is actually performed only on the packets Pk of the block B1 (so, on average, there are two pauses of duration RTT and a reflection step lasting the RTT).
[0149] It can also be appreciated that the RTT cannot be calculated based on the detection time of the packets Pk of block B3, since block B3 is obtained by reflection and therefore the time elapsed between the detection of the first and last packets at the measuring point 10 does not correspond to the RTT.
[0150] Figure 7 is a flowchart illustrating operations of Node 1 and Node 2 according to yet another embodiment of the present invention.
[0151] According to such an embodiment, the node 1 and the node 2 preferably use at least two measurement values for the packet loss field PLF of the exchanged packets Pk and Pk'. In the following, as a non-limiting example, it is assumed that the packet loss field PLF can be a two-bit field, which can be set to either an idle value "00" or one of three measurement values "01", "10" and "11". In the following, for simplicity, these three measurement values will also be referred to as "measurement value A", "measurement value B" and "measurement value C".
[0152] For example, a measurement array MV(k) may be implemented at node 1, comprising an element for each of the measurements A, B and C. The array index k ranges from 0 to the number of measurements minus 1 (ie, in the present case, k=0, 1, 2).
[0153] Preferably, node 1 usually sends a packet Pk whose packet loss field PLF is set to an idle value to node 2 (step 700).
[0154] Preferably, when node 1 determines that a round trip measurement should be started (step 701), it performs a generation step 702, which includes setting the packet loss field PLF of the packet Pk to be sent equal to the measurement value MV(k) (k=0, 1 or 2) each time a packet Pk' whose packet loss field PLF includes an idle value or a measurement value NV(k-1) is received from node 2, where "-" indicates a modulo 3 difference. In the first iteration of generation step 702, of course, all received packets Pk' have their packet loss field PLF equal to the idle value.
[0155] For example, the generating step 702 may be performed by the node 1 by means of a generating counter, which the node 1 increments by 1 each time a packet Pk' of which the packet loss field PLF comprises an idle value or a measured value MV(k-1) is received from the node 2. Each time the node 1 should send a packet Pk, it preferably checks whether the generating counter is higher than 0. If the generating counter is higher than 0, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the measured value MV(k) and decrements the generating counter by 1. Conversely, if the generating counter is equal to 0, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the idle value.
[0156] According to a particularly advantageous variant, in addition to the generation counter, a reflection counter is used in the generation step 702. Each time a packet Pk' is received from the node 2, whose packet loss field PLF includes the measured value MV(k-2), the node 1 preferably increments the reflection counter by 1. Each time the node 1 should send a packet Pk, it preferably first checks whether the reflection counter is above 0. In the affirmative case, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the measured value MV(k-1) and decrements the reflection counter by 1, thereby performing a late reflection of the measured value MV(k-2). In the negative case (reflection counter equal to 0), the node 1 preferably checks the generation counter. If the generation counter is above 0, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the measured value MV(k) and decrements the generation counter by 1. Conversely, if the generation counter is also equal to 0, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the idle value.
[0157] In both cases (without or with late reflection of the measurement value MV(k-2)), the generation step 702 results in node 1 sending to node 2 a block B1 of packets Pk whose packet loss field PLF is set to the measurement value MV(k). Furthermore, according to this embodiment, the packets Pk of the block B1 may be disjoint. If the packet rate in the direction from node 2 to node 1 is lower than the packet rate from node 1 to node 2, then, in practice, between the reception of two consecutive packets Pk' from node 2, some packets Pk whose packet loss field PLF is equal to the idle value will be sent from node 1.
[0158] When node 2 receives block B1 of packet Pk generated during generation step 702 with a packet loss field PLF equal to the measured value MV(k), it preferably reflects it back to node 1 (step 703).
[0159] Specifically, also according to this embodiment, the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packet Pk received from the node 1 toward the node 1. Therefore, when the node 2 receives the packet Pk whose packet loss field PLF is set to the idle value from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the idle value. Similarly, when the node 2 receives the packet Pk whose packet loss field PLF is set to the measurement value MV(k) from the node 1, it preferably sets the packet loss field PLF of the next packet Pk' to be sent to the node 1 to the measurement value MV(k).
[0160] For example, the reflection at node 2 can be performed by implementing a FIFO queue, into which node 2 inserts an element of value MV(k) each time a packet Pk with a packet loss field PLF equal to the measured value MV(k) is received. As in the previous embodiment, when a packet Pk' with a packet loss field PLF equal to the measured value MV(k) is sent, the FIFO queue is emptied. As long as the FIFO queue contains elements, node 2 preferably sets the packet loss field PLF of the packet Pk' to be sent to be equal to the measured value MV(k). Conversely, when the FIFO queue is completely empty, node 2 preferably keeps the packet loss field PLF of the packet Pk' to be sent equal to the idle value.
[0161] Therefore, in reflection step 703, when node 2 receives block B1 of packets Pk whose packet loss field PLF is set to the measurement value MV(k), it basically sends back to node 1 block B2 of packets Pk' whose packet loss field PLF is set to the same measurement value MV(k).
[0162] According to this embodiment, the node 1 preferably terminates the generation step 702 of the packet Pk' with the measurement value MV(k) when it receives the first packet of the block B2. To terminate the generation step 702, the node 1 preferably forces the generation counter to zero. If the reflection counter also exists, the node 1 also sets it to the value 1.
[0163] Then, after the generation step 702 is terminated, the node 1 preferably starts a reflection step 704, which includes sending a packet Pk having a packet loss field PLF including a measurement value MV(k+1) (where "+" indicates a modulo 3 sum) each time a packet Pk' having a packet loss field PLF including a measurement value MV(k) is received from the node 2.
[0164] For example, the reflection step 704 may be performed with the aid of a reflection counter (which is preferably the same reflection counter used for the late reflection of the measurement value MV(k-2) at step 702, if present), the node 1 incrementing the reflection counter by 1 each time a packet Pk' is received with a packet loss field PLF equal to the measurement value MV(k). When the node 1 has to send a packet Pk, it preferably checks whether the counter value is higher than 0. In the affirmative case, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the measurement value MV(k+1) and decrements the reflection counter by 1. Conversely, if the reflection counter is equal to 0, the node 1 preferably sets the packet loss field PLF of the packet Pk to be sent equal to the idle value.
[0165] The reflection step 704 ends when all packets Pk' of block B2 have been reflected, i.e. when the reflection counter reaches the value 0. Thus, in the reflection step 704, node 1 essentially sends back to node 2 a block B3 of packets Pk whose packet loss field PLF is set to the measured value MV(k+1).
[0166] When the node 2 receives the block B3 of the packet Pk generated during the reflection step 704, it preferably reflects it back to the node 1 again (step 705). Specifically, since the node 2 preferably continuously reflects the value of the packet loss field PLF included in the packet Pk received from the node 1 toward the node 1, in the reflection step 705, when the node 2 receives the block B3 of the packet Pk whose packet loss field PLF is set to the measurement value MV(k+1), it basically sends back to the node 1 the block B4 of the packet Pk' whose packet loss field PLF is set to the measurement value MV(k+1).
[0167] The reflection step 705 may be implemented with the aid of the FIFO queue described above with respect to the reflection step 703 .
[0168] At the end of the reflection step 704, Node 1 determines whether the round trip packet loss measurement should be terminated (step 706).
[0169] In the affirmative, the node 2 preferably returns to step 700, ie it continues to send packets Pk to the node 2 whose packet loss field PLF is set to an idle value.
[0170] In the negative case, node 1 preferably sets k=k+2 (step 707), where "+" is the modulo 3 sum, and returns to generation step 702, thereby sending a new block B1 of packets Pk whose packet loss field PLF is set to the measurement value MV(k+2) to node 2, which packets Pk will then undergo the above-mentioned reflection steps 703, 704 and 705.
[0171] Therefore, the use of three measurements MV(0)=A, MV(1)=B and MV(2)=C results in a cyclic behavior of node 1. In fact:
[0172] - at the i-th iteration (i=1, 4, 7, 10, etc.) of the generation step 702, the node 1 generates a block B1 of packets Pk with a packet loss field PLF including a measurement value A, and reflects a received block B2 of packets Pk' with a packet loss field PLF including a measurement value A into a block B3 of packets Pk with a packet loss field PLF including a measurement value B;
[0173] - at the i-th iteration (i=2, 5, 8, 11, etc.) of the generation step 702, the node 1 generates a block B1 of packets Pk with a packet loss field PLF including a measurement value C, and reflects a received block B2 of packets Pk' with a packet loss field PLF including a measurement value C into a block B3 of packets Pk with a packet loss field PLF including a measurement value A; and
[0174] -In the i-th iteration (i=3, 6, 9, 12, etc.) of generation step 702, node 1 generates block B1 of packets Pk having a packet loss field PLF including a measurement value B, and reflects the received block B2 of packets Pk' having a packet loss field PLF including a measurement value B into block B3 of packets Pk having a packet loss field PLF including a measurement value C.
[0175] It can be appreciated that at each iteration, the packets Pk of block B1 and the packets Pk of block B3 have different measurement values, i.e., MV(k) and MV(k+1). Similarly, at each iteration, the packets Pk' of block B2 and the packets Pk' of block B4 have different measurement values, i.e., MV(k) and MV(k+1). This advantageously allows the measurement point 10 to properly distinguish between the packets Pk belonging to block B1 and the packets Pk belonging to block B3 (and similarly, the packets Pk' belonging to block B2 and the packets Pk' belonging to block B4), and thus to properly count them, without introducing any pause between generation and reflection at node 1.
[0176] This advantageously allows increasing the amount of monitored traffic.The Applicant has estimated that this embodiment makes it possible to monitor ½ of the average number of packets Pk or Pk' sent in the direction with the lower packet rate.
[0177] Therefore, at each iteration of steps 701-707 performed between the start and the end of the measurement session, node 1 and node 2 preferably exchange four blocks B1, B2, B3, B4 of packets whose packet loss field PLF is set to the measurement value MV(k) (B1 and B2) or MV(k+1) (B3 and B4). If no packet loss occurs, blocks B1, B2, B3, B4 include the same number of packets.
[0178] As described above, the measurement point 10 may perform round-trip packet loss measurements between the node 1 and the node 2 on the packet Pk of the blocks B1 and B3 , or on the packet Pk′ of the blocks B2 and B4 .
[0179] Figure 8 The packet rate in the direction from node 2 to node 1 is shown as approximately half of the packet rate in the direction from node 1 to node 2. Figure 7 Flowchart of the operation of an exemplary exchange of packets between Node 1 and Node 2. Figure 8 In FIG. 5 , packets Pk and Pk′ whose packet loss field PLF is equal to any marking value MV(k) (k=0, 1, 2) are indicated by bold lines.
[0180] exist Figure 8 It can be seen that during the first iteration of generating step 702, a block B1 of N1=4 packets Pk having a packet loss field PLF equal to the measured value MV(k) is generated, each packet Pk of block B1 being sent in response to receiving a corresponding packet Pk' from node 2 whose packet loss field PLF is equal to the idle value.
[0181] If no packet loss has occurred among the packets Pk of block B1, then in a reflection step 703, node 2 reflects back a block B2 of N2=4 packets Pk' having a packet loss field PLF equal to the measured value MV(k).
[0182] When node 1 receives the first packet Pk' of block B2, it ends generation step 702 and starts reflection step 704 so that it reflects back to node 2 a block B3 of N3=4 packets Pk having a packet loss field PLF equal to measurement value MV(k+1).
[0183] Then, if no packet loss has occurred among the packets Pk of block B3, then in a reflection step 705, node 2 reflects block B4 of N4=4 packets Pk′ having a packet loss field PLF equal to the measurement value MV(k+1) back to node 1.
[0184] In the subsequent iteration of step 702, a block B1 of N1=4 packets Pk having a packet loss field PLF equal to the measured value MV(k+2) is generated, and each packet Pk of block B1 is sent in response to receiving a corresponding packet Pk' from node 2 whose packet loss field PLF is either equal to the idle value or equal to the measured value MV(k+1).
[0185] If no packet loss has occurred among the packets Pk of block B1, then in a reflection step 703, node 2 reflects back block B2 of N2=4 packets Pk' having a packet loss field PLF equal to the measured value MV(k+2).
[0186] When node 1 receives the first packet Pk′ of block B2 , it ends generation step 702 and starts reflection step 704 so that it reflects back to node 2 a block B3 of N3=4 packets Pk having a packet loss field PLF equal to the measured value MV(k).
[0187] Then, if no packet loss occurs among the packets Pk of block B3, node 2 reflects block B4 of N4=4 packets Pk' having a packet loss field PLF equal to the measurement value MV(k) back to node 1 in a reflection step 705. And so on.
[0188] As mentioned above about Figure 3As described in the embodiment of the present invention, the measurement point 10 can perform round-trip packet loss measurement by counting the number N1 of packets Pk of block B1, the number N3 of packets Pk of block B3, and then calculate the round-trip packet loss as the difference between N1 and N3. In the opposite direction, the measurement point 10 can perform round-trip packet loss measurement by counting the number N2 of packets Pk' of block B2, the number N4 of packets Pk' of block B4, and then calculate the round-trip packet loss as the difference between N2 and N4.
[0189] More specifically, referring to the direction from node 1 to node 2, for example, the measuring point 10 may implement three counters C(k), where k=0, 1, 2 (i.e., one counter per measurement value MV(k), where k=0, 1, 2), each counter counting the number of packets Pk whose packet loss field PLF is equal to the corresponding measurement value. Therefore, the measuring point 10 preferably increments the counter C(k) each time it detects a packet Pk having a packet loss field PLF equal to the measurement value MV(k).
[0190] Preferably, when the measuring point 10 detects the first packet Pk whose packet loss field PLF includes the measurement value MV(k), it preferably reads the current value of the counter C(k-2). In this way, the risk that the value of the counter C(k-2) is not fixed at each time the counter is read is advantageously minimized.
[0191] The measurement point 10 may then calculate the round trip packet loss as the difference between the last read value of the counter C(k) and the last read value of the counter C(k+1).
[0192] It can be appreciated that, since, in the generation step 702, the node 1 sends the packet Pk of the block B1 only after receiving the packet Pk from the node 2, also according to this second embodiment, the number of packets Pk of the block B1 is such that the reflection steps 703, 704 can be managed in a reasonable time by the node 2 even when the packet rate from the node 2 is much lower than the packet rate from the node 1. This allows to avoid congestion at the node 2 and to provide a measurement period equal to about 2 RTTs, i.e. a measurement period of the order of 50-100 milliseconds.
[0193] In all the embodiments described above, the node 1 performs a single reflection step 304, 504, 704 after each generation step 302, 502, 702. However, this is not restrictive. According to other embodiments, the node 1 may perform N reflections after each generation step, where N is higher than 1. The value of N may be fixed (e.g., N=3) or variable. N may vary, for example, if the number of packets Pk having a packet loss field PLF equal to the marker value decreases below a certain threshold (e.g., 70%), and / or if reception sequence errors accumulate and make it difficult to distinguish between different cycles.
[0194] The use of several consecutive reflections at node 1 advantageously increases the number of round trip packet loss measurements. In fact, if a single reflection provides X measurements in a certain session, using consecutive reflections for the entire session will provide up to 2*X-1 measurements.
[0195] Multiple reflections at the node 1 can be implemented in several ways. For example, the packet loss field PLF can be a two-bit field, which is set to the first measurement value 1 when the measurement starts, and alternatively, when the reflections are, is set to the measurement values 2 and 3. Conversely, if the packet loss field PLF is a one-bit field, shorter pauses are preferably performed by the node 1 to separate consecutive reflections, while longer pauses are preferably performed to separate different iterations.
Claims
1. A method for enabling round trip packet loss measurement in a packet switched communication network (100), the method comprising exchanging packets (Pk, Pk') containing a packet loss field (PLF) between a first node (1) and a second node (2) of the communication network (100), wherein the packet loss field (PLF) is settable to any one of an idle value and at least one measured value, the exchanging comprising: a) the first node (1) sends a first packet (Pk) having the packet loss field (PLF) set to one of the at least one measurement value to the second node (2); b) after receiving each of said first packets (Pk) from said first node (1), said second node (2) sending to said first node (1) a corresponding second packet (Pk'), said second packet (Pk') having said packet loss field (PLF) set to one of said at least one measurement value; as well as c) after receiving each of the second packets (Pk') from the second node (2), the first node (1) sends a corresponding third packet (Pk) to the second node (2), the third packet (Pk) having the packet loss field (PLF) set to one of the at least one measurement value.
2. The method according to claim 1, wherein step a) comprises, in response to receiving a packet (Pk') from the second node (2), setting the packet loss field (PLF) of the packet (Pk) to be sent to the second node (2) to be equal to one of the at least one measurement value.
3. The method according to claim 1 or 2, wherein step a) is terminated when the first node (1) receives the first of the second packets (Pk') from the second node (2).
4. A method according to any preceding claim, wherein the Packet Loss Field (PLF) is settable to an idle value or a measured value.
5. The method according to claim 4, wherein the first node (1) performs at least one of the following: - a first pause at the end of said step a) before starting said step c); and - a second pause at the end of step c) before repeating step a), The first pause and the second pause comprise forcing the packet loss field (PLF) of each packet (Pk) to be sent to the second node (2) to the idle value.
6. The method according to claim 5, wherein at least one of the steps a) and c) comprises ignoring packets (Pk') received at the first node (1) from the second node (2) after a time gap has elapsed since the start of the steps a) and c), respectively.
7. The method according to claim 5, wherein the first node (1) performs at least one of the following: - a further pause since the last of said second packets (Pk') was received by said second node (2) before starting step c); and - a further pause, before repeating step a), from the reception of the last of a fourth packet (Pk') sent by said second node (2) after reception of said third packet (Pk) and having said packet loss field (PLF) set to said measured value, Said further pause and said further pause comprise forcing said packet loss field (PLF) of each packet (Pk) to be sent to said second node (2) to said idle value.
8. The method according to any one of claims 1 to 3, wherein: The packet loss field (PLF) may be set to the idle value or to any one of at least two different and ordered measured values.
9. The method according to claim 8, wherein: - step a) comprises setting the packet loss field (PLF) of a packet (Pk) to be sent to the second node (2) equal to the measured value MV(k) when receiving a packet from the second node (2) whose packet loss field (PLF) is equal to the idle value or to the previous measured value MV(k-1); - step b) comprises, after receiving from said first node (1) each of the first packets (Pk) having said packet loss field equal to said measured value MV(k), sending to said first node (1) a corresponding second packet (Pk′) having said packet loss field set to said measured value MV(k); and - Step c) comprises, after receiving from said second node (2) each of the second packets (Pk') having said packet loss field (PLF) equal to said measured value MV(k), sending to said second node (2) a corresponding third packet (Pk), said third packet (Pk) having said packet loss field set to a subsequent measured value MV(k+1).
10. A method for performing round trip packet loss measurements in a packet switched communication network (100), the method comprising exchanging packets (Pk, Pk') comprising a packet loss field (PLF) between a first node (1) and a second node (2) of the communication network (100), wherein the packet loss field (PLF) is settable to any one of an idle value and at least one measured value, the method comprising the steps of the method according to any one of claims 1 to 9 and the following steps: d) at a measurement point (10), counting the number (N1) of the first packets (Pk) and counting the number (N3) of the third packets (Pk), the round trip packet loss measurement being based on the number (N1) of the first packets (Pk) and the number (N3) of the third packets (Pk).
11. The method according to claim 10, wherein: The method further comprises providing a round trip time measurement between the first node (1) and the second node (2) as a difference between detection times T1 and T2 of a first detected packet in the first group (Pk) and a last detected packet in the first group (Pk).
12. A system for enabling round-trip packet loss measurement in a packet-switched communication network (100), the system comprising a first node (1) and a second node (2) configured to exchange packets (Pk, Pk') containing a packet loss field (PLF), wherein the packet loss field (PLF) is settable to any one of an idle value and at least one measured value, wherein: - said first node (1) being configured to send a first packet (Pk) having said packet loss field (PLF) set to one of said at least one measurement value to said second node (2); - the second node (2) being configured to, after receiving each of the first packets (Pk) from the first node (1), send a corresponding second packet (Pk') to the first node (1), the second packet (Pk') having the packet loss field (PLF) set to one of the at least one measurement value; as well as - said first node (1) being further configured to, after receiving each of said second packets (Pk') from said second node (2), send to said second node (2) a corresponding third packet (Pk), said third packet (Pk) having said packet loss field (PLF) set to one of said at least one measurement value.
13. The system according to claim 12, further comprising at least one measurement point (10), the at least one measurement point (10) being configured to count the number (N1) of the first packets (Pk) and the number (N3) of the third packets (Pk), the round-trip packet loss measurement being based on the number (N1) of the first packets (Pk) and the number (N3) of the third packets (Pk).
