Packet loss rate detection method, communication device and communication system
By introducing the link status detection indication of the session management network element into the communication device, the device can quickly and accurately detect the packet loss rate of business data packets on the communication link, solving the problem of difficult detection in the existing technology and improving network performance. manage.
Patent Information
- Application Number
- CN202110152262.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-02-03
AI Technical Summary
Existing technology is difficult to quickly and accurately detect the packet loss rate of business data packets in communication links, making it difficult to optimize network performance.
The session management network element sends link status detection instructions to the device to enable the device to enable the link status detection function, including the packet loss rate detection function. The device can quickly and accurately detect the packet loss rate of service data packets on the link.
It achieves rapid and accurate detection of business data packet loss rate and improves network performance management and optimization capabilities.
Smart Images

Figure CN114928561B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a packet loss rate detection method, a communication device and a communication system. Background Art
[0002] When communication devices send service data packets to each other, the service data packets may be lost due to reasons such as link abnormality. For example, when a first device sends a service data packet to a second device, the service data packet may be lost.
[0003] How to quickly and accurately detect the packet loss rate of business data packets on the link is a problem that needs to be solved at present. Summary of the invention
[0004] The present application provides a packet loss rate detection method, a communication device and a communication system, which are used to quickly and accurately detect the packet loss rate of service data packets on a link.
[0005] In a first aspect, an embodiment of the present application provides a method for detecting a packet loss rate, the method comprising: a session management network element determines that a link status detection needs to be performed on a link where a service flow is located; the session management network element sends a link status detection indication to a first device and / or a second device, the link status detection indication is used to enable a link status detection function, and the link status detection function includes a packet loss rate detection function.
[0006] Based on the above solution, the session management network element can send a link status detection indication to the first device and / or the second device to enable the link status detection function of the first device and / or the second device. Thus, the first device and / or the second device can quickly and accurately detect the packet loss rate of the service data packets of the link based on the enabled link status detection function.
[0007] In one possible implementation method, the session management network element sends a counting indication to the second device; wherein the counting indication is used to instruct the second device to count the number of service data packets sent by the first device to the second device on the link, or the counting indication is used to instruct the second device to calculate the number of service data packets received on the link when receiving link status detection information, and send the number of service data packets received on the link to the first device.
[0008] Based on the above solution, the session management network element sends a counting indication to the second device, so that the second device can accurately count the received service data packets, which helps to improve the accuracy of packet loss rate calculation.
[0009] In one possible implementation method, the session management network element sends a packet loss rate detection indication to the second device; the packet loss rate detection indication is used to instruct the second device to calculate the packet loss rate of the service data packet when receiving link status detection information; or, the packet loss rate detection indication is used for the second device to calculate the number of service data packets received on the link when receiving link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packet.
[0010] In a possible implementation method, the session management network element sends a counting indication to the first device; wherein the counting indication is used to instruct the first device to count the number of service data packets sent by the first device to the second device on the link.
[0011] Based on the above solution, the session management network element sends a counting indication to the first device, so that the first device can accurately count the sent service data packets, which helps to improve the accuracy of packet loss rate calculation.
[0012] In a possible implementation method, the session management network element sends a packet loss rate detection indication to the first device; wherein the packet loss rate detection indication is used to instruct the first device to calculate the packet loss rate of the service data packet when receiving the number of received service data packets counted by the second device from the second device.
[0013] In a possible implementation method, the session management network element sends a link status reporting indication to the first device and / or the second device, and the link status reporting indication is used to indicate a packet loss rate of the service data packet to be reported; or, the session management network element sends a link status reporting frequency to the first device and / or the second device, and the link status reporting frequency is used to indicate a frequency of reporting a packet loss rate of the service data packet; or, the session management network element sends a link status reporting period to the first device and / or the second device, and the link status reporting period is used to indicate a period for reporting a packet loss rate of the service data packet.
[0014] Based on the above solution, the session management network element notifies the first device and / or the second device to report the packet loss rate, so that the network side, such as the session management network element, the policy control network element, etc., can implement network control based on the received packet loss rate, which helps to improve network performance.
[0015] In a possible implementation method, the service flow includes at least one quality of service QoS flow, and the QoS flow includes at least one service data flow; the session management network element determines that it is necessary to perform link status detection on the link where the service flow is located, including: the session management network element determines that the diversion function of the service data flow in the service flow is ATSSS-LL, and then determines that it is necessary to perform link status detection on the link where the service flow is located; or, the session management network element determines that the diversion function of the service data flow in the service flow is ATSSS-LL, and the diversion mode of the service data flow is one of the load balancing mode, the minimum delay mode, the priority-based mode or the active-standby mode, and then determines that it is necessary to perform link status detection on the link where the service flow is located; or, the session management network element determines that the link status threshold of the service flow is received from the policy control network element, and then determines that it is necessary to perform link status detection on the link where the service flow is located, and the link status threshold includes a packet loss rate threshold.
[0016] Based on the above solution, the packet loss rate of the service data packet is detected only when it is determined that the link state detection of the link where the service flow is located needs to be performed, which can reduce unnecessary overhead.
[0017] In a possible implementation method, the service flow includes any one of the following: a protocol data unit PDU session, a service data flow SDF, an IP data flow, an Ethernet data flow, or at least one QoS flow.
[0018] In a possible implementation method, the second device is a terminal device or a user plane network element.
[0019] In a possible implementation method, the link status detection indication includes an IP address and / or a port number of a link status detection function.
[0020] In a possible implementation method, the session management network element sends identification information of the service flow to the first device and / or the second device, and the identification information includes a PDU session identifier, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI; the link status detection indication is used to enable a link status detection function, including: the link status detection indication is used to enable a link status detection function for the service flow.
[0021] In a second aspect, an embodiment of the present application provides a method for detecting a packet loss rate, the method comprising: a second device receives first link status detection information from a first device via a link, the first link status detection information being used to indicate the number of service data packets sent by the first device to the second device on the link; the second device obtains the packet loss rate of the service data packets of the link based on the first link status detection information; and the second device sends the packet loss rate of the service data packets to the first device.
[0022] Based on the above solution, the first device can notify the second device of the number of service data packets sent by the first device to the second device on the link through the link status detection information, so that the second device can quickly calculate the packet loss rate of the service data packets according to the link status detection information. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0023] In a possible implementation method, before the second device receives the first link status detection information from the first device, the second device receives the second link status detection information from the first device through the link; the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate: the first number of service data packets sent by the first device to the second device on the link during the time when the first device sends the second link status detection information and the time when the first device sends the first link status detection information.
[0024] In a possible implementation method, the second device obtains the packet loss rate of the business data packets of the link based on the first link status detection information, including: the second device obtains the packet loss rate of the business data packets of the link during the time when the first device sends the second link status detection information and the first device sends the first link status detection information based on the first link status detection information.
[0025] In a possible implementation method, the second link state detection information is used to indicate an initial data packet or an initial time for calculating the packet loss rate.
[0026] In a possible implementation method, after the second device receives first link status detection information from the first device, the second device receives third link status detection information from the first device through the link; the third link status detection information is used to indicate: the first quantity, and the second quantity of service data packets sent by the first device to the second device on the link during the time when the first device sends the first link status detection information and the first device sends the third link status detection information.
[0027] Based on the above solution, carrying multiple numbers of service data packets in one link state detection information helps to eliminate the impact caused by the loss of link state detection information, thereby improving the accuracy of calculating the packet loss rate.
[0028] In a possible implementation method, the second device obtains the packet loss rate of the business data packets of the link based on the first link status detection information, including: the second device obtains the packet loss rate of the business data packets of the link within the time when the first device sends the second link status detection information and the first device sends the third link status detection information based on the first link status detection information; and / or, the second device obtains the packet loss rate of the business data packets of the link within the time when the first device sends the first link status detection information and the first device sends the third link status detection information based on the first link status detection information.
[0029] In a possible implementation method, the first link state detection information and the second link state detection information are two adjacent link state detection information.
[0030] In a possible implementation method, the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate: the third number of service data packets sent by the first device to the second device on the link during the time when the first device sends the initial service data packet on the link and the time when the first device sends the first link status detection information.
[0031] In a possible implementation method, the second device obtains the packet loss rate of the business data packets of the link based on the first link status detection information, including: the second device obtains the packet loss rate of the business data packets of the link during the time when the first device sends the initial data packet and the first device sends the first link status detection information based on the first link status detection information.
[0032] In a possible implementation method, the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate that the first device sends a default number of service data packets to the second device on the link.
[0033] Based on the above solution, the first device may not need to carry information about the number of sent service data packets in the link status detection information, thereby reducing overhead.
[0034] In a possible implementation method, the second device receives indication information from the first device, where the indication information is used to indicate the default quantity value.
[0035] In a possible implementation method, after the second device receives the first link status detection information from the first device, the second device receives fourth link status detection information from the first device through the link, and the fourth link status detection information is used to indicate: a fourth number of service data packets sent by the first device to the second device on the link within the time when the first device sends the first link status detection information and the first device sends the fourth link status detection information; the second device obtains the packet loss rate of the service data packets based on the first link status detection information, including: the second device obtains the packet loss rate of the service data packets within the time when the first device sends the second link status detection information and the first device sends the fourth link status detection information based on the first link status detection information and the fourth link status detection information.
[0036] Based on the above solution, the packet loss rate of the service data packets between the non-adjacent link state detection information is calculated, which can eliminate the influence caused by the disorder of the service data packets, thereby improving the accuracy of calculating the packet loss rate.
[0037] In a possible implementation method, the first link state detection information, the second link state detection information, the third link state detection information, and the fourth link state detection information include link state detection data packets.
[0038] In a possible implementation method, the service flow on the link includes any one of the following: a protocol data unit PDU session, a service data flow SDF, an IP data flow, an Ethernet data flow, or at least one QoS flow.
[0039] In a possible implementation method, the first device is a terminal device, and the second device is a user plane network element; or, the first device is a user plane network element, and the second device is a terminal device.
[0040] In a possible implementation method, the second device receives a link status detection indication from a session management network element, where the link status detection indication is used to enable a link status detection function, where the link status detection function includes a packet loss rate detection function.
[0041] In a possible implementation method, the second device receives identification information of the service flow from the session management network element, and the identification information includes a PDU session identifier, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI; the link status detection indication is used to enable a link status detection function, including: the link status detection indication is used to enable a link status detection function for the service flow.
[0042] In one possible implementation method, the second device receives a counting indication from a session management network element; wherein the counting indication is used to instruct the second device to count the number of service data packets sent by the first device to the second device on the link, or the counting indication is used to instruct the second device to calculate the number of service data packets received on the link when receiving link status detection information, and send the number of service data packets received on the link to the first device.
[0043] In one possible implementation method, the second device receives a packet loss rate detection indication from a session management network element; the packet loss rate detection indication is used to instruct the second device to calculate the packet loss rate of the service data packet when receiving link status detection information; or, the packet loss rate detection indication is used for the second device to calculate the number of service data packets received on the link when receiving link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packet.
[0044] In a possible implementation method, the second device receives a link status reporting indication from a session management network element, and the link status reporting indication is used to indicate a packet loss rate of the service data packet being reported; or, the second device receives a link status reporting frequency from the session management network element, and the link status reporting frequency is used to indicate a frequency of reporting a packet loss rate of the service data packet; or, the second device receives a link status reporting period from the session management network element, and the link status reporting period is used to indicate a period for reporting a packet loss rate of the service data packet.
[0045] In a third aspect, an embodiment of the present application provides a method for detecting a packet loss rate, the method comprising: a first device sends first link status detection information to a second device via a link, the first link status detection information being used to indicate the number of service data packets sent by the first device to the second device on the link; the first device receives a packet loss rate from the service data packets, the packet loss rate of the service data packets being obtained based on the first link status detection information.
[0046] Based on the above solution, the first device can notify the second device of the number of service data packets sent by the first device to the second device on the link through the link status detection information, so that the second device can quickly calculate the packet loss rate of the service data packets according to the link status detection information. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0047] In a possible implementation method, before the first device sends the first link status detection information to the second device, the first device sends second link status detection information to the second device through the link; the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate: the first number of service data packets sent by the first device to the second device on the link during the time when the first device sends the second link status detection information and the time when the first device sends the first link status detection information.
[0048] In a possible implementation method, the second link state detection information is used to indicate an initial data packet or an initial time for calculating the packet loss rate.
[0049] In a possible implementation method, after the first device sends the first link status detection information to the second device, the first device sends third link status detection information to the second device through the link; the third link status detection information is used to indicate: the first quantity, and the second quantity of service data packets sent by the first device to the second device on the link during the time when the first device sends the first link status detection information and the first device sends the third link status detection information.
[0050] Based on the above solution, carrying multiple numbers of service data packets in one link state detection information helps to eliminate the impact caused by the loss of link state detection information, thereby improving the accuracy of calculating the packet loss rate.
[0051] In a possible implementation method, the first link state detection information and the second link state detection information are two adjacent link state detection information.
[0052] In a possible implementation method, the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate: the third number of service data packets sent by the first device to the second device on the link during the time when the first device sends the initial service data packet on the link and the time when the first device sends the first link status detection information.
[0053] In a possible implementation method, the first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link, including: the first link status detection information is used to indicate that the first device sends a default number of service data packets to the second device on the link.
[0054] Based on the above solution, the first device may not need to carry information about the number of sent service data packets in the link status detection information, thereby reducing overhead.
[0055] In a possible implementation method, the first device sends indication information to the second device, where the indication information is used to indicate the default quantity value.
[0056] In a possible implementation method, the first link state detection information, the second link state detection information, and the third link state detection information include link state detection data packets.
[0057] In a possible implementation method, the service flow on the link includes any one of the following: a protocol data unit PDU session, a service data flow SDF, an IP data flow, an Ethernet data flow, or at least one QoS flow.
[0058] In a possible implementation method, the first device is a terminal device, and the second device is a user plane network element; or, the first device is a user plane network element, and the second device is a terminal device.
[0059] In a possible implementation method, the first device receives a link status detection indication from a session management network element, where the link status detection indication is used to enable a link status detection function, where the link status detection function includes a packet loss rate detection function.
[0060] In a possible implementation method, the first device receives identification information of the service flow from the session management network element, and the identification information includes a PDU session identifier, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI; the link status detection indication is used to enable a link status detection function, including: the link status detection indication is used to enable a link status detection function for the service flow.
[0061] In a possible implementation method, the first device receives a counting indication from a session management network element, where the counting indication is used to instruct the first device to count the number of service data packets sent by the first device to the second device on the link.
[0062] In a possible implementation method, the first device receives a link status reporting indication from a session management network element, and the link status reporting indication is used to indicate a packet loss rate of the service data packet being reported; or, the first device receives a link status reporting frequency from the session management network element, and the link status reporting frequency is used to indicate a frequency of reporting a packet loss rate of the service data packet; or, the first device receives a link status reporting period from the session management network element, and the link status reporting period is used to indicate a period for reporting a packet loss rate of the service data packet.
[0063] In a fourth aspect, an embodiment of the present application provides a method for detecting a packet loss rate, the method comprising: a second device receives fifth link status detection information from a first device via a link; the second device determines, based on the fifth link status detection information, the number of service data packets received by the second device from the first device on the link; the second device sends the number of service data packets to the first device, and the number of service data packets is used to determine the packet loss rate of the service data packets of the link.
[0064] Based on the above solution, the second device can notify the first device of the number of service data packets received by the second device from the first device on the link through link status detection information, so that the first device can quickly calculate the packet loss rate of the service data packets based on the number of service data packets received by the second device from the first device on the link. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0065] In a possible implementation method, before the second device receives the fifth link status detection information from the first device, the second device receives the sixth link status detection information from the first device through the link; the second device determines the number of service data packets received by the second device from the first device on the link based on the fifth link status detection information, including: the second device determines the number of service data packets received by the second device from the first device on the link during the time when the first device sends the sixth link status detection information and the first device sends the fifth link status detection information.
[0066] In a possible implementation method, the second device sends time information corresponding to the number of the service data packets to the first device.
[0067] In a possible implementation method, the time information includes a time period between when the first device sends the sixth link state detection information and when the first device sends the fifth link state detection information.
[0068] In a possible implementation method, the fifth link state detection information and the sixth link state are link state detection data packets, and the time information includes sequence number information corresponding to the link state detection data packets.
[0069] In a possible implementation method, the service flow on the link includes any one of the following: a protocol data unit PDU session, a service data flow SDF, an IP data flow, an Ethernet data flow, or at least one QoS flow.
[0070] In a possible implementation method, the first device is a terminal device, and the second device is a user plane network element; or, the first device is a user plane network element, and the second device is a terminal device.
[0071] In a possible implementation method, the second device receives a link status detection indication from a session management network element, where the link status detection indication is used to enable a link status detection function, where the link status detection function includes a packet loss rate detection function.
[0072] In a possible implementation method, the second device receives identification information of the service flow from the session management network element, and the identification information includes a PDU session identifier, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI; the link status detection indication is used to enable a link status detection function, including: the link status detection indication is used to enable a link status detection function for the service flow.
[0073] In one possible implementation method, the second device receives a counting indication from a session management network element; wherein the counting indication is used to instruct the second device to count the number of service data packets sent by the first device to the second device on the link, or the counting indication is used to instruct the second device to calculate the number of service data packets received on the link when receiving link status detection information, and send the number of service data packets received on the link to the first device.
[0074] In a fifth aspect, an embodiment of the present application provides a method for detecting a packet loss rate, the method comprising: a first device sends fifth link status detection information to a second device via a link; the first device receives the number of service data packets received by the second device from the first device on the link, and the number of service data packets is determined based on the fifth link status detection information; the first device determines the packet loss rate of the service data packets of the link based on the number of service data packets.
[0075] Based on the above solution, the second device can notify the first device of the number of service data packets received by the second device from the first device on the link through link status detection information, so that the first device can quickly calculate the packet loss rate of the service data packets based on the number of service data packets received by the second device from the first device on the link. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0076] In a possible implementation method, before the first device sends the fifth link status detection information to the second device, the first device sends the sixth link status detection information to the second device through the link, and the number of the service data packets is: the number of service data packets received by the second device from the first device on the link during the time when the first device sends the sixth link status detection information and the first device sends the fifth link status detection information; the first device determines the packet loss rate of the service data packets of the link based on the number of service data packets, including: the first device determines the packet loss rate of the service data packets of the link based on the number of service data packets and the number of service data packets sent by the first device to the second device on the link during the time when the first device sends the sixth link status detection information and the first device sends the fifth link status detection information.
[0077] In a possible implementation method, the first device receives time information corresponding to the number of the service data packets from the second device.
[0078] In a possible implementation method, the time information includes a time period between when the first device sends the sixth link state detection information and when the first device sends the fifth link state detection information.
[0079] In a possible implementation method, the fifth link state detection information and the sixth link state are link state detection data packets, and the time information includes sequence number information corresponding to the link state detection data packets.
[0080] In a possible implementation method, the service flow on the link includes any one of the following: a protocol data unit PDU session, a service data flow SDF, an IP data flow, an Ethernet data flow, or at least one QoS flow.
[0081] In a possible implementation method, the first device is a terminal device, and the second device is a user plane network element; or, the first device is a user plane network element, and the second device is a terminal device.
[0082] In a possible implementation method, the first device receives a link status detection indication from a session management network element, where the link status detection indication is used to enable a link status detection function, where the link status detection function includes a packet loss rate detection function.
[0083] In a possible implementation method, the first device receives identification information of the service flow from the session management network element, and the identification information includes a PDU session identifier, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI; the link status detection indication is used to enable a link status detection function, including: the link status detection indication is used to enable a link status detection function for the service flow.
[0084] In a possible implementation method, the first device receives a counting indication from a session management network element; wherein the counting indication is used to instruct the first device to count the number of service data packets sent by the first device to the second device on the link.
[0085] In a possible implementation method, the first device receives a packet loss rate detection indication from a session management network element; wherein the packet loss rate detection indication is used to instruct the first device to calculate the packet loss rate of the service data packet when receiving the number of received service data packets counted by the second device from the second device.
[0086] In a possible implementation method, the first device receives a link status reporting indication from a session management network element, and the link status reporting indication is used to indicate a packet loss rate of the service data packet being reported; or, the first device receives a link status reporting frequency from the session management network element, and the link status reporting frequency is used to indicate a frequency of reporting a packet loss rate of the service data packet; or, the first device receives a link status reporting period from the session management network element, and the link status reporting period is used to indicate a period for reporting a packet loss rate of the service data packet.
[0087] In a sixth aspect, an embodiment of the present application provides a communication device, which may be a session management network element, or a chip for a session management network element. The device has the function of implementing any implementation method of the first aspect above. The function may be implemented by hardware, or by hardware executing corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions.
[0088] In a seventh aspect, an embodiment of the present application provides a communication device, which may be a second device or a chip for a second device. The device has the function of implementing any implementation method in the second aspect or the fourth aspect. The function may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0089] In an eighth aspect, an embodiment of the present application provides a communication device, which may be a first device or a chip for the first device. The device has the function of implementing any implementation method in the third aspect or the fifth aspect. The function may be implemented by hardware or by executing corresponding software implementation by hardware. The hardware or software includes one or more modules corresponding to the above functions.
[0090] In the ninth aspect, an embodiment of the present application provides a communication device, including a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory to enable the device to execute any implementation method in the above-mentioned first to fifth aspects.
[0091] In a tenth aspect, an embodiment of the present application provides a communication device, comprising a unit or means for executing each step of any implementation method in the first to fifth aspects above.
[0092] In an eleventh aspect, an embodiment of the present application provides a communication device, including a processor and an interface circuit, wherein the processor is used to communicate with other devices through the interface circuit and execute any implementation method in the first to fifth aspects above. The processor includes one or more.
[0093] In a twelfth aspect, an embodiment of the present application provides a communication device, including a processor, which is coupled to a memory, and the processor is used to call a program stored in the memory to execute any implementation method in the first to fifth aspects above. The memory can be located inside the device or outside the device. And the processor includes one or more.
[0094] In the thirteenth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, any implementation method in the above-mentioned first to fifth aspects is executed.
[0095] In a fourteenth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program runs, any implementation method in the above-mentioned first to fifth aspects is executed.
[0096] In a fifteenth aspect, an embodiment of the present application further provides a chip system, comprising: a processor, configured to execute any implementation method in the first to fifth aspects above.
[0097] In the sixteenth aspect, an embodiment of the present application also provides a communication system, comprising a second device for executing any implementation method in the second aspect, and a first device for executing any implementation method in the third aspect.
[0098] As an implementation method, the communication system also includes a session management network element for executing any implementation method in the first aspect.
[0099] In the seventeenth aspect, an embodiment of the present application also provides a communication system, comprising a second device for executing any implementation method in the fourth aspect, and a first device for executing any implementation method in the fifth aspect.
[0100] As an implementation method, the communication system also includes a session management network element for executing any implementation method in the first aspect.
[0101] In the eighteenth aspect, an embodiment of the present application also provides a communication system, including a session management network element, used to execute any implementation method in the first aspect; and a first device or a second device, used to receive a link status detection indication from the session management network element, wherein the link status detection indication is used to enable a link status detection function. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] FIG1( a ) is a schematic diagram of a 5G network architecture based on a service-oriented architecture;
[0103] FIG1( b ) is a schematic diagram of a 5G network architecture based on a point-to-point interface;
[0104] FIG1( c ) is another schematic diagram of a 5G network architecture based on a point-to-point interface;
[0105] Figure 2 It is a schematic diagram of the relationship between PDU session and access technology;
[0106] Figure 3 A schematic diagram of a packet loss rate detection method provided in an embodiment of the present application;
[0107] Figure 4(a) to Figure 4(g) An example diagram of transmission of link status detection information and service data packets provided in an embodiment of the present application;
[0108] Figure 5 A schematic diagram of a packet loss rate detection method provided in an embodiment of the present application;
[0109] Figure 6 An example diagram of transmission of link status detection information and service data packets provided in an embodiment of the present application;
[0110] Figure 7 A schematic diagram of a packet loss rate detection method provided in an embodiment of the present application;
[0111] Figure 8 A schematic diagram of a packet loss rate detection method provided in an embodiment of the present application;
[0112] Fig. 9 A schematic diagram of a communication device provided in an embodiment of the present application;
[0113] Fig.10 A schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0114] In order to make the purpose, technical solution and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment.
[0115] As shown in Figure 1(a), it is a schematic diagram of the fifth generation (5G) network architecture based on the service-oriented architecture. The 5G network architecture shown in Figure 1(a) may include three parts, namely, the terminal equipment part, the data network (DN) and the operator network part. The functions of some of the network elements are briefly introduced below.
[0116] Among them, the operator network may include one or more of the following network elements: authentication server function (AUSF) network element, network exposure function (NEF) network element, policy control function (PCF) network element, unified data management (UDM) network element, unified data repository (UDR), network repository function (NRF) network element, access and mobility management function (AMF) network element, session management function (SMF) network element, radio access network (RAN) and user plane function (UPF) network element. In the above-mentioned operator network, the part other than the radio access network part can be called the core network part. In a possible implementation method, the operator network also includes an application function (AF) network element.
[0117] Terminal device is a device with wireless transceiver function, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal device can be a mobile phone, a tablet computer (pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, user equipment (UE), etc.
[0118] The above-mentioned terminal device can establish a connection with the operator network through the interface provided by the operator network (such as N1, etc.), and use the data and / or voice services provided by the operator network. The terminal device can also access the DN through the operator network, use the operator services deployed on the DN, and / or services provided by a third party. Among them, the above-mentioned third party may be a service provider other than the operator network and the terminal device, and can provide other data and / or voice services to the terminal device. Among them, the specific form of the above-mentioned third party can be determined according to the actual application scenario, and is not limited here.
[0119] RAN is a subnetwork of the operator network and an implementation system between the service nodes and terminal devices in the operator network. To access the operator network, the terminal device must first pass through the RAN, and then connect to the service nodes of the operator network through the RAN. RAN equipment is a device that provides wireless communication functions for terminal devices. RAN equipment is also called access network equipment. RAN equipment includes but is not limited to: next-generation base stations (g nodeB, gNB) in 5G, evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
[0120] The AMF network element mainly performs functions such as mobility management and access authentication / authorization. In addition, it is also responsible for transmitting user policies between the UE and the PCF.
[0121] The SMF network element mainly performs functions such as session management, execution of control policies issued by PCF, selection of UPF, and allocation of UE Internet Protocol (IP) addresses.
[0122] The UPF network element, as an interface with the data network, completes functions such as user plane data forwarding, session / flow-level billing statistics, and bandwidth limitation.
[0123] UDM network element is mainly responsible for managing contract data, user access authorization and other functions.
[0124] UDR is mainly responsible for the storage and access of contract data, policy data, application data and other types of data.
[0125] NEF network element is mainly used to support the opening of capabilities and events.
[0126] The AF network element mainly transmits the requirements of the application side to the network side, such as Quality of Service (QoS) requirements or user status event subscriptions. The AF can be a third-party functional entity or an application service deployed by an operator, such as the IP Multimedia Subsystem (IMS) voice call service.
[0127] The PCF network element is mainly responsible for policy control functions such as billing for sessions and service data flow levels, QoS bandwidth guarantee and mobility management, and UE policy decision-making. In this architecture, the PCFs connected to AMF and SMF correspond to AM PCF (PCF for Access and Mobility Control) and SM PCF (PCF for Session Management), respectively, and may not be the same PCF entity in actual deployment scenarios.
[0128] NRF network elements can be used to provide network element discovery functions and provide network element information corresponding to the network element type based on requests from other network elements. NRF also provides network element management services, such as network element registration, update, deregistration, and network element status subscription and push.
[0129] AUSF network element: Mainly responsible for authenticating users to determine whether users or devices are allowed to access the network.
[0130] DN is a network outside the operator network. The operator network can access multiple DNs. Multiple services can be deployed on DN, which can provide data and / or voice services to terminal devices. For example, DN is the private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. The control server of the sensors is deployed in DN, and the control server can provide services for the sensors. The sensors can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is the internal office network of a company. The mobile phones or computers of the company's employees can be terminal devices. The employees' mobile phones or computers can access information and data resources on the company's internal office network.
[0131] In Figure 1 (a), Nausf, Nnef, Npcf, Nudm, Naf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface serial numbers. The meanings of these interface serial numbers can be found in the meanings defined in the standard protocol of the 3rd Generation Partnership Project (3GPP), and are not limited here.
[0132] As shown in Figure 1(b), it is a schematic diagram of a 5G network architecture based on a point-to-point interface. The functions of the network elements can be introduced by referring to the functions of the corresponding network elements in Figure 1(a), which will not be repeated here. The main difference between Figure 1(b) and Figure 1(a) is that the interfaces between the network elements in Figure 1(b) are point-to-point interfaces, while the interfaces between the network elements in Figure 1(a) are service-oriented interfaces.
[0133] In the architecture shown in Figure 1(b), the interface names and functions between the network elements are as follows:
[0134] 1) N7: The interface between PCF and SMF, which can be used to send protocol data unit (PDU) session granularity and service data flow granularity control strategy.
[0135] 2) N15: The interface between PCF and AMF, which can be used to issue UE policies and access control related policies.
[0136] 3) N5: The interface between AF and PCF, which can be used to send application service requests and report network events.
[0137] 4) N4: The interface between SMF and UPF can be used to transmit information between the control plane and the user plane, including the control of the forwarding rules, QoS control rules, traffic statistics rules, etc. for the user plane and the reporting of information on the user plane.
[0138] 5) N11: The interface between SMF and AMF, which can be used to transfer PDU session tunnel information between RAN and UPF, transfer control messages sent to UE, transfer radio resource control information sent to RAN, etc.
[0139] 6) N2: The interface between AMF and RAN, which can be used to transmit radio bearer control information from the core network side to the RAN.
[0140] 7) N1: The interface between AMF and UE, which can be used to deliver QoS control rules to UE.
[0141] 8) N8: The interface between AMF and UDM, which can be used by AMF to obtain access and mobility management related subscription data and authentication data from UDM, and AMF to register UE's current mobility management related information with UDM.
[0142] 9) N10: The interface between SMF and UDM, which can be used by SMF to obtain session management related contract data from UDM, and SMF to register UE current session related information with UDM.
[0143] 10) N35: The interface between UDM and UDR, which can be used by UDM to obtain user contract data information from UDR.
[0144] 11) N36: The interface between PCF and UDR, which can be used by PCF to obtain policy-related contract data and application data-related information from UDR.
[0145] 12) N12: The interface between AMF and AUSF, which can be used by AMF to initiate an authentication process to AUSF, which can carry a subscription concealed identifier (SUCI) as a contract identifier;
[0146] 13) N13: The interface between UDM and AUSF, which can be used by AUSF to obtain the user authentication vector from UDM to execute the authentication process.
[0147] When the 5G core network supports untrusted Non-3GPP access, the 5G network architecture based on the point-to-point interface is shown in Figure 1(c). Among them, the access network includes a 3GPP access network and a non-3GPP (Non-3GPP) access network. The access equipment in the 3GPP access network can be called a radio access network (RAN) device. The access equipment in the non-3GPP access network can be called a non-3GPP interworking function (Non-3GPP InterWorking Function, N3IWF) device. N3IWF devices can include, for example, routers, etc.
[0148] It should be noted that when the 5G core network supports trusted Non-3GPP access, its 5G network architecture is similar to Figure 1(c). The untrusted Non-3GPP access in Figure 1(c) can be replaced with trusted Non-3GPP access, and the N3IWF can be replaced with a trusted Non-3GPP access gateway.
[0149] It is understandable that the above network element or function can be a network element in a hardware device, a software function running on dedicated hardware, or a virtualized function instantiated on a platform (e.g., a cloud platform). Optionally, the above network element or function can be implemented by one device, or by multiple devices, or a functional module in one device, which is not specifically limited in the embodiments of the present application.
[0150] The mobility management network element, session management network element, policy control network element, access network device, and user plane network element in this application can be the AMF, SMF, PCF, RAN, and UPF in Figure 1(a), Figure 1(b), or Figure 1(c), respectively, or can be a network element having the functions of the above-mentioned AMF, SMF, PCF, RAN, and UPF in future communications such as the sixth generation (6G) network, and this application is not limited to this. For the convenience of explanation, this application takes the mobility management network element, session management network element, policy control network element, access network device, and user plane network element as the above-mentioned AMF, SMF, PCF, RAN, and UPF as an example for explanation. Furthermore, this application takes the terminal device as UE as an example for explanation.
[0151] To facilitate understanding of the embodiments of the present application, some terms or nouns involved in the embodiments of the present application are explained below.
[0152] 1. Multi-access PDU (MA PDU) Session
[0153] For a single PDU session, multiple access technologies can be supported. Figure 2 The figure below is a schematic diagram of the relationship between PDU session and access technology. Figure 2 , the PDU session can be accessed through the first access technology or through the second access technology. In this scenario, the PDU session can be called an MA PDU session.
[0154] The first access technology is different from the second access technology, or is the same access technology but is used by different access network devices respectively. The first access technology and the second access technology can be, but are not limited to, any two of the following access technologies: 3GPP access, non3GPP access, long term evolution (LTE) access, 5GRAN access, trusted non3GPP access, untrusted non3GPP access, wireless local area network (WLAN) access, fixed network access, etc.
[0155] MA PDU sessions can enable the movement or concurrency of service flows between different access technologies. For example, a service flow is transmitted via a first access technology, and then the service flow is moved to a second access technology for transmission. Alternatively, service data packets of a service flow are transmitted using both the first access technology and the second access technology to expand bandwidth.
[0156] 2. Business Flow
[0157] In the embodiment of the present application, the service flow includes a PDU session, a service data flow (SDF), an IP data flow, an Ethernet data flow or at least one QoS flow.
[0158] A PDU session includes one or more QoS flows. A PDU session is identified by a PDU session ID.
[0159] A QoS flow includes one or more SDFs.
[0160] An SDF includes one or more IP flows, or one or more Ethernet flows. The IP data packets or Ethernet data packets in an SDF correspond to the same service data flow description information.
[0161] An IP flow includes one or more IP data packets, and the IP data packets in an IP flow have the same IP five-tuple information. The IP five-tuple information includes at least one of a source IP address, a destination IP address, a source port number, a destination port number or a protocol number.
[0162] An Ethernet flow includes one or more Ethernet data packets, and the Ethernet data packets in an Ethernet flow have the same Ethernet flow description information, which includes at least one of a source MAC address or a destination MAC address.
[0163] In the embodiment of the present application, the service data packet includes an IP data packet or an Ethernet data packet, etc.
[0164] 2. Steering mode of service data flow (SDF)
[0165] The traffic flow splitting mode of the service data flow is used to indicate how the service data flow is routed, moved or split in the data transmission channels of the two access technologies. The traffic flow splitting mode of the service data flow includes but is not limited to:
[0166] 1. Active-standby mode
[0167] The link corresponding to the Active access technology is the main link and can provide services. The link corresponding to the Standby access technology is the backup link and is in the backup state. The two can switch as the policy is updated.
[0168] In this mode, when the link corresponding to the Active access technology is available, the data is transmitted in this access technology. When the link corresponding to the Active access technology is unavailable, the service data flow is switched to the backup link corresponding to the Standby access technology. When the link of the Active access technology is restored from unavailable to available, the service data flow can be switched back to the Active access technology. If the Standby access technology is not defined, the service data flow is only allowed to be transmitted in the Active access technology.
[0169] 2. Smallest delay mode
[0170] In this mode, the service data flow is assigned to the access technology with the minimum round-trip time (RTT) for transmission. The UE and UPF can measure the link RTT of the first access technology and the link RTT of the second access technology, and compare the RTTs of the two links. If the link RTT of the first access technology is less than the link RTT of the second access technology, the service data flow is transmitted in the first access technology. If the link RTT of the second access technology is less than the link RTT of the first access technology, the service data flow is transmitted in the second access technology. If the link RTT of the first access technology is equal to the link RTT of the second access technology, the service data flow is transmitted in the first access technology or the second access technology. In addition, if one access technology is not available and the Policy and Charging Control (PCC) rules allow it, all service data flows can be switched to the data transmission channel of another access technology.
[0171] 3. Load-balancing mode
[0172] In this mode, if both access technologies are available, the service data stream is transmitted in the two access technologies. The service data stream is transmitted in the data transmission channels of the two access technologies according to the percentage of the transmitted service data stream.
[0173] If one access technology is unavailable, all service data flows are switched to another access technology, which is equivalent to the percentage of service data flows transmitted in the available access technology being 100 percent.
[0174] 4. Priority-based mode
[0175] In this mode, all service data flows are directed to the high-priority access technology until the link of the access technology is congested. When the link of the high-priority access technology is unavailable, all service data flows are switched to the low-priority access technology for transmission.
[0176] 3. Steering function of service data flow (SDF)
[0177] The business data flow diversion function is used to indicate the function of performing business flow diversion. The business data flow diversion function includes but is not limited to:
[0178] 1. Access traffic steering, switching, splitting low-layer (ATSSS-LL)
[0179] The ATSSS-LL function is implemented at the IP layer or below the IP layer, so it is called the bottom-level diversion function. The above-mentioned diversion function selects a link corresponding to the access technology for the service flow data packet to transmit the service data packet based on the diversion mode and the current link status. The above-mentioned link status is the link status of at least one link between the UE and the UPF. The UE and the UPF perform link status detection based on a link status detection protocol, such as a performance measurement function (PMF) protocol. ATSSS-LL selects, switches or splits the service flow based on the link status detection result and the diversion mode.
[0180] 2. MultiPath transmission control protocol (MPTCP)
[0181] The MPTCP offloading function is a service data packet routing, switching or splitting function implemented based on MPTCP. The above offloading function selects a link corresponding to the access technology for the service data packet to transmit the service data packet based on the offloading mode and the link status detected by the TCP layer.
[0182] In a multi-access scenario, service flows (such as PDU sessions, IP flows, Ethernet flows, SDFs, or at least one QoS flow, etc.) need to select access technologies based on link status (such as packet loss rate, latency, bandwidth, etc.), so the UE and UPF need to detect the link status in real time. Of course, in a single-access scenario, the service flow may also require the UE and UPF to detect the link status in real time. For example, the UE or UPF needs to decide how to adjust the transmission speed of the service data packet based on the link status.
[0183] At present, the method for UE and UPF to detect the packet loss rate in the link state is: based on the transport layer protocol, such as the Transmission Control Protocol (TCP) or the quick UDP internet connections (QUIC) protocol for link state perception, where UDP is the abbreviation of the user datagram protocol. Specifically, the sender carries the sequence number in the sent service data packet, and the receiving end sends an acknowledgment (ACK) for the service data packet to the sender after receiving the service data packet, so that the receiving end can determine the number of service data packets actually sent by the sender according to the sequence number of the service data packet, and then determine the packet loss rate of the service data packet according to the number of service data packets actually sent by the sender and the number of service data packets actually received by the receiving end. The sender can determine the packet loss rate of the service data packet according to the number of acknowledgments of the service data packets sent by the receiving end and the number of service data packets actually sent by the sending end.
[0184] In the uplink direction, the transmitting end is the UE and the receiving end is the UPF. In the downlink direction, the transmitting end is the UPF and the receiving end is the UE.
[0185] The above solution for determining the packet loss rate of service data packets based on the transport layer protocol has the following problems:
[0186] First, there is a certain delay. For example, when measuring the packet loss rate based on TCP, when the sender sends a service data packet to the receiver, one or more minimum round-trip times (RTTs) are required. If no confirmation response is received for the service data packet before one or more RTTs, the sender confirms that the service data packet is lost, that is, confirms that the service data packet has not been received by the receiver. Therefore, when the sender calculates the packet loss rate, there is a certain delay, and the delay is related to the time to wait for the confirmation response.
[0187] Second, the efficiency is low. Since the packet loss rate is determined based on the transport layer protocol, the sender or receiver needs to parse the service data packet based on the transport layer protocol, which leads to low efficiency in determining the packet loss rate.
[0188] In order to quickly and accurately determine the packet loss rate, the embodiment of the present application provides a corresponding packet loss rate detection method.
[0189] It should be noted that in the embodiment of the present application, the first device is the sender of the service data packet, and the second device is the receiver of the service data packet. In the uplink direction, the first device is the UE, and the second device is the UPF. In the downlink direction, the first device is the UPF, and the second device is the UE.
[0190] It should be noted that, in the embodiments of the present application, the link state detection information (such as the first link state detection information, the second link state detection information, the third link state detection information, the fourth link state detection information, the fifth link state detection information, the sixth link state detection information, etc. in the following embodiments) may include a link state detection data packet, which is different from the service data packet. Specifically, the service data packet is used to transmit data, the link state detection data packet is used to indicate the number of service data packets received or sent, and the link state detection data packet can be used to calculate the packet loss rate of the service data packet.
[0191] It should be noted that in the embodiments of the present application, "link" can be understood as "channel", such as 3GPP link, non3GPP link, etc. What is transmitted in the link is a service flow, and the service data flow can be a PDU session, SDF, IP flow, Ethernet flow or at least one QoS flow. Link state detection is the detection of the state of the link where the service flow is located.
[0192] In the embodiment of the present application, the smallest transmission unit transmitted in the service flow is a service data packet. That is, no matter it is a PDU session, SDF, Ethernet flow, IP flow or at least one QoS flow, it is composed of one or more service data packets.
[0193] refer to Figure 3 , a schematic diagram of a packet loss rate detection method provided in an embodiment of the present application. The method comprises the following steps:
[0194] Step 301: A first device sends first link status detection information to a second device via a link. Correspondingly, the second device receives the first link status detection information.
[0195] The first link status detection information is used to indicate the number of service data packets sent by the first device to the second device on the link.
[0196] Step 302: The second device obtains a packet loss rate of service data packets of the link according to the first link status detection information.
[0197] For example, the second device determines the number of business data packets sent by the first device to the second device on the link based on the first link status detection information, and then the second device can also obtain the number of business data packets received by the second device from the first device on the link, so that the second device can calculate the packet loss rate of the business data packets of the link based on the ratio of the two.
[0198] Step 303: The second device sends the packet loss rate of the service data packet to the first device. Correspondingly, the first device receives the packet loss rate of the service data packet.
[0199] After the first device receives the packet loss rate of the service data packet, it can evaluate the link, and thus determine the corresponding strategy based on the evaluation result or report the packet loss rate of the service data packet to other devices (such as SMF, PCF, etc.), etc.
[0200] Based on the above solution, the first device can notify the second device of the number of service data packets sent by the first device to the second device on the link through the link status detection information, so that the second device can quickly calculate the packet loss rate of the service data packets according to the link status detection information. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0201] As an implementation method, before the above step 301, the first device also sends second link status detection information to the second device through the above link. Accordingly, when the second device receives the second link status detection information, the above first link status detection information is specifically used to indicate the first number of service data packets sent by the first device to the second device on the link within the time when the first device sends the second link status detection information and the first device sends the first link status detection information. In this case, the above step 302 can be specifically: the second device obtains the packet loss rate of the service data packets of the link within the time when the first device sends the second link status detection information and the first device sends the first link status detection information based on the first link status detection information. Among them, the second link status detection information and the first link status detection information can be two adjacent link status detection information, or can be two non-adjacent link status detection information.
[0202] The solution is described below with reference to a specific example.
[0203] Refer to Figure 4 (a), which is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are transmitted sequentially on a link. And link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking the above-mentioned first link state detection information and second link state detection information as two adjacent link state detection information as an example, when the first link state detection information is link state detection information d, the second link state detection information is link state detection information c; when the first link state detection information is link state detection information c, the second link state detection information is link state detection information b; when the first link state detection information is link state detection information b, the second link state detection information is link state detection information a. Among them, link state detection information d carries the number of service data packets between link state detection information c and link state detection information d, that is, the number of service data packets carried by link state detection information d = 3. Link state detection information c carries the number of service data packets between link state detection information b and link state detection information c, that is, the number of service data packets carried by link state detection information c = 2. Link state detection information b carries the number of service data packets between link state detection information a and link state detection information b, that is, the number of service data packets carried by link state detection information b = 2.
[0204] With respect to this example, the number of service data packets sent between two adjacent link state detection information is indicated or carried by the later link state detection information of the two adjacent link state detection information.
[0205] For this example, the second device can calculate the packet loss rate of the service data packets between two adjacent link state detection information. For example, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device can calculate:
[0206] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 50%;
[0207] The packet loss rate of the service data packets between the link state detection information b and the link state detection information c is: 0%;
[0208] The packet loss rate of the service data packets between the link state detection information c and the link state detection information d is: 33.3%.
[0209] Of course, the second device can also calculate:
[0210] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 25%;
[0211] The packet loss rate of the service data packets between the link state detection information a and the link state detection information d is: 28.6%;
[0212] The packet loss rate of the service data packets between the link state detection information b and the link state detection information d is: 20%.
[0213] Whether the second device specifically calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packets based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0214] When the above-mentioned first link state detection information is not adjacent to the second link state detection information, the second link state detection information is used to indicate the initial data packet or initial time for calculating the packet loss rate, that is, the number of service data packets sent by the first device indicated by the first link state detection information is calculated with reference to the second link state detection information.
[0215] The solution is described below with reference to a specific example.
[0216] Refer to Figure 4(b), which is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are transmitted sequentially on a link. And link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking the link state detection information a as a reference, the link state detection information a is also called the second link state detection information, and the first link state detection information can be the link state detection information b, c or d. Among them, the link state detection information b carries the number of service data packets between the link state detection information a and the link state detection information b, that is, the number of service data packets carried by the link state detection information b = 2. The link state detection information c carries the number of service data packets between the link state detection information a and the link state detection information c, that is, the number of service data packets carried by the link state detection information c = 4. The link state detection information d carries the number of service data packets between the link state detection information a and the link state detection information d, that is, the number of service data packets carried by the link state detection information d=7.
[0217] For this example, the number of service data packets carried by a link state detection information is the number of service data packets sent between the link state detection information and the reference link state detection information.
[0218] For this example, the second device can calculate the packet loss rate of the service data packets between adjacent link state detection information. Exemplarily, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device can calculate:
[0219] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 50%;
[0220] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 25%;
[0221] The packet loss rate of the service data packets between the link state detection information a and the link state detection information d is: 28.6%;
[0222] Alternatively, the second device may also calculate the number of service data packets sent between two adjacent link state detection messages based on the number of service data packets carried by each link state detection message, thereby calculating the packet loss rate of the service data packets before any two adjacent link state detection messages.
[0223] Among them, whether the second device calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packet based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0224] It should be noted that, in this example, different link state detection information may correspond to the same reference link state detection information, or may correspond to different reference link state detection information. For example, in the above example, link state detection information b, c, and d all use link state detection information a as reference link state detection information. For another example, in the above example, link state detection information b and c may both use link state detection information a as reference link state detection information, and link state detection information d may use link state detection information b as reference link state detection information, and so on. The embodiments of the present application do not limit whether the reference link state detection information is a fixed link state detection information or multiple link state detection information.
[0225] Optionally, identification information of the referenced link state detection information may also be carried in the link state detection information, so that the second device can know which link state detection information is used to count the number of service data packets carried by the link state detection information. For example, in the above example, identification information of link state detection information a may be carried in link state detection information b, c, d.
[0226] Of course, the moment before or after a service data packet is sent can also be used as a reference time, and then the number of service data packets sent by the first device indicated by the link state detection information (such as the first link state detection information mentioned above) is calculated with reference to the reference time. As an implementation method, the reference time can be a moment before the initial service data packet is sent. Therefore, the first link state detection information in the above step 301 can be specifically used to indicate: the third number of service data packets sent by the first device to the second device on the link within the time when the first device sends the initial service data packet on the link and the first device sends the first link state detection information. In this case, the above step 302 can specifically be: the second device obtains the packet loss rate of the service data packet of the link within the time when the first device sends the initial data packet and the first device sends the first link state detection information according to the first link state detection information.
[0227] The solution is described below with reference to a specific example.
[0228] Refer to Figure 4(c), which is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are transmitted sequentially on a link. Link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking a moment before the sending moment of service data packet 1 as the reference time as an example, the above-mentioned first link state detection information can be link state detection information a, b, c or d in this example. Among them, link state detection information a carries the number of service data packets between the reference time and link state detection information a, that is, the number of service data packets carried by link state detection information a = 1. Link state detection information b carries the number of service data packets between the reference time and link state detection information b, that is, the number of service data packets carried by link state detection information b = 3. Link state detection information c carries the number of service data packets between the reference time and link state detection information c, that is, the number of service data packets carried by link state detection information c = 5. The link state detection information d carries the number of service data packets between the reference time and the link state detection information d, that is, the number of service data packets carried by the link state detection information d=8.
[0229] For this example, the number of service data packets carried by a link state detection message is the number of service data packets sent between the link state detection message and the reference time.
[0230] For this example, the second device can calculate the packet loss rate of the service data packets between adjacent link state detection information. Exemplarily, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device can calculate:
[0231] The packet loss rate of the service data packet between the reference time and the link state detection information a is: 0%;
[0232] The packet loss rate of the service data packets between the reference time and the link status detection information b is: 33.3%;
[0233] The packet loss rate of the service data packets between the reference time and the link state detection information c is: 20%;
[0234] The packet loss rate of the service data packets between the reference time and the link state detection information d is: 25%;
[0235] Alternatively, the second device may also calculate the number of service data packets sent between two adjacent link state detection messages based on the number of service data packets carried by each link state detection message, thereby calculating the packet loss rate of the service data packets before any two adjacent link state detection messages.
[0236] Among them, whether the second device calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packet based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0237] As an implementation method, before the above step 301, the first device also sends the second link state detection information to the second device through the above link, and after the above step 301, the first device also sends the third link state detection information to the second device through the above link. The third link state detection information is used to indicate the first quantity and the second quantity. Among them, the first quantity refers to the number of service data packets sent by the first device to the second device on the link during the time when the first device sends the second link state detection information and the first device sends the first link state detection information. The second quantity refers to the number of service data packets sent by the first device to the second device on the link during the time when the first device sends the first link state detection information and the first device sends the third link state detection information. In this case, the above step 302 can be specifically: the second device obtains the packet loss rate of the service data packets of the link within the time when the first device sends the second link state detection information and the first device sends the third link state detection information according to the first link state detection information; and / or, the second device obtains the packet loss rate of the service data packets of the link within the time when the first device sends the first link state detection information and the first device sends the third link state detection information according to the first link state detection information. The second link state detection information and the first link state detection information may be two adjacent link state detection information or two non-adjacent link state detection information.
[0238] The solution is described below with reference to a specific example.
[0239] Refer to Figure 4(d), which is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are sequentially transmitted on a link. Link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking the first link state detection information as link state detection information c as an example, the second link state detection information is link state detection information b, and the third link state detection information is link state detection information d.
[0240] The link state detection information c carries the number of service data packets between the link state detection information b and the link state detection information c, which is 2, and the number of service data packets between the link state detection information a and the link state detection information b, which is 2. The link state detection information d carries the number of service data packets between the link state detection information c and the link state detection information d, which is 3, and the number of service data packets between the link state detection information b and the link state detection information c, which is 2.
[0241] For this example, a link state detection message may carry one or more numbers of service data packets. For example, in the above example, two numbers of service data packets are carried, and of course, three numbers or four numbers may also be carried. Of course, for the initial link state detection message, one number of service data packets may be carried.
[0242] For this example, the second device can calculate the packet loss rate of the service data packets between adjacent link state detection information. Exemplarily, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device can calculate:
[0243] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 50%;
[0244] The packet loss rate of the service data packets between the link state detection information b and the link state detection information c is: 0%;
[0245] The packet loss rate of the service data packets between the link state detection information c and the link state detection information d is: 33.3%;
[0246] Of course, the second device can also calculate:
[0247] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 25%;
[0248] The packet loss rate of the service data packets between the link state detection information a and the link state detection information d is: 28.6%;
[0249] The packet loss rate of the service data packets between the link state detection information b and the link state detection information d is: 20%.
[0250] Among them, whether the second device calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packet based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0251] It should be noted that in the above implementation, two numbers of service data packets are carried in one link state information. In practical applications, three or more numbers of service data packets may also be carried in one link state detection information. The embodiment of the present application is not limited to the number information of service data packets carried in the link state detection information.
[0252] Among them, the advantage of carrying multiple numbers of service data packets in a link state detection information is that it can reduce the impact of the link state detection information, thereby improving the accuracy and speed of detecting the packet loss rate of the service data packets. Taking Figure 4 (d) as an example, when the link state detection information is lost, the second device cannot know the number of service data packets sent between the link state detection information a and the link state detection information b, but when the second device receives the link state detection information c, it can know the number of service data packets sent between the link state detection information a and the link state detection information b, thereby eliminating the impact caused by the loss of the link state detection information b.
[0253] As an implementation method, the first link state detection information of step 301 is specifically used to indicate that the first device sends a default number of service data packets to the second device on the link. Optionally, the default number may be preconfigured on the first device and the second device, or predefined by the protocol, or the first device may determine the default number and then notify the second device, such as sending indication information to the second device to indicate the default number value.
[0254] It should be noted that the default number can be dynamically updated, for example, the second device can dynamically notify the first device of the latest default number, or other network elements such as SMF, PCF, etc. can dynamically notify the first device of the latest default number.
[0255] The solution is described below with reference to a specific example.
[0256] Refer to Figure 4(e), which is an example diagram of the transmission of link state detection information and service data packets. In this example, multiple service data packets are transmitted sequentially on a link, and a link state detection message is sent every certain number. Taking the default number of 100 as an example, after every 100 service data packets are sent, a link state detection message is sent. Therefore, 100 service data packets are sent between link state detection information a and link state detection information b, 100 service data packets are sent between link state detection information b and link state detection information c, and so on. In addition, the link state detection information does not need to carry the number of service data packets sent.
[0257] For this example, the second device can calculate the packet loss rate of the service data packets between adjacent link state detection information. For example, assuming that 3 service data packets are lost between link state detection information a and link state detection information b, and 4 service data packets are lost between link state detection information b and link state detection information c, the second device can calculate:
[0258] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 3%;
[0259] The packet loss rate of the service data packets between the link state detection information b and the link state detection information c is: 4%.
[0260] Of course, the second device can also calculate:
[0261] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 3.5%.
[0262] Among them, whether the second device calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packet based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0263] As an implementation method, before the above step 301, the first device also sends second link status detection information to the second device through the above link, and after the above step 301, the first device also sends fourth link status detection information to the second device through the above link. The fourth link status detection information is used to indicate the fourth number of service data packets sent by the first device to the second device on the link within the time when the first device sends the first link status detection information and the first device sends the fourth link status detection information. In this case, the above step 302 can specifically be: the second device obtains the packet loss rate of the service data packets within the time when the first device sends the second link status detection information and the first device sends the fourth link status detection information based on the first link status detection information and the fourth link status detection information. Among them, the second link status detection information and the first link status detection information can be two adjacent link status detection information, or can be two non-adjacent link status detection information.
[0264] The solution is described below with reference to a specific example.
[0265] Refer to Figure 4(f), which is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are transmitted sequentially on a link. Link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking the first link state detection information as link state detection information c as an example, the second link state detection information is link state detection information b, and the fourth link state detection information is link state detection information d. Taking the first link state detection information as link state detection information b as an example, the second link state detection information is link state detection information a, and the fourth link state detection information is link state detection information c.
[0266] The link state detection information c carries the number of service data packets between the link state detection information a and the link state detection information c, which is 4. The link state detection information d carries the number of service data packets between the link state detection information b and the link state detection information d, which is 5.
[0267] For this example, the second device can calculate the packet loss rate of the service data packets between the link state detection information. For example, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device can calculate:
[0268] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 25%;
[0269] The packet loss rate of the service data packets between the link state detection information b and the link state detection information d is: 20%.
[0270] Of course, the second device can also calculate:
[0271] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 50%;
[0272] The packet loss rate of the service data packets between the link state detection information b and the link state detection information c is: 0%;
[0273] The packet loss rate of the service data packets between the link state detection information c and the link state detection information d is: 33.3%;
[0274] The packet loss rate of the service data packets between the link state detection information a and the link state detection information d is: 28.6%.
[0275] Among them, whether the second device calculates the packet loss rate of the service data packets between two adjacent link state detection information or calculates the packet loss rate of the service data packets between two non-adjacent link state detection information depends on the specific implementation, and the embodiment of the present application does not limit it. As an implementation method, the second device can determine the time point for calculating the packet loss rate of the service data packet based on the configured parameters such as the packet loss rate detection period and the packet loss rate detection frequency.
[0276] It should be noted that in the above example, when the second device calculates the packet loss rate of the business data packet between two adjacent link state detection information, it can realize the timely calculation of the packet loss rate of the business data packet, which is convenient for the first device, the second device or other devices to make quick decisions based on the packet loss rate. When the second device calculates the packet loss rate of the business data packet between two non-adjacent link state detection information, that is, when three or more link state detection information are received, the packet loss rate of the business data packet is calculated once, then the impact of the disorder of the business data packet can be reduced, and the accuracy of calculating the packet loss rate of the business data packet can be improved. Exemplarily, refer to Figure 4 (g), which is an example diagram of the transmission of link state detection information and business data packets. In this example, the first device sends business data packets 1 to 8 to the second device in sequence, wherein the order in which the second device first receives the business data packets is: business data packet 1, business data packet 3, business data packet 2, business data packet 4, business data packet 5, business data packet 6, business data packet 7, business data packet 8. Taking the case where service data packet 7 is lost and other service data packets are received by the second device as an example, if the second device calculates the packet loss rate of service data packets between two adjacent link state detection information, the packet loss rate of service data packets sent between link state detection information a and link state detection information b is calculated to be: 50%, but in fact service data packet 2 is not lost, so the packet loss rate of service data packets sent between link state detection information a and link state detection information b should actually be 0%. If the second device calculates the packet loss rate of service data packets between two non-adjacent link state detection information, for example, the packet loss rate of service data packets sent between link state detection information a and link state detection information c is calculated to be: 0%, which is consistent with the actual packet loss rate. Therefore, when the second device calculates the packet loss rate of service data packets between two non-adjacent link state detection information, it can reduce the impact of the disorder of service data packets and improve the accuracy of calculating the packet loss rate of service data packets.
[0277] refer to Figure 5 , the embodiment of the present application also provides a schematic diagram of a method for detecting packet loss rate. The method comprises the following steps:
[0278] Step 501: A first device sends fifth link status detection information to a second device via a link. Correspondingly, the second device receives the fifth link status detection information.
[0279] Step 502: The second device determines the number of service data packets received by the second device from the first device on the link according to the fifth link state detection information.
[0280] Since some service data packets may be lost during the transmission process, the number of service data packets received by the second device from the first device on the link may be less than the number of service data packets sent by the first device to the second device on the link.
[0281] Step 503: The second device sends the number of service data packets received by the second device from the first device on the link to the first device. Correspondingly, the first device receives the number of service data packets received by the second device from the first device on the link.
[0282] Step 504: The first device determines a packet loss rate of service data packets of the link according to the number of service data packets.
[0283] For example, the first device can calculate the packet loss rate of the business data packets of the link based on the ratio of the number of business data packets sent by the first device to the second device on the link and the number of business data packets received by the second device from the first device on the link.
[0284] Based on the above solution, the second device can notify the first device of the number of service data packets received by the second device from the first device on the link through link status detection information, so that the first device can quickly calculate the packet loss rate of the service data packets based on the number of service data packets received by the second device from the first device on the link. And because there is no need to parse the service data packets or confirm whether the service data packets are lost, the calculation speed of the packet loss rate can be improved.
[0285] As an implementation method, before the above step 501, the first device also sends the sixth link status detection information to the second device through the above link. Accordingly, the second device receives the sixth link status detection information, and the above step 502 can be specifically: the second device determines the number of service data packets received by the second device from the first device on the link within the time when the first device sends the sixth link status detection information and the first device sends the fifth link status detection information (hereinafter referred to as the fifth number). The above step 506 can be specifically: the first device determines the packet loss rate of the service data packets of the link based on the fifth number and the sixth number. Among them, the sixth number refers to the number of service data packets sent by the first device to the second device on the link within the time when the first device sends the sixth link status detection information and the first device sends the fifth link status detection information.
[0286] Optionally, the first device also sends time information corresponding to the determined number of service data packets to the second device, and the time information includes a time period between when the first device sends the sixth link state detection information and when the first device sends the fifth link state detection information. Optionally, the fifth link state detection information and the sixth link state detection information are link state detection data packets, and the time information includes sequence number information corresponding to the link state detection data packets.
[0287] The sixth link state detection information and the fifth link state detection information may be two adjacent link state detection information or two non-adjacent link state detection information.
[0288] The solution is described below with reference to a specific example.
[0289] refer to Figure 6 , is an example diagram of the transmission of link state detection information and service data packets. In this example, service data packets 1 to 8 are sequentially transmitted on a link. Link state detection information a is sent after service data packet 1, link state detection information b is sent after service data packet 3, link state detection information c is sent after service data packet 5, and link state detection information d is sent after service data packet 8. Taking the above-mentioned fifth link state detection information and sixth link state detection information as two adjacent link state detection information as an example, when the fifth link state detection information is link state detection information d, the sixth link state detection information is link state detection information c; when the fifth link state detection information is link state detection information c, the sixth link state detection information is link state detection information b; when the fifth link state detection information is link state detection information b, the sixth link state detection information is link state detection information a.
[0290] Exemplarily, assuming that service data packets 3 and 7 are lost, that is, the second device does not receive service data packets 3 and 7, the second device sends the following information to the first device:
[0291] The number of service data packets received between link state detection information a and link state detection information b: 1;
[0292] The number of service data packets received between link state detection information b and link state detection information c: 2;
[0293] The number of service data packets received between link state detection information c and link state detection information d: 2.
[0294] Alternatively, the second device may also send the following information to the first device:
[0295] The number of service data packets received between link state detection information a and link state detection information c: 3;
[0296] The number of service data packets received between link state detection information a and link state detection information d: 5;
[0297] The number of service data packets received between link state detection information b and link state detection information d: 4.
[0298] Whether the second device specifically sends the number of service data packets received between two adjacent link status detection messages to the first device, or sends the number of service data packets received between two non-adjacent link status detection messages to the first device, depends on the specific implementation and is not limited in the embodiments of the present application.
[0299] The first device can calculate:
[0300] The packet loss rate of the service data packets between the link state detection information a and the link state detection information b is: 50%;
[0301] The packet loss rate of the service data packets between the link state detection information b and the link state detection information c is: 0%;
[0302] The packet loss rate of the service data packets between the link state detection information c and the link state detection information d is: 33.3%;
[0303] Of course, the first device can also calculate:
[0304] The packet loss rate of the service data packets between the link state detection information a and the link state detection information c is: 25%;
[0305] The packet loss rate of the service data packets between the link state detection information a and the link state detection information d is: 28.6%;
[0306] The packet loss rate of the service data packets between the link state detection information b and the link state detection information d is: 20%.
[0307] As an implementation method, for the above Figure 3 or Figure 5 In any implementation scheme of the invention, for each link state detection information sent by the first device, after receiving the link state detection information, the second device sends a response information for the link state detection information to the first device, and the response information may also be a link state detection information. Figure 3 In any corresponding implementation scheme, after calculating the packet loss rate of the service data packet, the second device can carry the packet loss rate of the service data packet in the response information. Figure 5In any corresponding implementation scheme, the second device carries the number of received service data packets in the response information.
[0308] As an implementation method, for the above Figure 3 or Figure 5 In any implementation scheme, when the first device sends link state detection information to the second device, identification information can be carried in the link state detection information, and the identification information may include a procedure transport identifier (PTI), or include a procedure transport identifier and a sequence number.
[0309] For example, when the identification information carried in the link state detection information sent by the first device to the second device includes a process transmission identifier (PTI), the response information sent by the second device to the first device for the link state detection information also carries the process transmission identifier. In this scheme, the functions of the process transmission identifier are as follows: first, it is used to identify the link state detection information, that is, to distinguish different link state detection information; second, it is used to sort different link state detection information; third, it is used to associate the link state detection information with the response information for the link state detection information. Exemplarily, the link state detection information sent by the first device to the second device is: link state detection information 1 (PTI-1), link state detection information 2 (PTI-2), link state detection information 3 (PTI-3), link state detection information 4 (PTI-4), and the response information sent by the second device is: link state detection information 1' (PTI-1), link state detection information 2' (PTI-2), link state detection information 3' (PTI-3), link state detection information 4' (PTI-4). For example, if the second device does not receive the link state detection information 2, the second device may infer, based on PTI-1, PTI-3, and PTI-4, that it has not received the link state detection information 2 corresponding to PTI-2.
[0310] For another example, when the identification information carried in the link state detection information sent by the first device to the second device includes a process transmission identifier (PTI) and a sequence number, the response information sent by the second device to the first device in response to the link state detection information also carries the process transmission identifier and the sequence number. Among them, the process transmission identifier in the link state detection information sent by the first device and the process transmission identifier in the response information received in response to the link state detection information, and the sequence number in the link state detection information sent by the first device and the sequence number in the response information received in response to the link state detection information can be the same or different. In this scheme, the role of the process transmission identifier is as follows: first, it is used to identify the link state detection information, that is, to distinguish between unused link state detection information; second, it is used to associate the link state detection information with the response information to the link state detection information. The role of the sequence number is: to sort different link state detection information. Exemplarily, the link state detection information sent by the first device to the second device is: link state detection information 1 (PTI-a, SN-1), link state detection information 2 (PTI-b, SN-2), link state detection information 3 ((PTI-c, SN-3)), link state detection information 4 ((PTI-d, SN-4)), and the response information sent by the second device to the first device for the received link state detection information is: link state detection information 1' (PTI-a, SN-1'), link state detection information 2' (PTI-b, SN-2'), link state detection information 3' ((PTI-c, SN-3')), link state detection information 4' ((PTI-d, SN-4')). Among them, SN-1 and SN-1' can be the same or different, SN-2 and SN-2' can be the same or different, SN-3 and SN-3' can be the same or different, and SN-4 and SN-4' can be the same or different. Optionally, the response information sent by the second device to the first device in response to the received link state detection information may not carry a sequence number, such as SN-1', SN-2', SN-3', and SN-4' in the above example. For example, if the second device does not receive link state detection information 2, the second device can infer that the link state detection information 2 corresponding to PTI-2 has not been received based on SN-1, SN-3, and SN-4.
[0311] As an implementation method, the first device or the second device may take the loss of link state detection information into account when calculating the packet loss rate of the service data packet, or may not take it into account. After sending the link state detection information, the first device may determine whether the sent link state detection information is lost based on whether the response information to the link state detection information is received. The second device may determine whether one or some link state detection information is lost based on the identification information (which may include the process transmission identification, or the process transmission identification and the sequence number) in the received multiple link state detection information.
[0312] Optionally, in the implementation of the present application, the link state detection information may be a link state detection data packet. When the first device sends the link state detection data packet, it may carry a PMF request message in the link state detection data packet. The PMF request message carries identification information (which may include a process transmission identifier, or a process transmission identifier and a sequence number). Optionally, the PMF request message may also carry a number of service data packets used to indicate the number of data packets sent. For specific implementation, please refer to the description of the aforementioned embodiments. After receiving the link state detection data packet, the second device sends a response message to the link state detection information to the first device. The response information is also a link state detection data packet. The link state detection data packet carries a PMF response message. The process transmission identifier carried by the PMF response message is the same as the process transmission identifier carried in the PMF request message, so that the first device can identify the correspondence between the received link state detection information and the sent link state detection information. Optionally, the number of service data packets received by the second device from the first device or the packet loss rate of the service data packets is carried in the PMF response message. For specific implementation, please refer to the description of the aforementioned embodiments.
[0313] As an implementation method, when the UE or UPF calculates the packet loss rate of a QoS flow, the PMF of the UE or UPF can determine the identifier of the QoS flow to which the service data packet belongs (i.e., the QoS flow identity (QoS flow identity, QFI)), that is, determine which QoS flow the sent or received service data packet belongs to, and then count the service data packets of the corresponding QoS flow or calculate the packet loss rate. For example:
[0314] For downlink service flows, after receiving a downlink service data packet on a link, the access chip of the UE sends the downlink service data packet to the PMF of the UE. The above-mentioned PMF determines the QFI of the QoS flow to which the downlink service data packet belongs based on the QoS policy (i.e., QoS rule). The above-mentioned QoS rule is the same as the prior art, and includes the correspondence between the service data flow (SDF) description information and the QFI. Alternatively, after receiving a downlink service data packet on a link, the access chip of the UE parses the service data adaptation protocol (SDAP) layer of the downlink service data packet, obtains the QFI carried by the SDAP layer, and sends the QFI to the PMF. Optionally, when it is necessary to calculate the packet loss rate of different links corresponding to different access technologies, the access chip of the UE sends the access technology indication corresponding to the transmission link of the downlink service data packet to the PMF of the UE.
[0315] For the downlink service flow, after the UPF receives the downlink service data packet, the PMF determines the QFI corresponding to the downlink service data packet based on the policy (such as QER) received by the N4 interface, and counts the downlink data packets corresponding to the QFI when sending the downlink service data packet to the UE.
[0316] For uplink service flows, after the UE's PMF receives a service data packet generated by an upper-layer application, the PMF determines the QFI corresponding to the service data packet based on the QoS rule and counts the service data packets corresponding to the QFI.
[0317] For uplink service flows, after receiving an uplink service data packet on a link, the UPF sends the uplink data packet to the PMF of the UPF, and the PMF determines the QFI to which the uplink service data packet belongs based on the policy (e.g., QoS enforcement rule (QER)) received by the N4 interface. Alternatively, after receiving an uplink service data packet on a link, the UPF obtains the QFI carried in the user plane general packet radio service (GPRS) tunneling protocol (GPRS tunneling protocol-user, GTP-U) layer of the above service data packet, and sends the above QFI to the PMF of the UPF.
[0318] As an implementation method, when the UE or UPF calculates the packet loss rate of at least one QoS flow, the UE can obtain the data radio bearer (DRB) information corresponding to the QoS flow based on the existing technology, that is, at least one QoS flow on the air interface side is aggregated to a DRB link. The UE's access chip sends the correspondence between DBR and QFI(s) to the UE's PMF. The UE's PMF counts the number of downlink service data packets received on a DBR link and calculates the packet loss rate of the DBR granularity. In addition, the UE can send at least one QoS flow information aggregated to a DBR, such as QFI(s), to the UPF, and the UPF can calculate the number or packet loss rate of service data packets sent or received on the above-mentioned multiple QoS flows. Among them, the method for the UPF or UE to determine the QoS flow to which the service data packet belongs can refer to the above description.
[0319] refer to Figure 7 The present application also provides a schematic diagram of a method for detecting packet loss rate. Figure 3 Corresponding embodiments and / or Figure 5 The corresponding embodiments may be implemented in combination, or in combination with other embodiments, or implemented separately, and this application does not limit this. It should be noted that in the following description, the first device is the sender of the service data packet, and the second device is the receiver of the service data packet.
[0320] The method comprises the following steps:
[0321] Step 701: SMF determines that a link status detection needs to be performed on the link where the service flow is located.
[0322] Alternatively, it can be understood that SMF determines that link status detection needs to be performed on the service flow.
[0323] As an implementation method, when the service flow includes at least one QoS flow, the QoS flow includes at least one service data flow, or the service flow includes a service data flow, the SMF can determine the need to perform link status detection on the link where the service flow is located according to any of the following methods:
[0324] Method 1: SMF determines that the diversion function of the business data flow in the business flow is ASSSS-LL, and then determines that it is necessary to perform link status detection on the link where the business flow is located.
[0325] Method 2, SMF determines that the diversion function of the business data flow in the business flow is ASSSS-LL, and the diversion mode of the business data flow is the load balancing mode, then determines that the link status detection needs to be performed on the link where the business flow is located.
[0326] Method 3, SMF determines that the diversion function of the business data flow in the business flow is ASSSS-LL, and the diversion mode of the business data flow is the minimum delay mode, then determines that the link status detection needs to be performed on the link where the business flow is located.
[0327] Method 4, SMF determines that the diversion function of the business data flow in the business flow is ASSSS-LL, and the diversion mode of the business data flow is a priority-based mode, then determines that it is necessary to perform link status detection on the link where the business flow is located.
[0328] Method 5, SMF determines that the diversion function of the business data flow in the business flow is ASSSS-LL, and the diversion mode of the business data flow is the primary-backup mode, then determines that the link status detection needs to be performed on the link where the business flow is located.
[0329] Method 6, SMF determines the link status threshold of the service flow received from PCF, and then determines that it is necessary to perform link status detection on the link where the service flow is located, and the link status threshold includes a packet loss rate threshold.
[0330] Step 702: The SMF sends a link status detection indication to the first device and / or the second device. Accordingly, the first device and / or the second device receives the link status detection indication.
[0331] The link state detection indication is used to enable the link state detection function, which includes a packet loss rate detection function. The "enabling the link state detection function" here can be understood as indicating to turn on the link state detection function.
[0332] Based on the above solution, the SMF can send a link status detection indication to the first device and / or the second device to enable the link status detection function of the first device and / or the second device of the link. Thus, the first device and / or the second device can quickly and accurately detect the packet loss rate of the service data packets of the link based on the enabled link status detection function.
[0333] As an implementation method, SMF can also send identification information of the service flow to the first device and / or the second device, and the identification information includes PDU session identification, service data flow description information, IP five-tuple information, Ethernet flow description information or at least one QFI. The link status detection indication in the above step 702 is specifically used to enable the link status detection function for the service flow.
[0334] As an implementation method, the SMF may allocate a corresponding IP address and / or port number to the link state detection function, and then the SMF configures the IP address and / or port number to the first device and / or the second device. Exemplarily, the above-mentioned link state detection indication includes an IP address and / or a port number. Optionally, when the IP address and / or the port number are configured at a QoS granularity, the SMF also sends a QFI corresponding to the IP address and / or the port number to the first device and / or the second device to notify the link state detection function of the QoS flow indicated by the QFI to allocate an IP address and / or a port number.
[0335] As another implementation method, the first device (or the second device) may allocate a corresponding IP address and / or port number to the link state detection function, and then send the IP address and / or port number to the SMF, and the SMF then configures the IP address and / or port number to the second device (or the first device). Optionally, when the IP address and / or port number are configured at a QoS granularity, the first device (or the second device) also sends the QFI corresponding to the IP address and / or port number to the SMF, and then the SMF also sends the QFI to the second device (or the first device) to notify the link state detection function of the QoS flow indicated by the QFI to allocate an IP address and / or port number.
[0336] As an implementation method, the SMF may also send a counting indication to the first device, the counting indication being used to instruct the first device to count the number of service data packets sent by the first device to the second device on the link. For example, the first device may carry the number of sent service data packets in the sent link state detection information (such as one or more of the first link state detection information, the second link state detection information, the third link state detection information, the fourth link state detection information, the fifth link state detection information, or the sixth link state detection information in the above example).
[0337] As an implementation method, SMF can also send a counting indication to the second device, where the counting indication is used to instruct the second device to count the number of business data packets sent by the first device to the second device on the link, or the counting indication is used to instruct the second device to stop counting the number of business data packets received on the link when receiving link status detection information, clear the counter, and store or send the number of business data packets received on the link to the first device, or the counting indication is used to instruct the second device to calculate the number of business data packets received on the link when receiving link status detection information, and store or send the number of business data packets received on the link to the first device.
[0338] As an implementation method, the SMF may also send a link status reporting indication to the first device and / or the second device, and the link status reporting indication is used to indicate the packet loss rate of the reported service data packets. Alternatively, the SMF sends a link status reporting frequency to the first device and / or the second device, and the link status reporting frequency is used to indicate the frequency of reporting the packet loss rate of the service data packets. Alternatively, the SMF sends a link status reporting period to the first device and / or the second device, and the link status reporting period is used to indicate the period of reporting the packet loss rate of the service data packets. Thus, the first device and / or the second device may report the detected packet loss rate of the service data packets to the SMF, PCF or other network elements according to the link status reporting indication, the link status reporting frequency or the link status reporting period.
[0339] As an implementation method, when the first device calculates the packet loss rate of the service data packets, the SMF may also send a packet loss rate detection indication to the first device. The packet loss rate detection indication is used to instruct the first device to calculate the packet loss rate of the service data packets when the first device receives the number of received service data packets counted by the second device from the second device.
[0340] As an implementation method, when the second device calculates the packet loss rate of the service data packets, the SMF may also send a packet loss rate detection indication to the second device, and the packet loss rate detection indication is used to instruct the second device to calculate the packet loss rate of the service data packets when receiving the link status detection information. Alternatively, the packet loss rate detection indication is used for the second device to calculate the number of service data packets received on the link when receiving the link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packets. Alternatively, the packet loss rate detection indication is used for the second device to end counting the number of service data packets received on the link when receiving the link status detection information, clear the counter, and use the counted number of service data packets received on the link to calculate the packet loss rate of the service data packets.
[0341] To facilitate understanding of the content of the embodiments of the present application, the following is a specific example. Figure 7 The configuration process is described in the following sections. Figure 8 , is a schematic diagram of a packet loss rate detection method provided in an embodiment of the present application. In this embodiment, the packet loss rate of the QoS granularity is calculated as an example for explanation.
[0342] The method comprises the following steps:
[0343] Step 801: UE initiates a PDU session creation or update process.
[0344] For example, when the UE initiates a PDU session establishment process, the UE sends a non-access stratum (NAS) message to the AMF through the RAN, and the NAS message includes a PDU session establishment request message. After receiving the NAS message, the AMF forwards the PDU session establishment request message to the SMF.
[0345] For another example, when the UE initiates the PDU session update process, the UE sends a NAS message to the AMF through the RAN, and the NAS message contains a PDU session modification request message. After receiving the NAS message, the AMF forwards the PDU session modification request message to the SMF.
[0346] Step 802: SMF sends a policy request to PCF. Accordingly, PCF receives the policy request.
[0347] Step 803: The PCF determines the diversion function, diversion mode, and link status threshold of the service data flow.
[0348] The determined diversion function may be, for example, at least one of ATSSS-LL or MPTCP.
[0349] The determined traffic distribution mode may be, for example, one of the minimum delay mode, the load balancing mode, the active / standby mode, or the priority-based mode.
[0350] The link status threshold includes a maximum packet loss rate and, optionally, a maximum RTT and the like.
[0351] Step 804: PCF sends a policy response to SMF, which carries service data flow description information, diversion mode, diversion function, and link status threshold. Accordingly, SMF receives the policy response.
[0352] The service data flow description information is used to match the service data flow.
[0353] Optionally, the PCF also sends a link status detection frequency or a link status detection period to the SMF. The link status detection frequency is used to indicate the frequency of detecting the link status, such as 5 times / minute, that is, 5 times per minute. The link status detection period is used to indicate the period of detecting the link status, such as 5 seconds, that is, once every 5 seconds.
[0354] Optionally, the PCF also sends a link status reporting indication, a link status reporting frequency, or a link status reporting period to the SMF. The link status reporting indication is used to indicate reporting link status information. The link status reporting frequency is used to indicate the frequency of reporting link status information, such as 2 times / minute, that is, reporting twice per minute. The link status reporting period is used to indicate the period of reporting link status information, such as 10 seconds, that is, reporting once every 10 seconds. The link status information includes packet loss rate, and optionally, the link status information also includes latency, bandwidth, etc.
[0355] Step 805: SMF determines that it is necessary to perform link status detection on the link where the QoS flow corresponding to the service data flow is located.
[0356] The SMF may determine the need to perform link status detection on the link where the QoS flow corresponding to the service data flow is located based on at least one of the diversion function, diversion mode or link status threshold of the service data flow.
[0357] For example, when the diversion function of the service data flow received by the SMF is ASSSS-LL, the SMF determines that it is necessary to perform link status detection on the link where the QoS flow corresponding to the service data flow is located.
[0358] For another example, when the diversion function of the service data flow received by the SMF is ASSSS-LL and the diversion mode is one of the load balancing mode, priority-based mode, master-slave mode or minimum delay mode, the SMF determines that it is necessary to perform link status detection on the link where the QoS flow corresponding to the service data flow is located.
[0359] For another example, when the SMF determines that the link status threshold of the service data flow has been received, the SMF determines that a link status detection needs to be performed on the link where the QoS flow corresponding to the service data flow is located.
[0360] Step 806: SMF sends a session request / update message to UPF, which carries a link status detection indication and a QoS flow identity (QFI). Accordingly, UPF receives the session request / update message.
[0361] When sending a session request message, the session request message may be, for example, a packet forwarding control protocol (PFCP) session request message. When sending a session update message, the session update message may be, for example, a PFCP session update message.
[0362] The link state detection indication is used to enable the link state detection function on the QoS flow, that is, to perform link state detection according to the QoS granularity. In a specific implementation, the link state detection indication may include a PMF enable indication or a packet loss rate detection indication. Among them, the PMF enable indication is used to enable the UPF's link state detection function based on PMF, and the packet loss rate detection indication is used to enable the UPF's packet loss rate detection function. Optionally, the link state detection indication also includes one or more of an RTT detection indication, a jitter detection indication, and a bandwidth detection indication. The RTT detection indication is used to enable the UPF to perform RTT detection, the jitter detection indication is used to enable the UPF to perform jitter detection, and the bandwidth detection indication is used to enable the bandwidth detection function.
[0363] Optionally, SMF can also allocate an IP address and port number for the link status detection function on UPF, and send it to UPF through the above session request / update message. The above IP address and port number are allocated based on the QoS flow granularity. In this case, multiple IP addresses and multiple port numbers can be allocated, and each IP address corresponds to one port number.
[0364] Optionally, the SMF may also determine the link status detection frequency or link status detection period at the QoS flow granularity, and send it to the UPF through the above-mentioned session request / update message. It should be noted that if the above-mentioned step 804 carries the link status detection frequency or link status detection period, the link status detection frequency or link status detection period determined by the SMF may be determined based on the link status detection frequency or link status detection period received from step 804, or may be determined by the SMF based on local policies. If the above-mentioned step 804 does not carry the link status detection frequency or link status detection period, the link status detection frequency or link status detection period determined by the SMF may be determined by the SMF based on local policies.
[0365] Optionally, the SMF may also determine the link status reporting indication, link status reporting frequency or link status reporting period at the QoS flow granularity, and send it to the UPF through the above-mentioned session request / update message. It should be noted that if the above-mentioned step 804 carries the link status reporting indication, link status reporting frequency or link status reporting period, the link status reporting indication, link status reporting frequency or link status reporting period determined by the SMF may be determined based on the link status reporting indication, link status reporting frequency or link status reporting period received from step 804, or may be determined by the SMF based on a local policy. If the above-mentioned step 804 does not carry the link status reporting indication, link status reporting frequency or link status reporting period, the link status reporting indication, link status reporting frequency or link status reporting period determined by the SMF may be determined by the SMF based on a local policy.
[0366] Step 807: UPF enables the link status detection function according to the received link status detection indication, and allocates an IP address and a port number for the link status detection function.
[0367] It should be noted that if the above step 806 carries an IP address and a port number, the UPF uses the received IP address and port number as the IP address and port number of the link state detection function. The UPF receives the IP address and port number of the QoS flow granularity, so the SMF allocates the IP address and port number to the link state detection function according to the QoS flow granularity, that is, each QoS flow corresponds to an IP address and port number.
[0368] If the above step 806 does not carry an IP address and a port number, the UPF allocates an IP address and a port number to the link status detection function according to the local policy.
[0369] Step 808: UPF sends a session request / update response to SMF. Accordingly, SMF receives the session request / update response.
[0370] If the above 806 does not carry an IP address and a port number, then in step 807, the UPF allocates an IP address and a port number for the link state detection function according to the local policy. In this case, the session request / update response of step 808 may carry the IP address and port number allocated by the UP according to the local policy.
[0371] Step 809: SMF sends an N2 message to RAN, which carries a PDU session identifier and a PDU session establishment / update success message. Accordingly, RAN receives the N2 message.
[0372] The PDU session establishment / update success message carries a link status detection indication and a QFI.
[0373] Optionally, the PDU session establishment / update success message also includes a link status detection frequency or a link status detection period at a QoS flow granularity. For a specific description, refer to the description of the aforementioned step 806, which will not be repeated here.
[0374] Optionally, the PDU session establishment / update success message further includes a link status reporting indication of QoS flow granularity, a link status reporting frequency or a link status reporting period. For a specific description, refer to the description of the aforementioned step 806, which will not be repeated here.
[0375] Optionally, the N2 message further includes an IP address and a port number of a link status detection function, and a QFI. The QFI has a corresponding relationship with the IP address and the port number.
[0376] Since the link status detection is performed at the QoS flow granularity, the PDU session establishment / update success message may also carry service data flow description information (or service data flow template) and a counting indication, wherein the counting indication is used to instruct the UE to count the number of service data packets sent by the UE to the UPF on the link, or the counting indication is used to instruct the UE to count the number of service data packets sent by the UPF to the UE on the link, or the counting indication is used to instruct the UE to stop counting the number of service data packets received on the link upon receiving the link status detection information, clear the counter, and store or send the number of service data packets received on the link to the UPF, or the counting indication is used to instruct the UE to calculate the number of service data packets received on the link upon receiving the link status detection information, and store or send the number of service data packets received on the link to the UPF.
[0377] In addition, the PDU session establishment / update success message may also carry PMF service data flow description information (or PMF service data flow template) and packet loss rate related information, and the packet loss rate related information includes a packet loss rate detection indication. The packet loss rate detection indication is used to instruct the UE to calculate the packet loss rate of the service data packets when it receives the number of service data packets received counted by the UPF from the UPF. Alternatively, the packet loss rate detection indication is used to instruct the UE to calculate the packet loss rate of the service data packets when it receives link status detection information. Alternatively, the packet loss rate detection indication is used for the UE to calculate the number of service data packets received on the link when it receives the link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packets. Alternatively, the packet loss rate detection indication is used for the UE to end counting the number of service data packets received on the link when it receives the link status detection information, clear the counter, and use the counted number of service data packets received on the link to calculate the packet loss rate of the service data packets.
[0378] Step 810: RAN sends a PDU session establishment / update success message to UE. Accordingly, UE receives the PDU session establishment / update success message.
[0379] Step 811: RAN allocates session-related resources, such as tunnel identification information (including IP address and tunnel endpoint identifier (TEID)) on the RAN side.
[0380] Step 812: RAN sends an N2 message to SMF, which carries the tunnel identification information of the RAN side. Accordingly, SMF receives the N2 message.
[0381] Step 813: SMF sends a session request / update message to UPF, which carries the tunnel identification information of the RAN side. Accordingly, UPF receives the session request / update message.
[0382] When a session request message is sent, the session request message may be, for example, a PFCP session request message. When a session update message is sent, the session update message may be, for example, a PFCP session update message.
[0383] Since the link status detection is performed at the QoS flow granularity, the session request / update message may also carry service data flow description information (or service data flow template) and a counting indication, wherein the counting indication is used to instruct the UPF to count the number of service data packets sent by the UPF to the UE on the link, or the counting indication is used to instruct the UPF to count the number of service data packets sent by the UE to the UPF on the link, or the counting indication is used to instruct the UPF to stop counting the number of service data packets received on the link upon receiving the link status detection information, clear the counter, and store or send the number of service data packets received on the link to the UE, or the counting indication is used to instruct the UPF to calculate the number of service data packets received on the link upon receiving the link status detection information, and store or send the number of service data packets received on the link to the UE.
[0384] In addition, the session request / update message may also carry PMF service data flow description information (or PMF service data flow template) and packet loss rate related information, and the packet loss rate related information includes a packet loss rate detection indication. The packet loss rate detection indication is used to instruct the UPF to calculate the packet loss rate of the service data packets when receiving the number of service data packets received by the UE as counted by the UE. Alternatively, the packet loss rate detection indication is used to instruct the UPF to calculate the packet loss rate of the service data packets when receiving link status detection information. Alternatively, the packet loss rate detection indication is used for the UPF to calculate the number of service data packets received on the link when receiving the link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packets. Alternatively, the packet loss rate detection indication is used for the UPF to end counting the number of service data packets received on the link when receiving the link status detection information, clear the counter, and use the counted number of service data packets received on the link to calculate the packet loss rate of the service data packets.
[0385] Step 814: UPF sends a session request / update response to SMF. Accordingly, SMF receives the session request / update response.
[0386] Based on the above scheme, the link status detection function of UE and UPF is enabled, and the link status detection related information is configured for UE and UPF, so that UE and UPF can quickly and accurately detect the packet loss rate of the link's service data packets based on the enabled link status detection function.
[0387] refer to Fig. 9, is a schematic diagram of a communication device provided in an embodiment of the present application. The device is used to implement the various steps performed by the first device, the second device or the session management network element in the above embodiment, such as Fig. 9 As shown, the device 900 includes a transceiver unit 910 and a processing unit 920 .
[0388] Optionally, the communication device 900 may further include a storage unit for storing data or instructions (also referred to as code or program), and each of the above units may interact or couple with the storage unit to implement the corresponding method or function. For example, the processing unit 920 may read the data or instructions in the storage unit so that the communication device implements the method in the above embodiment.
[0389] It should be understood that the division of the units in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, and called and executed by a certain processing element of the device. The function of the unit. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software calling through a processing element.
[0390] In one example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0391] The above transceiver unit 910 is an interface circuit of the device, which is used to receive signals from other devices or send signals to other devices. For example, when the device is implemented in the form of a chip, the transceiver unit 910 is an interface circuit of the chip for receiving signals from other chips or devices, or an interface circuit for sending signals to other chips or devices.
[0392] refer to Fig.10 , is a schematic diagram of a communication device provided in an embodiment of the present application, which is used to implement the operation of the first device, the second device or the session management network element in the above embodiment. Fig.10 As shown, the communication device includes: a processor 1010 and an interface 1030. Optionally, the communication device also includes a memory 1020. The interface 1030 is used to implement communication with other devices.
[0393] The method executed by the first device, the second device or the session management network element in the above embodiment can be implemented by the processor 1010 calling the program stored in the memory (which can be the memory 1020 in the first device, the second device or the session management network element, or it can be an external memory). That is, the first device, the second device or the session management network element may include a processor 1010, and the processor 1010 executes the method executed by the first device, the second device or the session management network element in the above method embodiment by calling the program in the memory. The processor here can be an integrated circuit with signal processing capability, such as a CPU. The first device, the second device or the session management network element can be implemented by one or more integrated circuits configured to implement the above method. For example: one or more ASICs, or one or more microprocessors DSPs, or one or more FPGAs, etc., or a combination of at least two of these integrated circuit forms. Alternatively, the above implementation method can be combined.
[0394] Specifically, Fig. 9 The functions / implementation processes of the transceiver unit 910 and the processing unit 920 in the embodiment can be realized by Fig.10 The processor 1010 in the communication device 1000 shown calls the computer executable instructions stored in the memory 1020 to implement. Or, Fig. 9 The function / implementation process of the processing unit 920 in Fig.10 The processor 1010 in the communication device 1000 shown calls the computer execution instructions stored in the memory 1020 to implement, Fig. 9 The function / implementation process of the transceiver unit 910 can be Fig.10 The interface 1030 in the communication device 1000 shown in FIG. 1 is implemented.
[0395] Those of ordinary skill in the art will appreciate that the various digital numbers such as the first and second involved in this application are only for the convenience of description, and are not used to limit the scope of the embodiments of this application, and also represent the order of precedence. "And / or" describes the association relationship of the associated objects, indicating that there may be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one" refers to one or more. At least two refers to two or more. "At least one", "any one" or similar expressions refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one item (individuals, kinds) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. "Multiple" refers to two or more, and other quantifiers are similar.
[0396] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0397] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0398] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0399] The various illustrative logic units and circuits described in the embodiments of the present application can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or the design of any combination of the above functions. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any traditional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration to implement.
[0400] The steps of the method or algorithm described in the embodiments of the present application can be directly embedded in the software unit executed by the hardware, processor, or a combination of the two. The software unit can be stored in a random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read-Only Memory, ROM), EPROM memory, EEPROM memory, register, hard disk, removable disk, CD-ROM or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC.
[0401] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0402] In one or more exemplary designs, the above functions described in this application can be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic computer, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, digital versatile disc (DVD), floppy disk and blue-ray disc. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combinations can also be included in computer readable media.
[0403] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0404] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application. The above description of the specification of the present application can make any technical field in the art use or implement the content of the present application. Any modification based on the disclosed content should be considered obvious in the art. The basic principles described in the present application can be applied to other variations without departing from the inventive essence and scope of the present application. Therefore, the content disclosed in the present application is not limited to the described embodiments and designs, but can also be extended to the maximum scope consistent with the principles of the present application and the disclosed new features.
[0405] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for detecting packet loss rate, characterized in that: include: The session management network element determines that a link state detection needs to be performed on a quality of service flow in a multiple access protocol data unit session; The session management network element sends an identifier of the quality of service flow to the first device, and also sends at least one of an Internet Protocol IP address or a port number, wherein the at least one of the IP address or the port number corresponds to the quality of service flow, and the at least one of the IP address or the port number is used to enable link status detection for the quality of service flow, wherein the link status detection is a link detection at the quality of service flow granularity, and the link status detection includes packet loss rate detection.
2. The method according to claim 1, characterized in that The method further comprises: The session management network element sends a counting indication to the second device; The counting indication is used to instruct the second device to count the number of service data packets sent by the first device to the second device on the link where the quality of service flow is located, or, The counting indication is used to instruct the second device to calculate the number of service data packets received on the link when receiving link status detection information, and send the number of service data packets received on the link to the first device.
3. The method according to claim 1, characterized in that The method further comprises: The session management network element sends a packet loss rate detection indication to the second device; The packet loss rate detection indication is used to instruct the second device to calculate the packet loss rate of the service data packet when receiving the link status detection information; or, The packet loss rate detection indication is used by the second device to calculate the number of service data packets received on the link where the service quality flow is located when receiving the link status detection information, and use the number of service data packets received on the link to calculate the packet loss rate of the service data packets.
4. The method according to claim 1, characterized in that The method further comprises: The session management network element sends a counting indication to the first device; The counting indication is used to instruct the first device to count the number of service data packets sent by the first device to the second device on the link where the service quality flow is located.
5. The method according to claim 1, characterized in that The method further comprises: The session management network element sends a packet loss rate detection indication to the first device; The packet loss rate detection indication is used to instruct the first device to calculate the packet loss rate of the service data packets when receiving the number of received service data packets counted by the second device from the second device.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The session management network element sends a link status reporting indication to the first device and / or the second device, where the link status reporting indication is used to indicate a packet loss rate of a reported service data packet; or, The session management network element sends a link status reporting frequency to the first device and / or the second device, where the link status reporting frequency is used to indicate a frequency of reporting a packet loss rate of a service data packet; or, The session management network element sends a link status reporting period to the first device and / or the second device, where the link status reporting period is used to indicate a period for reporting a packet loss rate of a service data packet.
7. The method according to any one of claims 1 to 5, characterized in that The session management network element determines that a link state detection needs to be performed on a quality of service flow in a multi-access protocol data unit session, including: The session management network element determines that the link state threshold of the service quality flow is received from the policy control network element, and then determines that a link state detection needs to be performed on the link where the service quality flow is located, and the link state threshold includes a packet loss rate threshold.
8. The method according to any one of claims 1 to 5, characterized in that The first device is a terminal device.
9. The method according to claim 7, characterized in that The first device is a terminal device.
10. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The session management network element sends a link status detection indication to the second device, where the link status detection indication is used to enable link status detection.
11. The method according to claim 10, characterized in that The method further comprises: The session management network element receives at least one of the IP address or the port number from the second device, where the at least one of the IP address or the port number is allocated by the second device for the link state detection corresponding to the quality of service flow.
12. The method according to claim 10, characterized in that The method further comprises: The session management network element sends the identifier of the quality of service flow to the second device; The link status detection indication is used to enable link status detection for the quality of service flow.
13. The method according to claim 11, characterized in that The method further comprises: The session management network element sends the identifier of the quality of service flow to the second device; The link status detection indication is used to enable link status detection for the quality of service flow.
14. The method according to claim 6, characterized in that The method further comprises: The session management network element sends a link status detection indication to the second device, where the link status detection indication is used to enable link status detection.
15. The method according to claim 14, characterized in that The method further comprises: The session management network element receives at least one of the IP address or the port number from the second device, where the at least one of the IP address or the port number is allocated by the second device for the link state detection corresponding to the quality of service flow.
16. The method according to claim 14 or 15, characterized in that The method further comprises: The session management network element sends the identifier of the quality of service flow to the second device; The link status detection indication is used to enable link status detection for the quality of service flow.
17. The method according to claim 7, characterized in that The method further comprises: The session management network element sends a link status detection indication to the second device, where the link status detection indication is used to enable link status detection.
18. The method according to claim 17, characterized in that The method further comprises: The session management network element receives at least one of the IP address or the port number from the second device, where the at least one of the IP address or the port number is allocated by the second device for the link state detection corresponding to the quality of service flow.
19. The method according to claim 17 or 18, characterized in that The method further comprises: The session management network element sends the identifier of the quality of service flow to the second device; The link status detection indication is used to enable link status detection for the quality of service flow.
20. The method of claim 8, wherein: The method further comprises: The session management network element sends a link status detection indication to the second device, where the link status detection indication is used to enable link status detection.
21. The method according to claim 20, characterized in that The method further comprises: The session management network element receives at least one of the IP address or the port number from the second device, where the at least one of the IP address or the port number is allocated by the second device for the link state detection corresponding to the quality of service flow.
22. The method according to claim 20 or 21, characterized in that The method further comprises: The session management network element sends the identifier of the quality of service flow to the second device; The link status detection indication is used to enable link status detection for the quality of service flow.
23. The method according to any one of claims 2 to 5, 11 to 15, 17, 18, 20, 21, characterized in that The second device is a user plane network element.
24. The method of claim 10, wherein: The second device is a user plane network element.
25. The method of claim 16, wherein: The second device is a user plane network element.
26. The method of claim 19, wherein: The second device is a user plane network element.
27. The method of claim 22, wherein: The second device is a user plane network element.
28. A method for detecting packet loss rate, characterized in that: include: The first device receives an identifier of a quality of service flow from a session management network element, and further receives at least one of an Internet Protocol IP address or a port number of a link state detection function, wherein at least one of the IP address or the port number corresponds to the quality of service flow, the link state detection is a link detection at a quality of service flow granularity, and the link state detection includes a packet loss rate detection; The first device detects a packet loss rate of the quality of service flow in a multi-access protocol data unit session based on at least one of the IP address or the port number.
29. The method of claim 28, wherein: The method further comprises: The first device sends link status detection information to the second device via a link; the number of data packets received by the first device from the second device, the number of data packets being the number of data packets received by the second device on the quality of service flow after receiving the link state detection information; The first device determines a packet loss rate of the quality of service flow according to the number of the data packets.
30. The method of claim 29, wherein: The first device is a terminal device, and the second device is a user plane network element.
31. A communication device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the device executes the method according to any one of claims 1 to 27.
32. A communication device, characterized in that: include: A processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the device performs the method according to any one of claims 28 to 30.
33. A communication device, characterized in that: include: Processors and interfaces; The processor is used to control the device to perform the method according to any one of claims 1 to 27; The processor is further configured to control the interface to communicate with other devices.
34. A communication device, characterized in that: include: Processors and interfaces; The processor is used to control the device to perform the method according to any one of claims 28 to 30; The processor is further configured to control the interface to communicate with other devices.
35. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instructions are executed, the method according to any one of claims 1 to 30 is performed.
36. A communication system, characterized in that: include: A session management network element, configured to execute the method according to any one of claims 1 to 27; as well as A first device, configured to execute the method as claimed in any one of claims 28 to 30.
37. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is run, the method according to any one of claims 1 to 30 is executed.
Citation Information
Patent Citations
Method, device and system for detecting packet loss rate
CN101729197A
Method and device for detecting link loss ratio
CN102217236A
Service quality monitoring method, device and system
CN110831033A
Service flow processing method, communication method and device
CN110831070A
Communication method and device
CN111586860A
