Method and apparatus for processing code stream exception of service quality rule information element
By checking for anomalies during the QoSRule cell decoding process and handling abnormal cells according to the process type, the problems of low decoding efficiency and inconsistent information in the prior art are solved, and efficient and accurate QoSRule cell decoding and information acquisition are achieved.
Patent Information
- Application Number
- CN202310413055.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-04-10
AI Technical Summary
In existing technologies, when a bitstream abnormality occurs during QoSRule cell decoding, the abnormal bitstream is directly skipped, resulting in low decoding efficiency and inability to guarantee the consistency of QoS information between the UE and the network side. It also fails to detect abnormal scenarios where the number of power banks does not match, thus reducing the accuracy of the decoded information.
During the QoSRule cell decoding process, check whether the bitstream is abnormal, and decide whether to skip abnormal cells to continue decoding based on the current process type and whether the QoSRule cell is a default cell. This includes initiating a PDU session modification request or a release process to ensure information consistency and accuracy.
It improves the efficiency of QoS Rule cell decoding, ensures the consistency of QoS information between the UE and the network side, can effectively check abnormal scenarios of mismatched PF numbers, and improves the accuracy of decoded information.
Smart Images

Figure CN118827485B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and more specifically, to a method and apparatus for handling code stream anomalies in Quality of Service (QoS) rule information elements. Background Technology
[0002] Mobile communication technology is an important technology that promotes the development of human society. 5G is a new generation of broadband mobile communication technology with high speed, low latency and large capacity. 5G networks need to support access requirements with ultra-high connection density, ultra-high traffic density and ultra-high mobility characteristics. The International Telecommunication Union (ITU) has also defined three major application scenarios for 5G: enhanced mobile broadband (eMBB), ultra-reliable low-latency communication (uRLLC) and massive machine-type communication (mMTC). The 5G system as a whole includes the core network (5GC), the 5G access network (NG-RAN) and the terminal (UE).
[0003] In 5G systems, to connect to the Data Network (DN), the UE needs to initiate a PDU session establishment process. The PDU session defines the association between the UE and the data network providing PDU connectivity services. Each PDU session is identified by a PDU session ID. Within a 5G system, a QoS flow associated with a default QoS rule needs to be established for each PDU session. A PDU session can contain one or more QoS flows, which represent the finest granularity of QoS differentiation within the PDU session. The QoS flow ID (QFI) is used to identify the QoS flow in the 5G system. User services with the same QFI within a PDU session receive the same service forwarding processing and remain established throughout the entire lifecycle of the PDU session. The two parameters related to the QoS flow are the QoS flow description and the QoS rule.
[0004] 3GPP is an international standards organization. Its 24501 protocol describes the non-access stratum (NAS) process of 5G systems. The protocol describes in detail the errors that may exist in the QoS messages sent by the network during the PDU session establishment and modification process, and specifies the corresponding handling for each error. The errors are divided into four categories: semantic errors in QoS operations, syntactical errors in QoS operations, semantic errors in packet filters, and syntactical errors in packet filters.
[0005] In existing technologies, the QoS decoding module and QoS checking module are separated in the conventional processing of the protocol stack on the UE side. The UE first decodes the bitstream sent from the network side to the NAS layer to obtain the corresponding QoS information, and then checks for errors in QoS according to the 24501 protocol description. If an error occurs in the decoding of the QoS Rule information cell during the decoding process, the conventional processing is to try to jump out from the erroneous part and only retain the correct part before the error for subsequent processing.
[0006] The processing method has the following drawbacks: after detecting an erroneous bitstream, there is no interaction process with the network side, which cannot guarantee the consistency of QoS information between the UE and the network side; only the information before the detected erroneous bitstream point is retained, without further analysis of the subsequent QoS rules, and the decoding method cannot detect bitstream abnormal scenarios where the number of power supply (PF) does not match, which will reduce the accuracy of the decoding information. Summary of the Invention
[0007] This invention provides a method and apparatus for handling code stream anomalies in QoS Rule information cells, which at least solves the problem in related technologies where, when a code stream anomaly occurs during QoS Rule information cell decoding, the abnormal code stream is directly exited, and only the correct code stream portion before the error is retained, resulting in low decoding efficiency.
[0008] According to an embodiment of the present invention, a method for handling abnormal code streams of Quality of Service (QoS) rule information elements is provided, comprising: a User Equipment (UE) decoding QoS rule information elements in a Protocol Data Unit (PDU) session accept message or a PDU session modify command, and checking whether the code stream of the currently decoded QoS rule information element is abnormal; when the code stream of the currently decoded QoS rule information element is abnormal, determining whether to skip the abnormal QoS rule information element to continue decoding subsequent QoS rule information elements based on the current process type and whether the abnormal QoS rule information element is a default QoS rule information element.
[0009] In one exemplary embodiment, determining whether to skip the abnormal QoSRule element to continue decoding subsequent QoSRule elements based on the current process type and whether the abnormal QoSRule element is a default QoSRule element includes one of the following: If the current process is a PDU establishment process and the abnormal QoSRule element is a non-default QoSRule element, the UE skips the abnormal QoSRule element to continue decoding subsequent QoSRule elements and initiates a PDU session modification request to delete the abnormal QoSRule element; if the current process is a PDU establishment process and the abnormal QoSRule element is a default QoSRule element, the UE stops decoding the abnormal QoSRule element and sends a PDU session release procedure to the network side; if the current process is a PDU modification process, the UE stops decoding the current QoSRule element and sends a PDU modification rejection message to the network side.
[0010] In one exemplary embodiment, the types of code stream anomalies in QoSRule cells include: packet filter PF number mismatch.
[0011] In an exemplary embodiment, checking whether the bitstream of the currently decoded QoSRule information element is abnormal includes: decoding the current QoSRule information element according to the actual length of the PF field in the current QoSRule information element to obtain the actual number of PF values; comparing the actual number of PF values with the PF number field value sent by the network side, and if they are inconsistent, determining that the current QoSRule information element has a bitstream abnormality due to a mismatch in the number of PF values.
[0012] According to another embodiment of the present invention, an abnormal bitstream processing apparatus for decoding Quality of Service (QoS) rule information elements is provided, comprising: a decoding module, configured to decode QoSRule information elements in Protocol Data Unit (PDU) session accept messages or PDU session modify commands, and check whether the bitstream of the currently decoded QoSRule information elements is abnormal; and a processing module, configured to, when the bitstream of the currently decoded QoSRule information elements is abnormal, determine whether to skip the QoSRule information elements with abnormal bitstreams to continue decoding subsequent QoSRule information elements based on the current process type and whether the QoSRule information elements with abnormal bitstreams are default QoSRule information elements.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0014] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0015] This invention addresses the issue of low decoding efficiency when decoding QoSRule elements in PDU session receive messages or PDU session modification commands. By simultaneously checking for abnormalities in the currently decoded QoSRule element bitstream, it can promptly detect abnormal bitstreams during decoding. Instead of immediately exiting the decoded portion when an abnormal bitstream occurs, the process is tailored to the current flow and the type of the QoSRule element, determining whether to skip the abnormal bitstream and continue decoding. Therefore, it solves the problem of low decoding efficiency caused by directly exiting the abnormal bitstream when a QoSRule element decoding encounters an error, retaining only the correct bitstream portion before the error, thus achieving efficient QoSRule element decoding and effective acquisition of QoSRule element information. Attached Figure Description
[0016] Figure 1 This is a hardware structure block diagram of a computer terminal for a method of handling code stream anomalies of quality of service rule information elements according to an embodiment of the present invention. Figure 2 This is a flowchart of a method for handling code stream anomalies in quality of service rule information elements according to an embodiment of the present invention; Figure 3 This is a structural block diagram of a code stream anomaly processing device for quality of service rule information cells according to an embodiment of the present invention; Figure 4This is a structural block diagram of a code stream anomaly processing device for a quality of service rule information cell according to another embodiment of the present invention; Figure 5 This is a structural block diagram of a code stream anomaly processing device for a quality of service rule information cell according to another embodiment of the present invention. Figure 6 This is a flowchart of a method for handling code stream anomalies of service quality rule information elements according to another embodiment of this application; Figure 7 This is a flowchart of the code stream anomaly handling according to an embodiment of this application; Figure 8 This is a flowchart of the PDU session establishment process according to an embodiment of this application; Figure 9 This is a flowchart of PDU session modification according to an embodiment of this application; Figure 10 This is a flowchart of a method for handling code stream anomalies of quality of service rule information elements according to another embodiment of this application; Figure 11 This is a PF code stream structure diagram according to an embodiment of this application; Figure 12 This is a flowchart of a method for handling code stream anomalies of quality of service rule information elements according to another embodiment of this application; Figure 13 This is a PF code stream structure diagram according to another embodiment of this application. Detailed Implementation
[0017] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0019] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of handling code stream anomalies in a Quality of Service (QoS) rule information element according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor (MCU) or a field-programmable gate array (FPGA)) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0020] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the code stream anomaly handling method for quality of service rule information cells in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0021] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0022] According to one aspect of the embodiments of this application, a method for handling code stream anomalies in Quality of Service (QoS) rule information elements is provided. Figure 2 This is a flowchart of a method for handling code stream anomalies in Quality of Service rule information cells according to an embodiment of the present invention, as follows: Figure 2 As shown, the process includes the following steps: Step S202: The User Equipment (UE) decodes the Quality of Service Rule (QoSRule) information element in the Protocol Data Unit (PDU) Session Accept Message or PDU Session Modification Command, and checks whether the bitstream of the currently decoded QoSRule information element is abnormal. Step S204: When the bitstream of the currently decoded QoSRule information element is abnormal, determine whether to skip the abnormal QoSRule information element to continue decoding subsequent QoSRule information elements based on the current process type and whether the abnormal QoSRule information element is a default QoSRule information element.
[0023] In step S204 of this embodiment, based on the current process type and whether the abnormal QoSRule information element in the code stream is a default QoSRule information element, it is determined whether to skip the abnormal QoSRule information element in the code stream to continue decoding subsequent QoSRule information elements, including one of the following: If the current process is a PDU establishment process and the abnormal QoSRule information element in the code stream is a non-default QoSRule information element, the UE skips the abnormal QoSRule information element in the code stream to continue decoding subsequent QoSRules and initiates a PDU session modification request to delete the abnormal QoSRule information element in the code stream; If the current process is a PDU establishment process and the abnormal QoSRule information element in the code stream is a default QoSRule information element, the UE stops decoding the abnormal QoSRule information element in the code stream and sends a PDU session release process to the network side; If the current process is a PDU modification process, the UE stops decoding the current QoSRule information element and sends a PDU modification rejection message to the network side.
[0024] Since the abnormal bitstream does not exit directly when a bitstream abnormality occurs during QoSRule cell decoding, but determines whether to skip the abnormal QoSRule cell to continue subsequent decoding based on the current different process type and QoSRule cell type, the UE may continue decoding after skipping the abnormal bitstream and initiate corresponding processes to interact with the network side, thereby ensuring the consistency of QoSRule cell information between the UE and the network side.
[0025] In this embodiment, before the UE initiates a PDU session modification request, the method further includes: the UE marking the QoSRule information elements of the abnormal bitstream.
[0026] Since the UE skips the abnormal QoSRule information element in the PDU establishment process and the abnormal QoSRule information element is a non-default QoSRule information element, it can continue to decode the subsequent QoSRule. Therefore, marking the abnormal QoSRule information element can be used to determine the abnormal QoSRule information elements that need to be deleted in the future.
[0027] In step S202 of this embodiment, the UE decodes the QoSRule information element in the PDU session accept message or PDU session modify command and checks whether the bitstream of the currently decoded QoSRule information element is abnormal. This includes: the UE decodes the PDU session accept message or PDU session modify command to obtain the number of QoSRule information elements to be decoded, and decodes each QoSRule in sequence and checks whether the bitstream of each QoSRule information element is abnormal.
[0028] Since the number of QoSRule cells to be decoded was obtained before decoding, it can be confirmed whether all QoSRule cells to be decoded have been decoded.
[0029] In step S202 of this embodiment, the types of code stream anomalies in QoSRule cells include: packet filter PF number mismatch.
[0030] In this embodiment, checking whether the bitstream of the currently decoded QoSRule information cell is abnormal includes: decoding the current QoSRule information cell according to the actual length of the PF field in the current QoSRule information cell to obtain the actual number of PF values; comparing the actual number of PF values with the PF number field value sent by the network side, and if they are inconsistent, determining that the current QoSRule information cell has a bitstream abnormality due to a mismatch in the number of PF values.
[0031] Because the decoding process takes into account the abnormal scenario of mismatched PF numbers, it can detect the abnormal scenario of mismatched PF numbers described in the protocol, thereby ensuring the accuracy of QosRule information decoding.
[0032] The above steps solve the problems of directly jumping out of the abnormal bitstream when a QoSRule cell decoding error occurs, only retaining the correct bitstream part before the error, resulting in low decoding efficiency; the inability to guarantee the consistency of QoS information between the UE and the network side due to the lack of interaction with the network side; and the inability to detect bitstream abnormal scenarios with mismatched PF numbers, resulting in low decoding accuracy. The goal is to achieve efficient QoSRule cell decoding and accurate and effective acquisition of QoSRule cell information.
[0033] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory (ROM / RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0034] This embodiment also provides a bitstream anomaly processing device for Quality of Service rule information cells. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0035] Figure 3 This is a structural block diagram of a code stream anomaly processing device for Quality of Service rule information cells according to an embodiment of the present invention, as shown below. Figure 3 As shown, the service quality rule information element code stream anomaly processing device 300 includes: decoding module 10 and processing module 20.
[0036] The decoding module 10 is used to decode the QoSRule information element in the Protocol Data Unit (PDU) session accept message or PDU session modify command, and to check whether the bit stream of the currently decoded QoSRule information element is abnormal. Processing module 20, when the bitstream of the currently decoded QoSRule information element is abnormal, is used to determine whether to skip the QoSRule information element with abnormal bitstream to continue decoding subsequent QoSRule information elements based on the current process type and whether the QoSRule information element with abnormal bitstream is a default QoSRule information element.
[0037] Figure 4 This is a structural block diagram of a code stream anomaly processing device for Quality of Service rule information cells according to another embodiment of the present invention, as shown below. Figure 4 As shown, the device includes Figure 3 In addition to all the modules shown, the decoding module 10 also includes: The decoding unit 11 is used to decode the PDU session receive message or PDU session modification command to obtain the number of QoSRule information elements to be decoded, and to decode each QoSRule in turn and check whether the bit stream of each QoSRule information element is abnormal.
[0038] Figure 5 This is a structural block diagram of a code stream anomaly processing device for Quality of Service rule information cells according to another embodiment of the present invention, as shown below. Figure 5 As shown, the device includes Figure 4 In addition to all the modules shown, the decoding module 10 also includes: The PF anomaly checking unit is used to decode according to the actual length of the packet filter PF field in the QoSRule during the decoding process, obtain the actual number of PF values, and compare them with the PF number field value sent by the network side. If they are inconsistent, there is a bitstream anomaly scenario where the number of PFs does not match.
[0039] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0040] To facilitate understanding of the technical solutions provided by this invention, detailed descriptions will be given below in conjunction with specific scenario embodiments.
[0041] Figure 6 This is a flowchart of a method for handling code stream anomalies in a Quality of Service rule information element according to another embodiment of this application, as follows: Figure 6 As shown, the method includes the following steps: Step S601, QosRule decoding process begins, proceed to step S602; Step S602: Perform regular decoding to obtain the number of QosRules and save it to the variable bQosRuleNum, then proceed to step S603; Step S603: Based on the number of bQosRuleNum, perform loop decoding on each QosRule in sequence and check the bitstream. During the decoding process, consider the scenario of mismatch in the number of PFs, and proceed to step S604. Step S604: Determine if there is an abnormality in the bitstream during the decoding process of a single QosRule. If there is an abnormality in the bitstream, proceed to step S607; otherwise, proceed to step S605. Step S605: Here, a single QosRule message has been successfully decoded. The loop variable bQosRuleNum is updated and decremented by 1. Proceed to step S606. Step S606: Check if all QosRule information has been decoded. If bQosRuleNum=0, then decoding is complete. Proceed to step S609. In step S607, when an abnormality is detected in the bitstream during the process of cyclically decoding a single QosRule information, the UE determines whether the current process is a PDU establishment process and whether the current process is a non-default QosRule. If both conditions are met, the UE exits the current error and continues to perform decoding operations for other QosRules, proceeding to step S605; otherwise, proceeding to step S608. In step S608, the UE will initiate the corresponding processing flow here according to the failure scenario, and then proceed to step S609 after completion; Specifically, in this embodiment, the UE initiates a processing procedure for the abnormal bitstream. Figure 7 This is a flowchart of the code stream anomaly handling according to an embodiment of this application. The corresponding handling process initiated by the UE in different scenarios is as follows: Scenario 1: The current QosRule decoding process is a PDU session establishment process. By default, when there is an error in the bitstream in the QosRule, the UE should stop the QosRule decoding process and notify the subsequent modules to initiate the process. After the UE completes the establishment process, it initiates the PDU session release process and sets 5GSM cause #84. The UE initiates the PDU session establishment process. Figure 8 This is a flowchart of the PDU session establishment process according to an embodiment of this application. In a 5G environment, when a UE needs to perform a service, the UE needs to establish a PDU session with the network. Usually, the UE will initiate a PDU session establishment request (PDUSESSION ESTABLISHMENT REQUEST). The network side will configure relevant QoS resources for the UE as appropriate. The UE needs to decode the QoSRule information element in the PDU SESSION ESTABLISHMENT ACCEPT in order to obtain information.
[0042] Scenario 2: When the current QoSRule decoding process is a PDU session modification process, the UE should stop the QoSRule decoding process and notify the subsequent modules to initiate the process, directly initiate the PDU session modification rejection process, and set 5GSM cause #84. The network side initiates the PDU session modification process. Figure 9This is a flowchart of PDU session modification according to an embodiment of this application. In a 5G environment, when the network side needs to modify the PDU session, the network side will usually initiate a PDU session modification request for QoS resources. The UE needs to decode the QoSRule information element in the PDU session modification command (PDU SESSION MODIFICATION COMMAND) to obtain the information.
[0043] Scenario 3: The current QosRule decoding process is the PDU session establishment process, and when there is an error in the bitstream of the non-default QosRule: The UE should exit the current erroneous QosRule decoding, continue decoding the remaining QosRules, and mark the QosRule with the abnormal bitstream. Subsequent modules should initiate the PDU session modification process to delete the QosRule with the erroneous bitstream and set 5GSM cause #84.
[0044] Step S609: The main process of QosRule message decoding and bitstream inspection ends.
[0045] Figure 10 This is a flowchart of a method for handling abnormal bitstreams of Quality of Service (QoS) rule information elements according to another embodiment of this application. The method, when opcodes = 1, 3, and 4, considers the decoding process when an abnormal bitstream occurs due to a mismatch in the number of power fields (PFs). Figure 11 This is a PF code stream structure diagram according to an embodiment of this application. The 24501 protocol specifies the PF code stream structure when the opcodes are 1, 3, and 4 as follows: Figure 11 As shown, in this embodiment, decoding is performed based on the actual length of the PF bitstream, and the actual number of PFs, bRealPfNum, is obtained. A comparison is made with the length bPFNum in the field to determine if there is a mismatch in the PF field. If the bitstream is abnormal, a FAIL error is returned; otherwise, a SUCC error is returned. Figure 10 The specific process of the corresponding implementation is as follows: Step S1001: The UE begins the PF information decoding process and proceeds to step S1002. Step S1002: During the decoding process, it is necessary to consider the scenario of mismatch in the number of PFs. Set bRealPfNum to the actual number of PFs obtained during the decoding process. Here, the initial value is set to bRealPfNum=0. Proceed to step S1003. Step S1003: wLen is the remaining field length of the QoSRule when entering PF decoding. Here, it is determined whether wLen is equal to 0. If wLen=0, proceed to step S213; otherwise, proceed to step S1004. Step S1004, Decoding Figure 11The middle byte octet8 is used to obtain the filtering direction bDirection of the PF and the PF identifier bPFid, and then proceed to step S1005; Step S1005: Here, the wLen value is updated by decrementing wLen by 1, and it is checked whether wLen is greater than 2. This is because after decoding PF, there should be at least 2 bytes remaining for decoding priority and QFI information. If wLen > 2, proceed to step S1006; otherwise, proceed to step S1013. Step S1006, Decoding Figure 11 In the middle byte octet9, get the length value bPFLen of PF. At this time, first update the value of wLen by decrementing wLen by 1, then compare wLen with the content length bPFLen of PF and calculate wLen = wLen - bPFLen, and proceed to step S1007. Step S1007: Here we check whether the remaining number of bytes wLen is greater than 2. If wLen>2, we consider that the content of PF has not been fully decoded and we need to continue the decoding operation of PF. Proceed to step S212; otherwise, proceed to step S208. Step S1008: Check if wLen is equal to 2. If wLen=2, we can assume that the actual PF has been decoded. The remaining 2 bytes are used to decode the decoding priority and QFI information. Proceed to step S209. Otherwise, proceed to step S213. Step S1009, Decoding Figure 11 For the middle bytes octet10~octetm, obtain the content pbCont of PF, and update the value of bRealPfNum by incrementing bRealPfNum by 1, then proceed to step S1010; Step S1010: Check whether the actual values of the number of PFs obtained by decoding are equal to bRealPfNum and bPFNum. If bRealPfNum = bPFNum, then there is no mismatch in the number of PFs in the QosRule, and proceed to step S211. Otherwise, it is considered that there is a special case of abnormal bitstream with mismatch in the number of PFs in the QosRule, and proceed to step S1013. Step S1011, here Figure 11 No abnormalities were found in the bitstream during the decoding process of the PF information. The process returned to SUCC and proceeded to step S1015. In step S1012, when wLen > 2, it is considered that the content of PF has not been completely decoded, and the decoding operation of PF needs to continue. Furthermore, the decoding... Figure 2 For the middle bytes octet10~octetm, obtain the content pbCont of PF, update the value of bRealPfNum by 1, and proceed to step S1004; Step S1013: During the PF decoding process, if the bitstream is found to be incorrect or the number of PFs is mismatched, proceed to step S1014. Step S1014: During the PF decoding process, an error is detected in the bitstream, and a FAIL is returned, proceeding to step S1015. In step S1015, when the opcode is 1, 3, or 4, the decoding process for abnormal bitstreams with mismatched PF counts is completed.
[0046] Figure 12 This is a flowchart of a method for handling abnormal bitstreams based on a Quality of Service (QoS) rule information element according to another embodiment of this application. The method is a decoding process that considers the abnormal bitstream due to a mismatch in the number of power fields (PFs) when the opcode is 5. Figure 13 This is a PF code stream structure diagram according to another embodiment of this application. The PF code stream structure when the opcode = 5 is specified in the 24501 protocol as follows: Figure 13 As shown, Figure 12 The specific process of the corresponding implementation is as follows: Step S1201: When the operation code = 5, the UE starts the PF decoding and inspection process and proceeds to step S302. Step S1202: During the decoding process, it is necessary to consider the scenario of mismatch in the number of PFs. bRealPfNum is the actual number of PFs obtained during the decoding process. Here, the initial value bRealPfNum is set to 0, and then proceed to step S303. Step S1203: Here, it is determined whether wLen is equal to 0. If wLen=0, proceed to step S311; otherwise, proceed to step S304. Step S1204, here according to Figure 13 Decode the PF bitstream structure specified in the code. Figure 13 Field octet8, at this point the content of a single PF has been decoded, and wLen is updated by decrementing by 1, proceed to step S1205; Step S1205, after decoding a single PF, because as Figure 13 As shown, at least 2 bytes are still needed. When wLen>2, it is assumed that there are still other PFs and proceed to step S1210; otherwise, proceed to step S1206. Step S1206: Here we check if wLen is equal to 2. When wLen=2, we can assume that all PF fields have been decoded and proceed to step S1207; otherwise, proceed to step S1211. Step S1207: Here, the value of bRealPfNum is updated by incrementing bRealPfNum by 1, and then proceed to step S1208. Step S1208: Check if the current bRealPfNum and bPFNum are equal. If bRealPfNum = bPFNum, it means that there is no mismatch in the number of PFs in QosRule. Proceed to step S309. Otherwise, proceed to step S1211. Step S1209: No abnormal bitstream was found in the PF decoding process of QosRule. Return to SUCC and proceed to step S1213. In step S1210, when wLen>2, the content of the PF field has not been completely decoded and the decoding operation of PF needs to continue. Here, the value of bRealPfNum is updated by incrementing bRealPfNum by 1, and then the process proceeds to step S1204. Step S1211: During the PF decoding process, if the bitstream is found to be incorrect or the number of PFs is mismatched, proceed to step S1212. In step S1212, the QosRule detects an error in the bitstream during the PF decoding process and returns FAIL, proceeding to step S1213. Step S1213 completes the PF decoding process in the QosRule with opcode = 5.
[0047] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0048] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0049] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0050] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0051] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0052] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0053] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for processing code stream exception of a service quality rule information element, characterized in that, The application comprises the following steps: A user equipment (UE) decodes a quality of service rule (QoSRule) information element in a protocol data unit (PDU) session acceptance message or a PDU session modification command, and checks whether the code stream of the currently decoded QoSRule information element is abnormal. When the code stream of the currently decoded QoSRule information element is abnormal, whether to skip the abnormal QoSRule information element to continue decoding of a subsequent QoSRule information element is determined according to a current process type and whether the abnormal QoSRule information element is a default QoSRule information element, wherein the current process type comprises a PDU establishment process and a PDU modification process. The determination of whether to skip the abnormal QoSRule information element to continue decoding of a subsequent QoSRule information element according to the current process type and whether the abnormal QoSRule information element is a default QoSRule information element comprises one of the following: If the current process is a PDU establishment process and the abnormal QoSRule information element is a non-default QoSRule information element, the UE skips the abnormal QoSRule information element to continue decoding of a subsequent QoSRule information element, and initiates a PDU session modification request to delete the abnormal QoSRule information element. If the current process is a PDU establishment process and the abnormal QoSRule information element is a default QoSRule information element, the UE stops decoding of the abnormal QoSRule information element, and sends a PDU session release process to a network side. If the current process is a PDU modification process, the UE stops decoding of the current QoSRule information element, and sends a PDU modification rejection message to the network side.
2. The method of claim 1, wherein, Before the UE initiates the PDU session modification request, the application further comprises the following steps: The UE marks the abnormal QoSRule information element. The UE decodes a QoSRule information element in a PDU session acceptance message or a PDU session modification command, and checks whether the code stream of the currently decoded QoSRule information element is abnormal, comprising the following steps:
3. The method of claim 1, wherein, The UE decodes the PDU session acceptance message or the PDU session modification command to obtain the number of QoSRule information elements to be decoded, and decodes each QoSRule information element in sequence and checks whether the code stream of each QoSRule information element is abnormal. The type of code stream abnormality of the QoSRule information element comprises a packet filter (PF) number mismatch.
4. The method of claim 1, wherein, The UE decodes the PDU session acceptance message or the PDU session modification command to obtain the number of QoSRule information elements to be decoded, and decodes each QoSRule information element in sequence and checks whether the code stream of each QoSRule information element is abnormal. The type of code stream abnormality of the QoSRule information element comprises a packet filter (PF) number mismatch.
5. The method of claim 4, wherein, The UE decodes the PDU session acceptance message or the PDU session modification command to obtain the number of QoSRule information elements to be decoded, and decodes each QoSRule information element in sequence and checks whether the code stream of each QoSRule information element is abnormal. The type of code stream abnormality of the QoSRule information element comprises a packet filter (PF) number mismatch. 6. An abnormal bitstream processing device for decoding Quality of Service (QoS) Rule information cells, applied to User Equipment (UE), characterized in that, The decoding module is used to decode the QoSRule information elements in the Protocol Data Unit (PDU) session accept message or PDU session modify command, and to check whether the bit stream of the currently decoded QoSRule information elements is abnormal. The processing module, when the bitstream of the currently decoded QoSRule information element is abnormal, is used to determine whether to skip the QoSRule information element with abnormal bitstream to continue decoding subsequent QoSRule information elements based on the current process type and whether the QoSRule information element with abnormal bitstream is a default QoSRule information element. The current process type includes PDU establishment process and PDU modification process. The processing module is further configured to: if the current process is a PDU establishment process and the abnormal QoSRule information element of the code stream is a non-default QoSRule information element, the UE skips the abnormal QoSRule information element of the code stream to continue decoding the subsequent QoSRule, and initiates a PDU session modification request to delete the abnormal QoSRule information element of the code stream; if the current process is a PDU establishment process and the abnormal QoSRule information element of the code stream is a default QoSRule information element, the UE stops decoding the abnormal QoSRule information element of the code stream, and sends a PDU session release process to the network side; If the current process is a PDU modification process, the UE stops decoding the current QoSRule information element and sends a PDU modification rejection message to the network side.
7. The apparatus of claim 6, wherein, The decoding module further includes: The decoding unit is used to decode the PDU session receive message or PDU session modification command to obtain the number of QoSRule information elements to be decoded, and to decode each QoSRule in turn and check whether the bit stream of each QoSRule information element is abnormal.
8. The apparatus of claim 6, wherein, The decoding module further includes: The PF anomaly checking unit is used to decode according to the actual length of the packet filter PF field in the QoSRule during the decoding process, obtain the actual number of PF values, and compare them with the PF number field value sent by the network side. If they are inconsistent, there is a bitstream anomaly scenario where the number of PFs does not match.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1-5.
10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1-5.
Citation Information
Patent Citations
Enhanced handling on QOS flow description
CN111052790A
Default quality of service rule management method and user equipment
CN115643613A
