Connectivity:Overview
field is interpreted as all data up to
this point received OK . This saves
TCP includes mechanisms for ensuring
bandwidth when data is all being sent
one way by reducing the need for ac
that data which arrives out of sequence is
knowledgement segments. If data is
being sent in both directions simulta
put back into the order it was sent. It also
neously, as in a full duplex connection,
then acknowledgements involve no
implements flow control, so a sender
overhead, as a segment carrying data
one way can contain an acknow
cannot overwhelm a receiver with data.
ledgement for data sent the other way.
Next in the header is a 16 bit field
containing a header length and flags.
TCP headers can include optional
host that joins the group. Instead, the
which are called segments. The length
fields, so the length can vary from 20
messages are broadcast, and the driv
of a segment is decided by the protocol.
to 60 bytes. The flags are: URG, ACK
ers on each host decide whether to ig
Each segment contains 20 bytes of
(which we have already mentioned),
nore them or pass the contents up the
header information in addition to the
PSH, RST, SYN and FIN. We shall look
protocol stack.
IP header. The TCP header starts with
at some of the other flags later.
This implies that multicast mes
16 bit source and destination port
The header contains a field called
sages must be broadcast throughout
number fields. As with UDP, these
the window size, which gives the
the entire Internet, since the multicas
fields specify the application layers
number of bytes the receiver can ac
ter does not know which hosts want to
that have sent and are to receive the
cept. Then there is a 16 bit checksum,
receive the messages. Fortunately this
data. An IP address and a port number
covering both header and data. Finally
is unnecessary. IP uses a protocol
taken together uniquely identify a
(before the optional data) there is a
called Internet Group Management
service running on a host, and the pair
field called the urgent pointer . When
Protocol (IGMP) to inform routers
is known as a socket.
the URG flag is set, this value is treated
which hosts wish to receive which
Next in the header comes a 32 bit
as an offset to the sequence number. It
multicast group messages, so that the
sequence number. This number identi
identifies the start of data in the stream
messages are only sent where they are
fies the position in the data stream that
that must be processed urgently. This
needed.
the first byte of data in the segment
data is often called out of band data.
should occupy. The sequence number
An example of its use is when a user
TCP
enables TCP to maintain the data
presses the break key to interrupt the
stream in the correct order even
output from a program during a Telnet
Transmission Control Protocol is
though segments may be received out
session.
the transport layer protocol used by
of sequence.
most Internet applications, like Telnet,
The next field is a 32 bit acknow
Connection
FTP and HTTP. It is a connection ori
ledgement field, which is used to con
ented protocol. This means that two
vey back to the sender that data has
Before any data can be sent between
hosts one a client, the other a server
been received correctly. If the ACK flag
two hosts using TCP, a connection
must establish a connection before any
is set, which it normally is, this field
must be established. One host, called
data can be transferred between them.
contains the position of the next byte of
the server, listens out for connection
TCP provides reliability. An appli
data that the sender of the segment
requests. The host requesting a connec
cation that uses TCP knows that data it
expects to receive.
tion is called the client.
sends is received at the other end, and
In TCP there is no need for every
To request a connection, a client
that it is received correctly. TCP uses
segment of data to be acknowledged.
sends a TCP segment specifying its
checksums on both headers and data.
The value in the acknowledgement
own port number and the port that it
When data is received, TCP sends an
acknowledgement back to the sender.
If the sender does not receive an ac
knowledgement within a certain time
If a name isn't found in the HOSTS file,
frame the data is re sent.
TCP includes mechanisms for en
the software contacts one of the local name
suring that data which arrives out of
sequence is put back into the order it
servers whose IP address is in the TCP/IP
was sent. It also implements flow con
trol, so a sender cannot overwhelm a
configuration, to see if it knows the address.
receiver with data.
TCP sends data using IP, in blocks
File: C04100.6
Issue 88 (October 1997) page 14
PC Network Advisor
< Next page >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges