A data packet filtering method and device, a communication device, a chip and a storage medium

By replacing or adding filters with unified operation codes, the process of modifying QoS rules for terminals is simplified, the complexity and stability of terminal identification operations are resolved, and the reliability and efficiency of the communication system are improved.

CN120343626BActive Publication Date: 2026-04-10BEIJING X RING TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In communication systems, the complexity and instability of terminal identification and modification of Quality of Service (QoS) rules lead to instability and reliability issues in the communication system.

Method used

By receiving modification instructions from the console, terminals and network devices use a unified first opcode to replace or add filters, simplifying the terminal's processing logic, reducing code complexity, and filtering uplink data packets through target filtering information.

Benefits of technology

It improves the processing efficiency and stability of the terminal, simplifies the filtering operation of the terminal, and enhances the reliability and efficiency of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343626B_ABST
    Figure CN120343626B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data packet filtering method and device, a communication device, a chip and a storage medium. A modification instruction is received from a control console, the modification instruction being used to modify a first filter in first filtering information, the first filtering information including at least one first filter. A target filter list is determined according to the modification instruction, the target filter list including a first operation code, the first operation code being used to instruct a network device to replace the at least one first filter with a filter in the target filter list. Target filtering information is determined, the target filtering information being used to filter uplink data packets. The uplink data packets of a terminal can be filtered, the network device can be instructed through the first operation code, the complexity of terminal code can be reduced, and the processing efficiency, stability and reliability of the terminal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of communication, and in particular, to a data packet filtering method and device, a communication device, a chip and a storage medium. BACKGROUND

[0002] In a communication system, a terminal can filter uplink data according to a Quality of Service (QoS) rule configured by a network device, and the terminal can also actively initiate modification of the QoS rule. In this case, the terminal needs to identify a specific operation type through traversal, and the implementation logic is relatively complex, and the stability and reliability are poor. SUMMARY

[0003] The present disclosure provides a data packet filtering method, device, communication device, chip and storage medium to solve the problems in the related art.

[0004] A first aspect embodiment of the present disclosure provides a data packet filtering method, which is performed by a terminal, and the method comprises: receiving a modification instruction sent by a control console, the modification instruction being used to modify a first filter in first filtering information, the first filtering information comprising at least one first filter; determining a target filter list according to the modification instruction, the target filter list comprising a first operation code, the first operation code being used to instruct a network device to replace the at least one first filter with a filter in the target filter list; and determining target filtering information, the target filtering information being used to filter an uplink data packet.

[0005] In some embodiments of the present disclosure, the modification instruction is used to instruct at least one of the following: at least one second filter; an identifier of the first filtering information; replacement of the at least one first filter; and addition of a filter in the first filtering information.

[0006] In some embodiments of the present disclosure, the target filter list comprises the at least one first filter and / or the at least one second filter.

[0007] In some embodiments of the present disclosure, the method further comprises: establishing a PDU session; receiving at least one second filtering information sent by the network device; receiving an identifier of the first filtering information sent by the control console; and determining the first filtering information from the at least one second filtering information according to the identifier of the first filtering information.

[0008] In some embodiments of the present disclosure, the determining of the target filtering information comprises: sending the target filter list to the network device; receiving at least one third filtering information determined by the network device; receiving an identifier of the target filtering information sent by the control console; and determining the target filtering information from the at least one third filtering information according to the identifier of the target filtering information.

[0009] In some embodiments of the present disclosure, determining the target filter list comprises: when the first filter and the second filter have the same identifier in the target filter list, deleting the repeated first filter.

[0010] A second aspect of the present disclosure provides a data packet filtering method, which is executed by a network device, and the method comprises: determining a first operation code according to a target filter list; and replacing at least one first filter with a filter in the target filter list based on the first operation code.

[0011] In some embodiments of the present disclosure, the target filter list comprises the at least one first filter and / or the at least one second filter.

[0012] In some embodiments of the present disclosure, the method further comprises: sending second filter information to the terminal, the second filter information being used by the terminal to determine the first filter information.

[0013] In some embodiments of the present disclosure, the method further comprises: receiving the target filter list sent by the terminal, the target filter list comprising the first operation code; determining third filter information according to the target filter list; and sending the third filter information to the terminal.

[0014] A third aspect of the present disclosure provides a terminal, which comprises: a first transceiver unit configured to receive a modification instruction sent by a console, the modification instruction being used to modify a first filter in first filter information, the first filter information comprising at least one first filter; a first processing unit configured to determine a target filter list according to the modification instruction, the target filter list comprising a first operation code, the first operation code being used to instruct a network device to replace the at least one first filter with a filter in the target filter list; and a second processing unit configured to determine target filter information, the target filter information being used to filter an uplink data packet.

