Académique Documents
Professionnel Documents
Culture Documents
3 types of protocol:
Reliable
Guaranteed delivery
Best effort
Protocols
Transmission Control
Protocol (TCP)
User Datagram Protocol
(UDP)
Nurul Asyikin binti Mohamed Radzi
RFC 793
Additional overhead
Functions
Same order delivery
Reliable delivery
Flow control
Applications
Web browsers
Email
File transfers
Nurul Asyikin binti Mohamed Radzi
Segment = Datagram
Provides source and destination (ports)
It is not concerned with order
Faster
TCP
Segment
Provides source and destination (ports), sequencing, acknowledge and
flow control
Each segment contains a sequence number
Identifying conversation
Server
static port numbers
Clients
Dynamic port number
Socket pair
source and destination IP address and port numbers
Transmission
Control Protocol
(TCP)
Nurul Asyikin binti Mohamed Radzi
Two one-way
communication stream
Three-way handshake
Nurul Asyikin binti Mohamed Radzi
1) Send SYN
SEQ = A
ACK = A+1
SEQ = B
3) SYN.ACK received
Establishment
ACK = B+1
SEQ = A+1
2) SYN received
Send SYN.ACK
1) Send SYN
Seq = 5
SEQ = 3
ACK = 4
SEQ = 5
3) SYN.ACK received
Establishment
ACK = 6
SEQ = 4
2) SYN received
Send SYN.ACK
To add security:
Deny establishment of TCP sessions
Allow sessions to be established for
specific services only
Allow traffic only as a part of
already established sessions
Nurul Asyikin binti Mohamed Radzi
Expectational acknowledgement
Flow control
1) Send data
2) Send acknowledgement
3) Send data
4) Send acknowledgement
5) Send data
X
6) Send acknowledgement
7) Send data
1) Send data
1000 bytes
2) Send acknowledgement
3) Send data
5) Send data
6) Send data
1100 bytes
1200 bytes
X
1100 bytes
4) Send acknowledgement
User Datagram
Protocol (UDP)
UDP Protocol
UDP is transaction based
Send small amounts of data that can fit in one segment
It will not reorder datagram
Application will identify the proper sequence
UDP Protocol
Well-known or registered port number
UDP receives datagram, forwards application data to
appropriate application based on port number
UDP Protocol
After data is ready to be sent and ports are identified, UDP
form datagram and pass it to network layer
After a client has chosen the source and destination ports,
the same pair of ports is used in header
THANK YOU