Code stream abnormality processing method and apparatus for quality-of-service rule cell

By handling code stream exceptions for QoSRule cells in the 5G system, and deciding whether to skip the abnormal part according to the process type and cell type, the problem of low decoding efficiency and information inconsistency is solved, and efficient and accurate QoSRule cell decoding is achieved. and information acquisition.

WO2024212830A1PCT designated stage expired Publication Date: 2024-10-17SANECHIPS TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084938
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-10
Filing Date
2024-03-29
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In the 5G system, when there is an abnormal code stream when decoding QoSRule cells, the existing technology directly skips the abnormal code stream and only retains the previous correct part, resulting in low decoding efficiency and the inability to detect abnormal scenarios where the number of PFs does not match. Ensure the consistency of QoS information between the UE and the network side.

Method used

When decoding the QoSRule cell in the PDU session or PDU session modification command in the user equipment UE, check the code stream exception, and decide whether to skip the abnormal part and continue based on the process type and whether the abnormal cell is the default cell. Decoding of cells ensures code stream consistency.

Benefits of technology

It improves the decoding efficiency of QoSRule cells, can accurately detect abnormal scenarios where the number of PFs does not match, ensures the consistency of QoS information between the UE and the network side, and improves decoding accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084938_17102024_PF_FP_ABST
    Figure CN2024084938_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a code stream abnormality processing method and apparatus for a quality-of-service (QoS) rule cell. The method comprises: a user equipment (UE) decoding a QoS rule cell in a protocol data unit (PDU) session acceptance message or a PDU session modification command, and checking whether a code stream of the currently decoded QoS rule cell is abnormal; and when the code stream of the currently decoded QoS rule cell is abnormal, according to the current process type and whether the QoS rule cell, the code stream of which is abnormal, is a default QoS rule cell, determining whether to skip the QoS rule cell, the code stream of which is abnormal, so as to continue the decoding of a subsequent QoS rule cell.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for handling code stream anomalies of quality of service rule cells

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] The present disclosure is based on Chinese patent application CN 2023104130554 filed on April 10, 2023, entitled “Method and device for handling code stream anomalies of service quality rule elements”, and claims the priority of the patent application, and all the disclosed contents are incorporated into the present disclosure by reference. Technical Field

[0003] The present disclosure relates to the field of communications, and more particularly, to a method and apparatus for handling code stream anomalies in quality of service rule cells. Background Art

[0004] Mobile communication technology is an important technology that promotes the development of human society. The fifth generation mobile communication technology (5G) is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large capacity. The 5G network needs to support access requirements of ultra-high connection density, ultra-high traffic density and ultra-high mobility. The International Telecommunication Union (ITU) has also defined three major application scenarios of 5G, namely enhanced mobile broadband (eMBB), ultra-reliable and low-latency communication (uRLLC) and massive machine-type communication (mMTC). The overall 5G system consists of the core network (5GC), the 5G access network (NG-RAN) and the terminal (UE).

[0005] In the 5G system, in order to connect to the DN (Data Network), the UE needs to initiate the process of establishing a PDU session. The PDU session defines the association between the UE and the data network that provides the PDU connection service. Each PDU session is identified by a PDU session ID (PDU session ID). In the 5G system, a QoS flow (QoS Flow) associated with the default QosRule needs to be established for the PDU session. A PDU session can contain one or more QosFlows. QoS Flow is the finest granularity of QoS differentiation in the PDU session. The QoS flow identifier (QoS Flow ID, QFI) is used to identify the QoS Flow in the 5G system. User services with the same QFI in the PDU session receive the same service forwarding processing and remain established throughout the life cycle of the PDU session. The two parameters related to Qos FLow are QoS Flow Description and QosRule.

[0006] 3GPP is an international standardization organization. Its 24501 protocol describes the non-access stratum (NAS) process of the 5G system. The protocol details the possible errors in the QoS messages sent by the network during the PDU session establishment and PDU session modification process, and specifies the corresponding handling of each error. The errors are divided into four categories: semantic errors in QoS operations, synthetic errors in QoS operations, semantic errors in packet filters, and synthetic errors in packet filters.

[0007] In the related technology, the conventional processing of the protocol stack on the UE side is that the QoS decoding module and the QoS checking module are separated. The UE first decodes the code stream sent by the network side to the NAS layer, obtains the corresponding QoS information, and then checks the errors in the QoS according to the 24501 protocol description. During the decoding process, if the decoding error occurs in the middle of the QoSRule information element, the conventional processing is to try to jump out of the erroneous part and only retain the correct part before the error for subsequent processing.