[0015] A fourth aspect of the present disclosure provides a network device, which comprises: a first processing unit configured to determine a first operation code according to a target filter list; and a second processing unit configured to replace at least one first filter with a filter in the target filter list based on the first operation code.

[0016] A fifth aspect of the present disclosure provides a communication device, which comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect of the present disclosure.

[0017] The sixth aspect of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method described in the first aspect and the second aspect of the present disclosure.

[0018] The seventh aspect of the present disclosure provides a communication system, comprising a terminal and a network device, wherein the terminal is configured to implement the method described in the first aspect of the present disclosure, and the network device is configured to implement the method described in the second aspect of the present disclosure.

[0019] The eighth aspect of the present disclosure provides a chip, comprising at least one processor and a communication interface, wherein the communication interface is configured to receive a signal input into the chip or output from the chip, and the processor is in communication with the communication interface and is configured to implement the method described in the first aspect of the present disclosure through a logic circuit or an execution of code instructions.

[0020] In summary, the data packet filtering method provided by the present disclosure can determine the target filtering list based on the modification instruction, and the network device can replace all the filters in the first filtering information according to the first operation code contained in the target filtering list, so as to reduce the complexity of the terminal code and improve the stability and reliability of the terminal. The terminal can determine the target filtering information, and filter the uplink data packet based on the target filtering information.

[0021] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, serve to explain the principles of the present disclosure, and do not constitute an improper limitation on the present disclosure.

[0023] Figure 1 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1;

[0024] Figure 2 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1;

[0025] Figure 3 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1;

[0026] Figure 4 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1;

[0027] Figure 5 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1;

[0028] Figure 6 A schematic diagram of a terminal-initiated QoS rule modification method provided for an embodiment of the present disclosure;

[0029] Figure 7 A structural schematic diagram of a terminal provided for an embodiment of the present disclosure;

[0030] Figure 8 A structural schematic diagram of a network device provided for an embodiment of the present disclosure;

[0031] Figure 9 A structural schematic diagram of an electronic device provided for an embodiment of the present disclosure;

[0032] Figure 10 A chip structural schematic diagram provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. Examples of the embodiments are shown in the drawings, wherein the same or similar notations denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are intended to explain the present disclosure, and cannot be understood as limiting the present disclosure.

[0034] In a communication system, after a mobile terminal registers a network, the terminal establishes a protocol data unit session (PDU Session) bearer for a service initiated by a user, and the network allocates a corresponding QoS rule to the terminal based on the PDU Session, and the terminal can perform packet filtering on uplink data packets based on the allocated QoS rule. In the above background, a user can actively request to modify an existing QoS rule parameter through a console, and the terminal actively initiates a process of modifying the existing QoS rule parameter, for example, as follows.

[0035] 1. The terminal completes initial registration in the network, and establishes a PDU session for user services, i.e., a PDU Session, and the network allocates at least one corresponding QoS rule parameter to the terminal, for example, assuming that the parameter is: the identifier of the QoS rule is 1, the QoS rule carries two packet filters, the identifier of one packet filter is 1, and the identifier of the other packet filter is 2.

[0036] 2. The terminal can actively initiate a modification operation on the QoS rule. For example, the modification operation can be adding a new packet filter to the packet filter list of the existing QoS rule, or replacing the packet filter list of the existing QoS rule with a new packet filter list.

[0037] 3. When the terminal initiates the modification operation on the QoS rule, the terminal needs to compare the packet filter list of the QoS rule to be modified with the packet filter list of the QoS rule previously issued by the network, and then determine whether to perform an adding operation or a replacing operation on the packet filter of the existing QoS rule.

[0038] 4. After the terminal identifies the corresponding operation, the terminal can encode the corresponding operation code request information according to the protocol and send it to the network.

[0039] However, the above scheme still has some problems. When identifying the specific operation, the terminal needs to compare the desired packet filter list with the list previously issued by the network device to determine the code. The code is relatively complex, and code exceptions are prone to occur, which is not conducive to the stability and reliability of the communication system.

[0040] To solve the problems in the related art, the present disclosure provides a data packet filtering method. The method can unify the operation codes of the adding operation and the replacing operation into a first operation code, which can reduce the complexity of the terminal logic implementation, improve the efficiency of the terminal, and improve the stability and reliability of the terminal. The specific content of the method is as follows.

[0041] Figure 1 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1. As shown in FIG. 1, the method can be executed by a communication device. Optionally, the method can be executed by a terminal. Optionally, the method can be executed by a chip of the terminal, such as a baseband chip. The method can include the following steps. Figure 1

[0042] Step 101, receiving a modification instruction sent by a console.

[0043] In some embodiments, the modification instruction can be used to modify a first filter in first filtering information.

