In a WAN, hosts are connected by a subnet. Subnet comprises communication lines (copper wire, optical fibre, etc.) and switching elements. Switching elements are connected with two or more communication lines. This switching element is known as router. Router selects the outgoing line for data transmission.