Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SCTP Programmer's Guide: HP-UX 11i v2, HP-UX 11i v3 > Chapter 1 Introduction

Limitations of TCP and UDP

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

TCP and UDP are the most widely used network layer protocols. However, the data transfer services offered by these protocols are inadequate to meet the requirements of a wide range of commercial applications, such as real-time multimedia and telecommunication applications. These applications require a robust protocol, which provides the flexibility of UDP and reliability of TCP, for transferring data between two endpoints.

This section discusses the limitations of the TCP and UDP protocols, which led to the development of SCTP.

This section addresses the following topics:

Limitations of TCP

Following are the limitations of TCP:

  • TCP provides reliable data transfer, but it transmits data in a sequence. However, some applications may need reliable data transfer, though not necessarily in a strict sequence. These applications prefer partial ordering of data, wherein ordering is maintained only within subflows of data. The strict sequence maintenance in TCP not only makes partial ordering of data impossible, it also causes unnecessary delay in the overall data delivery. Moreover, if a single packet is lost, delivery of subsequent packets is blocked until the lost TCP packet is delivered. This causes head-of-line (HOL) blocking.

  • TCP transmits data in a stream. This requires that applications add their own record marking, to delineate their messages. Applications must use the PUSH flag in the TCP header, to ensure that a complete message is transferred in reasonable time.

  • In a TCP connection, each host includes a single network interface, and a connection is established between the network interfaces of the two hosts. As a result, if the connection breaks because of a path failure, data becomes unavailable until the connection is re-established.

  • TCP is vulnerable to denial of service (DoS) attacks, such as SYN flood attacks. A DoS occurs when a malicious host forges an IP packet with a fake IP address and sends a large number of TCP SYN messages to the victim host. Each time the TCP stack, on the victim host, receives a new SYN message, the TCP stack allocates kernel resources to service the new SYN message. When the TCP stack is flooded with multiple SYN messages, the victim host can run out of resources and fail to service the new legitimate SYN messages.

Limitations of UDP

Following are the limitations of UDP:

  • In UDP, the transfer of data is unreliable, because it is a connectionless protocol. In a UDP connection, an application cannot verify if the packet has reached the destination.

  • UDP does not contain an in-built congestion control mechanism to detect path congestion. As a result, more data may be injected into an already congested network. This results in data loss.

  • If stringent rules for reliable data transfer are implemented in applications that use UDP, the implementation causes additional overhead and complexity in the applications.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007–2008 Hewlett-Packard Development Company, L.P.