Networking CHAPTER 1
Networking CHAPTER 1
Chapter Objectives
Upon completion of this chapter, you will be able to:
Services provided by a data communication network are provided by two major categories of components: customer premises
component and the network components. The customer premises components include all the terminals and other communication
equipment that reside in customer premises. The most common one is, of course, the telephone set. It also includes PC's and workstations
etc. On the other hand, network components will provide connectivity functions so that the terminals can communicate effectively.
Network components include transmission links, switching nodes, signaling links etc. Network components provide four major services
and they are:
Transmission
Switching
Signaling
Network Management
The definition of a signaling element will depend on the transmission scheme used. In the example shown above, pulses are
defined as signaling elements. Different signaling elements within a transmission might have different duration. Typically, baud is
calculated based upon the signaling element of the shortest length. Thus, if the shortest signaling element last y seconds, the band is 1/y.
bit rate (in bits/sec) = (signaling rate in band) X (number of bits per signal element).
The bit rate is given as the number of bits per second (bps). If each signaling element carry one bit of data, then bps = baud.
Example:
Voltage Level Information content
0 volts 00
2 volts 01
4 volts 10
6 volts 11
For parallel transmission, an explicit clock signal is required which is critical. It is a requirement that all bits of a character are
transmitted at the same time so that they can be correctly received by the receiver. The rate of transmission is controlled by the clock.
The clock signal informs the receiver when it should record or sample all its inputs simultaneously.
One major problem in parallel transmission is skew. The clock signal is used by the transmitter to send all bits of a character at
the same time. Over large distances (above 100 feet), the bits can lose the relative timing relationship. The arrival of the bits from the
same character at different times at the receiver is called skew. Skew occurs because the propagation delay is not identical for all
transmission paths. Increase in distance will cause increase in skew implying a proportional relationship. Significant skew will cause the
bits to be received wrongly at the receiving end which will mean receiving wrong character. One way to reduce skew is to reduce the
transmission distance. Recommended transmission distance ranges from fifty to seventy-five feet.
On the other hand, serial transmission is typically used for long distance, computer to computer communication. Serial
connections can cover large distances at a comparatively low cost and are relatively easy to build. Serial communication has a low data
throughput compared to its parallel counterpart. Furthermore, there is an additional overhead due to serial/parallel conversion that needs
to be performed.
Half duplex (HDX) transmission means that the connection is bidirectional, but information can only flow in one direction at a
time. Two- way radios are example of the half-duplex system.
Full Duplex (FDX) transmission means that both stations may transmit to each other at the same time. Full duplex transmission
usually requires two separate transmission paths. A person talking to each other over the phone is an instance of full duplex
communication.
• Synchronous transmission
– Characters, within a block, are sent contiguously
– Each block is framed
1.12 Asynchronous Vs. Synchronous Transmission
Asynchronous transmission has a lower cost and is easy to implement. Synchronization between the transmitter and receiver is
relatively simple as individual characters are sent independently with its own framing information. Asynchronous transmission is less
efficient and the best utilization that can be achieved is 80%.
Synchronous transmission on the other hand is used for interconnection of high-speed devices. Because of the high speed, a
method for automatic error detection and correction is required. Synchronous transmission requires sophisticated timing method. In
addition to determining the beginning and end of block of characters, the receiver must also determine the duration of each bit. Both
steps are required to successfully receive a block. Since synchronous transmission speeds may be several million bits per second, either
an extremely accurate clock must be present at all transmitters or receivers, or else a signal transmission technique is required that
provides timing information. The latter is the preferred solution.
Due to required automatic error-recovery procedure, timing consideration and complex signaling techniques, Synchronous
transmission is more expensive than its Asynchronous counterpart.
When the transmitter is not sending any signal, the line is idle. An idle line is kept in the MARK state to distinguish lack of
transmission from a cut wire; a cut wire would lose power and present itself in the SPACE state.
The asynchronous character is preceded by a framing bit called the START bit. The START bit is always in the SPACE status;
thus, the receiver knows that a character is arriving when it detects the MARK-to-SPACE transition. This transition also synchronizes the
receiver's clock.
The next "N" bit-times will be comprised off the data bits, where there are "N" bits in each character. In practice, the most
common value for N is eight. Note that the LSB of the character is most sent first. If parity is used, it will be typically placed in the most
significant (MSB) position.
The character is followed by a STOP interval, which must last for at least 1, 1.5- or 2-bit times. The STOP interval always
returns the line to the MARK state. This ensures that if two asynchronous characters are sent contiguously, the MARK-to-SPACE
transition will still occur when the START bit presents itself. A long STOP interval is required for those devices that need additional
time to reset after receiving a character. The transmitter and receiver must agree upon several parameters in order to have successful
communication. These parameters include the number of bits per character, the length of a bit time (i.e.
the transmission speed), the number of STOP bits, electrical signal levels, the order of bit transmission, and the character code.
Synchronous Characters
These characters indicate to the receiver that a message is about to be received. Furthermore, they define eight-bit
blocks so that the individual characters can be correctly interpreted
Message Header
Beginning-of-message framing, which may include the sequence number of the block (or frame)
Data
Use information
Message Trailer
End-of-message framing, which may include error detection information
Successful synchronization transmission will depend upon the agreement of several parameters in asynchronous
transmission. These parameters include
Length of a bit time (data rate)
Signal levels
SYNC characters
Size and content of the message header and trailer
1.13 Interfacing
Digital devices generate digital signals and they are not capable of transmitting this digital data to a longer distance. So
typically, digital devices are not tied to the transmission facility directly. Computers and terminals are termed as Data Terminal
Equipment (DTE). The device which helps DTE for data communication is known as Data circuit terminating equipment (DCE) and it
sits between the DTE and the transmission media. Modem is one example of DCE. On the transmission side, DCE receives data from
DTE and transmits data over the transmission media. On the receiver end, the DCE receives data from transmission media and passes it
to the DTE.
In order to standardize the interface between DTE and DCE, the Electronics Industries Association in the United States has
come out with a interface standard known as RS- 232C. This RS-232 interface standard is described by means of mechanical, electrical,
functional and procedural specifications. Mechanical specification deals with the physical connection of DTE and DCE whereas the
electrical specification deals with voltage levels and timing of voltage changes. Functional specifications specify the functions that are
performed by different circuits. Procedural specification specifies the protocol between DTE and DCE.
RS232-C
RS232-C standard is specified in terms of the four specifications mentioned above and they are:
Mechanical Specification
- RS232-C is a 25-pin connector where the pins are organized into two rows. Pins numbered 1-13 are in the
top row whereas the pins numbered 14-25 are in the bottom row. All other mechanical dimensions are specified in this
specification.
Electrical Specification
- In RS-232C standard, voltage greater than +4 volt is
- considered as logical 0 and voltage smaller than -3 volt is considered as logical 1. The cable length between
two RS-232C connectors can range a maximum of 15 meters and it can support a data rate of 20 kbps.
Functional Specification
- Although RS-232C is a 25 pins connector, only 9 of the pins are always used in practice. Functional
specification says that the circuits connected to the pins can be grouped into four groups i.e. data, control, ground, and
timing. Data groups include transmit and receive signals which are connected to pin 2 and 3 respectively. Whenever
the PC wants to transmit data to the modem, it uses the transmit line and it uses the receive line to get data from
modem. Control group include control signals like Request To Send (RTS) and Clear To Send (CTS) lines which are
connected to pin 4 and 5 respectively. PC uses RTS signal to inform the modem that it wants to transmit data. The
modem sends CTS signal to the PC to inform that the modem is ready to receive data from the PC. Timing group
includes clock signals which are used for synchronous transmission. Ground group is the set of circuits used for
grounding.
Procedural Specification
- The procedural specification for RS-232C specifies the sequence of events that occur between DCE and
DTE to transmit data.
The sequence of events that occur between computer and modem during communication are listed below:
1. When the computer is powered up, it sends a Data Terminal Ready signal to the modem.
2. Whenever the modem powers up, it sends a Data Set Ready signal to the PC.
Transmit
3. Whenever the PC wants to transmit data, it sends Request To Send signal to the modem.
4. In response, the modem transmits a carrier frequency on telephone line and sends Clear To Send signal to the PC to indicate
that it is ready to receive data from the computer.
5. In response to DCE signal, the computer transmits data over the transmit line.
Receive
i) Whenever the modem detects a carrier frequency on the transmission line, it means that the remote modem is transmitting.
So, modem sends a carrier detect signal to the computer.
ii) In response PC receives the incoming data over the Receive line.