introduction of tcp, ip & udp

Post on 21-May-2015

349 Views

Category:

Internet

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Introduction of TCP, IP & UDP

Rahul kundu6th sem, IT

content

Define TCP

Define IP

Define UDP

Difference between TCP & 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.

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.

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.

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.

OSI model and TCP/IP model

Define IP

IP stand for “internet protocol”.

IP is “connection less” communication protocol.

IP is for communication between computers.

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.

Define IP cont….

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

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.

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.

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.

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.

Define UDP cont…

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

Source port number

Destination port number

Datagram size(length)

Checksum

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

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)

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

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

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

THANK YOU

top related