0% found this document useful (0 votes)
284 views10 pages

Transport Layer TCP and UDP - Raid-5 Technology Myanmar

The document discusses TCP and UDP, the two main transport layer protocols. TCP is a reliable protocol that establishes a connection between devices using a three-way handshake. It provides sequencing and error checking to ensure reliable delivery of data. UDP is an unreliable, connectionless protocol that does not provide sequencing or error checking. It is commonly used for real-time applications like VoIP where lost packets are not retransmitted and speed is prioritized over reliability. The document provides examples of how TCP and UDP work in real-world network traffic using Wireshark.

Uploaded by

zawzaw htet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
284 views10 pages

Transport Layer TCP and UDP - Raid-5 Technology Myanmar

The document discusses TCP and UDP, the two main transport layer protocols. TCP is a reliable protocol that establishes a connection between devices using a three-way handshake. It provides sequencing and error checking to ensure reliable delivery of data. UDP is an unreliable, connectionless protocol that does not provide sequencing or error checking. It is commonly used for real-time applications like VoIP where lost packets are not retransmitted and speed is prioritized over reliability. The document provides examples of how TCP and UDP work in real-world network traffic using Wireshark.

Uploaded by

zawzaw htet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

1

The Transport Layer: TCP and UDP


႕ IP Transport Protocol

႕ Transport Protocol L
႕ …
Transport Protocol ( ၂ )

 TCP (Transmission Control Protocol)


 UDP (User Datagram Protocol)
႕ Transport Protocol ( ၂ ) ?

 TCP is a reliable protocol.


 UDP is a unreliable or best-effort protocol.
Unreliable ႕ ? ႕ Data Transport Protocol ?
.. ႕

HD 1080P Quality Movie

Raid 5 Technology Ph : 09 254004114 , 09 785956613


2

႕ ။ File Size 20 GB ။ 10 GB
။ Error ႕ ။ IP Packets
႕ 10 GB File ။
Movie ႕ ။ ။ Low
Quality ။


TCP ႕ ႕ J
TCP Retransmitted ။
႕ Company Network Engineer ႕။
႕ Voice Over IP ႕ ။
… Operation ။ ႕
Company Phone Call Quality ႕ “ ”“ ”
။ ႕ VoIP Provider ႕
။ ႕ TCP
?? ႕
။ TCP Retransmitted ။
၊ ။
Process ။ Retransmitted ။ TCP
Protocol ။ ႕ VoIP Packets ႕ Retransmitted
Packet Loss ။ Packets ႕
။ VoIP Unreliable Protocol UDP Packets ။

႕ Connection Type ။ TCP


Setup Connection ။ Data Transfer
။ UDP Connectionless Data Transfer ႕

Raid 5 Technology Ph : 09 254004114 , 09 785956613


3

။ TCP “ 3 W y H ” ႕ ။

Sequencing Sequencing Number ။ ႕ Big File
Download Sequence Number ။

။ UDP Sequencing Feature ။


VoIP ? Receiver ႕
?? ။ VoIP UDP Sequencing Offer ။ ႕
Sequencing ႕ RTP Offfer ။(
VoIP )

႕ UDP Header

။ UDP Source ႕ Destination ။


Checksum ႕ Length ။ UDP
 OSI Model ႕ Transport Layer ။
 Setup Conncection ။ Just Sent Data ။
 L ။ ႕ Checksum ႕ ။
 - ။
 Data Recovery Feature ။

႕ TCP Offer …
TCP ။ TCP Relieable
Protocol Setup Connection ။ “ 3 W y H ” ႕

Raid 5 Technology Ph : 09 254004114 , 09 785956613


4

Computer A Computer B Data Reliable Way ႕ ႕ ။ TCP


႕ ။ 3 Way Handshake Connection Setup ။

Computer A TCP=SYN ႕ ။ Setup Connection ႕


Sequencing Number 1 ႕ ႕ ။

Raid 5 Technology Ph : 09 254004114 , 09 785956613


5

Computer B SYN,ACK ႕ Computer A Respond ။