[0044] In some embodiments, the first filtering information can include at least one first filter, and the first filtering information can determine an uplink data packet filtering rule of the terminal during uplink transmission.

[0045] ​In some embodiments, the first filter information can be a QoS rule, and the name of the first filter information can be a "quality of service rule", a "filter rule", or the like, which is not limited in the present disclosure.

[0046] In some embodiments, the first filter can be a packet filter, and the terminal can filter the uplink data by using the packet filter.

[0047] In some embodiments, when there are multiple first filters, the uplink data of the terminal can pass through multiple first filters for filtering, and the filtering rules of the multiple filters can be different.

[0048] In some embodiments, the first filter information can include multiple parameters, for example, the parameters of the first filter information can include an identifier of the first filter information (i.e., a QoS rule identifier), the first filter information can include at least one packet filter, and each packet filter can have its own identifier, i.e., a packet filter identifier, and different packet filters have different identifiers. For example, the identifier of one packet filter is 1, and the identifier of another packet filter can be 2.

[0049] In some embodiments, the terminal can establish a PDU session and receive at least one second filter information sent by the network device based on the PDU session bearer.

[0050] In some embodiments, the second filter information can be a QoS rule, and the parameters included in the second filter information are consistent with those in the first filter information, i.e., the parameters included in the second filter information can include an identifier of the second filter information, the second filter information can include at least one packet filter, and each packet filter can have its own identifier, i.e., a packet filter identifier, and different packet filters have different identifiers. For example, the identifier of one packet filter is 1, and the identifier of another packet filter can be 2.

[0051] In other words, the second filter information can be regarded as a candidate first filter information, and the name of the second filter information can be a "candidate quality of service rule", a "candidate filter rule", or the like, which is not limited in the present disclosure.

[0052] In some embodiments, the terminal can receive the identifier of the first filter information sent by the console, i.e., the console can indicate the identifier of the first filter information adopted by the terminal.

[0053] In some embodiments, the terminal can determine the first filter information from the at least one second filter information according to the identifier of the first filter information, i.e., the console can determine the specific first filter information adopted from the second filter information configured by the network device for the terminal.

[0054] In some embodiments, the name of the modification instruction can be "replace instruction", "add instruction", etc., and the present disclosure is not limited thereto.

[0055] In some embodiments, the modification instruction can be used to indicate at least one of the following:

[0056] at least one second filter;

[0057] an identifier of the first filtering information;

[0058] replacing the at least one first filter; or

[0059] adding a filter in the first filtering information.

[0060] In the above embodiments, the modification instruction can indicate at least one second filter, wherein the second filter is a packet filter indicated by the console, a packet filter that needs to be newly added, or a packet filter that needs to be replaced.

[0061] In the above embodiments, the modification instruction can carry an identifier of the first filtering information, i.e., the console can instruct the terminal to initiate modification of a specific one of a plurality of filtering information of the network configuration, and the console can determine the first filtering information according to the identifier of the first filtering information.

[0062] Step 102: determining a target filter list according to the modification instruction.

[0063] In some embodiments, the name of the target filter list can be "update list", "reference list", etc., and the present disclosure is not limited thereto.

[0064] In some embodiments, the target filter list can include a first operation code, which can be used to instruct the network device to replace the at least one first filter with a filter in the target filter list.

[0065] For example, the first operation code can be "Modify existing QoS rule and replace all packet filters", i.e., the terminal will identify both the new addition operation and the replacement operation as replacing all packet filters in the QoS rule, clear all packet filters in the existing QoS rule, and use the filters in the target filter list as the packet filters of the QoS rule.

[0066] In some embodiments, the target filter list can include at least one first filter and / or at least one second filter. For example, the terminal can integrate all the first filters originally included in the first filter information and all the second filters included in the modification instruction into a new filter list, i.e., the target filter list.

[0067] In some embodiments, when the modification instruction indicates replacement of the at least one first filter, there can be a case where the identification of the first filter in the target filter list is the same as the identification of the second filter. In this case, the terminal can delete the first filter with the repeated identification, i.e., when there is a case where the console instruction indicates that the filter included in the first filter information is repeated, the terminal uses the filter indicated by the console instruction as the criterion, thereby obtaining the target filter list.

[0068] For example, when the operation indicated by the console is to add a filter in the first filter information, for example, the parameter of the first filter information is QoS rule identifier 1, the first filter information carries two packet filters, one packet filter identifier is 1, and the other packet filter identifier is 2; the console requests modification of the QoS rule parameter: QoS rule identifier 1, and a newly added packet filter identifier 3; based on the first operation code, the terminal identifies the operation as a full replacement operation on the QoS rule, at this time, the terminal encodes packet filter identifier 1, packet filter identifier 2, and packet filter identifier 3 and sends them to the network device, and waits for the network device to reassign the QoS rule.

[0069] For example, when the operation indicated by the console is replacement of the at least one first filter, for example, the parameter of the first filter information is QoS rule identifier 1, the first filter information carries two packet filters, one packet filter identifier is 1, and the other packet filter identifier is 2; the console requests to modify the QoS rule parameter: QoS rule identifier 1, packet filter identifier exists 2 and 3, then for the QoS rule, a full replacement operation is initiated, the packet filter of the QoS rule identifier 1 sent by the console is used to replace the packet filter of the QoS rule identifier 1 sent by the network, and then the packet filter identifier 1, the packet filter identifier 2 and the packet filter identifier 3 are all encoded and sent to the network, and the network is waited to reassign the QoS rule.

[0070] In step 103, the target filter information is determined.

[0071] In some embodiments, the target filter information can be used to filter the uplink data packet.

[0072] In some embodiments, the target filter information is filter information reassigned by the network device to the terminal according to the target filter list reported by the terminal, the target filter information can include an identifier of the target filter information, the target filter information can include at least one packet filter, for example, each packet filter can have its own identifier, i.e., a packet filter identifier, and different packet filters have different packet filter identifiers. The at least one packet filter is used to filter the uplink data of the terminal.

[0073] In summary, according to the above embodiments of the present disclosure, the terminal initiates a modification operation on the first filter information according to the modification instruction, and identifies the replacement and addition operations as full replacement operations, which can reduce the processing matters of the terminal, does not need to perform a traversal identification operation, can reduce the complexity of the terminal code, and improves the efficiency of the terminal; the target filter list and the first operation code are sent to the network device, which facilitates the network device to determine the target filter information, and the filtering of the uplink data of the terminal can be implemented.

[0074] Figure 2 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 1. Figure 2 As shown in FIG. 1, based on Figure 1In the illustrated embodiment, the method can further include the following steps.

[0075] Step 201, sending the target filter list to the network device.

[0076] In some embodiments, the terminal can encode the target filter list and send it to the network device, which can facilitate the network device to determine the target filtering information based on the target filter list.

[0077] Step 202, receiving at least one third filtering information determined by the network device.

[0078] In some embodiments, the third filtering information is the filtering information reassigned by the network device to the terminal based on the target filter list, and the third filtering information also contains at least one packet filter. The packet filter contained in the third filtering information can be consistent with the target filter list or can be different.

[0079] Step 203, receiving the identification of the target filtering information sent by the console.

[0080] In some embodiments, the terminal can receive the identification of the target filtering information sent by the console, i.e., the console can indicate the identification of the target filtering information that the terminal needs to use.

[0081] Step 204, determining the target filtering information from the at least one third filtering information according to the identification of the target filtering information.

[0082] In some cases, the terminal can determine the target filtering information according to the above-mentioned identification of the target filtering information, i.e., the terminal can autonomously determine the QoS rule to be adopted.

[0083] In summary, in the above-mentioned embodiments of the present application, the terminal determines the specific QoS rule to be used by receiving the identification information sent by the console, which facilitates filtering of uplink data based on the QoS rule.

[0084] Figure 3 A flowchart of a data packet filtering method provided by an embodiment of the present disclosure is shown in FIG. 3. Figure 3 As shown in FIG. 3, the method can be executed by an electronic device, and optionally, the method can be executed by a network device. The method can include the following steps.

[0085] Step 301, determining a first operation code according to a target filter list.

[0086] In some embodiments, the network device can determine the first operation code by receiving the target filter list, and the target filter list includes the first operation code, which instructs the network device to replace all first filters in the first filtering information with the filters in the target filter list.

[0087] At step 302, replace the at least one first filter with a filter in the target filter list based on the first operation code.

[0088] In some embodiments, the network device can replace the first filter in the first filter information according to the first operation code, or can not replace it, i.e., the network device can not perform the indication of the first operation code.

[0089] In summary, in the above embodiments of the present application, the network device can determine the filtering information requirement of the terminal by receiving the target filter list and the first operation code sent by the terminal, and by identifying the replacement operation and the addition operation as the full replacement operation, the code complexity of the terminal is reduced, the processing logic of the network device is relatively simple, and the system efficiency, the stability and the reliability of the communication can be improved.

[0090] Figure 4 A flowchart of a data packet filtering method according to an embodiment of the present disclosure is shown in FIG. 4. As shown in FIG. 4, based on the embodiment shown in FIG. 3, the method can further include the following steps. Figure 4 Figure 3 As shown in FIG. 4, the method can further include the following steps.

[0091] At step 401, send the second filter information to the terminal.

[0092] In some embodiments, the second filter information can be used by the terminal to determine the first filter information.

[0093] In summary, in the above embodiments of the present application, the network device can configure the filtering parameters of the uplink data of the terminal by sending the second filter information to the terminal.

