Question:
what is the difference between udp and ip from fuctional point of view?
2008-07-07 06:39:03 UTC
it is kown that udp is a layer 4 and ip is a layer 3 protocol. but they both can transfer packets over a connectionless and unreliable protocol. so why do we need to use udp where udp and ip are doing the same function? cant ip be enough to do that function alone?

i know udp works over port no. 80 but ip has no port.
Eight answers:
payne747
2008-07-07 06:53:12 UTC
Previous answer got it spot on, UDP is a transport protocol, IP is a routing protocol, they both serve totally different functions. TCP and UDP go together as transport protocols offering connection and connectionless services, IP sits underneith and routes the traffic.



UDP works over any port, not just port 80 (it would work, but this is a reserved port for TCP/80 - www).
Grog
2008-07-07 08:54:06 UTC
UDP is connectionless it's being delivered is not verified. IP is verified. I would suggest downloading some info about TCP/IP and it's protocol stack. TCP/IP Port 80 is used by HTTP. You will find that UDP User Datagram Protocol and TCP/IP use some of the same ports.

Cheers
Anshu
2008-07-07 07:08:47 UTC
Udp is a protocol of transport layer and ip is the protocol of network layer. Network layer is third level layer and transport layer is fourth level layer in osi reference model. Every upper level do the task given by its lower level. Ip set rules for the address of the source and destination node in the network. Where udp set the rules transferring of datagram from source to destination over network. For more details go throgh the book data communication and networking by foruzan.
2008-07-07 06:57:10 UTC
Hi.....as i know IP doesnt transport any packet its the work of TCP , Ip just help to find the network address. and u cant differentiate in UDP and IP as this both work at different layers.
Z
2008-07-07 06:56:52 UTC
Amen.



UDP is a sub-protocol of IP.



BOTH use ports - many different ports - and no - there isn't a typical use for UDP on port 80. TCP on port 80 is typically http.



IP uses ports, TCP and UDP (sub protocols) use ports.
ANIL y
2008-07-10 02:44:21 UTC
udp is a unreliableprotocal and it will transpot data but ip is also a un reliable but it only routes not transport ex: ip tells go that way udp willmove in that way that is by combining udpip
Boberelli
2008-07-07 06:46:11 UTC
You need to study the ISO model further. Please read "TCP/IP Illustrated, Vol. 1, The Protocols". Your question demonstrates a misunderstanding of how the model works.
2016-03-18 02:36:56 UTC
Actually in TCP first of all we hav to setup Connection without that we can't send required data in the form of packets.And these packets come at receiver as they were sent.There is no need to reorder them.Here path is virtually set first of all for traversing of data through network which is followed by all packets.Here deliveryis important. Reverse case is in UDP,don't need to setup connection.Packets can be sent directly though they could not follow the same path.In this way packets come to receiver end out of order so we need to sort them.here delivery is not imp bt time is though quality of data may not be good.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...