Sequence Number 100 ႕ ႕ ။ ACK = 2 ႕ ။ ACK = 2
Computer A TCP SYN ။ Message
႕ ။

႕ Computer A Computer B Acknowledge ႕ ။ SYN


Respones Computer B A ႕ ။ ACK = 101 ႕
႕ ။ SEQ=100 Computer B ။ Computer
A Computer B ACK=2 ႕ ။ Computer A Message
SEQ=2 ႕ ႕ ။
“3 W y H ” ႕
 Computer A TCP SYN ႕ ( ႕ )
 Computer B K ႕ ( ႕ ႕ ။
႕ )
 Computer A TCP ACK ႕ ။( )
Real World Wireshark ႕ Capturing

Raid 5 Technology Ph : 09 254004114 , 09 785956613


6

Computer 174.143.213.184 Connection


TCP SYN ႕ Wireshark ႕ Capturing ႕ ။
174.143.213.184 TCP SYN ACK ႕ ။
192.168.1.2 K ႕ ။ 3 Way Hand
Shake ။

႕ „„ ‟‟ ႕ SYN ႕ ။
„„ :0‟‟ ႕ ။ Sequence Number

„„ ‟‟ ႕ ။ SYN ACK ။
႕ ။ „„ :0 : ‟‟ ႕ ။
Computer Computer ACK Packet ။

Raid 5 Technology Ph : 09 254004114 , 09 785956613


7

Final Process Setup ။ Computer ACK State


Computer ။ 3 Way Hand Shake ။
။ !!!
။ ႕ ။
႕ Wireshark ႕ TCP ႕
။ K - K K ။
။ ။ 3 Way Hand
Shake ။

႕ 3 Way Hand Shake Connection ။


D ။ TCP Flow Control ။

႕ Computer Smartphone ႕ ။
Data
။ ။
။ ႕ ႕ Flow Control
။ TCP Data Bytes Receiver
'Receiver Window' Field ။

႕ Size ႕ ။
။ ႕ ။

Raid 5 Technology Ph : 09 254004114 , 09 785956613


8

Computer A ႕ Computer B 3 Way Handshake Connection


။ ႕ 10 Bytes Data ႕ ။ Window
Size 10 Bytes ။ Sequnce Number 10 ။

Computer B „„ ႕ 10 Bytes ‟‟
႕ „„ K = ‟‟ ႕ ။ TCP ( Reliable Protocol )
႕ ႕ ႕ ။
TCP ႕ ။

Raid 5 Technology Ph : 09 254004114 , 09 785956613


9

႕ ႕ Window Size ။
႕ ႕ Data ႕ ACK ႕ ။ TCP
။ ႕ TCH Header UDP ။



႕ 16-bit source port and 16-bit source port ႕ ။ Port
Number Data Application ။
Transport Layer OSI – Model ႕ L y ။
32 bit Sequence Number 32-bit acknowledgement
number ( ACK ) ။
Fields TCP Messages SYN ACK

Window Size y Data ႕ Data K
႕ ။
႕ Checksum and Data ။ ႕ ။ Data
႕ ။ ႕ Confirm

႕ ႕ TCP ႕
Reliable Protocol

Raid 5 Technology Ph : 09 254004114 , 09 785956613


10

3 Way Hand Shake Connection


Data ႕ ႕ K
TCP Retransmission
။ TCP ႕ ႕ Wireshark
Computer Internet Browsing Traffic Capturing ။
Sequnce Number ႕ 3 Way Hand Shake ႕ ႕ ။

႕ ။ ႕
။ Net ႕
L
႕ L

Raid-5 Technology Myanmar


Youtube >>
https://www.youtube.com/channel/UCtBRTh4BoxQzLP_t JI KQ…

Facebook Group >> Myanmar Network Learners


https://www.facebook.com/groups/myanmarnetworklearners/


Email : [email protected]

#myanmarnetworklearners
#raid5technology
#sharingiscaring
#transportlayer

#udp

#tcp
#takinglearningtothenextlevel

Raid 5 Technology Ph : 09 254004114 , 09 785956613

You might also like