# US 2022/0294733 A1 · Method of filtering packets in network switch and related filter

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

- Number: US 2022/0294733 A1
- Document ID: US20220294733A1
- Status: Published application
- Kind: A1
- Application number: 17/674,823
- Filed: 2022-02-17
- Published: 2022-09-15
- Earliest claimed: 2021-03-10
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: Kai-Wen Cheng; Sz-Han Wang; Wen-Huang Yeh; Wei-Hong You
- Web page: https://patentgrep.com/patent/US20220294733A1

## CPC

- H04L 45/745: Address table lookup; Address filtering
- H04L 45/20: {Hop count for routing purposes, e.g. TTL}
- H04L 45/741: Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for packet filtering in a network switch includes: utilizing an access control list circuit to filter received packets, wherein the access control list circuit compares header information of the received packets with an access control list to filter the received packets, where the access control list has at least one entry, and rule information in the entry includes only a portion of an IP address; and utilizing a routing circuit to further filter packets that pass the access control list circuit, wherein the routing circuit compares header information of the packets that pass the access control list circuit with a routing table to filter the packets, wherein the routing table has at least one entry, and rule information in the entry includes an entire IP address.

## Claims

### Claim 1

A method for packet filtering in a network switch, comprising:
utilizing an access control list circuit to filter received packets, wherein the access control list circuit compares header information of the received packets with an access control list to filter the received packets, where the access control list has at least one entry, and rule information associated with IP address in the at least one entry includes only partial content of an IP address and the partial content of the IP address does not overlap with partial contents of IP addresses of other access control lists in the network switch; and
utilizing a routing circuit to further filter packets that pass the access control list circuit, wherein the routing circuit compares header information of the packets that pass the access control list circuit with a routing table to filter the packets, wherein the routing table has at least one entry, and rule information associated with IP address in the at least entry of the routing table includes entire content of an IP address.

### Claim 2 (depends on 1)

The method of claim 1, wherein the access control list circuit and the routing circuit are respectively arranged in different hardware stages of the network switch.

### Claim 3 (depends on 1)

The method of claim 1, wherein rule information in entries of the access control list further includes at least one of following packet features: a portion of a source IP address, a portion of a destination IP address, a source port number, a destination port number, a media access control address, an Ethernet type and a virtual local access network (VLAN) ID.

### Claim 4 (depends on 1)

The method of claim 1, wherein rule information in entries of the routing table further includes at least one of following packet features: an entire source IP address, an entire destination IP address, a source port number and a destination port number.

### Claim 5 (depends on 1)

The method of claim 1, wherein the step of utilizing the routing circuit to filter the packets comprises:
when utilizing the routing circuit to perform packet filtering, not utilizing the routing circuit to perform a modification operation on the header information of the packets that pass the access control list circuit, wherein the modification operation includes at least one of source address replacement, VLAN ID replacement and decrementing packet's hop limit.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of utilizing the routing circuit to filter packets comprises:
when utilizing the routing circuit to perform packet filtering, utilizing the routing circuit to perform a verification/check operation on the packets that pass the access control list circuit, where the verification/check operation includes at least one of IP header validation, MAC/IP address checksum and unicast reverse path forwarding check.

### Claim 7 (depends on 1)

The method of claim 1, wherein the network switch is a network device that is compliant with IPv6 protocol, and the IP address is in IPv6 format.

### Claim 8

A filter implemented in a network switch, comprising:
an access control list circuit, arranged to filter received packets, wherein the access control list circuit compares header information of the received packets with an access control list to filter the received packets, where the access control list has at least one entry, and rule information associated with IP address in the at least one entry includes only partial content of an IP address and the partial content of the IP address does not overlap with partial contents of IP addresses of other access control lists in the network switch; and
a routing circuit, arranged to further filter packets that pass the access control list circuit, wherein the routing circuit compares header information of the packets that pass the access control list circuit with a routing table to filter the packets, wherein the routing table has at least one entry, and rule information associated with IP address in the at least entry of the routing table includes entire content of an IP address.

### Claim 9 (depends on 8)

The filter of claim 8, wherein the access control list circuit and the routing circuit are respectively arranged in different hardware stages of the network switch.

### Claim 10 (depends on 8)

The filter of claim 8, wherein rule information in entries of the access control list further includes at least one of following packet features: a portion of a source IP address, a portion of a destination IP address, a source port number, a destination port number, a media access control address, an Ethernet type and a virtual local access network (VLAN) ID.

### Claim 11 (depends on 8)

The filter of claim 8, wherein rule information in entries of the routing table further includes at least one of following packet features: an entire source IP address, an entire destination IP address, a source port number and a destination port number.

### Claim 12 (depends on 8)

The filter of claim 8, wherein when the routing circuit performs packet filtering, the routing circuit does not perform a modification operation on the header information of packets that pass the access control list circuit, wherein the modification operation includes at least one of source address replacement, VLAN ID replacement and decrementing packet's hop limit.

### Claim 13 (depends on 8)

The filter of claim 8, wherein when the routing circuit performs packet filtering, the routing circuit also performs a verification/check operation on the packets that pass the access control list circuit, where the verification/check operation includes at least one of IP header validation, MAC/IP address checksum and unicast reverse path forwarding check.

### Claim 14 (depends on 8)

The filter of claim 8, wherein the network switch is a network device that is compliant with IPv6 protocol, and the IP address is in IPv6 format.
