establish physical layer, data link layer, and network layer connectivity both internally amongst devices and externally with outside networks:
A modem is usually provided by an ISP to expose an Ethernet interface to the WAN via their telecommunications infrastructure. In homes these usually come in the form of a DSL modem or cable modem.
Infrastructure