The Open Systems Interconnect (OSI) model has seven layers:Â Layer-2 is the Data Link layer and Layer-3 is the Network layer.
Together they are responsible for setting up connectivity between hosts, framing the information, and routing information to the right destination. Each layer serves the layer above it and is served by the layer below it.