[0008] This processing method has the following defects: after detecting the error code stream, there is no interaction process with the network side, and the consistency of the QoS information between the UE and the network side cannot be guaranteed; only the information before the error code stream is detected is retained, and no subsequent QoS rule is further analyzed. In addition, this decoding method cannot detect the abnormal code stream scenario where the PF number does not match, which will reduce the accuracy of the decoding information.

[0009] Summary of the Invention

[0010] The embodiments of the present disclosure provide a method and apparatus for handling code stream anomalies of a quality of service rule cell, to at least address the problem in the related art that when a code stream anomaly occurs during decoding of a QoSRule cell, the abnormal code stream is directly jumped out, and only the correct code stream portion before the error is retained, resulting in low decoding efficiency.

[0011] According to one embodiment of the present disclosure, a method for handling code stream anomalies of a quality of service rule cell is provided, comprising: a user equipment (UE) decoding a quality of service rule (QoSRule) cell 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 QoSRule cell is abnormal; when the code stream of the currently decoded QoSRule cell is abnormal, determining whether to skip the QoSRule cell with the code stream anomaly to continue decoding subsequent QoSRule cells based on a current process type and whether the QoSRule cell with the code stream anomaly is a default QoSRule cell.

[0012] According to another embodiment of the present disclosure, a device for processing abnormal code streams for decoding quality of service rule cells is provided, comprising: a decoding module for decoding a QoSRule cell 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 QoSRule cell is abnormal; and a processing module for determining, when the code stream of the currently decoded QoSRule cell is abnormal, whether to skip the QoSRule cell with the abnormal code stream and continue decoding subsequent QoSRule cells based on the current process type and whether the QoSRule cell with the abnormal code stream is a default QoSRule cell.

[0013] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.

[0014] According to another embodiment of the present disclosure, an electronic device is 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 one of the above method embodiments.

[0015] Through the present disclosure, while decoding the QoSRule element in the PDU session accept message or PDU session modify command, the code stream of the currently decoded QoSRule element is checked for abnormalities. This allows for timely detection of abnormal code streams that occur during the decoding process. When a code stream abnormality occurs, the system does not directly exit from the abnormal portion. Instead, it determines whether to skip the QoSRule element with the abnormal code stream to continue decoding based on the current process and the type of QoSRule element. Therefore, the problem of directly exiting the abnormal code stream when a code stream abnormality occurs during QoSRule element decoding, retaining only the correct code stream portion before the error, and resulting in low decoding efficiency, can be solved. This achieves the effect of efficiently decoding QoSRule elements and effectively obtaining QoSRule element information. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 1 is a hardware structure block diagram of a computer terminal according to a method for handling code stream anomalies of quality of service rule cells according to an embodiment of the present disclosure;

[0017] FIG2 is a flow chart of a method for handling code stream anomalies of a quality of service rule cell according to an embodiment of the present disclosure;

[0018] 3 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to an embodiment of the present disclosure;

[0019] 4 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to yet another embodiment of the present disclosure;

[0020] 5 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to another embodiment of the present disclosure;

[0021] 6 is a flowchart of a method for handling code stream anomalies of a quality of service rule cell according to yet another embodiment of the present disclosure;

[0022] FIG7 is a flowchart of code stream exception processing in different scenarios according to an embodiment of the present disclosure;

[0023] FIG8 is a flow chart of establishing a PDU session according to an embodiment of the present disclosure;

[0024] FIG9 is a flow chart of PDU session modification according to an embodiment of the present disclosure;

[0025] 10 is a flowchart of a method for handling code stream anomalies of quality of service rule cells according to another embodiment of the present disclosure;

[0026] FIG11 is a diagram of a PF code stream structure according to an embodiment of the present disclosure;

[0027] 12 is a flowchart of a method for handling code stream anomalies of a quality of service rule cell according to another embodiment of the present disclosure;

