| CPC H04L 61/5014 (2022.05) [H04L 12/66 (2013.01); H04L 61/103 (2013.01); H04L 61/4541 (2022.05)] | 12 Claims |

|
1. A method for communications, the method comprising:
establishing a tunnel connection between a switch of a network and a gateway of the network; and
in response to a communications device connecting to a network port of the switch, conducting data traffic involving the communications device through the tunnel connection between the switch and the gateway, wherein in response to the communications device connecting to the network port of the switch, conducting data traffic involving the communications device through the tunnel connection comprises:
at the switch, receiving a Dynamic Host Configuration Protocol (DHCP) discover message from the communications device;
forwarding the DHCP discover message to the gateway through the tunnel connection between the switch and the gateway;
at the switch, receiving a DHCP offer message from the gateway in response to the DHCP discover message;
at the switch, forwarding the DHCP offer message to the communications device;
at the switch, receiving a DHCP request message from the communications device;
forwarding the DHCP request message to the gateway through the tunnel connection between the switch and the gateway;
at the switch, receiving a DHCP acknowledgement (ACK) message from the gateway in response to the DHCP request message;
at the switch, forwarding the DHCP ACK message to the communications device;
at the switch, adding Address Resolution Protocol (ARP) information to a central processing unit (CPU) as well as a forwarding plane;
at the switch, obtaining an allocated IP address of the communications device from a response from the gateway;
at the switch, adding a static ARP route in the forwarding plane; and
at the switch, adding a ternary content-addressable memory (TCAM) rule to forward traffic to the allocated IP address of the communications device.
|