[0094] Figure 5 A flowchart of a data packet filtering method according to an embodiment of the present disclosure is shown in FIG. 5. As shown in FIG. 5, based on the embodiment shown in FIG. 4, the method can further include the following steps. Figure 5 Figure 3 As shown in FIG. 5, the method can further include the following steps.

[0095] At step 501, receive the target filter list sent by the terminal.

[0096] In some embodiments, the target filter list contains the first operation code.

[0097] At step 502, determine the third filter information according to the target filter list.

[0098] ​​In some embodiments, the network device can determine the third filtering information according to the target filter list, that is, the network device can reconfigure the filtering information for the terminal based on the target filter list, the packet filters included in the third filtering information can be consistent with the filters in the target filter list, at this time the network device performs the first operation code to replace the first filters in the first filtering information; the packet filters included in the third filtering information can also be inconsistent with the filters in the target filter list, at this time the network device does not perform the first operation code, and the packet filters in the third filtering information are determined by the network device itself.

[0099] In step 503, the third filtering information is sent to the terminal.

[0100] In some embodiments, the network device can send the third filtering information to the terminal, so as to facilitate the terminal to determine the target filtering information based on the third filtering information.

[0101] In summary, in the above embodiments of the present application, the network device determines and sends the third filtering information to the terminal, which can facilitate the terminal to determine the target filtering information based on the third filtering information, and achieve the filtering of uplink data. When the network device determines the third filtering information based on the first operation code, the modification demand initiated by the terminal can be met, the addition operation and the replacement operation are all recognized as the full replacement operation through the first operation code, which can reduce the code complexity of the terminal, the processing logic of the network device is relatively simple, and the system efficiency, stability and reliability of communication can be improved.

[0102] The technical solutions of the present disclosure will be further described in detail below in combination with specific application embodiments.

[0103] The following is the specific content of an optimization scheme for a terminal initiating a QoS rule modification operation provided by an embodiment of the present disclosure.

[0104] Figure 6 An implementation method flowchart for a terminal initiating a QoS rule modification is provided, and the main steps are as follows:

[0105] 1. The terminal completes initial registration in the network, and establishes a PDU session, i.e. PDU SESSION, for user service, and the network allocates at least one corresponding QoS rule parameter for the terminal. For example, it is assumed that the parameter is: the identifier of the QoS rule is 1, the QoS rule carries two packet filters, the identifier of one packet filter is 1, and the identifier of the other packet filter is 2.

[0106] 2. The console can send a modification instruction to the terminal, and the terminal initiates a modification operation on the existing QoS rule. For example, the operation can be to add a packet filter to the existing QoS rule. After receiving the instruction, the terminal identifies the operation as replacing the packet filter in all QoS rules. The terminal encodes and sends the packet filter list previously issued by the network and the packet filter list requested by the console to the network, and informs the network that the operation code is "modify the existing QoS rule and replace all packet filters". For example, the QoS rule parameters requested by the console for modification are: QoS rule identifier is 1, and new packet filter identifier is 3. For this QoS rule, a complete replacement operation will be initiated, and packet filter identifier 1, packet filter identifier 2 and packet filter identifier 3 will be encoded and sent to the network. Wait for the network to reassign the QoS rule.

[0107] 3. The control console can send a modification instruction to the terminal, and the terminal initiates a modification operation on the existing QoS rule. For example, the operation can be replacing all packet filters in the existing QoS rule. After receiving the instruction, the mobile terminal identifies the operation as replacing all packet filters in the QoS rule. The terminal encodes and sends the packet filter list previously issued by the network and the packet filter list requested by the control console to the network, and informs the network that the operation code is "modify the existing QoS rule and replace all packet filters". If there are packet filters with duplicate packet filter identifiers, the packet filters can be replaced by the packet filters issued by the control console. For example, the QoS rule parameters requested by the control console for modification are: the QoS rule identifier is 1, and there are two packet filter identifiers 2 and 3. For this QoS rule, a complete replacement operation will be initiated. The packet filter of the QoS rule identifier 1 issued by the control console is used to replace the packet filter of the QoS rule identifier 1 issued by the network. Then, the packet filter identifier 1, the packet filter identifier 2 and the packet filter identifier 3 are all encoded and sent to the network, and the network is waited to reassign the QoS rule.

[0108] 4. The network processes the modification operation of the QoS rule initiated by the terminal, and finally reassigns new QoS rule parameters to the terminal.

[0109] In summary, according to the above examples of the present disclosure, the terminal can reduce the complexity of processing by identifying the replacement and addition operations as complete replacement operations. The terminal does not need to distinguish between the addition operation and the replacement operation by traversing, and the processing speed and stability of the terminal can be improved.

[0110] Figure 7 A structure schematic diagram of a terminal 700 provided by an embodiment of the present disclosure is shown in FIG. 7. As shown in the figure, the terminal includes: Figure 7

[0111] ​The first transceiver unit 710 is configured to receive a modification instruction sent by the console, the modification instruction being used to modify the first filter in the first filtering information; the first processing unit 720 is configured to determine a target filter list according to the modification instruction, the target filter list including a first operation code, the first operation code being used to instruct the network device to replace at least one first filter with a filter in the target filter list; and the second processing unit 730 is configured to determine target filtering information, the target filtering information being used to filter the uplink data packet.

[0112] In some embodiments, the modification instruction is used to instruct at least one of the following: at least one second filter; an identifier of the first filtering information; replacement of the at least one first filter; and addition of a filter in the first filtering information.

[0113] In some embodiments, the target filter list includes the at least one first filter and / or the at least one second filter.

[0114] In some embodiments, the first processing unit 710 is further configured to: establish a PDU session; and determine the first filtering information from at least one second filtering information according to the identifier of the first filtering information.

[0115] In some embodiments, the first processing unit 710 further includes a transceiver module configured to: receive at least one second filtering information sent by the network device; and receive the identifier of the first filtering information sent by the console.

[0116] In some embodiments, the first processing unit 710 is further configured to: when the identifier of the first filter in the target filter list is the same as the identifier of the second filter, delete the first filter with the repeated identifier.

[0117] In some embodiments, the second processing unit 730 further includes a transceiver module configured to: receive at least one third filtering information determined by the network device; and receive the identifier of the target filtering information sent by the console.

[0118] In some embodiments, the second processing unit 730 is further configured to: determine the target filtering information from at least one third filtering information according to the identifier of the target filtering information.

[0119] In summary, the terminal 700 receives the modification instruction sent by the console, and sends the first operation code in the target filter list to the network device according to the modification instruction, so that the terminal can not identify the operation instructed by the modification instruction, thereby reducing the complexity of the terminal code and improving the stability and reliability of the terminal.

[0120] Figure 8 A structural schematic diagram of a network device 800 is provided for the embodiments of the present disclosure. As shown in FIG. 8, the network device 800 includes a first transceiver unit 810, a first processing unit 820, and a second processing unit 830. Figure 8As shown, the network device includes:

[0121] The first processing unit 810 is configured to receive a target filter list sent by the terminal, and the target filter list includes a first operation code.

[0122] In some embodiments, the target filter list includes at least one first filter and / or at least one second filter.

[0123] In some embodiments, the first processing unit 810 further includes a transceiver module, which can be configured to send second filter information to the terminal, and the second filter information is used by the terminal to determine the first filter information.

[0124] In some embodiments, the second processing unit 820 can be further configured to determine third filter information according to the target filter list.

[0125] In some embodiments, the second processing unit 820 further includes a transceiver module, which is configured to send the third filter information to the terminal.

[0126] In summary, the network device 800 receives the target filter list sent by the terminal, determines the third filter information based on the target filter list, and sends the third filter information to the terminal, which can facilitate the terminal to determine the target filter information based on the third filter information, and can realize the network device to instruct the filtering of the uplink data of the terminal.

[0127] In the above embodiments of the present application, the method and device provided by the embodiments of the present application are introduced. In order to realize the functions of the above-mentioned method provided by the embodiments of the present application, the electronic device can include hardware structure, software module, and realize the above-mentioned functions in the form of hardware structure, software module, or hardware structure plus software module. Some of the above-mentioned functions can be executed in the form of hardware structure, software module, or hardware structure plus software module.

[0128] Figure 9 is a block diagram of a communication device 900 for implementing the above-mentioned method according to an exemplary embodiment. For example, the communication device 900 can be a mobile phone, a computer, a message transmission device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0129] Referring to Figure 9 , the communication device 900 can include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0130] The processing component 902 generally controls the overall operation of the communication device 900 such as the operation associated with displaying, placing phone calls, communicating data, camera operations, and recording operations. The processing component 902 can include one or more processors 920 to execute instructions and to complete

[0131] The memory 904 is configured to store various types of data to support operations of the communication device 900. Examples of these data include instructions for any application or methods operating on the communication device 900, contact data, phonebook data, messages, pictures, videos, and so on. The memory 904 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0132] The power component 906 provides power to the various components of the communication device 900. The power component 906 can include a power supply management system, one or more power sources, and other components associated with generating, managing and distributing power for the communication device 900.

