IP Library › Granted Patent US 11,153,120
Granted Patent B2
US 11,153,120 · App. 16/818,607 · Granted Oct 19, 2021

Gateway controlling chip and network packet processing method

Inventors: Tsung-Yin Su (Hsinchu, TW); Chen-He Lin (Hsinchu, TW)
Assignee: REALTEK SEMICONDUCTOR CORPORATION
H04L12/4633H04L12/66H04L45/66H04W76/12H04W80/04H04W88/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,153,120
App. No.
16/818,607
Granted
Oct 19, 2021
Kind
B2
Abstract

The present disclosure provides a gateway controlling chip and a network packet processing method thereof. The gateway controlling chip is configured to: retrieve a network packet; determine that the network packet is an upstream IP tunneling network packet; determine a packet type of the upstream IP tunneling network packet; retrieve a packet operation list corresponding to the packet type, wherein the packet operation list records a plurality of packet operations; and perform the packet operations for processing the network packet.

Claims (61)

1. A network packet processing method for use in a gateway controlling chip, comprising:

retrieving a network packet;

determining that the network packet is an uplink IP tunnel network packet;

determining a packet type of the uplink IP tunnel network packet, wherein the packet type comprises a Point to Point Tunneling Protocol (PPTP) type, a Layer 2 Tunneling Protocol (L2TP) type or a Dual-Stack Lite (DS-Lite) type;

after determining the packet type of the uplink IP tunnel network packet, retrieving a packet operation list corresponding to the packet type, wherein the packet operation list records a plurality of packet operations and a plurality of operation parameters corresponding to the plurality of packet operations, wherein the plurality of packet operations comprise an insert outer layer header operation, a change packet Ethertype operation, a packet length update operation, a Generic Routing Encapsulation (GRE) data or IP identification (IP ID) update operation, a Layer 3 (L3) check code update operation, a Layer 4(L4) check code update operation, or a combination thereof; and

performing the plurality of packet operations to process the network packet according to the plurality of operation parameters.

2. The network packet processing method of claim 1 , wherein the packet type is the PPTP type, and the plurality of packet operations comprise the insert outer layer header operation, the change packet Ethertype operation, the packet length update operation, the GRE data or IP ID update operation, and the L3 check code update operation.

3. The network packet processing method of claim 1 , wherein the packet type is the L2TP type, and the plurality of packet operations comprise the insert outer layer header operation, the change packet Ethertype operation, the packet length update operation, the GRE data or IP ID update operation, the L3 check code update operation, and the L4 check code update operation.

4. The network packet processing method of claim 1 , wherein the packet type is the DS-Lite type, and the plurality of packet operations comprise the insert outer layer header operation, the change packet Ethertype operation, and the packet length update operation.

5. The network packet processing method of claim 1 , wherein the packet type is the PPTP type, and the network packet processing method further comprises:

updating a Generic Routing Encapsulation (GRE) sequence number of the uplink IP tunnel network packet by a GRE sequence number of a register;

updating a GRE acknowledge number of the uplink IP tunnel network packet by a GRE acknowledge number of the register; and

updating an IP identification (IP ID) of the uplink IP tunnel network packet by an IP ID of the register.

6. The network packet processing method of claim 5 , further comprising:

transmitting the network packet;

updating the GRE sequence number of the register; and

updating the IP ID of the register.

7. The network packet processing method of claim 5 , further comprising:

receiving a downlink PPTP network packet; and

updating the GRE acknowledge number of the register.

8. The network packet processing method of claim 1 , wherein the packet type is the L2TP type, and the network packet processing method further comprises:

updating an IP ID of the uplink IP tunnel network packet by an IP identification (IP ID) of a register.

9. The network packet processing method of claim 8 , further comprising:

transmitting the network packet; and

updating the IP ID of the register.

10. A gateway controlling chip, comprising:

a processing unit;

a storage unit, configured to store a program, wherein the program, upon execution, causes the processing unit to:

retrieve an network packet;

determine that the network packet is an uplink IP tunnel network packet;

determine a packet type of the uplink IP tunnel network packet, wherein the packet type comprises a Point to Point Tunneling Protocol (PPTP) type, a Layer 2 Tunneling Protocol (L2TP) type or a Dual-Stack Lite (DS-Lite) type;

after determining the packet type of the uplink IP tunnel network packet, retrieve a packet operation list corresponding to the packet type, wherein the packet operation list records a plurality of packet operations and a plurality of operation parameters corresponding to the plurality of packet operations, wherein the plurality of packet operations comprise an insert outer layer header operation, a change packet Ethertype operation, a packet length update operation, a Generic Routing Encapsulation (GRE) data or IP identification (IP ID) update operation, a Layer 3 (L3) check code update operation, a Layer 4 (L4) check code update operation, or a combination thereof; and

perform the plurality of packet operations to process the network packet according to the plurality of operation parameters.

11. The gateway controlling chip of claim 10 , wherein the packet type is a Layer 2 Tunneling Protocol (L2TP) type, and the plurality of packet operations comprise an insert outer layer header operation, a change packet Ethertype operation, a packet length update operation, a GRE data or IP ID update operation, a Layer 3 (L3) check code update operation, and a Layer 4 (L4) check code update operation.

12. The gateway controlling chip of claim 10 , wherein the packet type is a Dual-Stack Lite (DS-Lite) type, and the plurality of packet operations comprise an insert outer layer header operation, a change packet Ethertype operation, and a packet length update operation.

13. The gateway controlling chip of claim 10 , further comprising:

a register, configured to store an IP ID;

wherein the packet type is an L2TP type, and the program, upon execution, further causes the processing unit to:

update an IP ID of the uplink IP tunnel network packet by the IP ID of the register;

transmit the network packet; and

update the IP ID of the register.

14. A gateway controlling chip, comprising:

a processing unit;

a register, configured to store a Generic Routing Encapsulation (GRE) sequence number, a GRE acknowledge number and an IP ID;

a storage unit, configured to store a program, wherein the program, upon execution, causes the processing unit to:

retrieve an network packet;

determine that the network packet is an uplink IP tunnel network packet;

determine a packet type of the uplink IP tunnel network packet;

retrieve a packet operation list corresponding to the packet type, wherein the packet operation list records a plurality of packet operations; and

perform the plurality of packet operations to process the network packet;

wherein when the packet type is a PPTP type, and the program, upon execution, causes the processing unit to:

update a GRE sequence number of the uplink IP tunnel network packet by the GRE sequence number of the register;

update a GRE acknowledge number of the uplink IP tunnel network packet by the GRE acknowledge number of the register; and

update an IP ID of the uplink IP tunnel network packet by the IP ID of the register.

15. The gateway controlling chip of claim 14 , wherein the program, upon execution, further causes the processing unit to:

transmit the network packet;

update the GRE sequence number of the register; and

update the IP ID of the register.

16. The gateway controlling chip of claim 14 , further comprising:

receiving a downlink PPTP network packet; and

update the GRE acknowledge number of the register.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 13, 2020
From: SU, TSUNG-YIN; LIN, CHEN-HE
To: REALTEK SEMICONDUCTOR CORPORATION
Reel/Frame 052111/0741 →
Priority Claims (1)
TW 108140639 · Nov 8, 2019 · national
Continuity (1)
Related Publication 20210144027A1 · May 13, 2021