iTechtalk


If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
Old 10-08-2008, 10:01 AM   #1 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 11
Smile Layer 4 Protocols: UDP and TCP

Layer 4 Protocols: UDP and TCP

Most network applications use one of two Layer 4 protocols:

■ User Datagram Protocol (UDP): Applications that want to minimize network overhead and do not require detecting lost or out-of-order packets use UDP. UDP also supports multicasting, which is not possible with TCP. Most DNS queries and streaming media use UDP. Applications that use UDP can still handle retransmitting lost packets or reordering out-of-order packets, however, it must be handled within the application itself and requires more effort from the application developer.

■ Transmission Control Protocol (TCP): Applications that require detecting and resending lost or corrupted packets use TCP. Using TCP requires a connection to be established before application data can be transmitted. Specifically, the client sends a SYN packet to request a connection, the server responds with an SYN/ACK packet, and the client confirms the connection with a ACK packet. Requiring these packets to be exchanged before application data can be sent causes TCP to be slower than UDP for short-lived connections. Most applications, including e-mail and Web browsing, use TCP.

A single server typically has several different services listening for incoming connections. To allow Windows to direct incoming traffic to the correct application, incoming network requests include a port number. For example, DNS requests use port 53 by default. Therefore, when Windows receives a packet with a port number of 53, it delivers it to the DNS Server service.
Ultriva is offline   Reply With Quote
Reply

Bookmarks

Tags
network, protocols, tcp, udp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:31 PM. itechtalk