tcp_udp

3
3/25/2015 Assignment 01 By M. Usama Javed Submitted to: Sit Mir Yasir

Upload: usama-javed

Post on 10-Dec-2015

214 views

Category:

Documents


0 download

DESCRIPTION

bh

TRANSCRIPT

Page 1: tcp_udp

3/25/2015

Assignment 01 By M. Usama Javed

Submitted to: Sit Mir Yasir

Page 2: tcp_udp

TCP vs UDP

1-TCP stands for Transmission Control Protocol while UDP stands for User Datagram

Protocol Protocol.

2-TCP is a connection-oriented protocol and UDP is a connectionless protocol. As a

message reaches from one computer to another. This is connection based method used in

TCP while UDP is also a protocol used in message transport or transfer. UDP is not

connection based which means that one program can send a load of packets to another PC

without establishing a connection.

3-TCP is suited for applications that require high data reliability, and transmission time is

relatively less important. And, UDP is suitable for applications that need fast, real-time

efficient transmission, such as Live Matches, games.

4-TCP rearranges data packets into a specified order. UDP has no order as all packets are

not arranged. If ordering is required in uDP, it has to be managed by the application layer.

5-TCP header size is 20 bytes and UDP Header size is 8 bytes.

6-The speed for TCP is slower than UDP. It is obvious from their header sizes. UDP is

faster because there is no error-checking for packets.

7-For TCP, There is absolute guarantee that the data received is correct and it arrives in

the same order in which it was sent. For UDP, There is no guarantee that the messages or

packets sent would reach at all.

8-In TCP, Data is read as a byte stream, no distinguishing indications are transmitted to

signal message (segment) boundaries. Packets are sent individually and are checked for

integrity only if they arrive.

9-TCP is complex to implement. TCP requires three packets to set up a socket connection,

before any user data can be sent. TCP handles reliability and congestion control. UDP is

easy to implement. There is no ordering of messages, and no tracking connections in UDP.

Page 3: tcp_udp

10-TCP does Flow Control. TCP requires three packets to set up a socket connection,

before any user data can be sent. TCP handles reliability and congestion control. UDP

does not have an option for flow control.

11-TCP sends an acknowledgement message back to sender while UPD does not.

12-TCP uses a three-hand shake method while UDP does not.