Question:

What is the difference between udp and ip from fuctional point of view?

by  |  earlier

0 LIKES UnLike

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.

 Tags:

   Report

7 ANSWERS


  1. 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


  2. 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.

  3. 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

  4. 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.

  5. 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.

  6. 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.

  7. 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).

Question Stats

Latest activity: earlier.
This question has 7 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.