21
Introduction of TCP, IP & UDP Rahul kundu 6 th sem, IT

Introduction of tcp, ip & udp

Embed Size (px)

Citation preview

Page 1: Introduction of tcp, ip & udp

Introduction of TCP, IP & UDP

Rahul kundu6th sem, IT

Page 2: Introduction of tcp, ip & udp

content

Define TCP

Define IP

Define UDP

Difference between TCP & UDP

Page 3: Introduction of tcp, ip & udp

Define TCP

TCP is one of the core protocols of the internet protocol suite(IP).

TCP stands for “transmission control protocol”

TCP provide reliable, ordered & error-checked delivery of a stream of octets between program running on computer connected to a local area network, intranet or the public internet.

Page 4: Introduction of tcp, ip & udp

Define TCP cont….

It is resides at the transport layer.

Web browsers use TCP when they connect to servers on the world wide web & it is used to deliver email & transfer files from one location to another.

TCP uses a fixed connection i.e. it is a connection oriented protocol.

Page 5: Introduction of tcp, ip & udp

Define TCP cont….TCP is for communication between

applications.

If one application wants to communicate with another via TCP, it sends a communication request must be sent to an exact address after a “handshake” between the two applications, TCP will set up a “full duplex” communication between the two applications.

Page 6: Introduction of tcp, ip & udp

Define TCP cont….

The “full duplex” communication will occupy the communication line between the two computer until it is closed by one of the two application.

Page 7: Introduction of tcp, ip & udp

OSI model and TCP/IP model

Page 8: Introduction of tcp, ip & udp

Define IP

IP stand for “internet protocol”.

IP is “connection less” communication protocol.

IP is for communication between computers.

Page 9: Introduction of tcp, ip & udp

Define IP cont….

IP doesn’t occupy the communication line between two computers IP reduces the need for network lines. each line can be used for communication between many different computer at same time.

With IP, message are broken up into small independent “packets” & sent between computer via the internet.

Page 10: Introduction of tcp, ip & udp

Define IP cont….

IP is responsible for “routing” each packet to the correct destination.

Page 11: Introduction of tcp, ip & udp

Define UDP

UDP stands for “user datagram packet”.

UDP is part of the internet protocol suite used by program running on different computer on a network.

UDP is used to send short message called datagram but overall.

Page 12: Introduction of tcp, ip & udp

Define UDP cont…

It is an unreliable connection less protocol.

UDP is officially defined in RFC 768 & was formulated by David P. Reed.

UDP is an open-system inter-connection(OSI) transport layer protocol for client-server network application.

Page 13: Introduction of tcp, ip & udp

Define UDP cont…

It is used for data transferring.

UDP is a known as a “stateless” protocol meaning it doesn’t acknowledge that the packets being sent have been received.

UDP is widely used in video-conferencing & real-time computer games.

Page 14: Introduction of tcp, ip & udp

Define UDP cont…

UDP network traffic is organized in the form of datagrams, which comprise one message units. The first 8 bytes of a datagram contain header information while the remaining bytes contain message data.

Page 15: Introduction of tcp, ip & udp

Define UDP cont…

A UDP datagram header contains 4 fields of 2 bytes each:-

Source port number

Destination port number

Datagram size(length)

Checksum

Page 16: Introduction of tcp, ip & udp

Difference between TCP & UDP

S.N Parameter TCP UDP

1. Acronym for Transmission control protocol

User datagram protocol

2. Connection Connection oriented protocol

Connection less protocol

3. Usage TCP is suited for application that require higher reliability & transmission time is relatively less critical.

UDP is suitable for application that need fast, efficient transmission, such as games, UDP stateless nature is also useful for servers that

Page 17: Introduction of tcp, ip & udp

Difference between TCP & UDP cont..

S.N Parameter TCP UDP

Answer small quires from huge number of clients.

4. Ordering of data packets

TCP rearranges data packets in the order specification.

UDP has no inherent order as all packets are independent of each other.

5. Speed of transfer

Slower speed than UDP

Faster than TCP (no error checking)

Page 18: Introduction of tcp, ip & udp

Difference between TCP & UDP cont..

S.N Parameter TCP UDP

6. Reliability Absolute guarantee that data transferred remains intact & arrives in the order in which it was sent.

There is no guarantee that the message or packets sent would reach at all.

7. Header size TCP header size is 20 byte

UDP header size is 8 byte

Page 19: Introduction of tcp, ip & udp

Difference between TCP & UDP cont..

S.N Parameter TCP UDP

8. Stream oriented:-data transmitted as a virtual stream of bytes

Message oriented:- data transmitted as individual data packets called datagram.

9. Weight Heavy weight Lighter weight

10. Data flow Flow control No flow control

Page 20: Introduction of tcp, ip & udp

Difference between TCP & UDP cont..

S.N Parameter TCP UDP

11. Error checking Error check No error check

12. Acknowledgement AcknowledgementSegment

No acknowledgement

13. example HTTP, HTTPs, FTP, SMTP, TELNET

DNS, DHCP, TFTP, SNMP, RIP, VoIP

Page 21: Introduction of tcp, ip & udp

THANK YOU