FORWARDING PACKET
First Claim
1. A method of forwarding a packet, executed by an Edge Stream Gateway (ESGW) device, comprising:
- receiving a downstream data packet;
when determining that a destination Media Access Control (MAC) address of the downstream data packet is an MAC address of the ESGW device,decapsulating the downstream data packet to obtain a downstream Internet Protocol (IP) data packet;
obtaining a session identifier (ID) of a target user terminal by matching an Address Resolution Protocol (ARP) entry of an IP address of the target user terminal based on a destination IP address of the downstream IP data packet, and;
determining a length field of a Point to Point Protocol over Ethernet (PPPOE) header, and obtaining a pre-stored fixed value field of the PPPOE header from a data storage area;
encapsulating the downstream IP data packet into a downstream PPPOE data packet based on the session ID of the target user terminal, the length field of the PPPOE header, and the fixed value field of the PPPOE header, andforwarding the downstream PPPOE data packet through an egress port of the ARP entry of the IP address of the target user terminal.
1 Assignment
0 Petitions
Accused Products
Abstract
According to an example of a method for forwarding a packet, a ESGW device decapsulates a received downstream data packet to obtain a downstream IP data packet when a destination MAC address of the downstream data packet is an MAC address of the ESGW device; determines a matching ARP entry of an IP address of a target user terminal based on the destination IP address of the downstream IP data packet to obtain a session ID of the target user terminal; determines a length field of a PPPoE header by a microcode, and obtains a pre-stored fixed-value field of the PPPoE header from a data storage area; encapsulates the downstream IP data packet into a downstream PPPoE data packet based on the session ID, the length field, and the fixed-value field, and forwards the downstream PPPoE data packet through an egress port of the matching ARP entry.
2 Citations
15 Claims
-
1. A method of forwarding a packet, executed by an Edge Stream Gateway (ESGW) device, comprising:
-
receiving a downstream data packet; when determining that a destination Media Access Control (MAC) address of the downstream data packet is an MAC address of the ESGW device, decapsulating the downstream data packet to obtain a downstream Internet Protocol (IP) data packet; obtaining a session identifier (ID) of a target user terminal by matching an Address Resolution Protocol (ARP) entry of an IP address of the target user terminal based on a destination IP address of the downstream IP data packet, and; determining a length field of a Point to Point Protocol over Ethernet (PPPOE) header, and obtaining a pre-stored fixed value field of the PPPOE header from a data storage area; encapsulating the downstream IP data packet into a downstream PPPOE data packet based on the session ID of the target user terminal, the length field of the PPPOE header, and the fixed value field of the PPPOE header, and forwarding the downstream PPPOE data packet through an egress port of the ARP entry of the IP address of the target user terminal. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus for forwarding a packet applied to an Edge Stream gateway (ESGW) device, comprising:
-
a receiving unit configured to receive a downstream data packet; a decapsulating unit configured to decapsulate the downstream data packet to obtain a downstream Internet Protocol (IP) data packet in a case that a destination Media Access Control (MAC) address of the downstream data packet received by the receiving unit is an MAC address of the ESGW device; an obtaining unit configured to obtain a session identifier (ID) of a target user terminal by matching an Address Resolution Protocol (ARP) entry of an IP address of the target user terminal based on a destination IP address of the downstream IP data packet; a determining unit configured to determine a length field of a Point to Point Protocol over Ethernet (PPPOE) header; wherein the obtaining unit is further configured to obtain a pre-stored fixed value field of the PPPOE header from a data storage area; and a sending unit configured to encapsulate the downstream IP data packet into a downstream PPPOE data packet based on the session ID of the target user terminal, the length field of the PPPOE header, and the fixed value field of the PPPOE header, and forward the downstream PPPOE data packet through an egress port of the ARP entry of the IP address of the target user terminal. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An apparatus for forwarding a packet, the apparatus being applied to an Edge Stream gateway (ESGW) device, comprising:
-
a machine-readable storage medium storing machine-executable instructions; and a processor in communication with the machine-readable storage medium;
when executing the machine-executable instructions, the processor is caused to execute;receiving a downstream data packet; when determining that a destination Media Access Control (MAC) address of the downstream data packet is an MAC address of the ESGW device, decapsulating the downstream data packet to obtain a downstream Internet Protocol (IP) data packet; obtaining a session identifier (ID) of a target user terminal by matching an Address Resolution Protocol (ARP) entry of an IP address of the target user terminal based on a destination IP address of the downstream IP data packet, and; determining a length field of a Point to Point Protocol over Ethernet (PPPOE) header, and obtaining a pre-stored fixed value field of the PPPOE header from a data storage area; encapsulating the downstream IP data packet into a downstream PPPOE data packet based on the session ID of the target user terminal, the length field of the PPPOE header, and the fixed value field of the PPPOE header, and forwarding the downstream PPPOE data packet through an egress port of the ARP entry of the IP address of the target user terminal, - View Dependent Claims (12, 13, 14, 15)
-
Specification