CPC H04L 45/66 (2013.01) [H04L 45/745 (2013.01)] | 9 Claims |
1. A layer 2 (L2) switch comprising one or more processors configured to:
receive a first packet from a network device;
determine whether or not the received first packet is a packet of upstream communication and whether or not the first packet is a packet at a session start time;
in response to determining that the received first packet is of upstream communication and is a packet of a session start time, acquire and store session information and destination MAC information included in the first packet of the upstream communication into a session table;
receive a second packet;
determine, based on the session information stored in the session table and information included in the second packet, that the received second packet is in the same session as the first packet based on that the second packet is of the upstream communication and is not a packet at a session start time;
obtain a destination MAC address from the second packet;
determine that the destination MAC address of the second packet is different from the destination MAC address of the first packet stored in the session table;
in response to determining that (i) the second packet is in the same session as the first packet and (ii) the destination MAC address of the second packet is different from the destination MAC address of the first packet, replace the destination MAC address of the second packet with the destination MAC address of the first packet stored in the session table; and
transmit the second packet to a network function device according to the destination MAC address in the second packet.
|