The network layer Flashcards
Why do we need a network layer
- Switches can connect two LANs with each other, but the assumptions is that these two LANs are
built using the same technology (e.g. Wi‐Fi or Ethernet). Switches do not work across more than
one link layer technology (cannot translate between different technologies) - Switches do not scale to a large network (physical addresses are flat, forwarding tables will
become huge with billions of entries) - Broadcast technology is mainly used for LANs and does not suit the Internet
- Switches do not perform traffic control (cannot plan routes)
What is the role of the network layer?
‐ In summary, the Network Layer provide the following to the Transport Layer:
* Internetworking: Connects heterogeneous subnets (potentially with different datalink
protocols)
* Routing and forwarding: fills in Routing table and forwards packets to the right destination
* Congestion Control: controls the flow of data when there are too many messages in transit
Internewtworking
Internetworking joins multiple, different networks into a single larger network
* Internetworking based on a common network layer (mainly IP)
* Tunneling
How can networks be connected
- If the source and destination networks use different technologies, Internetworking is done based on a common network layer – IP
- Routers will decapsulate packets and use their headers to decide on destination. Once the destination is identified they will re‐encapsulate the packet according to the protocol of the next network
Tunneling
‐ Tunneling connects two networks through a middle one ‐ Packets are encapsulates over
the middle
‐ This approach only works if the source and the destination networks are using the same
technology but there is a network in the middle uses another technology
Steps of path MTU discovery
- Each IP packet is sent with its header bits (Don’t Fragment (DF) bit) set to indicate that no
fragmentation is allowed - If a router receives a packet that is too large, it generates an error packet, returns it to the source,
and drops the packet - When the source receives the error packet, it uses the information inside to re‐fragment the
packet into pieces that are small enough for the router to handle - The process is repeated If a router further down the path has an even smaller MTU (until the MTU
becomes small enough to traverse the entire path without fragmentation).
The internet protocol
‐ The Internet is a (very large) collection of
different kinds of subnets
‐ IP is the “glue” that allows all these subnets to
exchange data – giving the impression of a single,
global net
‐ IP provides delivery of packets from one host in
the Internet to any other host in the Internet,
even if the hosts are on different networks (with
possibly different protocols)