Reference Slides Layers
Reference Slides Layers
▪ 3rd layer task is to talk (in one direction) and listen (in
other direction)
▪ 2nd layer encrypt (on one side) and decrypt (other side)
❖ Number of layers
❖Large: distinct functions are not in the same layer
❖Small : architecture does not become complex
INTERFACE BETWEEN LAYERS
➢The passing of the data and network information down through the
layers of the sending device and back up through the layers of the
receiving device is made possible by an interface between each pair
of adjacent layers.
➢ Routers in the path are responsible for choosing the best route for
each packet.
So, network layer is responsible for host-to-host communication
and routing the packet through possible routes.
▪ Unreliable!
• Packets can get lost; packets can arrive out of order
Transport Layer
❖ TCP (Transmission Control Protocol)
❖ Reliable protocol!
❖ Adds ports (just like UDP), but also provides:
▪ In-order delivery of packets (using sequence numbers)
▪ Reliable delivery: using acknowledgment (ACK) packets
Packet
ACK
❖ UDP:
▪ can be “faster”
• no flow/congestion control “slowing down” traffic
• no retransmissions
• good for “real-time” traffic
▪ out-of-order arrival: can also “reorder” at application level
▪ loss of data: can be acceptable
• missing frames in video/audio stream
Reliable process-to-process
delivery of a message
APPLICATION LAYER
The application layer is responsible to allow access to network
resources (to send and receive data)