[0028] FIG13 is a diagram of a PF code stream structure according to yet another embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0031] The method embodiments provided in the embodiments of the present disclosure can be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking operation on a mobile terminal as an example, FIG1 is a hardware structure block diagram of a mobile terminal for a method for handling a stream anomaly of a quality of service rule cell according to an embodiment of the present disclosure. As shown in FIG1 , the mobile terminal may include one or more (only one is shown in FIG1 ) processors 102 (the processor 102 may include, but is not limited to, a microprocessor (Central Processing Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG1 is merely illustrative and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .

[0032] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for handling code stream anomalies of the quality of service rule information element in the embodiment of the present disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In one embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] According to one aspect of an embodiment of the present disclosure, a method for handling a code stream anomaly of a quality of service rule cell is provided. FIG2 is a flow chart of the method for handling a code stream anomaly of a quality of service rule cell according to an embodiment of the present disclosure. As shown in FIG2 , the process includes the following steps:

[0035] 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 the PDU session modify command, and checks whether the code stream of the currently decoded QoSRule information element is abnormal.

[0036] Step S204: When the code stream of the currently decoded QoSRule cell is abnormal, determine whether to skip the QoSRule cell with the abnormal code stream to continue decoding subsequent QoSRule cells based on the current process type and whether the QoSRule cell with the abnormal code stream is a default QoSRule cell.

[0037] In step S204 of this embodiment, based on the current process type and whether the QoSRule information element with the code stream abnormality is a default QoSRule information element, it is determined whether to skip the QoSRule information element with the code stream abnormality to continue decoding subsequent QoSRule information elements, including one of the following: if the current process is a PDU establishment process and the QoSRule information element with the code stream abnormality is a non-default QoSRule information element, the UE skips the QoSRule information element with the code stream abnormality to continue decoding subsequent QoSRule information elements, and initiates a PDU session modification request to delete the QoSRule information element with the code stream abnormality; if the current process is a PDU establishment process and the QoSRule information element with the code stream abnormality is a default QoSRule information element, the UE stops decoding the QoSRule information element with the code stream abnormality 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 reject message to the network side.

[0038] Since the QoSRule cell does not directly skip the abnormal code stream when a code stream exception occurs during QoSRule cell decoding, but determines whether to skip the QoSRule cell with the code stream exception to continue subsequent decoding based on the current different process types and QoSRule cell types, the UE may continue decoding after skipping the code stream exception and initiate the corresponding process to interact with the network side, thereby ensuring the consistency of QoSRule cell information between the UE and the network side.

[0039] In this embodiment, before the UE initiates the PDU session modification request, the process further includes: the UE marking the QoSRule information element of the code stream abnormality.

[0040] Since in the PDU establishment process and the QoSRule information element with abnormal code stream is a non-default QoSRule information element, the UE skips the QoSRule information element with abnormal code stream to continue the subsequent QoSRule decoding, the QoSRule information element with abnormal code stream is marked, which can be used to determine the QoSRule information element with abnormal code stream that needs to be deleted subsequently.

[0041] In step S202 of this embodiment, the UE decodes the QoSRule information element in the PDU session accept message or the PDU session modification command and checks whether the code stream of the currently decoded QoSRule information element is abnormal, including: the UE decodes the PDU session accept message or the PDU session modification command to obtain the number of QoSRule information elements to be decoded, and decodes each QoSRule in turn and checks whether the code stream of each QoSRule information element is abnormal.

[0042] Since the number of QoSRule cells to be decoded is obtained before decoding, it can be confirmed whether all QoSRule cells to be decoded have been decoded.

[0043] In step S202 of this embodiment, the type of code flow abnormality of the QoSRule cell includes: the number of packet filters PF does not match.

[0044] In this embodiment, checking whether the code flow of the currently decoded QoSRule cell is abnormal includes: decoding the current QoSRule cell according to the actual length of the PF field in the current QoSRule cell to obtain the actual PF quantity value; comparing the actual PF quantity value with the PF quantity field value sent by the network side, and if they are inconsistent, determining that the current QoSRule cell has a code flow abnormality of PF quantity mismatch.

[0045] Since the code stream abnormal scenario of PF number mismatch is taken into account during the decoding process, the abnormal scenario of PF number mismatch described in the protocol can be detected, thereby ensuring the accuracy of QosRule information decoding.

[0046] Through the embodiment of the present application, since the code stream of the currently decoded QoSRule element is checked for abnormality while decoding the QoSRule element in the PDU session acceptance message or the PDU session modification command, the abnormal code stream that occurs during the decoding process can be discovered in time. When a code stream abnormality occurs, the system does not directly jump out of the abnormal part, but determines whether to skip the QoSRule element with the abnormal code stream to continue decoding based on the current process and the type of QoSRule element. Therefore, it can solve the problems of directly jumping out of the abnormal code stream when a code stream abnormality occurs during QoSRule element decoding, only retaining the correct code stream part before the error, resulting in low decoding efficiency; and the problem of not being able to ensure the consistency of the QoS information between the UE and the network side due to the lack of an interactive process with the network side; and the problem of being unable to detect the code stream abnormality scenario with mismatched PF numbers, resulting in low decoding information accuracy. The effect of efficiently decoding QoSRule elements and accurately and effectively obtaining QoSRule element information can be achieved.

[0047] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it 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 disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory (ROM / RAM), a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.

[0048] This embodiment also provides a device for handling code stream anomalies in a quality of service rule cell. This device is used to implement the above-mentioned embodiments and preferred implementations, and details already described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0049] FIG3 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to an embodiment of the present disclosure. As shown in FIG3 , the device 300 for handling code stream anomalies of a quality of service rule cell includes: a decoding module 10 and a processing module 20 .

