TCP is a connection-oriented transport protocol that sends
data as an unstructured stream of bytes. By using sequence numbers and
acknowledgment messages, TCP can provide a sending node with delivery information
about packets transmitted to a destination node. Where data has been lost
in transit from source to destination, TCP can retransmit the data until
either a timeout condition is reached or until successful delivery has
been achieved. TCP can also recognize duplicate messages and will discard
them appropriately. If the sending computer is transmitting too fast for
the receiving computer, TCP can employ flow control mechanisms to slow
data transfer. TCP can also communicate delivery information to the upper-layer
protocols and applications it supports.
IP is the primary layer 3 protocol in the Internet suite. In addition to internetwork routing, IP provides error reporting and fragmentation and reassembly of information units called datagrams for transmission over networks with different maximum data unit sizes. IP represents the heart of the Internet protocol suite.
IP addresses are globally unique, 32-bit numbers assigned by the Network Information Center. Globally unique addresses permit IP networks anywhere in the world to communicate with each other.
An IP address is divided into three parts. The first part designates the network address, the second part designates the subnet address, and the third part designates the host address.
IP addressing supports three different network classes. Class A
networks are intended mainly for use with a few very large networks, because
they provide only 8 bits for the network address field. Class B networks
allocate 16 bits, and Class C networks allocate 24 bits for the network
address field. Class C networks only provide 8 bits for the host field,
however, so the number of hosts per network may be a limiting factor. In
all three cases, the leftmost bit(s) indicate the network class. IP addresses
are written in dotted decimal format; for example, 34.0.0.1.