Gateway controlling chip and network packet processing method
AssigneeRealtek Semiconductor Corp.
InventorsTsung-Yin Su, Chen-He Lin
Life of this patent
Estimating the term…
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.
Claims16
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.
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.
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.
Dependencies are inferred from the claim text.