0% found this document useful (0 votes)
5 views

Lecture 7

Uploaded by

Aftab Alam Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Lecture 7

Uploaded by

Aftab Alam Khan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

And communication

technology

Lecture 7

10/4/2024 1
TCP/UDP Protocol
What is an internet?
❑ A set of interconnected networks
❑ The Internet is the most famous example

❑ Networks can be completely different


▪ Ethernet, ATM, modem, …
▪ (TCP/UDP)IP is what links them
What is an internet? (cont)
❑ Routers are devices on multiple networks that pass traffic
between them
❑ Individual networks pass traffic from one router or endpoint
to another.
❑ (TCP/UDP)IP hides the details as much as possible.
IP?
❑ IP stand for “internet protocol”.

❑ IP is “connection less” communication protocol.

❑ IP is for communication between computers.


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.
❑ IP is responsible for “routing” each packet to the
correct destination.
TCP
❑ TCP stands for Transmission Control Protocol
❑ It a connection-oriented protocol, which means a connection is
established before transferring data.
❑ Connection should be maintained until the application programs
at each end have finished exchanging messages.
❑ Used for confidential data transfer.
Pros OF TCP
❑ It guarantees three things
▪ Your data reaches its destination,
▪ It reaches there in time.
▪ It reaches there without duplication. •
❑ In TCP, since all the work is done by the operating system, so
you just need to sit back and watch the show
Cons OF TCP
❑ If there are bugs in your OS, then you will face many problems
like problems in surfing and downloading contents from the net.

❑ TCP cannot be used for broadcast and multicast connections.

❑ It is slower in functioning than UDP


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.

❑ It is an unreliable connection less protocol.


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.
Pros of UDP
❑ Multiple messages can be sent as packets in chunks.

❑ It does not restrict you to connection based communication


model.

❑ Much faster than TCP


Cons of UDP
❑ There are no guarantees with UDP.
❑ It is possible that a packet may not be delivered, or delivered twice, or
not delivered in time.
❑ Doesn’t ensure that communication has reached receiver as
acknowledge is not sent.
❑ Connectionless and unreliable.
Difference between TCP & UDP

Parameter TCP UDP


Connection Connection oriented protocol Connection less protocol
Usage TCP is suited for application that UDP is suitable for application
require higher reliability & that need fast, efficient
transmission time is relatively transmission, such as games,
less critical UDP stateless nature is also
useful for servers that Answer
small quires from huge number
of clients
Ordering of data packets TCP rearranges data packets in UDP has no inherent order as all
the order specification packets are independent of
each other
Speed of transfer Slower speed than UDP Faster than TCP (no error
checking)
Reliability Absolute guarantee that data There is no guarantee that
transferred remains intact & the message or packets sent
arrives in the order in which it would reach at all
was sent.

Example HTTP, HTTPs, FTP, SMTP, DNS, DHCP, TFTP, SNMP, RIP,
TELNET VoIP

You might also like