Monday, July 1, 2013
What is the difference between TCP and UDP?
Posted by
Sunflower
at
7/01/2013 12:25:00 PM
0
comments
Labels: Connection, Data, Errors, Layers, Messages, Operating System, Packets, Protocols, Reliable, Requirements, Server, TCP, Transmission Control Protocol, Transport layer, Transportation, UDP, User, User Datagram Protocol
|
| Subscribe by Email |
|
Saturday, March 20, 2010
UDP - User Datagram Protocol
The User Datagram Protocol (UDP) is a transport layer protocol defined for use with the IP network layer protocol.UDP is often used in videoconferencing applications or computer games specially tuned for real-time performance.
- UDP network traffic is organized in the form of data grams.A data-gram comprises one message unit. The first eight bytes of a data-gram contain header information and the remaining bytes contain message data.
- UDP can be used in networks where TCP is traditionally implemented.
- It does not guarantee reliability or the correct sequencing of data.
- UDP makes use of a simple communication model without implicit transmission checks for guaranteeing reliability, sequencing, or data-gram integrity.
- UDP considers that error checks and corrections should be carried out in the communicating application, and not at the network layer.
- UDP makes the protocol that much faster and more efficient because it does not have the overhead of checking whether the data has reached the destination every time it is sent.
- UDP is a stateless protocol. UDP is used for packet broadcast or multi-casting whereby the data is sent to all the clients in the network.
The UDP header consists of four fields each of 2 bytes in length :
- Source Port : Source port recognizes the sending port and should be understood to be the port to respond to if required. If not used, then its value should be zero.
- Destination Port : UDP packets from a client use this as a service access point (SAP) to indicate the service required from the remote server.
- UDP length : The number of bytes comprising the combined UDP header information and payload data.
- UDP Checksum : A checksum to verify that the end to end data has not been corrupted by routers or bridges in the network or by the processing in an end system.
Posted by
Sunflower
at
3/20/2010 07:32:00 PM
0
comments
Labels: Datagrams, Header, Network, Ports, Protocols, Transport layer, UDP, User Datagram Protocol
|
| Subscribe by Email |
|
Wednesday, March 10, 2010
The Transport Layer - Layer 4 of OSI model
The Transport Layer of the OSI model is responsible for delivering messages between networked hosts. The Transport Layer should be responsible for fragmentation and reassembly.
- This layer converts the data received from the upper layers into segments and prepares them for transport.
- The Transport layer is responsible for end-to-end (source-to-destination) delivery of entire messages.
- It allows data to be transferred reliably and uses sequencing to make sure that the order of packets is maintained.
- It also provides services such as error checking and flow control.
- In case IP, lost packets arriving out of order must be reordered.
- The size and complexity of a transport protocol depends on the type of service it can get from the network layer.
- The transport layer can accept relatively large messages, but there are strict message size limits imposed by the network (or lower) layer.
- Two transport protocols, Transmission Control Protocol (TCP) and User Datagram Protocol (UDP), sits at the transport layer.
- TCP establishes connections between two hosts on the network through 'sockets' which are determined by the IP address and port number. It keeps a track of the packet delivery order and the packets that must be resent.
- UDP provides a low overhead transmission service, but with less error checking.
- The Transport layer protocols are either connectionless or connection-oriented.
- Connection-oriented means that a connection (a virtual link) must be established before any actual data can be exchanged. e.g. TCP.
- In Connectionless, the sender does not establish a connection before it sends data, it just sends it without guaranteeing delivery. e.g. UDP.
Data Segmentation
Data segmentation is the process by which the transport layer uniquely handles all data passed to and from different upper-level applications. For example, if a user is browsing the web and checking email at the same time, each program would be passing data and waiting for a reply on a unique port number. The Transport layer ensures that data is passed to the correct application.
Posted by
Sunflower
at
3/10/2010 01:04:00 PM
0
comments
Labels: Data, Data Segmentation, Layer 4, Layers, Models, Open Systems Interconnection, OSI, Protocols, TCP, Transport layer, UDP
|
| Subscribe by Email |
|