Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

TCP and UDP

Oct 6, 2015 3:45AM PDT

Hello I am new to TCP and UDP and have a basic understanding of what they do. However, I would like to know why are both TCP and UDP needed?

Discussion is locked

- Collapse -
Answer
Re: TCP and UDP
Oct 6, 2015 5:09AM PDT
- Collapse -
Re: TCP and UDP
Oct 6, 2015 10:14AM PDT

It's to answer a question in a course I am doing. I understand that UDP is fast but unreliable, and I understand that TCP is more reliable and stays connected, re-sending missing packets. This is simplifying them, but in describing there us in my course I need to discover the reason why both are needed. I know there are differences between the two (advantages etc), but unless I'm misreading the question, I need to state why both are needed. Any further help would be appreciated.

- Collapse -
One can be faster.
Oct 6, 2015 10:48AM PDT

And who said UDP is unreliable? What if your app checked for loss and asked for missing packets?

You answered why both are needed.

- Collapse -
Here's an interesting project.
Oct 6, 2015 12:38PM PDT
- Collapse -
Re: Here's an interesting project
Oct 7, 2015 2:11AM PDT

Thank you for your help.

- Collapse -
Re: One can be faster.
Oct 7, 2015 2:09AM PDT

I have read that it is 'Unreliable best-effort' delivery wise, and elsewhere 'UDP is a connectionless and unreliable transport protocol'. I was not intending to give an opinion, but state a fat. Happy Sorry about any offense caused.

- Collapse -
I think you meant "fact"
Oct 7, 2015 8:16AM PDT

That's the typical Comp 101 text on that. Later you learn more and see the bigger picture.

- Collapse -
Both are used.
Oct 6, 2015 12:04PM PDT

That's not exactly the same as "both are needed".

Kees

- Collapse -
Re: TCP and UDP
Oct 7, 2015 2:12AM PDT

Thank you for your help.

- Collapse -
Answer
TCP AND UDP
Oct 8, 2015 10:41PM PDT

TCP is connection oriented – once a connection is established, data can be sent bidirectional. UDP is a simpler, connectionless Internet protocol. Multiple messages are sent as packets in chunks using UDP.

- Collapse -
TCP AND UDP
Oct 9, 2015 10:29AM PDT

Thanks for the help.

- Collapse -
Answer
TCP & UDP
Oct 9, 2015 12:23AM PDT

Hello,

TCP stands for Transmission Control Protocol
UDP stands for User Datagram Protocol

The TCP and UDP protocols are two different protocols that handle data communications between terminals in an IP network (the Internet).

This link talk about what TCP and UDP are, and what the differences are between them.

https://en.wikibooks.org/wiki/Communication_Networks/TCP_and_UDP_Protocols

Hope this helps.
Have a blissful day!

- Collapse -
TCP AND UDP
Oct 9, 2015 10:29AM PDT

Thanks for the help

- Collapse -
TCP & UDP
Oct 18, 2015 7:50PM PDT

Welcome.