# US 2023/0067498 A1 · Enhanced Packet Filtering

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0067498 A1
- Document ID: US20230067498A1
- Status: Published application
- Kind: A1
- Application number: 17/446,100
- Filed: 2021-08-26
- Published: 2023-03-02
- Earliest claimed: 2021-08-26
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Martin Kugler; Vijay Venkataraman; Ahmed Soud Salem; Mathias Kohlenz; Sandeep Urgaonkar
- Web page: https://patentgrep.com/patent/US20230067498A1

## CPC

- H04W 28/10: Flow control {between communication endpoints}
- H04W 76/10: Connection setup
- H04W 76/11: Allocation or use of connection identifiers
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

This disclosure relates to techniques for performing wireless communications including filtering packets for transmission between a user equipment (UE) and a base station. Techniques for filtering packets using higher layer information, such as a flow identifier, are disclosed. A device may generate various tables and may use the tables to filter packets efficiently.

## Claims

### Claim 1

A user equipment (UE), comprising:
a radio; and
a processor operably coupled to the radio and configured to cause the UE to:
establish communication with a base station;
receive, from the base station, configuration information for a plurality of packet filters;
generate, at a higher layer, a first uplink packet for transmission to the base station;
determine, at the higher layer, that the first uplink packet is associated with a first flow identifier; and
at a lower layer:
determine that the first flow identifier is associated with a first rule index in a flow database;
in response to the determination that the first flow identifier is associated with the first rule index in the flow database, evaluate header information of the first uplink packet according to one or more rules of a secondary table, wherein the one or more rules of the secondary table are associated with the first rule index;
determine, based on the evaluation of the header information of the first uplink packet using the one or more rules of the secondary table, that the first uplink packet matches a first packet filter of the plurality of packet filters; and
in response to the determination that the first uplink packet matches the first packet filter, transmit the first uplink packet to the base station using a flow associated with the first packet filter.

### Claim 2 (depends on 1)

The UE of claim 1, wherein the determination that the first uplink packet matches the first packet filter is made without evaluating the header information of the first uplink packet according to the first packet filter.

### Claim 3 (depends on 1)

The UE of claim 1, wherein transmitting the first uplink packet to the base station using a flow associated with the first packet filter comprises both non-access stratum filtering and access stratum mapping.

### Claim 4 (depends on 1)

The UE of claim 1, wherein the processor is further configured to cause the UE to:
generate, at the higher layer, a second uplink packet for transmission to the base station;
determine, at the higher layer, that the second uplink packet is associated with a second flow identifier; and
at the lower layer:
determine that the second flow identifier is not associated with any rule index in the flow database;
in response to the determination that the second flow identifier is not associated with any rule index in the flow database, evaluate header information of the second uplink packet according to one or more rules of a primary table; and
determine that the header information of the second uplink packet satisfies a first rule of the primary table.

### Claim 5 (depends on 4)

The UE of claim 4, wherein the processor is further configured to cause the UE to:
in response to the determination that the header information of the second uplink packet satisfies the first rule of the primary table, associate the second flow identifier with the first rule of the primary table in the flow database using a second rule index associated with the first rule of the primary table.

### Claim 6 (depends on 4)

The UE of claim 4, wherein the processor is further configured to cause the UE to:
in response to the determination that the header information of the second uplink packet satisfies the first rule of the primary table, select at least one rule of the secondary table;
evaluate the header information of the second uplink packet according to the at least one rule of the secondary table;
determine that the header information of the second uplink packet satisfies a first rule of the at least one rule of the secondary table;
determine, based on the determination that the header information of the second uplink packet satisfies the first rule, that the second uplink packet matches a second packet filter of the plurality of packet filters; and
in response to the determination that the second uplink packet matches the second packet filter, transmit the second uplink packet to the base station using a second flow associated with the second packet filter, wherein the second flow is distinct from the first flow.

### Claim 7

A method, comprising:
at a lower level of a transmitting device:
configuring a plurality of rules for filtering packets, wherein the plurality of rules are useable to evaluate respective packets based on respective header information of the respective packets, the respective header information of the respective packets comprising a plurality of fields;
generating a first table comprising a first subset of the plurality of rules, wherein respective rules of the first subset of the plurality of rules are based on a first subset of the plurality of fields usable to determine respective flow identifiers for respective packets;
generating a second table comprising a second subset of the plurality of rules disjoint from the first subset of the plurality of rules, wherein respective rules of the second subset of the plurality of rules are based at least in part on a second subset of the plurality of fields not usable to determine respective flow identifiers for respective packets;
filtering at least one packet according to the first table and the second table; and
transmitting the at least one packet according to a result of the filtering.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
respective rules of the plurality of rules for filtering packets are associated with respective precedence values;
generating the first table comprises sorting the first subset of the plurality of rules according to precedence; and
generating the second table comprises sorting the second subset of the plurality of rules according to precedence.

### Claim 9 (depends on 8)

The method of claim 8, wherein said filtering the at least one packet comprises:
evaluating a first packet by respective rules of the first subset of the plurality of rules beginning with a first rule associated with highest precedence;
continuing to evaluate the first packet by respective rules of the first subset of the plurality of rules in order of precedence; and
stopping evaluating the first packet according to further rules of the first subset of the plurality of rules in response to a determination that the first packet satisfies particular rule of the first subset of the plurality of rules.

### Claim 10 (depends on 8)

The method of claim 8, wherein respective rules of the first subset of the plurality of rules are associated with respective index values indicating respective numbers of the second subset of the plurality of rules with higher precedence than the respective rule.

### Claim 11 (depends on 10)

The method of claim 10, wherein said filtering the at least one packet comprises:
receiving, from a higher level of the transmitting device, a first packet;
determining that the first packet satisfies a first rule of the first subset of rules;
determining, based on an index value associated with the first rule, a first number of rules of the second subset of the plurality of rules;
evaluating the first packet according to the first number of rules of the second subset of the plurality of rules, wherein the first number of rules of the second subset of the plurality of rules are evaluated in order of precedence;
determining that the first packet does not match any rule of the first number of rules of the second subset of the plurality of rules; and
in response to the determination that the first packet does not match any rule of the first number of rules of the second subset of the plurality of rules, selecting a flow for the first packet according to the first rule of the first subset of rules.

### Claim 12 (depends on 11)

The method of claim 11, further comprising determining not to evaluate the first packet according to further rules of the second subset of the plurality of rules, wherein the determination not to evaluate the first packet according to further rules of the second subset of the plurality of rules is based on evaluating the first packet according to the first number of rules.

### Claim 13 (depends on 10)

The method of claim 10, wherein said filtering the at least one packet comprises:
receiving, from a higher level of the transmitting device, a first packet;
determining that the first packet satisfies a first rule of the first subset of rules;
determining, based on an index value associated with the first rule, a first number of rules of the second subset of the plurality of rules;
evaluating the first packet according to at least one of the first number of rules of the second subset of the plurality of rules, wherein the first number of rules of the second subset of the plurality of rules are evaluated in order of precedence;
determining that the first packet matches a first rule of the first number of rules of the second subset of the plurality of rules; and
in response to the determination that the first packet matches the first rule of the first number of rules of the second subset of the plurality of rules, selecting a flow for the first packet according to the first rule of the first number of rules of the second subset of the plurality of rules.

### Claim 14 (depends on 8)

The method of claim 8,
wherein a lowest precedence rule of the first subset of the plurality of rules comprises a matching all rule and is associated with a default bearer;
wherein filtering the at least one packet according to the first table comprises determining that the at least one packet does not match any other rule of the first subset of the plurality of rules and determining that the at least one packet matches the matching all rule; and
wherein transmitting the at least one packet according to the result of the filtering comprises transmitting the at least one packet on the default bearer in response to the determination that the at least one packet matches the matching all rule.

### Claim 15 (depends on 8)

The method of claim 8,
wherein a lowest precedence rule of the first subset of the plurality of rules comprises a matching all rule and is associated with an indication to drop any packet that does not match at least one higher precedence rule of the first subset of the plurality of rules.

### Claim 16 (depends on 7)

The method of claim 7, wherein said filtering the at least one packet comprises:
receiving, from a higher level of the transmitting device, a first packet identified with a first flow identifier;
evaluating header information of the first packet according to at least one rule of the first table;
determining that the header information of the first packet matches a first rule of the at least one rule of the first table; and
in response to the determination that the header information of the first packet matches the first rule of the at least one rule of the first table, adding a first entry to a flow identifier table, the first entry associating the first flow identifier and the first rule.

### Claim 17 (depends on 16)

The method of claim 16, wherein said filtering the at least one packet further comprises:
receiving, from the higher level of the transmitting device, a second packet identified with the first flow identifier; and
based on the first entry associating the first flow identifier and the first rule, determining that the second packet matches the first rule.

### Claim 18 (depends on 7)

The method of claim 7, wherein the first subset of the plurality of rules and the subset of the plurality of rules are mutually exclusive.

### Claim 19

An apparatus, comprising:
a processor configured to cause a user equipment (UE) to:
establish communication with a base station;
receive, from the base station, configuration information for a plurality of packet filters;
generate a first uplink packet for transmission to the base station;
determine that the first uplink packet is associated with a first flow identifier;
determine that the first flow identifier is associated with a first rule index in a flow database;
in response to the determination that the first flow identifier is associated with the first rule index in the flow database, determine that the first uplink packet satisfies a first rule associated with the first rule index in a primary table without evaluating the first uplink packet using the first rule;
select, based on the determination that the first uplink packet satisfies the first rule, one or more rules of a secondary table, wherein the one or more rules of the secondary table are associated with the first rule;
evaluate the first uplink packet using the one or more rules of the secondary table;
determine, based on the evaluation of the first uplink packet using the one or more rules of the secondary table, that the first uplink packet matches a first packet filter of the plurality of packet filters; and
in response to the determination that the first uplink packet matches the first packet filter transmit, to the base station, the first uplink packet using a flow associated with the first packet filter.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein respective packet filters of the plurality of packet filters comprise respective rules based on respective packet header information of respective uplink packets, wherein the determination that the first uplink packet matches the first packet filter is performed without evaluating packet header information of the first uplink packet in relation to rules of the first packet filter.