[0050] The decoding module 10 is configured to decode the QoSRule cell in the protocol data unit PDU session accept message or the PDU session modify command, and check whether the code stream of the currently decoded QoSRule cell is abnormal;

[0051] The processing module 20 is configured to, when the code stream of the currently decoded QoSRule cell is abnormal, determine whether to skip the QoSRule cell with the abnormal code stream to continue decoding subsequent QoSRule cells based on the current process type and whether the QoSRule cell with the abnormal code stream is a default QoSRule cell.

[0052] FIG4 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to another embodiment of the present disclosure. As shown in FIG4 , in addition to all the modules shown in FIG3 , the decoding module 10 further includes:

[0053] The decoding unit 11 is configured to decode the PDU session accept message or the PDU session modify command to obtain the number of QoSRule cells to be decoded, and decode each QoSRule in turn and check whether the code stream of each QoSRule cell is abnormal.

[0054] FIG5 is a structural block diagram of a device for handling code stream anomalies of a quality of service rule cell according to another embodiment of the present disclosure. As shown in FIG5 , in addition to all the modules shown in FIG4 , the decoding module 10 further includes:

[0055] The PF anomaly checking unit is configured to decode according to the actual length of the packet filter PF field in the QoSRule during the decoding process, obtain the actual PF quantity value, and compare it with the PF quantity field value sent by the network side. If they are inconsistent, a code stream anomaly scenario of PF quantity mismatch exists.

[0056] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0057] To facilitate understanding of the technical solutions provided by the present disclosure, embodiments of specific scenarios will be described in detail below.

[0058] FIG6 is a flowchart of a method for handling a code stream anomaly of a quality of service rule cell according to another embodiment of the present disclosure. As shown in FIG6 , the method includes the following steps:

[0059] Step S601, the QosRule decoding process begins, and proceeds to step S602;

[0060] Step S602: Perform regular decoding to obtain the QosRule number and save it to the variable bQosRuleNum, and then proceed to step S603;

[0061] Step S603: cyclically decode each QosRule in turn according to the number of bQosRuleNum and perform code stream inspection. During the decoding process, consider the scenario where the number of PFs does not match, and then proceed to step S604.

[0062] Step S604: determine whether the code stream is abnormal during the decoding process of a single QosRule. If the code stream is abnormal, proceed to step S607; otherwise, proceed to step S605.

[0063] Step S605: a single QosRule message has been successfully decoded, and the loop variable bQosRuleNum is updated and decremented by 1, and the process proceeds to step S606;

[0064] Step S606, check whether all QosRule information has been decoded. If bQosRuleNum=0, the decoding is complete and the process goes to step S609;

[0065] Step S607: When an abnormality is detected in the code stream during the cyclic decoding of a single QoSRule information, the UE determines whether the current process is a PDU establishment process and whether the current QoSRule is a non-default QoSRule. If both conditions are met, the UE exits the current error and continues the decoding operation of other QoSRule information, proceeding to step S605; otherwise, proceeding to step S608.

[0066] Step S608: The UE will initiate a corresponding processing flow based on the failure scenario, and then proceed to step S609.

