Connectivity:Overview
Understanding TCP/IP
TCP/IP, the ubiquitous network protocol, is actually a four layer suite of protocols and is well
worth gaining an understanding of. The third instalment of our four part article.
By Julian Moss
I
n the previous instalment of this
pens many time servers do support
communicate with each other. Com
article [PCNA 88, File C04100] we
connections using TCP as well. TCP's
munication may be infrequent and
looked at the transport layer pro
built in reliability is of little use in this
sporadic, and the amount of informa
tocols of the TCP/IP suite: User Data
application, because by the time the
tion exchanged small. Usually a com
gram Protocol (UDP) and Transmi
protocol decides that the message may
mand sent by the manager will
ssion Control Protocol (TCP). We saw
have been lost and re sends it, the in
generate just a single response.
that UDP is an unreliable, connection
formation it contained will be out of
SNMP uses UDP. This avoids the
less protocol suitable for transferring
date. UDP is the most suitable protocol
overhead of having to maintain con
small amounts of data and for broad
for real time applications like this, and
nections between the SNMP manager
cast and multicast applications, and
others like audio, video and network
and each agent. Because the communi
we saw that TCP implements reliabil
gaming.
cation protocol consists essentially of a
ity mechanisms and requires clients to
request for data and a reply containing
establish a connection with a server
SNMP
the data requested, UDP's lack of reli
before data can be transferred. This
ability is not a problem. Reliability is
month we will examine some of the
A slightly more complex UDP ap
easily implemented within the SNMP
application layer protocols, how they
plication is Simple Network Manage
manager by re sending a request if no
work, and how they exploit the char
ment Protocol (SNMP). It allows
response is received within a certain
acteristics of UDP and TCP.
applications to glean information
period.
about how various elements of the net
The main function of SNMP is to al
Time
work are performing, and to control
low the manager to get information from
the network by means of commands
tables maintained by the agents. The ta
A network time service is one of the
sent over it rather than by physical
bles are known as the Management In
simplest possible Internet applica
configuration of equipment.
formation Base (MIB). The MIB is
tions. It tells you the time as a 32 bit
In SNMP there are two distinct com
divided into groups, each containing in
value, giving the number of seconds
ponents, the SNMP manager and
formation about a different aspect of the
that have elapsed since midnight on
SNMP agents. A manager can commu
network. Examples of the information
1st January 1900.
nicate with many agents. Typically, the
that the MIB may contain include the
Time servers use the well known
SNMP manager would be an applica
name, type and speed of a network in
port number 37. When your time client
tion running on the network man
terface, a component's physical location
opens UDP port 37 on the server, the
ager's console, and agents will run on
and the contact person for it, and statis
server responds by sending the four
user workstations, in hubs, routers and
tics such as the number of packets sent
bytes of time information.
other pieces of network hardware.
and the number that wereundeliverable.
For such a simple transaction UDP
All communication is between the
is perfectly adequate, though as it hap
manager and an agent. Agents don't
Object IDs
Data is addressed using object IDs.
These are written as sequences of num
bers separated by periods, rather like
A network time service is one of the
long IP addresses. Each number going
from left to right represents a node in
simplest possible Internet applications. It
a tree structure, with related informa
tion being grouped in one branch of the
tells you the time as a 32 bit value, giving
tree. There are standardised object IDs
for commonly used items of informa
the number of seconds that have elapsed
tion, and also a section for vendor spe
cific information. The assignment of
since midnight on 1st January 1900.
object IDs is controlled by the Internet
Assigned Numbers Authority (IANA).
Issue 91 (January 1998) page 13
File: C04100.9
PC Network Advisor
Next page >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges