Professional Documents
Culture Documents
7th
Application Layer
6th
Presentation Layer Application Layer
5th
Session Layer
4th
Transport Layer
Transport Layer
3rd
Network Layer
Network Layer
2nd
Link Layer
Link Layer
1st
Physical Layer
3
Packet Encapsulation
The data is sent down the protocol stack
Each layer adds to the data by adding headers
64 to 1500 Bytes
4
OSI Model Layers
Physical Layer : how the physical bits are sent, details all the electrical
and physical specifications for devices
Link Layer : set of rules that determine when a device can send
data over a particular medium
Transport Layer : accepts the data from a session and formats the
data into segments for transport across the network
Application Layer : interfaces directly with the application programs running on the
devices
5
Transport Layer
6
Transport Layer
7
UDP – User Datagram Protocol
Simple Data Transmission Model , basically an application interface to
IP.
It adds no reliability, flow-control, or error recovery to IP.
It simply serves as a mux/demux for sending and receiving datagrams
NO handshake between the communicating hosts
Source Port : UDP port number of the process on the sending device
Dest. Port : UDP port number of the process on the destination device
Length : Size of Packet ( Header + Data )
UDP Checksum : Verifies integrity of UDP header only
9
UDP
Use : Two critical systems utilise the UDP transport protocol precisely
due to it's speed :
UDP is used for applications like Voice over IP and Online gaming
where not always 100% of the data is required to function
10
TCP – Transmission Control Protocol
Protocol Steps:
1. Set up connection
2. Transfer data
3. Close connection
Client Host
Send Packet 1
Start Timer Packet Lost Packet should arrive
Timer ACK should be sent
ACK would normally
Arrive at this time
Time Expires
Retransmit Packet1
Timer Start Timer Receive Packet 1
Send AXK 1
Receive ACK 1
Cancel Timer
16
Comparison:
TCP UDP
Transport Control Protocol User Datagram Protocol
Addresses several endpoints inside an
purpose
IP device with different Port Numbers
classification connection-oriented connectionless
sequence numbers count no sequence numbers
implementation bytes of the data stream -order and completeness
-order and completeness of packets is not guaranteed
of packets guaranteed
-no retransmission possible
-retransmission of missing
data
flow-control implementation no flow-control
using window sizes to implementation
prevent overflow of receiver
32 Verification tag
64 Checksum
… …
… Chunk N data
19
Mapping Layer 4 to Applications
20
Questionnaire:
In the OSI model, as a data packet moves from the lower to the upper layers, headers are
Added
Removed
Re-arranged
modified
In the OSI model, what is the main function of the transport layer?
node-to-node delivery
process-to-process message delivery
Synchronization
process-to-process message delivery
_______ is a process-to-process protocol that adds only port addresses, checksum error
control, and length information to the data from the upper layer.
TCP
UDP
IP
None of the above
Packets in the IP layer are called _________ .
segments
Datagrams
Frames
None of the above
21
Thank You