Layer 3: Network Layer - buaamer81/IT130-Networking-Wiki GitHub Wiki
Layer 3: Network Layer (OSI Model)
๐ Overview
The Network Layer is Layer 3 of the OSI Model.
It handles the logical addressing and routing of data between devices across multiple networks โ even across the globe.
Think of it as:
โHow does data travel from Seattle to New York or from your laptop to Google servers?โ
๐ง Key Responsibilities
- Logical Addressing using IP Address
- Routing data between networks
- Path selection (best route)
- Packet forwarding
- Fragmentation of large packets
- Error reporting using ICMP
๐ฆ Data Unit: Packet
Layer 3 works with Packets โ containers that include:
- Source IP Address
- Destination IP Address
- Data payload from higher layers
๐ Devices Operating at Layer 3
Device | Function |
---|---|
Router | Directs packets between networks |
Layer 3 Switch | Combines switch speed with routing capability |
Firewalls | Often inspect Layer 3 & above |
๐ Protocols at Layer 3
Protocol | Purpose |
---|---|
IP | Logical addressing (IPv4/IPv6) |
ICMP | Diagnostics (Ping, Traceroute) |
ARP | Resolves IP to MAC addresses |
RIP, OSPF, BGP | Routing protocols |
๐งช Troubleshooting at Layer 3
- Use
ping
to test reachability - Use
tracert
(Windows) ortraceroute
(Linux/Mac) to trace packet paths - Check for IP conflicts
- Review router configurations
- Check subnetting issues
๐ง Real-Life Scenario
When you visit www.google.com:
- Layer 3 breaks your data into packets.
- Each packet finds its own path across the internet.
- Routers read the destination IP address and forward it along the best route.
๐ Visual Aids
๐ Related Pages
Return to: OSI Model Overview