A method for calculating packet loss rate based on 5G URLLC redundant data packets
By employing a packet loss rate statistical method using bitmap and sliding window algorithms in the 5G URLLC system, the packet loss problem between the base station and the core network was solved, enabling high-reliability detection and adaptive optimization of the transmission channel, thereby improving the overall reliability of the 5G system.
Patent Information
- Application Number
- CN202311428200.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In 5G URLLC systems, there is still a potential risk of packet loss in data packets between base stations and the core network. Existing technologies are insufficient to effectively detect and adjust the transmission channel to improve the system's high reliability.
A packet loss rate statistical method based on 5G URLLC redundant data packets is adopted. By using bitmap and multi-segment sliding window algorithm at the receiving end, the packet loss rate is calculated, and QoS flow level measurement is performed in high reliability scenarios to provide packet loss rate information for network adaptive adjustment.
It enables accurate statistics on packet loss rate in the transmission channel and can provide real-time feedback to the core network platform, thereby improving the high reliability and adaptability of the 5G system.
Smart Images

Figure CN117354200B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of 5G communication, specifically involving a method for statistical analysis of packet loss rate based on 5G URLLC redundant data packets. Background Technology
[0002] URLLC (Ultra-Reliable Low-Latency Communication) is one of the three major application scenarios of 5G technology. It is suitable for applications with low latency and high reliability, such as industrial automation, autonomous vehicles, smart grids, intelligent transportation, as well as augmented reality, virtual reality and telemedicine.
[0003] To ensure highly reliable communication, URLLC technology uses redundant transmission methods in network transmission. For example, two independent and non-interfering data transmission channels are established between the base station and the N3 interface of the core network to transmit the same data packets. This method reduces the probability of packet loss in the data channel between the base station and the core network.
[0004] Although 3GPP specifies strategies for redundant transmission of data packets, there is still a potential for packet loss between base stations and the core network. Therefore, packet loss rate detection can be performed on the data transmission channel, allowing the core network platform to adjust the selection of network element instances in real time based on the packet loss rate, further enhancing the high reliability of the 5G system. Summary of the Invention
[0005] To further improve the high reliability of 5G systems, this invention proposes a packet loss rate statistical method based on 5G URLLC redundant data packets, which provides packet loss rate information for 5G systems, facilitating adaptive network adjustments and transmission channel optimization.
[0006] The technical solution adopted in this invention is as follows:
[0007] A method for calculating packet loss rate based on 5G URLLC redundant data packets includes the following steps:
[0008] Step 1: Determine the application scenario of the 5G system. If the application scenario requires higher reliability than the set value, skip to step 4; otherwise, proceed to step 2.
[0009] Step 2: The two ends of GTP are powered on and transmit data respectively. One end is designated as the sender and the other as the receiver. The sender starts a timer to periodically send packet loss rate monitoring packets to the receiver. The packet loss rate monitoring packets carry the number of packets sent by the sender during the two packet loss rate monitoring packet transmission periods.
[0010] Step 3: After receiving the packet loss rate monitoring packet, the receiving end parses the value of the number of packets sent by the sending end and compares it with the number of data packets received locally to calculate the packet loss rate;
[0011] Step 4: Set the data packet sequence bitmap. The bitmap sequence number is a circular sequence of multiple unsigned integers, with the first and last elements connected together. The length l is at least 256 and is even. The state of each bit in the bitmap is represented by val, and the initial state is 0. Each bit in the bitmap corresponds to an index, represented by idx, and the value of idx ranges from 0 to l-1. Initially, the start pointer points to the first element of the bitmap, the right pointer points to the last element of the bitmap, and the left pointer points to the element whose idx is 0. The last position is recorded as the sequence number pointed to by the left pointer;
[0012] Step 5: When a data packet is received, parse the current sequence number carried in the data packet and determine whether the current sequence number is within the range pointed to by the pointers left and right. If it is, set the position of the current sequence number in the bitmap to 1 and repeat this step; otherwise, proceed directly to step 6.
[0013] Step 6: Move the right pointer to the position pointing to the current sequence number. The left and start pointers follow the right pointer to move to the right by the same number of steps. The state value corresponding to each sequence number remains unchanged. Finally, assign the bit pointed to by the right pointer to 1, which means that the current data packet has been received.
[0014] Step 7: Determine if the start pointer has reached the last position recorded in step 4. If not, return to step 5 to continue receiving the next data packet. If it has reached the last position, continue to step 8.
[0015] Step 8: Calculate the bitmap index idx from 0 to Count the number of all zeros in between, denoted as m, store the result in a buffer, update the value of last to the new sequence number pointed to by left, and return to step 5;
[0016] Step 9: After the receiving end receives the data packet for the set time, it retrieves all the data in the buffer. If there is no data in the buffer, it waits for the next time interval to arrive; if there is data in the buffer, let the retrieved data be m1, m2, ... m n n is the number of data points, expressed as (m1+m2+......+m n The average packet loss rate within a set time period is calculated using (n*128). After the calculation is completed, the buffer is cleared.
[0017] Due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0018] The packet loss rate statistical method provided by this invention, based on the implementation of 3GPP protocol functions, realizes the statistical calculation of packet loss rate of transmission channel. The results can be fed back to the core network platform or control plane network element, so as to adjust the selection of network element instance in real time according to the packet loss rate, and further improve the high reliability of 5G system. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the packet loss rate measurement process at the GTP tunnel level in a typical application scenario of this invention.
[0020] Figure 2 This is a flowchart of the packet loss rate measurement process at the QoS flow level of this invention.
[0021] Figure 3 This is a schematic diagram of the QoS flow packet loss detection data structure of the present invention. Detailed Implementation
[0022] The present invention will now be described in further detail with reference to the accompanying drawings. These descriptions are intended to explain the invention and not to limit it.
[0023] According to 3GPP specifications, in URLLC scenarios, 5G systems should include sequence numbers in the header of GTP data packets between the base station and the core network during redundant transmission in the transmission tunnel. The sending end adds sequence numbers to the packet header in ascending order, and the receiving end eliminates redundant data packets based on the sequence numbers. This invention utilizes the sequence number mechanism during redundant transmission to propose a packet loss rate statistical method based on 5G URLLC redundant data packets. In general use cases, only packet loss rate detection of the GTP tunnel is required. However, in special application scenarios, such as voice and video calls where higher reliability is required, the sequence number mechanism can be used to measure the packet loss rate of QoS flows. Figure 1 and Figure 2 As shown, the main steps include:
[0024] Step 1: As Figure 1 As shown, the first step is to determine the application scenario of the 5G system. If the scenario has extremely high reliability requirements, then perform QoS flow-level packet loss rate measurement and jump directly to... Figure 2 If the process continues to step 4, otherwise proceed to step 2 to perform GTP tunnel-level packet loss rate measurement.
[0025] Step 2: The two GTP endpoints are powered on and begin transmitting data, with one designated as the sender and the other as the receiver. After powering on, the sender transmits data packets to the receiver through the GTP tunnel, simultaneously recording the number of data packets sent. The receiver receives the data packets and records the number of data packets received.
[0026] The sending end starts a timer and sends a packet loss rate monitoring packet to the receiving end at certain time intervals, such as 5 seconds. The packet contains the number of data packets sent by the sending end to the receiving end during the time period between the sending of the previous packet loss rate monitoring packet and the sending of this monitoring packet.
[0027] Step 3: The receiving end increments its local counter by 1 for each data packet received. After receiving the packet loss rate monitoring packet, the receiving end parses the carried value, denoted as n1, and retrieves the number of data packets received from the local counter, denoted as n2. The packet loss rate for this time period can be calculated using (n1-n2) / n1. The local data packet counter is cleared after each settlement. Repeating steps 2 and 3 yields packet loss rate data for each time period within consecutive time intervals.
[0028] Step 4: As Figure 2 As shown, starting from this step, QoS flow-level packet loss rate measurement is performed. A packet sequence bitmap is set up. The bitmap sequence number is a circular sequence of multiple unsigned integers, with the first and last elements connected together. The length l is at least 256 and is even. The state of each bitmap element is represented by val, initially all of which are 0. Each bitmap element corresponds to an index, denoted by idx, with the value of idx ranging from 0 to l-1. Initially, the start pointer points to the first element of the bitmap, the right pointer points to the last element, and the left pointer points to the element whose idx is 0. The last position is recorded as the sequence number pointed to by the left pointer;
[0029] In this embodiment, the sequence number of the data packet is a circular sequence consisting of multiple unsigned integers connected end to end. For example, the current sequence number occupies two bytes of space, so the sequence number can range from 1 to 65535. Since the sequence is circular, the next sequence number after 65535 is 1. The space occupied by the sequence number is not limited to two bytes and can be increased or decreased as needed.
[0030] The entire process requires maintaining the positions of three pointers: start, left, and right. The area between the left and right pointers is used to record whether a data packet with a specific sequence number has been received, and the area between the start and left pointers is used for packet loss rate calculation. Initially, the positions of the left and right pointers of the bitmap are recorded, and the sequence numbers pointed to by the left and right pointers are denoted as seq_l and seq_r, respectively. The sequence number pointed to by the left pointer is also separately recorded as last, used to determine whether packet loss rate calculation needs to begin. For example... Figure 3As shown in (1), this is the initial state. left points to sequence number 1 and right points to sequence number 128. Since the sequence number is set in a loop, start is located 128 sequence numbers before left. Therefore, start points to sequence number 65408.
[0031] The definition of bitmap is as follows: Figure 3 As shown in (1) of the diagram. Each bit of the bitmap has two states, 0 and 1, and a length of 256, representing 256 consecutive sequence numbers. The bitmap can move to the right (in the direction of increasing sequence numbers) in the sequence number queue. If the sequence number reaches the maximum value (e.g., 65535), the next sequence number is 1. idx represents the index of each bit of the bitmap, and the value of idx ranges from 0 to 255. val represents the value of each bit of the bitmap, which can be 0 or 1. If it is 0, it means that the data packet of the seq sequence number corresponding to that bit has not been received, and if it is 1, it means that it has been received.
[0032] Step 5: The GTP tunnel endpoint receives the GTP data packet sent from the peer, parses the GTP packet header, obtains the sequence number seq of the current packet, and compares this sequence number with the sequence numbers seq_l and seq_r currently pointed to by the left and right pointers, respectively. If the seq is between the sequence numbers currently pointed to by the left and right pointers (i.e., seq_l ≤ seq ≤ seq_r), then the position representing the current sequence number in the bitmap is assigned a value of 1, indicating that the packet representing that sequence number has been received. For example... Figure 3 In the process from (1) to (2), a data packet with sequence number 2 is received. Its sequence number is between 1 (seq_l) and 128 (seq_r). Therefore, the val representing the position of idx 129 of sequence number 2 is assigned the value 1, and step 5 is repeated to receive new GTP data packets.
[0033] If the current position is 0, change it to 1; if the current position is already 1, do nothing. Use idx = seq - seq_l + 128 to determine the position of this sequence number in the bitmap. If the sequence number is not within the above range, proceed directly to step 6.
[0034] Step 6: This step is executed when the sequence number in Step 5 is not within the specified range. Since the sequence number of the message sent by the sender is always incremented, the sequence number seq of the current message should satisfy seq > seq_r, that is, it falls to the right of the right pointer. At this time, the right pointer is moved to the right until it points to the position of the current sequence number seq. The entire bitmap moves to the right in the form of a sliding window, that is, the left pointer and the start pointer move to the right along with the right pointer. In this method, the message sequence numbers that need to be paid attention to are limited to the part between start and right. Since the start, left, and right pointers move to the right, the values on the left side of the original bitmap (the part between the old and new start pointers) will be discarded, and some new positions will be generated on the right side of the bitmap (between the old and new right pointers). All new positions are initialized to 0, indicating that the data packets represented by the sequence numbers at these positions have not yet been received. At this time, the right pointer points to the position of the sequence number seq of the currently received data packet, so the val of this position is assigned the value 1. For example Figure 3 In the process from (2) to (3), a data packet with sequence number 129 is received. According to the above rules, the pointer is adjusted to left to 2, right to 129, and start to 65409. During the adjustment process, the value of the bitmap corresponding to each sequence number remains unchanged.
[0035] For operations after the sequence number reaches its maximum value, since the sequence number uses a loop, the next sequence number after the maximum value is 1, such as... Figure 3 As shown in the process from (4) to (5), the sequence number keeps increasing. When the next data packet with a sequence number of 1 arrives, it is placed after the maximum value. All sequence numbers are used in a loop in this way.
[0036] Step 7: This step determines whether packet loss statistics are needed at this point. Since the start, left, and right pointers move continuously in the direction of increasing sequence number in step 6, this step first checks if the sequence number pointed to by the current start pointer has reached the sequence number last recorded in step 1. If not, return to step 5 to continue receiving the next data packet. If it has reached the sequence number (start ≥ last), proceed directly to step 8. Figure 3 As shown in (3) to (4), start reaches sequence number 1 (last).
[0037] Step 8: Calculate the number of bits with a value of 0 in the bitmap from 0 to 127 of idx at this time, denoted as m. Store m in a buffer, and update the value of last to the new sequence number pointed to by left, such as... Figure 3As shown in process (4), at this time, last is updated to 129, and the process returns to step 5 to proceed to the next round of steps.
[0038] Step 9: After the receiving end receives data packets for a certain period of time (this time can be configured to be a specific time interval), such as five seconds, all the data in the buffer is retrieved. At this point, the above step may have been repeated multiple times, or it may not have been performed (the receiving end has not received any data packets). There may be zero or more data in the buffer. If there is no data in the buffer, skip this step and proceed to the next round of timing. If there is data in the buffer, retrieve all the data in the buffer and record them as m1, m2, ... m n Let n be the number of data points. Then, the sequence is (m1 + m2 + ... + m...). n The average packet loss rate over this period can be calculated by multiplying 'm' by 'm' and 'n' by 128. Here, 'm' represents the number of packets not received out of 128 packets, and 'n' represents the number of counts. After the calculation, the buffer is cleared to facilitate recording the data needed for the next calculation.
[0039] The packet loss rate statistics method based on 5G URLLC redundant data packets provided by this invention can, for normal high-reliability scenarios, collect packet loss rate data of GTP tunnel by sending a packet loss rate detection packet. For scenarios with extremely high reliability requirements, a 256-bitmap is used, with the first half used to collect packet loss rate data and the second half used to record the forwarded sequence number. Three pointers, start, left, and right, are provided to record the key positions in the steps. Based on a multi-segment sliding window algorithm, the calculation of network transmission packet loss rate within a certain time is quickly realized, providing a basis for the system to adaptively enhance its reliability.
[0040] While this invention primarily describes applications in 5G network transmission, the method is equally applicable to other network transmission devices such as switches and routers. The 5G system is merely one example of the method's application and does not limit the scope or functionality of the method described herein. Furthermore, the operating platforms for this method include, but are not limited to, personal computer systems, server computer systems, mobile devices, programmable consumer electronics, minicomputer systems, and distributed cloud computing or container environments.
[0041] The computer program used to perform the method of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as C++ and procedural programming languages such as C.
[0042] The above content is only for illustrating the technical concept of the present invention and should not be construed as limiting the scope of protection of the present invention. Any modifications made to the technical solution based on the technical concept proposed in this invention shall fall within the scope of protection of the claims of this invention.
Claims
1. A method for calculating packet loss rate based on 5G URLLC redundant data packets, characterized in that, Includes the following steps: Step 1: Determine the application scenario of the 5G system. If the application scenario requires higher reliability than the set value, skip to step 4; otherwise, proceed to step 2. Step 2: The two ends of GTP are powered on and transmit data respectively. One end is designated as the sender and the other as the receiver. The sender starts a timer to periodically send packet loss rate monitoring packets to the receiver. The packet loss rate monitoring packets carry the number of packets sent by the sender during the two packet loss rate monitoring packet transmission periods. Step 3: After receiving the packet loss rate monitoring packet, the receiving end parses the value of the number of packets sent by the sending end and compares it with the number of data packets received locally to calculate the packet loss rate; Step 4: Set the data packet sequence bitmap. The bitmap sequence number is a circular sequence of unsigned integers, with a length l of at least 256 and an even number. The state of each bitmap element is represented by val, initially all of which are 0. Each bitmap element corresponds to an index, denoted by idx, with a value ranging from 0 to l-1. Initially, the start pointer points to the first bit of the bitmap, the right pointer points to the last bit, and the left pointer points to the index of idx. The last position is recorded as the sequence number pointed to by the left pointer; Step 5: When a data packet is received, parse the current sequence number carried in the data packet and determine whether the current sequence number is within the range pointed to by the pointers left and right. If it is, set the position of the current sequence number in the bitmap to 1 and repeat this step; otherwise, proceed directly to step 6. Step 6: Move the right pointer to the position pointing to the current sequence number. The left and start pointers follow the right pointer and move to the right by the same number of steps. The state value corresponding to each sequence number remains unchanged. Finally, set the bit pointed to by the right pointer to 1, which means that the current data packet has been received. Step 7: Determine if the start pointer has reached the last position recorded in step 4. If not, return to step 5 to continue receiving the next data packet. If it has reached the last position, continue to step 8. Step 8: Calculate the bitmap index idx from 0 to Count the number of all zeros in between, denoted as m, store the result in a buffer, update the value of last to the new sequence number pointed to by left, and return to step 5; Step 9: After the receiving end receives the data packet for the set time, it retrieves all the data in the buffer. If there is no data in the buffer, it waits for the next time interval to arrive; if there is data in the buffer, let the retrieved data be m1, m2, ... m n n is the number of data points, expressed as (m1+m2+......+m n The average packet loss rate within a set time period is calculated using (n*128). After the calculation is completed, the buffer is cleared.
Citation Information
Patent Citations
Method and apparatus for transmitting information in wireless communication system
CN104904254A
Terminal, wireless communication method, and base station
CN115997441A
