Rules | Recent posts | topic RSS | Search | Register  | Log in

I have a question about TCP/UDP!

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Network
Author Message
lekhoi



Joined: 28 Apr 2006
Posts: 56
Location: Hochiminh city


Post24 Aug 2006 3:26   I have a question about TCP/UDP!

Hi,guys
Can you tell me what are the differences between TCP and UDP? which applications UDP was used?
thanks in advance
Back to top
theonleegr81



Joined: 21 Aug 2006
Posts: 3


Post24 Aug 2006 4:33   Re: I have a question about TCP/UDP!

TCP is a connection oriented protocol, which means that everytime a packet is sent say from host A to B, we will get an acknowledgement. Whereas UDP on the other hand, is a connection less protocol.

Where will it be used : TCP -> Say you have a file transfer and you need to ensure that the file reaches intact, and time is not a factor, in such a case we can use TCP.

UDP-> Media Streaming, question is say you are watching a movie…would you prefer that your movie comes..perfectly….but u need to wait a long time before you see the next frame ?..or would you prefer the movie to keep streaming…Yes…The second option is definely better….This is when we need UDP

UDP is used to download videos and big files which can stand some changes in itself.
Back to top
asafdav2



Joined: 25 Mar 2006
Posts: 9


Post24 Aug 2006 5:46   Re: I have a question about TCP/UDP!

why do DNS messages usually use UDP and not TCP?
Back to top
tomshack



Joined: 04 Mar 2006
Posts: 42


Post01 Sep 2006 18:06   Re: I have a question about TCP/UDP!

asafdav2 wrote:
why do DNS messages usually use UDP and not TCP?


it is easy my friend ,it should be fast otherwise u have to wait long for opening web pages
Back to top
lambtron



Joined: 02 Nov 2005
Posts: 256
Helped: 26
Location: Portland, OR


Post01 Sep 2006 20:12   Re: I have a question about TCP/UDP!

lekhoi wrote:
Can you tell me what are the differences between TCP and UDP? which applications UDP was used?

As theonleegr81 pointed out, udp is often used for streaming. There is another aspect of streaming that was not mentioned, however.

If the stream source is real time, such as a video camera, and tcp is being used, the source node would require a substantial fifo to hold stream data that has been produced by the camera but not yet conveyed to the stream consumer. In the process of streaming to the consumer, packets will inevitably be dropped, thus causing delays that will fill up the producer's buffer. No matter how large that buffer is, it can never be large enough to prevent an eventual overflow. As a result, udp (or rtp) is usually used to convey real time streams.
Back to top
professional



Joined: 03 Sep 2006
Posts: 1


Post03 Sep 2006 19:16   Re: I have a question about TCP/UDP!

and FYI, dns use both tcp and udp. It uses udp for server zone transfers.
Back to top
Hassan.Mourad



Joined: 30 May 2004
Posts: 8
Helped: 3


Post23 Sep 2006 11:02   Re: I have a question about TCP/UDP!

Guys, Professional,

Yes, DNS uses both TCP and UDP, but for zone transfere DNS uses TCP (needs reliable data exchange between DNS servers), for clients it uses UDP

Regards,
Hassan Mourad
Back to top
Nimer



Joined: 26 Apr 2005
Posts: 216
Helped: 25
Location: PALISTINE


Post23 Sep 2006 12:14   Re: I have a question about TCP/UDP!

hi

thanks guys ..... whats the TCP frame format and the udp also ....is it affected with ip v6 new standard

regards
Back to top
the_risk_master



Joined: 12 Aug 2005
Posts: 679
Helped: 59
Location: UE+MIT, Philippines, (14°N , 120°E )


Post23 Sep 2006 15:28   Re: I have a question about TCP/UDP!

Hi,

UDP and TCP alike arent affected by IPng or IPv6, IPv6 is just an expansion version of IPs around today
Back to top
ahmeedzeki



Joined: 01 Oct 2006
Posts: 3


Post09 Oct 2006 22:39   Re: I have a question about TCP/UDP!

hi
UDP is a connectionless protocol that does not support the assurance that the message was arrived and each packet are sent seperately that there is a chance that the packets are arrive out of order.
TCP is a protocol that support that the message are arrive correctly and in order because there is a connection during the transmision and this protocol used in loading web pages
Back to top
echo47



Joined: 07 Apr 2002
Posts: 4205
Helped: 565


Post09 Oct 2006 23:41   I have a question about TCP/UDP!

If you'd like to learn the protocol details, TCP is defined in RFC 793, UDP is defined in 768, and IP is defined in RFC 791.
http://www.rfc-editor.org/rfc-index.html
Back to top
hossam.algewely



Joined: 23 Dec 2004
Posts: 52
Helped: 1


Post11 Oct 2006 9:54   Re: I have a question about TCP/UDP!

one of the most famous applications for UDP is VoIP,
VoIP uses a transmission protocol called RTP "Real time transport protocol" which constructs packets based on UDP , in order to be very fast and real time , also retransmission and other acknowledgement techniques are insignificat with voice
Back to top
bangash



Joined: 01 Apr 2006
Posts: 92
Helped: 4
Location: London


Post14 Oct 2006 9:49   I have a question about TCP/UDP!

TCP is connection oriented means very reliable ,secure but alittle time consuming
because three way handshaking is involved in it.means when A want to send data to B
first of all A will tell the other component that i want to send data, then in response B will either accept it or respond negatively if B wants to get data data then he will respond +ively ,and then A will again send an acknowledgement to B that i m sending data ,so there are three signals are involved in that transmission .In this sense it is a little time consuming (a factor of delay arrises).If any of the data packet is lost whlie transmission the next will not be sent untill the recovery for the lost packet isn't made.

where as in the case of UDP not very much efficent,
all of the recovery for the lost packets is made at the last until the whole file is transfered.
Back to top
asmat_ali



Joined: 16 Dec 2005
Posts: 15
Helped: 1


Post14 Oct 2006 10:22   I have a question about TCP/UDP!

UDP is used when you want to dowload any file.Because the lost information can be taken at the last, when whole of the file is transfered.
downloading a song or a movie UDP will be the better option
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Network
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap