# US 2021/0344605 A1 · Circuitry within router or switch and corresponding frame processing method

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

- Number: US 2021/0344605 A1
- Document ID: US20210344605A1
- Status: Published application
- Kind: A1
- Application number: 17/117,138
- Filed: 2020-12-10
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: Chung-Keng Hung; Yung-Kun Lin; Chih-Ching Chen; Ta-Chin Tseng
- Web page: https://patentgrep.com/patent/US20210344605A1

## CPC

- H04L 47/20: Traffic policing
- H04L 47/2433: {Allocation of priorities to traffic types}
- H04L 47/6275: based on priority
- H04L 49/503: {Policing}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention provides a circuitry within a router or a switch, wherein the circuitry comprises a priority decision circuitry and a per-stream filtering and policing circuitry. The priority decision circuitry is configured to determine a priority of a frame received from a port of the router or the switch. The per-stream filtering and policing circuitry is configured to classify the frame into a first-type frame, a second-type frame or a third-type frame, wherein if the frame is determined as the first-type frame, the per-stream filtering and policing circuitry forwards the frame; if the frame is determined as the third-type frame, the per-stream filtering and policing circuitry discards the frame; and if the frame is determined as the second-type frame, the per-stream filtering and policing circuitry changes the priority of the frame, and the per-stream filtering and policing circuitry forwards the frame with the changed priority.

## Claims

### Claim 1

A circuitry within a router or a switch, comprising:
a priority decision circuitry, configured to determine a priority of a frame received from a port of the router or the switch;
a per-stream filtering and policing circuitry, coupled to the priority decision circuitry, configured to classify the frame into a first-type frame, a second-type frame or a third-type frame, wherein if the frame is determined as the first-type frame, the per-stream filtering and policing circuitry forwards the frame to a priority to traffic mapping circuitry to enqueue the frame; if the frame is determined as the third-type frame, the per-stream filtering and policing circuitry discards the frame; and if the frame is determined as the second-type frame, the per-stream filtering and policing circuitry changes the priority of the frame, and the per-stream filtering and policing circuitry forwards the frame with the changed priority to the priority to traffic mapping circuitry to enqueue the frame.

### Claim 2 (depends on 1)

The circuitry of claim 1, wherein the per-stream filtering and policing circuitry classifies the frame into the first-type frame, the second-type frame or the second type-frame according to the current bandwidth of stream(s); and if the frame is determined as the second-type frame, the per-stream filtering and policing circuitry changes the priority of the frame.

### Claim 3 (depends on 2)

The circuitry of claim 2, wherein if the current bandwidth of the stream(s) is lower than a first threshold, the per-stream filtering and policing circuitry determines the frame as the first-type frame; if the current bandwidth of the stream(s) is higher than the first threshold but lower than a second threshold, the per-stream filtering and policing circuitry determines the frame as the second-type frame; and if the current bandwidth of the stream(s) is higher than the second threshold, the per-stream filtering and policing circuitry determines the frame as the third-type frame.

### Claim 4 (depends on 1)

The circuitry of claim 1, wherein the per-stream filtering and policing circuitry has a parameter configured to enable or disable a priority adjustment mechanism, and when the parameter is set to enable the priority adjustment mechanism, and if the frame is determined as the second-type frame, the per-stream filtering and policing circuitry changes the priority of the frame, and the per-stream filtering and policing circuitry forwards the frame with the changed priority to the priority to traffic mapping circuitry to enqueue the frame; and when the parameter is set to disable the priority adjustment mechanism, and if the frame is determined as the second-type frame, the per-stream filtering and policing circuitry directly forwards the frame without changing the priority to the priority to traffic mapping circuitry to enqueue the frame.

### Claim 5 (depends on 1)

The circuitry of claim 1, wherein the per-stream filtering and policing circuitry comprises:
a stream identification circuit, configured to maps the frames to a stream;
a stream filter, couple to the stream identification circuit, configured to forward or discard the frame based on content of the frame;
a stream gate, coupled to the stream filter, configured to receive the frame is the frame is not discarded by the stream filter, and to periodically forward the frame or block the frame; and
a flow meter, configured to classify the frame into the first-type frame, the second-type frame or the second type-frame.
wherein if the frame is determined as the first-type frame, the flow meter forwards the frame to the priority to traffic mapping circuitry to enqueue the frame; if the frame is determined as the third-type frame, the flow meter discards the frame; and if the frame is determined as the second-type frame, the flow meter changes the priority of the frame, and the flow meter forwards the frame with the changed priority to the priority to traffic mapping circuitry to enqueue the frame.

### Claim 6 (depends on 5)

The circuitry of claim 5, wherein the stream gate sets an internal priority value for the frame; and if the frame is determined as the second-type frame, the flow meter changes the priority of the frame by changing the internal priority value, and the flow meter forwards the frame with the changed internal priority value to the priority to traffic mapping circuitry to enqueue the frame.

### Claim 7

A frame processing method applied to a router or a switch, comprising:
determining a priority of a frame received from a port of the router or the switch;
classifying the frame into a first-type frame, a second-type frame or a third-type frame;
if the frame is determined as the first-type frame, forwarding the frame to enqueue the frame;
if the frame is determined as the third-type frame, discarding the frame; and
if the frame is determined as the second-type frame, changing the priority of the frame, and forwarding the frame with the changed priority to enqueue the frame.

### Claim 8 (depends on 7)

The frame processing method of claim 7, wherein the step of classifying the frame into the first-type frame, the second-type frame or the third-type frame comprises:
classifying the frame into the first-type frame, the second-type frame or the second type-frame according to the current bandwidth of traffic;
wherein if the frame is determined as the second-type frame, changing the priority of the frame.

### Claim 9 (depends on 8)

The frame processing method of claim 8, wherein the step of classifying the frame into the first-type frame, the second-type frame or the second type-frame according to the current bandwidth of the stream(s) comprises:
if the current bandwidth of the stream(s) is lower than a first threshold, determining the frame as the first-type frame;
if the current bandwidth of the stream(s) is higher than the first threshold but lower than a second threshold, determining the frame as the second-type frame; and
if the current bandwidth of the stream(s) is higher than the second threshold, determining the frame as the third-type frame.

### Claim 10 (depends on 7)

The frame processing method of claim 7, further comprising:
setting a parameter to enable or disable a priority adjustment mechanism;
when the parameter is set to enable the priority adjustment mechanism, and if the frame is determined as the second-type frame, changing the priority of the frame, and forwarding the frame with the changed priority to enqueue the frame; and
when the parameter is set to disable the priority adjustment mechanism, and if the frame is determined as the second-type frame, forwarding the frame without changing the priority to enqueue the frame.
