Answer: Layer 3
Step-by-step explanation:
The layer 3 in OSI model is the network layer which is responsible for routing the packet across the network.
So we need a switch and a router for the LAN and WAN connection and both of them has to support the same protocols at layer 3.