[0067] Specifically, in this embodiment, the UE initiates a process for processing abnormal bitstreams. FIG7 is a flow chart of abnormal bitstream processing in different scenarios according to an embodiment of the present disclosure. The corresponding processing processes initiated by the UE in different scenarios are as follows:

[0068] In scenario 1, the current QoSRule decoding process is the PDU session establishment process, and when the code stream in the default QoSRule is incorrect, the UE should stop the QoSRule decoding process and notify the subsequent modules to initiate the process. After completing the establishment process, the UE initiates the PDU session release process and sets 5GSM cause #84.

[0069] UE initiates the PDU session establishment process. Figure 8 is a PDU session establishment flow chart according to an embodiment of the present disclosure. In a 5G environment, when the UE needs to do business, the UE needs to establish a PDU session with the network. Usually, the UE will initiate a PDU session establishment request (PDU SESSION ESTABLISHMENT REQUEST). The network side will configure relevant QoS resources for the UE according to the situation. The UE needs to decode the QosRule information element in the PDU session establishment acceptance (PDU SESSION ESTABLISHMENT ACCEPT) to obtain information.

[0070] In scenario 2, when the current QoSRule decoding process is the 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;

[0071] The network side initiates the PDU session modification process. Figure 9 is a PDU session modification flow chart according to an embodiment of the present disclosure. In a 5G environment, when the network side needs to modify the PDU session, the network side usually initiates a PDU session modification request for Qos resources. The UE needs to decode the QosRule element in the PDU session modification command (PDU SESSION MODIFICATION COMMAND) to obtain information.

[0072] Scenario 3: The current QoSRule decoding process is the PDU session establishment process, and the code stream in the non-default QoSRule is incorrect: the UE should jump out of the current erroneous QoSRule decoding, continue decoding the remaining QoSRule, and mark the QoSRule with abnormal code stream. The subsequent module should initiate the PDU session modification process to delete the QoSRule with incorrect code stream and set 5GSM cause#84.

[0073] Step S609: The main process of QosRule message decoding and code stream checking is finished.

[0074] FIG10 is a flowchart of a method for handling code stream anomalies of a quality of service rule cell according to another embodiment of the present disclosure. This method is a decoding process for considering the PF number mismatch abnormal code stream during the decoding process when the operation code = 1, 3, or 4. FIG11 is a diagram of the PF code stream structure according to an embodiment of the present disclosure. The 24501 protocol specifies that the PF code stream structure when the operation code = 1, 3, or 4 is shown in FIG11. In this embodiment, decoding is performed based on the actual length of the PF code stream, and the actual PF number bRealPfNum is obtained. By comparing it with the length bPFNum in the field, it is determined whether there is a PF field mismatch scenario. If the code stream is abnormal, FAIL is returned; otherwise, SUCC is returned. The specific process of the embodiment corresponding to FIG10 is as follows:

[0075] Step S1001: The UE starts the PF information decoding process and proceeds to step S1002;

[0076] Step S1002: In the decoding process, it is necessary to consider the scenario where the number of PFs does not match, and bRealPfNum is set to the real number of PFs obtained during the decoding process. Here, the initial value bRealPfNum is set to 0, and the process proceeds to step S1003;

[0077] Step S1003, wLen is the remaining field length of QoSRule when entering PF decoding. Here, it is determined whether wLen is equal to 0. If wLen=0, the process proceeds to step S213, otherwise, the process proceeds to step S1004;

[0078] Step S1004: decode byte octet8 in FIG11 to obtain the PF filtering direction bDirection and PF identifier bPFid, and then proceed to step S1005;

[0079] Step S1005: Update the wLen value by decrementing it by 1 and check whether wLen is greater than 2. After decoding the PF, there should be at least 2 bytes left for decoding the priority and QFI information. If wLen>2, proceed to step S1006; otherwise, proceed to step S1013.

[0080] Step S1006: decode byte octet9 in FIG11 to obtain the length value bPFLen of the PF. Update the value wLen by subtracting 1 from wLen. Then compare wLen with the content length bPFLen of the PF and calculate wLen = wLen - bPFLen. Then proceed to step S1007.

[0081] Step S1007: Check whether the number of remaining bytes wLen is greater than 2. If wLen>2, we consider that the content of PF has not been fully decoded and need to continue the decoding operation of PF and go to step S212. Otherwise, go to step S208.

