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, wherein before receiving the downstream data packet, the method further comprises: receiving the IP address of the target user terminal, an MAC address of the target user terminal, an egress port reaching the target user terminal being a port connected to an access device, and the session ID of the target user terminal from a Virtual Broadband Remote Access Server, vBRAS, device; wherein the target user terminal is connected to the ESGW device through the access device; and generating the ARP entry of the IP address of the target user terminal; wherein the ARP entry of the IP address of the target user terminal records that the IP address of the target user terminal corresponds to the MAC address of the target user terminal, the port connected to the access device, and the session ID of the target user terminal. 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, wherein before receiving the downstream data packet, the method further comprises: receiving the IP address of the target user terminal, an MAC address of the target user terminal, an egress port reaching the target user terminal being a port connected to an access device, and the session ID of the target user terminal from a Virtual Broadband Remote Access Server, vBRAS, device; wherein the target user terminal is connected to the ESGW device through the access device; and generating the ARP entry of the IP address of the target user terminal; wherein the ARP entry of the IP address of the target user terminal records that the IP address of the target user terminal corresponds to the MAC address of the target user terminal, the port connected to the access device, and the session ID of the target user terminal. receiving the IP address of the target user terminal, an MAC address of the target user terminal, an egress port reaching the target user terminal being a port connected to an access device, and the session ID of the target user terminal from a Virtual Broadband Remote Access Server, vBRAS, device; wherein the target user terminal is connected to the ESGW device through the access device; and generating the ARP entry of the IP address of the target user terminal; wherein the ARP entry of the IP address of the target user terminal records that the IP address of the target user terminal corresponds to the MAC address of the target user terminal, the port connected to the access device, and the session ID of the target user terminal.