Chapter 9
Chapter 9
AOP
2. OOP
9
DATA COMMUNICATION AND COMPUTER
NETWORK
Contents
9.1 INTRODUCTION
This chapter discusses the data communication and the computer networks. The section on data
communication discusses the media used for transmission of data, how data can be transferred
across the communication media and the relationship between data transmission and data
networking. The section on computer network discusses different network types, network
topologies, communication protocol and network communicating devices. A brief explanation of
wireless networks is also provided.
Networking of computers provides a communication link between the users, and provides access
to information. Networking of computers has several uses, described as follows:
Resource Sharing—In an organization, resources such as printers, fax machines and scanners
are generally not required by each person at all times. Moreover, for small organizations it may
not be feasible to provide such resources to each individual. Such resources can be made
available to different users of the organization on the network. It results in availability of the
resource to different users regardless of the physical location of the resource or the user,
enhances optimal use of the resource, leads to easy maintenance, and saves cost too (Figure
9.1).
Figure 9.1 A network of computers, printer and scanner
The data is sent from one computer to another over a transmission medium. The transmission
media can be grouped into guided media, and unguided media.
In the guided media, the data signals are sent along a specific path, through a wire or a cable.
Copper wire and optical fibers are the most commonly used guided media. Copper wire transmits
data as electric signals. Copper wires offer low resistance to current signal, facilitating signals to
travel longer distances. To minimize the effect of external disturbance on the copper wire, two
types of wiring is used—(1) Twisted Pair, and (2) Coaxial Pair. Optical fibers transmit data as
light signals.
In the unguided media, the data signals are not bounded by a fixed channel to follow. The data
signals are transmitted by air. Radio, microwave, and satellite transmissions fall into this
category.
Now let’s discuss both the guided and the unguided data transmission media.
A twisted pair cable consists of four pairs of copper wires coated with an insulating material like
plastic or Teflon, twisted together. The twisting of wires reduces electromagnetic interference
from external sources.
Twisted pair cabling is often used in data networks for short and medium length connections
because of its relatively lower costs compared to optical fiber and coaxial cable.
Twisted pair is of two kinds—Shielded Twisted Pair (STP), and Unshielded Twisted Pair (UTP).
STP cable has an extra layer of metal foil between the twisted pair of copper wires and the outer
covering. The metal foil covering provides additional protection from external disturbances.
However, the covering increases the resistance to the signal and thus decreases the length of
the cable. STP is costly and is generally used in networks where cables pass closer to devices
that cause external disturbances.
UTP is the most commonly used medium for transmission over short distances up to 100m. Out
of the four pairs of wires in a UTP cable, only two pairs are used for communication. Figure 9.2
shows the cross-section of STP and UTP cables.
UTP cables are defined in different categories. The commonly used UTP cable is the Cat-5 cable
which is used with fast Ethernet.
A coaxial cable (Figure 9.3) has a single inner conductor that transmits electric signals; the outer
conductor acts as a ground. The two conductors are separated by insulation. The inner
conductor, insulator, and the outer conductor are wrapped in a sheath of Teflon or PVC.
Figure 9.3 Coaxial cable (A: outer plastic sheath, B: woven copper shield, C: inner
dielectric insulator, D: copper core)
The copper wire is used for both inner and outer conductor. The signal is transmitted over the
surface of the inner conductor.
In an ideal coaxial cable the electromagnetic field carrying the signal exists only in the space
between the inner and outer conductors. This allows coaxial cable runs to be installed next to
metal objects such as gutters without the power losses that occur in other transmission lines,
and provides protection of the signal from external electromagnetic interference.
A thicker coaxial cable can transmit more data than a thinner one.
The commonly used coaxial cable is 10 base 2 that transmits over a distance of 185 m, and 10
base 5 that transmits over a distance of 500 m.
Optical fibers are being used for transmission of information over large distances more cost-
effectively than the copper wire connection. Communication systems are now unthinkable
without fiber optics.
Optical fiber transmits data as light signals instead of electric signals.
An optical fiber cable (Figure 9.4) consists of(1) core–optical fiber conductor (glass) that
transmits light, (2) cladding–an optical material that surrounds the core to prevent any light
from escaping the core, and (3) jacket—outer covering made of plastic to protect the fiber from
damage.
Figure 9.4 (a) Optical fiber (b) Cross section of optical fiber
Modern optical fiber cables can contain up to a thousand fibers in a single cable, so the
performance of optical networks easily accommodate large demands for bandwidth on a point-
to-point basis.
Optical fibers come in two types: (a) Single-mode fibers, and (b) Multi-mode fibers
o Single-mode fibers have small cores (about 3.5 × 10 ~4 inches or 9 microns in diameter)
and transmit infrared laser light (wavelength = 1,300 to 1,550 nanometers).
o Multi-mode fibers have larger cores (about 2.5 × 10~3 inches or 62.5 microns in
diameter) and transmit infrared light (wavelength ‽ 850 to 1,300 nm) from Light
Emitting Diodes (LEDs).
The Advantages of Optical Fibers over wires are:
o Optical fibers do not cause electrical interference in other cables, since they use light
signals.
o Due to much lower attenuation and interference, optical fiber has large advantages over
existing copper wire in long-distance and high-demand applications.
o A fiber can carry a pulse of light much farther than a copper wire carrying a signal.
o Optical fiber can carry more information than a wire (light can encode more information
than electrical signal).
o A single optical fiber is required for light to travel from one computer to another (two
wires are required for electric connection).
o Because signals in optical fibers degrade less, lower-power transmitters can be used
instead of the high-voltage electrical transmitters needed for copper wires. Again, this
saves your provider and you, money.
o No amplification of the optical signal is needed over distances of hundreds of
kilometers. This has greatly reduced the cost of optical networking, particularly over
undersea spans where the cost reliability of amplifiers is one of the key factors
determining the performance of the whole cable system.
o Optical fibers are ideally suited for carrying digital information, which is especially useful
in computer networks.
o They are highly secure as they cannot be tapped and for lack of signal radiation.
The Disadvantages of Optical Fiber are:
o Installing an optical fiber requires special equipment.
o If a fiber breaks, finding the broken location is difficult.
o Repairing a broken optical fiber is difficult and requires special equipment.
o Due to its high installation costs, they are economical when the bandwidth utilization is
high.
The electromagnetic radio waves that operate at the adio frequency are also used to transmit
computer data. rhis transmission is also known as Radio Frequency RF) transmission (Figure
9.5). The computers using RF ransmission do not require a direct physical connection ike wires
or cable. Each computer attaches to an antenna hat can both send and receive radio transmission.
Figure 9.5 Radio transmission
Microwave transmission (Figure 9.6) refers to the technique of transmitting information over a
microwave link. Microwaves have a higher frequency than radio waves. Microwave transmission
can be aimed at a single direction, instead of broadcasting in all directions (like in radio waves).
Microwaves can carry more information than radio waves but cannot penetrate metals.
Microwaves are used where there is a clear path between the transmitter and the receiver.
Microwave transmission has the advantage of not requiring access to all contiguous land along
the path of the system, since it does not need cables. They suffer from the disadvantages: a)
needing expensive towers and repeaters, and b) are subject to interference from passing airplanes
and rain. Because microwave systems are line-of-sight media, radio towers must be spaced
approximately every 42 km along the route.
The communication across longer distances can be provided by combining radio frequency
transmission with satellites. Geosynchronous satellites are placed in an orbit synchronized with
the rotation of the earth at a distance of 36,000 km above the surface of the earth.
Geosynchronous satellites appear to be stationary when viewed from the earth. The satellite
consists of transponder that can receive RF signals and transmit them back to the ground at a
different angle. A ground station on one side of the ocean transmits signal to the satellite which
in turn sends the signal to the ground station on the other side of the ocean (Figure 9.7).
The direction in which data can be transmitted between any two linked devices is of three
types—(1) Simplex, (2) Half-duplex, and (3) Full-duplex, or duplex. Simplex transmission is uni-
directional data transmission. Of the two linked devices, only one of them can send data and the
other one can only receive data. Half–duplex transmission is bi-directional data transmission, but
the linked devices cannot send and receive at the same time. When one device is sending data the
other can only receive. Full-duplex transmission is bi-directional and the linked devices can send
and receive data simultaneously. The linked devices can send data and at the same time receive
data. Figure 9.8 shows the different kinds of transmission modes used for interaction.
When the signals are transmitted between two computers, two factors need to be considered—
(1) Bandwidth, and (2) Distance.
Bandwidth is the amount of data that can be transferred through the underlying hardware i.e.
the communication medium, in a fixed amount of time. Bandwidth is measured in cycles per
second (cps) or Hertz (Hz). The bandwidth of the transmission medium determines the data
transfer rate.
Throughput is the amount of data that is actually transmitted between the two computers.
Throughput is specified in bits per second (bps). The throughput capability of the communication
medium is also called bandwidth. The bandwidth of the communication medium is the upper
bound on the throughput, because data cannot be sent at a rate more than the throughput of
the communication medium.
Higher throughput is achieved by using a large part of the electromagnetic spectrum (large
bandwidth). Technology that uses large part of the electromagnetic spectrum to achieve higher
throughput is known as broadband technology. The technology that uses small part of the
electromagnetic spectrum is known as baseband technology.
Throughput is affected by the distance between the connected computers or devices. Even if a
transmission medium is designed for a specific bandwidth, the throughput is affected by the
distance of communication.
The bandwidth of transmission medium is limited by the distance over which the medium needs
to transmit the signal. The bandwidth decreases with the increase in the distance between the
connected devices. When a signal has to travel long distance, the signal strength decreases; the
signal strength is utilized to overcome the resistance offered by the connecting medium (cable
or wire). The gradual deterioration of signal strength across long distances is called attenuation.
Moreover, with increasing distance the external disturbance increases, which causes the signal
to deteriorate and results in less amount of data to be transferred. The degradation of signal
due to internal or external disturbances is called distortion.
The bandwidth and distance of the transmission medium is selected so that it offers minimum
attenuation and minimum distortion.
The cat-5 UTP cable has a throughput of 100 Mbps over a distance of 100m. The 10 base2
coaxial cable has a throughput up to 10Mbps over a distance of 185 m. The 10 base 5 coaxial
cable has a throughput up to 10Mbps over a distance of 500 m.
The information to be transmitted does not always exist in a form that is compatible with the
transmission medium. Waves that are compatible with the transmission medium must be
generated to carry information. A signal is a wave that is suitable for carrying information over a
transmission medium. Signals can be electric signals, light signals, electromagnetic signals or
radio signals. Electric signals are used to carry information through copper wires, light signals
for fiber optic cables, and radio signals for carrying information in free space. Electrical signals
have limited bandwidth and cannot be used in long distance communication. They need to be
amplified or regenerated. Light signals have a high bandwidth and are suited for long distance
communication.
Information carrying signals are of two types—(a) analog signal, and (b) digital signal (Figure
9.9).
Modulation: Signals consist of two components—the information signal and the carrier signal.
The transmission of any signal over some communication medium usually involves modulation
of a carrier. Prior to their transmission the information signal and the carrier signal are
combined and the process of combining these two signals is called modulation. Characteristics
of the carrier signal are varied in proportion to the amplitude of the information-carrying signal.
Modulation results in the transfer of the signal information to higher frequency carrier signal. In
simple English terms, the information signal sits on top of the carrier signal and rides on it from
the receiver to the transmitter.
Need for Modulation: Let’s understand the need for modulation by using a simple example.
Stereophonic radio signal consist of frequency ranges from 30 Hz (Hertz) to 15 KHz (Kilo Hertz).
Hence they need a bandwidth of 15 KHz. If ten different radio stations start transmitting their
voice signals between 30 Hz and 15 KHz frequencies, then a combination of these signals would
only create noise and the receiver would not be able to discriminate between the signals of each
radio station. To overcome this, usually the FM broadcast band, used for broadcasting FM radio
stations, goes from 87.5 to 108.0 MHz (Mega Hertz). For example a radio channel-1 may be
broadcast using a carrier signal of 102 MHz and would typically use band of frequencies
between 101.9 to 102.1 MHz. Radio channel2 using a carrier signal of 102.2 MHz would use
band of frequencies between 102.1 and 102.3 MHz. Similarly for other channels, the same
method of allocation would be followed. This eliminates the problem of discrimination and
decoding signals of each of the radio stations at the receiving end.
At the sending side (transmitter), the signal is superimposed on the carrier wave, which results
in a modulated carrier wave. The modulated carrier wave is transmitted. At the receiving end,
the receiver is configured to recognize the carrier that the sender is using. The receiver detects
the modulation of the carrier wave and reconstructs the data signal.
The process of segregating the data signal and the carrier signal from the modulated carrier
wave is called demodulation. At the receiving end, the carrier wave is discarded after the data
signal has been reconstructed.
Modulation technique did not originate for data communication for computers, but has long
been used for radio, television, and telephone communication. For long distance transmission,
computer networks use modulation, whether the signals are transmitted over wires, optical
fibers, microwave or radio frequency.
Modulation is of three kinds, which are defined as follows:
o Amplitude Modulation—The amplitude of the carrier wave is modified in proportion to
the data signal. The frequency and phase of the carrier signal remains unchanged.
o Frequency Modulation—The frequency of the carrier signal is modified in proportion to
the data signal. The amplitude and phase of the carrier signal remains unchanged.
o Phase Shift Modulation—The phase of the carrier signal is modified in proportion to the
data signal. The amplitude and frequency of the carrier signal remains unchanged.
For computer networks, generally phase shift modulation is used. Figure 9.10 shows the
different kinds of modulation of a carrier wave with signal.
Figure 9.10 (a) Carrier wave with signal (b) Amplitude modulation (c) Frequency
modulation (d) Wavelength modulation
Modem (Figure 9.11) is a device that has both a modulator and a demodulator. Modulator
accepts data signals from the computer and modulates the carrier wave accordingly.
Demodulator accepts modulated carrier wave and regenerates the original data signal from it.
During data communication, modem is attached to the computer, both at the sender and the
receiver side. Modems are used with all transmission media like RF modem for RF transmission
and optical modem for transmission through fiber optics.
Figure 9.11 Modems
9.4.3.3 Multiplexing
Transmission medium have varying data carrying capacities. To utilize the full capacity of the
transmission medium, computer networks use separate channels that allow sharing of a single
physical connection for multiple communication. Multiple carrier signals are transmitted over
the same medium at the same time and without interference from each other.
The combining of multiple signals into a form that can be transmitted over a single link of a
communication medium is called multiplexing. Figure 9.12 (a) shows computers connected
without multiplexing and Figure 9.12 (b) shows computers connected via a multiplexer.
Demultiplexing is a technique of separating the merged signals and sending them to the
corresponding receivers. The two basic multiplexing techniques are— Frequency Division
Multiplexing (FDM) and Wavelength Division Multiplexing (WDM).
o FDM combines different carrier frequencies signals into a single signal of higher
bandwidth. The bandwidth of the communication medium link carrying the combined
signal is greater than the sum of the bandwidth of the individual signals that are
combined. FDM is used for high band—width analog transmission systems like
broadband technology.
o WDM is similar to FDM except that FDM involves electromagnetic spectrum below light
and WDM involves light signals. WDM uses very high frequencies. WDM combines
different light signals coming from different sources into a larger band light signal across
a single optical fiber. It also enables bi-directional communications over one strand of
fiber.
One major difficulty in data transmission is that of synchronising the receiver with the sender.
Whenever an electronic device transmits digital (and sometimes analog) data to another
electronic device, there must be a certain rhythm established between the two devices, i.e., the
receiving device must have some way of knowing, within the context of the fluctuating signal
that it is receiving, where each unit of data begins, and ends. The signal must be synchronized in
a way that the receiver can distinguish the bits and bytes as the transmitter intends them to be
distinguished. Two approaches exist to address the problem of synchronisation—synchronous
transmission, and asynchronous transmission.
Data transmission at physical level involves the hardware required for handling individual bits
and encoding bits in signals. The details of the underlying hardware are generally handled by the
engineers who design the hardware.
Any two devices directly linked via a communication medium (point to point communication)
can send and receive data, to and from each other respectively (Figure 9.15 a). If a large number
of computers need to interact with each other, point to point communication will require direct
link between all the computers. This is not a practical solution. The communication circuits and
the associated hardware required for communication (like modem) are expensive. Moreover,
there may not be a need to transmit data all the time, which will result in the communication
medium lying idle for most of the time. For long distance communication, instead of point to
point connection, a network of nodes is used as a communication medium. The different
computers attached to the network share the communication facility.
9.5.1 Switching
A network cannot allow or deny access to a shared communication facility. All computers
attached to the network can use it to send and receive data. Networks allow sharing of
communication medium using switching (Figure 9.15 b). Switching routes the traffic (data
traffic) on the network. It sets up temporary connections between the network nodes to facilitate
sending of data. Switching allows different users, fair access to the shared communication
medium. There are three kinds of switching techniques—(1) Packet switching, (2) Circuit
switching, and (3) Message switching. Computer networks generally use packet switching,
occasionally use circuit switching but do not use message switching.
Circuit switching (Figure 9.16) sets up end-to-end communication path between the source and
the destination, before the data can be sent. The path gets reserved during the duration of the
connection. Circuit switching is commonly used in the telephone communication network.
Message switching (Figure 9.17) does not establish a physical path in advance, between the
sender and the receiver. It uses the ‘store and forward’ mechanism. In this mechanism, the
network nodes have large memory storage. The message is received from the sender and stored
in the network node, and when it finds a free route, it forwards the message to the next node till it
reaches the destination. Message switching requires large data storage capacity and incurs delay
in storing and forwarding of message. Message switching may block the network nodes for a
long time. They are thus not suitable for interactive communication. Message switching is no
more used in computer networks.
Figure 9.17 Message switching
Like message switching, packet switching does not establish a physical path between the sender
and the receiver, in advance. Packet switching (Figure 9.18) also uses the ‘store and forward’
mechanism. However, instead of a complete message, packets are sent over the network.
Packet switching splits a message into small “packets” of defined size to be sent over the
network. Each packet is numbered.
A packet is a self-contained part of data that can be sent over the network. A packet contains
the data to be transmitted and a header that contains information about the packet, like the
source and destination addresses, size of packet, error checking bytes etc.
Since the path through which the packets travel is not reserved, the packets may travel through
different paths in the network and may not reach the destination in order. At the destination,
the received packets are reassembled (according to the packet number), and the complete
message is constructed.
Packet switching is suited for interactive traffic. Packet switching limits the size of the packet
and does not block a network node for a long time. Moreover, a node can transmit a packet
before the arrival of another full packet, thus reducing the delay.
Packet switching does not require dedicated communication link, and shares the underlying
resources. Packet switching is commonly used for computer networks, including the Internet.
Computer network is broadly classified into three types—(1) Local Area Network (LAN), (2)
Metropolitan Area Network (MAN), and (3) Wide Area Network (WAN). The different network
types are distinguished from each other based on the following characteristics:
The size ofthe network refers to the area over which the network is spread. Transmission
technology refers to the transmission media used to connect computers on the network and the
transmission protocols used for connecting. Network topology refers to the arrangement of
computers on the network or the shape of the network. The following subsections discuss the
three types of networks and their characteristics.
LAN (Figure 9.19) is a computer network widely used for local communication. LAN connects
computers in a small area like a room, building, office or a campus spread up to a few
kilometers. They are privately owned networks, with a purpose to share resources and to
exchange information.
The computers in a LAN are generally connected using cables. LAN is different from other types
of network since they share the network. The different computers connected to a LAN take turns
to send data packets over the cables connecting them. This requires coordination of the use of the
network. Some of the transmission protocols used in LAN are Ethernet, Token bus, and FDDI
ring.
Star, Bus, and Ring are some of the common LAN networking topologies. LAN runs at a speed
of 10 Mbps to 100 Mbps and has low delays. A LAN based on WiFi wireless network
technology is called Wireless Local Area Network (WLAN).
MAN (Figure 9.20) is a computer network spread over a city. Cable television network is an
example of MAN. The computers in a MAN are connected using coaxial cables or fiber optic
cables. MAN also connects several LAN spread over a city.
WAN is a network that connects computers over long distances like cities, countries, continents,
or worldwide (Figure 9.21). WAN uses public, leased, or private communication links to spread
over long distances. WAN uses telephone lines, satellite link, and radio link to connect. The need
to be able to connect any number of computers at any number of sites, results in WAN
technologies to be different from the LAN technologies. WAN network must be able to grow
itself. Internet is a common example of WAN.
Figure 9.21 LAN, MAN and WAN
There are different types of network topologies that are used in a network. The network
topologies in the structure or the layout of the different devices and computers connected to the
network. The topologies commonly used in LAN are—Bus topology, Star topology, and Ring
topology.
All devices on the network are connected through a central cable called a Bus (Figure 9.22).
All devices are connected through a central link forming a star-like structure.
The central link is a hub or switch. The computers are connected to the hub or switch using
twisted pair cables, coaxial cables or optic fibers.
Star topology (Figure 9.24) is the most popular topology to connect computer and devices in
network.
The data signal is transmitted from the source computer to the destination computer via the
hub or switch.
The common protocols used in star topology are Ethernet, Token Ring, and LocalTalk.
In addition to the bus, ring, and star topologies, there are complex topologies like the tree
topology, and the mesh topology used for networking in LAN. Table 9.1 lists the advantages and
disadvantages of the different LAN network topologies.
Data networks are a combination of software and hardware components. The hardware includes
transmission media, devices, and transmission equipments. The software allows the hardware to
interact with one another and provide access to the network. The application programs that use
the network do not interact with the hardware directly. The application programs interact with
the protocol software, which follows the rules of the protocol while communicating. Protocol is
a network term used to indicate the set of rules used by a network for communication.
All the computers connected to the network use the protocol software. The network
communication protocol is organized as a stack of layers with one layer built upon the other.
Each layer has a specific function and interacts with the layers above and below it. The outgoing
data from a computer connected to the network passes down through each layer and the
incoming data passes up through each layer. The corresponding layers on the different machines
are called peers. The peers interact with each other using the protocol.
The International Standards Organization (ISO) has developed a seven-layer reference model for
data networks, known as Open System Interconnection (OSI) model. The OSI model specifies
the functions of each layer. It does not specify how the protocol needs to be implemented. It is
independent of the underlying architecture of the system and is thus an open system. The seven
layers of the OSI model are—(1) Physical layer, (2) Data link layer, (3) Network layer, (4)
Transport layer, (5) Session layer, (6) Presentation layer, and (7) Application layer. The
functions of the different layers (Figure 9.25) are as follows:
Figure 9.25 OSI model
Physical Layer—This layer specifies the basic network hardware. Some of the characteristics
defined in the specification are—interface between transmission media and device, encoding of
bits, bit rate, error detection parameters, network topology, and the mode of transmission
(duplex, half-duplex or simplex).
Data Link Layer—This layer specifies the functions required for node-to-node transmission
without errors. It specifies the organization of data into frames, error detection in frames during
transmission, and how to transmit frames over a network.
Network Layer—The network layer specifies the assignment of addresses (address structure,
length of address etc.) to the packets and forwarding of packets to the destination i.e. routing.
Transport Layer—It specifies the details to handle reliable transfer of data. It handles end-to-
end error control and flow control, breaking up data into frames and reassembling the frames.
Session Layer—The session layer maintains a session between the communicating devices. It
includes specifications for password and authentication, and maintaining synchronization
between the sender and the receiver.
Presentation Layer—This layer specifies the presentation and representation of data. Its
functions include translation of the representation of the data into an identifiable format at the
receiver end, encryption, and decryption of data etc.
Application Layer—This layer specifies how an application uses a network. It deals with the
services attached to the data. It contains the protocols used by users like HTTP, protocol for file
transfer and electronic mail.
Each layer at the sender’s side transforms the data according to the function it handles. For this it
attaches headers to the data. At the receiver’s side, the corresponding layer applies the inverse of
the transformation that has been applied at the source (Figure 9.26). As an example, if the Data
link layer at the sender’s side adds an error detection code to the frame, then at the receiver’s
side, the Data link layer verifies the error detection code and removes it from the frame before
passing it to the next higher level, i.e. the Network layer.
Figure 9.26 Data transfer in OSI model
The 7-layer ISO reference model forms a framework for communication between the devices
attached to the network. For different networks, the number of layers and their functions may
vary. For example, the TCP/IP Internet protocol is organized into five layers. The X.25 Wide
Area Network protocol (the first public data network) provides connectivity to Public Switched
Telephone Network (PSTN) network and has three layers.
The cables are used to transmit data in the form of signals from one computer to another. But
cables cannot transmit signals beyond a particular distance. Moreover there is a need to connect
multiple computers and devices. A concentrator is a device having two or more ports to which
the computers and other devices can be connected. A concentrator has two main functions—(1)
it amplifies the signal to restore the original strength of the signal, and (2) it provides an interface
to connect multiple computers and devices in a network. Repeater, hub, switch, bridge, and
gateway are examples of network connecting devices.
Two or more LANs using different protocols may not be able to communicate with the
computers attached to their network. For example, a LAN connected using Ethernet may not be
able to communicate with a LAN connected using Token Ring. Bridge, Router, and Gateway are
devices used to interconnect LANs.
A Network Interface Card (NIC) is a hardware device through which the computer connects to a
network.
NIC is an expansion card (Figure 9.27), it can be either ISA or PCI, or can be on-board integrated
on a chipset. NIC has an appropriate connector to connect the cable to it. NIC for different LAN
are different (NIC for token ring is different from NIC for Ethernet).
NIC work at both the data link layer and physical layer of the OSI reference model.
At the data link layer, NIC converts the data packets into data frames, adds the Media ACcess
address (MAC address) to data frames. At the physical layer, it converts the data into signals and
transmits it across the communication medium. The MAC address is a globally unique hardware
number present on the NIC and is specified by the NIC manufacturer.
NIC depends upon the configuration of the computer, unlike hub or switches that perform
independently.
9.6.4.2 Repeater
Repeaters (Figure 9.28) are used to extend LAN. It has only two ports and can connect only two
segments of a network. Multiple repeaters can be used to connect more segments. (Segment is
a logical section of the same network).
9.6.4.3 Bridge
Bridge (Figure 9.29) is used to connect two LAN segments like a repeater; it forwards complete
and correct frames to the other segment. It does not forward any electrical interference signals
to the other segment.
Bridge forwards a copy of the frame to the other segment, only if necessary. If a frame is meant
for a computer on the same segment, then bridge does not forward a copy of the frame to other
segment.
Bridge connects networks that use different protocol at the Data Link Layer. The frame format
of data in the two networks is different. The bridge converts the frame format before
transmitting data from one network to another, with translation software included in the
bridge.
A bridge is also used to divide a network into separate broadcast domains to reduce network
traffic while maintaining connectivity between the computers.
9.6.4.4 Hub
It is like a repeater with multiple ports. But, hub does not amplify the incoming signal.
Hub (Figure 9.30) operates at the Physical layer of OSI reference model, hence treats data as a
signal.
Figure 9.30 Hub
9.6.4.5 Switch
Like hub, switch also connects multiple computers in a network or different segments of the
same network. A hub simulates a single segment that is shared by all computers attached to it
(hub transmits the data to all computers attached to it). In a hub, at most two computers can
interact with each other at a given point of time. However, in a switch each computer attached
to a switch has a simulated LAN segment.
Switches (Figure 9.31) work at the Data Link Layer of the OSI reference model.Hence, switches
consider data as frames and not as signals.
9.6.4.6 Router
A router has a processor, memory, and I/O interface for each network to which it connects.
A router connects networks that use different technologies, different media, and physical
addressing schemes or frame formats.
A router can connect two LANs, a LAN and a WAN, or two WANs.
A router is used to interconnect the networks in the Internet.
Router operates at the Network layer of the OSI model (layer 3).
Physically, a router resembles a bridge, but is different from a bridge. A router determines which
way is the shortest or fastest in a network, and routes packets accordingly. Since it works at the
Network layer, it moves packets based on the IP addresses etc. In contrast, a bridge connects
two LANs almost permanently.
9.6.4.7 Gateway
Gateway (Figure 9.33) is a generic term used to represent devices that connect two dissimilar
networks.
Figure 9.33 Gateway
A gateway at the transport layer converts protocols among communications networks. It can
accept a packet formatted for one protocol and convert it to a packet formatted for another
protocol, before forwarding it. An application gateway can translate messages from one format
to the other.
A gateway can be implemented in hardware, software, or in both hardware and software.
Generally, gateway is implemented by software installed within a router.
The network connecting devices—repeater and hub operate at the physical layer, bridge and
switch operate at the data link layer, and the router operates at the network layer of the OSI
model.
The different components of the computer like the keyboard, printer, monitor etc., are connected
to the computer case via wires. Bluetooth technology (Figure 9.34) is used to connect the
different components wirelessly. A printer placed in a room may be connected to a computer
placed in a different room using Bluetooth technology. Using Bluetooth does away with the
wires required to connect the components to the computer and allows portability of components
within a small area lying within the Bluetooth range.
Wireless LAN (Figure 9.35) has some benefits over the wired LANs. In wireless LAN, there is
flexibility to move the computers and devices within the network. It can connect computers
where cabling is not possible. It is easy to expand by using an access point. Since no physical
medium is required, wireless LANs are easy to install. Since data is transmitted using radio or
infrared waves, there is no attenuation or distortion of the signal due to electromagnetic
interference. Wireless LANs are used at home to connect devices on different floors or to set up
a home network (Figure 9.36), to provide connectivity in public places like airports, railway
stations, college campus, and hotels etc., where traveling users can access the network. Wireless
LANs can also be connected to a WAN thus providing access to Internet to the user. IEEE
802.11 is a standard for wireless LAN.
Figure 9.35 (a) Wireless ethernet bridge (b) Wireless antenna in a desktop
The radio network used for cellular telephone is an example of wireless WAN (Figure 9.37).
Wireless WANs allow the users to access the Internet via their mobile devices. This provides
flexibility to the user to access the Internet from any location where wireless connectivity exists.
Figure 9.37 Wireless WAN
Almost all wireless networks are connected to the wired network at the back-end to provide
access to Internet. Wireless networks also offer many challenges, like, the compatibility among
different standards promoted by different companies, congested networks in case of low
bandwidth, the high infrastructure and service cost, data security, battery storage capability of
wireless device, and health risk.
SUMMARY
Networking of computers facilitates resource sharing, sharing of information, and, can be used
as a communication medium, and for backup and support.
The transmission ofdata can be via guided media like twisted pair, coaxial pair, optical fibers or
as radio transmission, microwave transmission, and satellite transmission.
A twistedpair cable consists of four pairs of twisted copper wires. STP and UTP are the two kinds
of twisted pair.
Coaxial cable has an inner conductor that transmits electric signals and an outer conductor as a
ground. Optical fibers transmit data over large distances. They use light signals.
Simplex, half-duplex and full-duplex are three modes of data transmission. Simplex is uni-
directional, halfduplex is bi-directional but one device sends data and other receives it, and, full-
duplex is bi-directional and both the devices can send and receive data at the same time.
Bandwidth is the amount of data that can be transferred through the communication medium,
in a fixed amount of time. Bandwidth is measured in Hz.
Throughput is the amount of data that is actually transmitted between two computers. It is
specified in bps. Throughput is affected by the distance between the connected computers.
Analog and digital signals are the two types of signals that are used for carrying information
over a transmission medium.
Modulation is the superimposing of signal carrying data onto the carrier wave. Demodulation is
segregation of data signal and carrier signal from the modulated carrier wave.
Modem is a device that has both a modulator and a demodulator.