Table of Contents
The network layer is Layer 3 in the OSI model. It addresses packets and moves them between networks. When your computer sends data to a server outside your local subnet, IP supplies the destination address and routers forward the packet toward that server.

What Layer 3 does
- Addressing: IPv4 and IPv6 packets carry source and destination addresses.
- Routing and forwarding: Routing builds information about reachable networks. Forwarding uses the destination address and a local table to select the next hop for each packet.
- Limiting loops: Routers decrement IPv4 Time to Live (TTL) or IPv6 Hop Limit. A packet that runs out of hops is discarded.
- Reporting problems: ICMP can report that a destination is unreachable or that a packet is too large. Ping uses ICMP echo messages, though a missing reply alone doesn’t prove a device is down.

What is the network layer?
Follow one packet between networks
A laptop finds that the destination IP address is outside its subnet, so it sends the packet to its default gateway. On Ethernet it may use ARP for IPv4 or Neighbor Discovery for IPv6 to find the local-link address of that next hop. Each router removes the incoming link-layer framing and adds the framing needed for its next link. The route can pass through several networks before the packet arrives.

Packet routing and forwarding at the network layer.
IPv4 can fragment packets when permitted. In IPv6 only the source can fragment a packet. Routers report size problems so the sender can adjust. See the IPv6 specification.
How to protect traffic at Layer 3
Use routed subnets and firewall policies to restrict traffic between network segments. IPsec can provide authentication and, when configured for it, encryption at the IP layer. A site-to-site IPsec VPN can protect traffic between gateways. Application encryption such as TLS can protect the connection between endpoints even when traffic crosses additional networks. Choose controls based on where traffic needs protection and which devices enforce the policy.
Reader Comments 0
Sign in with email or Google to join the discussion.