[0082] Step S1008: Check whether wLen is equal to 2. If wLen=2, we can assume that the PF has been decoded and the remaining 2 bytes are used to decode the priority and QFI information. Then, proceed to step S209. Otherwise, proceed to step S213.

[0083] Step S1009: decode bytes octet10 to octetm in FIG11 to obtain the PF content pbCont, and update the bRealPfNum value by adding 1, and then proceed to step S1010;

[0084] Step S1010: Check whether the actual value of the PF number bRealPfNum obtained by the current decoding is equal to bPFNum. If bRealPfNum = bPFNum, there is no PF number mismatch in the QosRule, and the process proceeds to step S211. Otherwise, it is considered that there is a special stream abnormality scenario in which the PF number does not match in the QosRule, and the process proceeds to step S1013.

[0085] Step S1011: In the PF information decoding process in FIG11 , no code stream anomaly is found, and the process returns to SUCC and proceeds to step S1015;

[0086] In step S1012, when wLen>2, it is considered that the PF content has not been fully decoded and the PF decoding operation needs to be continued. Here, bytes octet10 to octetm in Figure 2 are decoded to obtain the PF content pbCont, and the bRealPfNum value is updated and increased by 1, and the process proceeds to step S1004;

[0087] Step S1013: If a bitstream error or a mismatch in the number of PFs is detected during the PF decoding process, the process proceeds to step S1014.

[0088] Step S1014: During the PF decoding process, it is detected that the code stream is incorrect, and the code stream is returned to FAIL, and the process proceeds to step S1015;

[0089] Step S1015 , when the operation code = 1, 3, or 4, the decoding process of the abnormal code stream considering the mismatch of the PF number is completed.

[0090] FIG12 is a flowchart of a method for handling a code stream exception of a quality of service rule cell according to another embodiment of the present disclosure. This method is a decoding process for a code stream that considers a mismatch in the number of PFs when the operation code is 5. FIG13 is a diagram of a PF code stream structure according to yet another embodiment of the present disclosure. The code stream structure of the PF when the operation code is 5 as specified in the 24501 protocol is shown in FIG13. The specific process of the embodiment corresponding to FIG12 is as follows:

[0091] Step S1201: When the operation code is 5, the UE starts the PF decoding and checking process and proceeds to step S302.

[0092] Step S1202: In the decoding process, it is necessary to consider the scenario where the number of PFs does not match. bRealPfNum is the real number of PFs obtained during the decoding process. Here, the initial value bRealPfNum is set to 0, and the process proceeds to step S303.

[0093] Step S1203, here, it is determined whether wLen is equal to 0. If wLen=0, the process proceeds to step S311, otherwise, the process proceeds to step S304;

[0094] Step S1204: decoding is performed according to the PF code stream structure specified in FIG13 , decoding field octet8 in FIG13 . At this point, the content of a single PF has been decoded, and wLen is updated and decremented by 1, and the process proceeds to step S1205;

[0095] Step S1205: After decoding a single PF, as shown in FIG13 , at least two bytes are required. If wLen>2, it is considered that there are other PFs and the process proceeds to step S1210; otherwise, the process proceeds to step S1206.

[0096] Step S1206: Check whether wLen is equal to 2. If wLen=2, we can assume that all PF fields have been decoded and proceed to step S1207; otherwise, proceed to step S1211.

[0097] Step S1207: update the bRealPfNum value by adding 1, and then proceed to step S1208;

[0098] Step S1208: Check whether the current bRealPfNum and bPFNum are equal. If bRealPfNum=bPFNum, it means that there is no PF number mismatch in the QosRule, and go to step S309; ​​otherwise, go to step S1211;

[0099] Step S1209: The PF decoding process in the QosRule does not find any abnormality in the bitstream, and returns SUCC, and proceeds to step S1213;

[0100] In step S1210, when wLen>2, the content of the PF field has not been fully decoded and the PF decoding operation needs to be continued. Here, the bRealPfNum value is updated and bRealPfNum is increased by 1, and the process proceeds to step S1204;

[0101] Step S1211: If a bitstream error or a mismatch in the number of PFs is detected during PF decoding, the process proceeds to step S1212.

[0102] Step S1212: During the PF decoding process in the QosRule, it is detected that the code stream is incorrect, and FAIL is returned, and the process goes to step S1213;

[0103] Step S1213: The PF decoding process in the QosRule with operation code = 5 is completed.

[0104] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.

[0105] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0106] An embodiment of the present disclosure further provides an electronic device, 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.