[0133] The multimedia component 908 includes a screen providing an output interface between the communication device 900 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding operation. In some embodiments, the multimedia component 908 includes a front-facing camera and / or a rear-facing camera. The front-facing camera and / or the rear-facing camera can receive external multimedia data when the communication device 900 is in an operation mode such as a photographing mode or a video mode. Each of the front-facing camera and the rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0134] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) that is configured to receive an external audio signal when the communication device 900 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0135] The I / O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0136] The sensor component 914 includes one or more sensors for providing status assessments of various aspects of the communication device 900. For example, the sensor component 914 can detect an open / closed position of the communication device 900, relative positioning of components, such as a display and a keypad of the communication device 900, a change in position of the communication device 900 or a component of the communication device 900, presence or absence of user contact with the communication device 900, orientation or acceleration / deceleration / g-force and temperature of the communication device 900. The sensor component 914 can include an orientation sensor, a proximity sensor that is configured to detect presence of an object in proximity without any physical contact, and an ambient light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0137] The communication component 916 is configured to facilitate wired or wireless communication between the communication device 900 and other devices. The communication device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or a combination thereof. In an example embodiment, the communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0138] In an example embodiment, the communication device 900 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements for executing the above method.

[0139] In an example embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 904 including instructions, is also provided, which can be executed by the processor 920 of the communication device 900 to complete the above method. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk and an optical data storage device, etc.

[0140] Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are used to make a computer execute the method described in the above embodiments of the present disclosure.

[0141] Embodiments of the present disclosure also provide a communication system including a terminal and a network device, the terminal is used to implement the method described in the first aspect of the present disclosure, and the network device can be used to implement the method described in the second aspect of the present disclosure.

[0142] In some embodiments, the above communication system further includes a console, which can send modification instructions to the terminal, control the filtering information used by the terminal, etc.

[0143] Figure 10 is a structural schematic diagram of a chip 900 for implementing the above method according to an example embodiment. Referring to Figure 10 , the chip 1000 includes a communication interface 1001 and at least one processor 1002, the communication interface 1001 is used to receive a signal input into the chip 1000 or output from the chip 1000, and the processor 1002 communicates with the communication interface 801 and implements the method described in the above embodiments of the present disclosure through logic circuit or execution of code instructions.

[0144] It is to be understood that the terms "first", "second", and the like, used in the description and the claims of the present disclosure as well as the foregoing drawings signify meanings that are used to distinguish like objects and do not necessarily signify a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0145] In the description of the present specification, the description of the terms "one embodiment", "some embodiments", "exemplary embodiment", "example", "specific example" or "some examples" and the like means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In the present specification, the exemplary description of the above terms does not necessarily refer to the same embodiment or example. Also, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in at least one embodiment or example.

[0146] Any process or method descriptions or descriptions of the flow diagrams in the flow charts described herein and elsewhere can be understood as representing code modules, segments, or portions of code which include one or more executable instructions for performing specific logic functions or steps in the process, and that the various systems described herein can include one or more circuits, such as one or more processors, that include one or more modules, segments, or portions of code for performing the steps described. It is therefore to be understood that the preferred embodiments of the present disclosure can include additional or fewer processes or methods, as well as the possibility that one or more of the processes or methods described can be combined with additional processes or methods or broken down into additional processes or methods, as will be appreciated by those skilled in the art.

[0147] The logic and / or steps represented in the flowcharts and / or described herein, for example, can be considered as a sequence of instructions to implement logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processing module, or other systems that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-readable medium can be a computer- readable storage medium or a computer-readable signal medium. The computer-readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having at least one wire (conventional electrical circuits), a portable computer diskette (magnetic), a RAM (random access memory), a ROM (read-only memory), an EPROM (erasable programmable ROM), an EEPROM (electrically erasable programmable ROM), and a portable compact disc read-only memory (CD-ROM). In addition, the computer-readable medium can even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via the optical scanner of a device or device, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and stored in a computer memory.

[0148] It should be understood that aspects of the embodiments of the present application can be implemented in hardware, software, firmware or combinations thereof. In the above embodiments, various steps or methods can be implemented in software or firmware that is stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any of the following technologies, known in the art, or their combinations, can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.

[0149] Those skilled in the art can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by programs instructing related hardware, and the programs can be stored in a computer-readable storage medium. When the programs are executed, they include one or a combination of the steps of the method embodiments.

[0150] In addition, each function unit in each embodiment of the present application can be integrated in one processing module, or each unit can exist physically separately, or two or more units can be integrated in one module. The integrated module can be realized in the form of hardware, or in the form of software function module. When the integrated module is realized in the form of software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0151] Although the embodiments of the present application have been shown and described above, it should be understood by those skilled in the art that the above embodiments are exemplary and cannot be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present application.

Claims

