
5.3 TRANSPORT LAYER FUNCTIONS 153
5.1 FINAL COUNTDOWN for IPV4
MANAGEMENT
FOCUS
The address space of IPv4 is running out
very quickly. Approximately 1.66 million IPv4
addresses were assigned every day in 2010 and
the prediction was that by early March 2011 we
would run out of IPv4 address space. However,
as we are making the final edits to this book in
April, there are still about two hundred thousand
IPv4 addresses left. One can even continuously
monitor the decreasing number of IPv4 addresses
on twitter (@IPv4Countdown).
Rather than slowly moving to IPv6 and learn-
ing a new address system, the shortage of
IPv4 addresses was overcome by NAT (Net-
work Address Translation) that translates pri-
vate non-routable addresses to a routable IPv4
address. However, NAT might delay the real need
to deal with the shortage of IPv4 address space by
only about 1 year. Thus, we are counting down to
the inevitable collapse of IPv4, also referred to as
‘IPcalypse’ by the supporters of IPv6.
SOURCE:
http://www.infoq.com/news/2010/11/ipv4-exhaustion
the protocol—and which expert you ask—finding the destination address can be classi-
fied as a transport layer function, a network layer function, a data link layer function, or
an application layer function with help from the operating system. In all honesty, under-
standing how the process works is more important than memorizing how it is classified.
The next section discusses addressing at the network layer and transport layer. In this
section, we focus on three unique functions performed by the transport layer: linking the
application layer to the network layer, segmenting, and session management.
5.3.1 Linking to the Application Layer
Most computers have many application layer software packages running at the same
time. Users often have Web browsers, email programs, and word processors in use at the
same time on their client computers. Likewise, many servers act as Web servers, mail
servers, FTP servers, and so on. When the transport layer receives an incoming message,
the transport layer must decide to which application program it should be delivered. It
makes no sense to send a Web page request to email server software.
With TCP/IP, each application layer software package has a unique port address.
Any message sent to a computer must tell TCP (the transport layer software) the appli-
cation layer port address that is to receive the message. Therefore, when an application
layer program generates an outgoing message, it tells the TCP software its own port
address (i.e., the source port address) and the port address at the destination computer
(i.e., the destination port address). These two port addresses are placed in the first two
fields in the TCP segment (see Figure 5.2).
Port addresses can be any 16-bit (2-byte) number. So how does a client computer
sending a Web request to a Web server know what port address to use for the Web
server? Simple. On the Internet, all port addresses for popular services such as the Web,
email, and FTP have been standardized. Anyone using a Web server should set up the
Web server with a port address of 80 and is called the well-known port. Web browsers,
therefore, automatically generate a port address of 80 for any Web page you click on.