LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   difference between a TCP based service and a UDP based service (https://www.linuxquestions.org/questions/linux-general-1/difference-between-a-tcp-based-service-and-a-udp-based-service-685107/)

ZAMO 11-21-2008 03:18 AM

difference between a TCP based service and a UDP based service
 
what is the main difference between a TCP based service and a UDP based service?
Is there anyway to get a list of both.


I have tried the following. is it ok


Code:

cat /etc/services |grep -i tcp

cat /etc/services |grep -i udp

Thanks

vladmihaisima 11-21-2008 04:19 AM

Both are transport layer protocols. TCP is based on a connection and gurantees ordering and reliability. UDP is not based on connections and doesn't gurantee ordering and delivery, but it is much faster than TCP (because it has no overhead in establishing the connection, cheking the order, etc). You can use Google or any networking book if you want more details.

acid_kewpie 11-21-2008 04:22 AM

note that that file really doesn't mean much to you, that's merely a static list of some known services. they have no direct relevance to what your system is doing in the slightest.


All times are GMT -5. The time now is 08:45 PM.