1. A data packet filtering method, characterized in that, The method is executed by a terminal, and the method includes: The system receives a modification instruction sent from the console. The modification instruction is used to modify the first filter in the first filtering information. The first filtering information is a quality of service rule, and the first filter is a packet filter. The first filtering information includes at least one first filter. A target filter list is determined according to the modification instruction. The target filter list includes a first opcode, which is used to instruct the network device to replace the at least one first filter with a filter in the target filter list. Send the target filter list to the network device; Determine target filtering information, which is used to filter uplink data packets. The target filtering information is the filtering information that the network device reallocates to the terminal based on the target filter list. The target filter list includes at least one first filter and at least one second filter, and determining the target filter list includes: when there is a first filter and a second filter with the same identifier in the target filter list, deleting the first filter with the duplicate identifier; The modification instruction is used to instruct at least one of the following: The at least one second filter; The identifier of the first filtering information; Replace at least one of the first filters; Add a filter to the first filtering information.

2. The method according to claim 1, characterized in that, The method further includes: Establish a PDU session; Receive at least one second filtering message sent by a network device; Receive the identifier of the first filtering information sent by the console; The first filtering information is determined from the at least one second filtering information based on the identifier of the first filtering information.

3. The method according to claim 1, characterized in that, The target filtering information includes: Receive at least one third filtering information determined by the network device; The identifier for receiving the target filtering information sent by the console; The target filtering information is determined from the at least one third filtering information based on the identifier of the target filtering information.

4. A data packet filtering method, characterized in that, The method is performed by a network device, and the method includes: The receiving terminal sends a list of target filters, which is determined by the terminal according to a modification instruction sent by the console. The modification instruction is used to modify the first filter in the first filtering information. The first filtering information is a quality of service rule, and the first filter is a packet filter. The first filtering information includes at least one first filter. Determine the first opcode based on the target filter list; Based on the first opcode, the at least one first filter is replaced with a filter in the target filter list, which includes the at least one first filter and at least one second filter. When there is a first filter and a second filter with the same identifier in the target filter list, the first filter with the duplicate identifier is deleted. The modification instruction is used to indicate at least one of the following: The at least one second filter; The identifier of the first filtering information; Replace at least one of the first filters; Add a filter to the first filtering information.

5. The method according to claim 4, characterized in that, The method further includes: sending second filtering information to the terminal, wherein the second filtering information is used by the terminal to determine the first filtering information.

6. The method according to claim 4 or 5, characterized in that, The target filter list contains a first opcode, and the method further includes: Based on the target filter list, determine the third filtering information; The third filtering information is sent to the terminal.

7. A terminal, characterized in that, The terminal includes: The first transceiver unit is used to receive modification instructions sent by the console. The modification instructions are used to modify the first filter in the first filtering information. The first filtering information is a quality of service rule, and the first filter is a packet filter. The first filtering information includes at least one first filter. A first processing unit is configured to determine a target filter list according to the modification instruction, the target filter list including a first opcode, the first opcode being used to instruct the network device to replace the at least one first filter with a filter in the target filter list; The first transceiver unit is further configured to send the target filter list to the network device; The second processing unit is configured to determine target filtering information, which is used to filter uplink data packets. This target filtering information is the filtering information reallocated to the terminal by the network device based on the target filter list. The target filter list includes at least one first filter and at least one second filter. The first processing unit is further configured to delete the first filter with the duplicate identifier when the first filter and the second filter have the same identifier in the target filter list; The modification instruction is used to instruct at least one of the following: The at least one second filter; The identifier of the first filtering information; Replace at least one of the first filters; Add a filter to the first filtering information.

8. A network device, characterized in that, The network device includes: The first processing unit is configured to receive a target filter list sent by the terminal. The target filter list is determined by the terminal according to a modification instruction sent by the console. The modification instruction is used to modify the first filter in the first filtering information. The first filtering information is a quality of service rule. The first filter is a packet filter. The first filtering information includes at least one first filter. The second processing unit is configured to determine a first opcode based on a target filter list, and based on the first opcode, replace the at least one first filter with a filter from the target filter list, wherein the target filter list includes the at least one first filter and at least one second filter. When a first filter and a second filter in the target filter list have the same identifier, the first filter with the duplicate identifier is deleted. The modification instruction is used to indicate at least one of the following: The at least one second filter; The identifier of the first filtering information; Replace at least one of the first filters; Add a filter to the first filtering information.

9. A communication device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

11. A communication system, characterized in that, The communication system includes a terminal and a network device; the terminal is used to execute the method of any one of claims 1-3, and the network device is used to execute the method of any one of claims 4-6.

12. The communication system according to claim 11, characterized in that, The communication system also includes a console.

13. A chip, characterized in that, It includes at least one processor and a communication interface; the communication interface is used to receive signals input to the chip or signals output from the chip, and the processor communicates with the communication interface and implements the method as described in any one of claims 1 to 3 through logic circuits or executing code instructions.

Citation Information

Patent Citations

  • PCC rule processing method and apparatus

    CN106789117A

  • Strategy control method, device and system

    CN111565422A