TCP & UDP


π™π˜Ύπ™‹/π™π˜Ώπ™‹

π™π˜Ύπ™‹:

- TCP is connection oriented - once a connection is established, data can be sent bidirectionally over that conection.

- TCP carries out sequencing to ensure segments are processed in the correct order and none are missing.

- TCP is reliable - the receiving host sends acknowledgments  back to the sender, and lost segments are resent.

- TCP performs flow control, where :

Flow control means that if the sender is sending at a rate too high, and the receiver can't handle it, the receiver sends signal back to the sender telling it to slow down.

π™π˜Ώπ™‹:

- UDP is not connection oriented.

- UDP does not carry out sequencing to ensure segments are processed in the correct order and none are missing.

- UDP is not reliable - the receiving host doesn't send acknowledgments back to the sender.

- UDP doesn't perform flow control.

π™π˜Ύπ™‹/π™π˜Ώπ™‹ 𝘼π™₯π™₯π™‘π™žπ™˜π™–π™©π™žπ™€π™£π™¨:

- Application developers will typically choose the use of TCP for traffic which requires reliability.

Examples: web browsing, text chat, bank transactions, File transfer.

- Real time applications such as voice and video can't afford the data overhead of TCP, so they use UDP.

Examples: streaming video, streaming radio, voice over IP calls, multiplayer games.

- Some applications can use both TCP and UDP.

π‘ͺπ’π’Žπ’Žπ’π’ π’‚π’‘π’‘π’π’Šπ’„π’‚π’•π’Šπ’π’π’” 𝒂𝒏𝒅 π’•π’‰π’†π’Šπ’“ π’…π’†π’”π’•π’Šπ’π’‚π’•π’Šπ’π’ 𝒑𝒐𝒓𝒕𝒔:

π™π˜Ύπ™‹:

- FTP (21), SSH(22), Telnet(23), HTTP(80), HTTPS(443)

π™π˜Ώπ™‹:

-TFTP(69), SNMP(161).

π™π˜Ύπ™‹ 𝙖𝙣𝙙 π™π˜Ώπ™‹:

-DNS(53)


Post a Comment

2 Comments