[0107] In an 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.

[0108] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0109] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0110] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.

Claims

1. A method for handling code stream anomalies of a quality of service rule cell, comprising: The user equipment UE decodes the quality of service rule QoSRule information element in the protocol data unit PDU session acceptance message or the 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 cell is abnormal, it is determined whether to skip the QoSRule cell with abnormal code stream to continue decoding subsequent QoSRule cells according to the current flow type and whether the QoSRule cell with abnormal code stream is a default QoSRule cell.

2. The method according to claim 1, wherein: Determining whether to skip the QoSRule cell with abnormal code flow to continue decoding subsequent QoSRule cells according to the current process type and whether the QoSRule cell with abnormal code flow is a default QoSRule cell includes one of the following: If the current process is a PDU establishment process and the QoSRule information element with abnormal code stream is a non-default QoSRule information element, the UE skips the QoSRule information element with abnormal code stream to continue decoding of subsequent QoSRule, and initiates a PDU session modification request to delete the QoSRule information element with abnormal code stream; If the current process is a PDU establishment process and the QoSRule information element with abnormal code flow is a default QoSRule information element, the UE stops decoding the QoSRule information element with abnormal code flow 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 reject message to the network side.

3. The method according to claim 2, wherein: Before the UE initiates a PDU session modification request, the method further includes: The UE marks the QoSRule information element of the code stream being abnormal.

4. The method according to claim 1, wherein: The UE decodes the QoSRule information element in the PDU session accept message or the PDU session modify command and checks whether the code stream of the currently decoded QoSRule information element is abnormal, including: The UE decodes the PDU session accept message or the PDU session modify command to obtain the number of QoSRule cells to be decoded, and decodes each QoSRule in turn and checks whether the code stream of each QoSRule cell is abnormal.

5. The method according to claim 1, wherein: The types of code flow anomalies of the QoSRule cell include: the number of packet filters PF does not match.

6. The method according to claim 5, wherein: Check whether the code stream of the currently decoded QoSRule cell is abnormal, including: Decode the current QoSRule cell according to the actual length of the PF field in the current QoSRule cell to obtain the actual value of the PF quantity; The actual PF quantity value is compared with the PF quantity field value sent by the network side. If they are inconsistent, it is determined that the current QoSRule cell has a code flow anomaly due to a mismatch in the PF quantity.

7. An abnormal code stream processing device for decoding a quality of service rule QoSRule cell, applied to a user equipment UE, comprising: A decoding module, configured to decode a QoSRule cell in a protocol data unit PDU session acceptance message or a PDU session modification command, and check whether a code stream of a currently decoded QoSRule cell is abnormal; The processing module is configured to determine whether to skip the QoSRule cell with abnormal code flow to continue decoding subsequent QoSRule cells according to the current process type and whether the QoSRule cell with abnormal code flow is a default QoSRule cell when the code flow of the currently decoded QoSRule cell is abnormal.

8. The device according to claim 7, wherein: The processing module is also used for: If the current process is a PDU establishment process and the QoSRule information element with abnormal code stream is a non-default QoSRule information element, the UE skips the QoSRule information element with abnormal code stream to continue decoding of subsequent QoSRule, and initiates a PDU session modification request to delete the QoSRule information element with abnormal code stream; If the current process is a PDU establishment process and the QoSRule information element with abnormal code flow is a default QoSRule information element, the UE stops decoding the QoSRule information element with abnormal code flow 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 reject message to the network side.

9. The device according to claim 7, wherein: The decoding module also includes: The decoding unit is used to decode the PDU session acceptance message or the PDU session modification command to obtain the number of QoSRule cells to be decoded, and decode each QoSRule in turn and check whether the code stream of each QoSRule cell is abnormal.

10. The device according to claim 7, wherein: The decoding module 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 PF quantity value, and compare it with the PF quantity field value sent by the network side. If they are inconsistent, there is a code stream anomaly scenario in which the PF quantity does not match.

11. A computer-readable storage medium having a computer program stored therein, wherein: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 7 when executing the computer program.

Citation Information

Patent Citations

  • Method and device for packet transmission mixing automatic repeat request and transmission system

    CN101075859A

  • Decoding method and device

    CN105740292A

  • Enhanced handling on QOS flow description

    CN111052790A

  • Hierarchical protocol classification engine

    US20030131116A1