BSIT 220-T301 - Week 4 Blog

Hello,


    Welcome to week 4 of Derek's blog. This week we are going to talk about the differences between UDP and TCP. Along with the differences we are going to talk about what each one is and means. Let us begin

    TCP is Transmission Control Protocol also known as the connection-based protocol. TCP also means it establishes a reliable and ordered communication stream between two devices. TCP ensures reliable data delivery by guaranteeing packet delivery correctly without errors. If there is an error, TCP will detect it and retransmit until the data is successfully received. It is mainly used for web browsing, FTP, and database access. Some typical port numbers for TCP include Port 20,21 FTP, Port 22 SSH, Port 53 DNS, Port 80 HTTP, and Port 443 HTTPS.

    In contrast, UDP or User Diagram Protocol, a connectionless protocol, is designed for fast and efficient communication. UPD does not establish a connection before sending data. The packets are transmitted independently which results in a faster transmission. UPD does not guarantee packet delivery. It doesn't perform error checking nor does it perform the packet retransmission. It is more suitable for application where real-time communication is critical, such as online gaming or DNS. Some ports that utilize UDP are : Port 53 DNS, Port 67 & 68 DHCP, Port 69 TFTP, Port 123 NTP, and Port 161&162 SNMP. 

    The choice between TCP and UDP depend on the specific requirements of the application. TCP is used for applications that require reliable and ordered data delivery, error checking, and flow control. UDP are for applications where speed, low latency, and real-time communication are prioritized and where occasional packet loss can be tolerated.


Comments

Popular posts from this blog

BSIT380-T302 Week 2 Blog

BSIT380-T302 Week 1 Blog

BSIT 220-T301 Week 7 Blog