Module 1 (Notes)
Module 1 (Notes)
MODULE-1
NETWORKING FUNDAMENTALS
NETWORK:
• A network is a group of two or more devices (Nodes) that are interconnected with each
other using a communication link/channel.
• A network is a collection of computers, servers, mainframes, network devices,
peripherals, or other devices connected to one another to allow the sharing of data.
• An excellent example of a network is the Internet, which connects millions of people all
over the world.
DATA COMMUNICATIONS: Is the exchange of data between two devices via some form of
transmission medium such as a wire cable.
2. Accuracy. The system must deliver the data accurately. Data that have been altered in
transmission and left uncorrected are unusable.
3. Timeliness. The system must deliver data in a timely manner. Data delivered late are
useless. In the case of video and audio, timely delivery means delivering data as they are
produced, in the same order that they are produced, and without significant delay. This
kind of delivery is called real-time transmission.
4. Jitter. Jitter refers to the variation in the packet arrival time. It is the uneven delay in
the delivery of audio or video packets.
Data Flow:
Communication between two devices can be simplex, half-duplex, or full-duplex as shown
below:
Simplex
• In simplex mode, the communication is unidirectional, as on a one-way street. Only one
of the two devices on a link can transmit; the other can only receive.
• Keyboards and traditional monitors are examples of simplex devices. The keyboard can
only introduce input; the monitor can only accept output. The simplex mode can use the
entire capacity of the channel to send data in one direction.
Half-Duplex
• In half-duplex mode, each station can both transmit and receive, but not at the same
time. When one device is sending, the other can only receive, and vice versa.
• The half-duplex mode is like a one-lane road with traffic allowed in both directions.
When cars are traveling in one direction, cars going the other way must wait.
• In a half-duplex transmission, the entire capacity of a channel is taken over by whichever
of the two devices is transmitting at the time. Walkie-talkies and CB (citizens band)
radios are both half-duplex systems.
Full-Duplex
• In full-duplex mode (also called duplex), both stations can transmit and receive
simultaneously.
• The full-duplex mode is like a two-way street with traffic flowing in both directions at
the same time. In full-duplex mode, signals going in one direction share the capacity of
the link with signals going in the other direction.
• This sharing can occur in two ways: Either the link must contain two physically separate
transmission paths, one for sending and the other for receiving; or the capacity of the
channel is divided between signals traveling in both directions.
• One common example of full-duplex communication is the telephone network.
Network Criteria:
Performance
• Performance can be measured in many ways, including transit time and response time.
• Transit time is the amount of time required for a message to travel from one device to
another. Response time is the elapsed time between an inquiry and a response.
• Performance is often evaluated by two networking metrics: throughput and delay. We
often need more throughput and less delay.
Reliability
• In addition to accuracy of delivery, network reliability is measured by the frequency of
failure, the time it takes a link to recover from a failure, and the network’s robustness in a
catastrophe.
Security
• Network security issues include protecting data from unauthorized access, protecting
data from damage and development, and implementing policies and procedures for
recovery from breaches and data losses.
Type of Connection
Point-to-Point
• A point-to-point connection provides a dedicated link between two devices. The entire
capacity of the link is reserved for transmission between those two devices.
• Most point-to-point connections use an actual length of wire or cable to connect the two
ends, but other options, such as microwave or satellite links, are also possible
• Example: When we change television channels by infrared remote control, we are
establishing a point-to-point connection between the remote control and the television’s
control system.
Multipoint
A multipoint (also called multidrop) connection is one in which more than two specific
devices share a single link.
In a multipoint environment, the capacity of the channel is shared, either spatially or temporally.
If several devices can use the link simultaneously, it is a spatially shared connection. If users
must take turns, it is a timeshared connection.
TOPOLOGY:
Topology refers to the way in which a network is laid out physically.
Two or more devices connect to a link; two or more links form a topology. The topology of a
network is the geometric representation of the relationship of all the links and linking devices
(usually called nodes) to one another.
There are four basic topologies possible: mesh, star, bus, ring & hybrid.
BUS TOPOLOGY:
Representation:
Explanation:
• A bus topology is multipoint. One long cable act as a backbone to link all the devices in
a network.
• Nodes are connected to the bus cable by drop lines and taps. A drop line is a connection
running between the device and the main cable. A tap is a connector that either splices
into the main cable or punctures the sheathing of a cable to create a contact with the
metallic core.
• As a signal travels along the backbone, some of its energy is transformed into heat.
Therefore, it becomes weaker and weaker as it travels farther and farther. For this reason,
there is a limit on the number of taps a bus can support and on the distance between those
taps.
Advantages:
• Include ease of installation. Backbone cable can be laid along the most efficient path,
then connected to the nodes by drop lines of various lengths. In this way, a bus uses less
cabling than mesh or star topologies.
Disadvantages:
STAR TOPOLOGY:
Representation:
Explanation:
• In a star topology, each device has a dedicated point-to-point link only to a central
controller, usually called a hub. The devices are not directly linked to one another.
Unlike a mesh topology, a star topology does not allow direct traffic between devices.
• The controller acts as an exchange: If one device wants to send data to another, it sends
the data to the controller, which then relays the data to the other connected device.
• A star topology is less expensive than a mesh topology. In a star, each device needs only
one link and one I/O port to connect it to any number of others. This factor also makes it
easy to install and reconfigure.
Advantages:
• Far less cabling needs to be housed, and additions, moves, and deletions involve only one
connection: between that device and the hub.
• Other advantages include robustness. If one link fails, only that link is affected. All other
links remain active. This factor also lends itself to easy fault identification and fault
isolation. As long as the hub is working, it can be used to monitor link problems and
bypass defective links.
Dis-advantages:
• One big disadvantage of a star topology is the dependency of the whole topology on one
single point, the hub. If the hub goes down, the whole system is dead.
• Although a star requires far less cable than a mesh, each node must be linked to a central
hub. For this reason, often more cabling is required in a star than in some other topologies
(such as ring or bus).
• The star topology is used in local-area networks (LANs).
MESH TOPOLOGY
Representation:
Explanation:
• In a mesh topology, every device has a dedicated point-to-point link to every other
device. The term dedicated means that the link carries traffic only between the two
devices it connects.
• To find the number of physical links in a fully connected mesh network with n nodes, we
first consider that each node must be connected to every other node. Node 1 must be
connected to n – 1 node, node 2 must be connected to n – 1 node, and finally node n must
be connected to n – 1 node. We need n (n – 1) physical links.
• However, if each physical link allows communication in both directions (duplex mode),
we can divide the number of links by 2. In other words, we can say that in a mesh
topology, we need n (n – 1) / 2 duplex-mode links.
Advantages:
• First, the use of dedicated links guarantees that each connection can carry its own data
load, thus eliminating the traffic problems that can occur when links must be shared by
multiple devices.
• Second, a mesh topology is robust. If one link becomes unusable, it does not incapacitate
the entire system. Third, there is the advantage of privacy or security. When every
message travel along a dedicated line, only the intended recipient sees it. Physical
boundaries prevent other users from gaining access to messages.
• Finally, point-to-point links make fault identification and fault isolation easy. Traffic can
be routed to avoid links with suspected problems. This facility enables the network
manager to discover the precise location of the fault and aids in finding its cause and
solution.
Dis-advantages:
• The main disadvantages of a mesh are related to the amount of cabling and the number of
I/O ports required. First, because every device must be connected to every other device,
installation and reconnection are difficult.
• Second, the sheer bulk of the wiring can be greater than the available space (in walls,
ceilings, or floors) can accommodate.
• Finally, the hardware required to connect each link (I/O ports and cable) can be
prohibitively expensive. For these reasons a mesh topology is usually implemented in a
limited fashion, for example, as a backbone connecting the main computers of a hybrid
network that can include several other topologies.
• One practical example of a mesh topology is the connection of telephone regional offices
in which each regional office needs to be connected to every other regional office.
RING TOPOLOGY:
Representation:
Explanation:
• In a ring topology, each device has a dedicated point-to-point connection with only the
two devices on either side of it. A signal is passed along the ring in one direction, from
device to device, until it reaches its destination.
• Each device in the ring incorporates a repeater. When a device receives a signal intended
for another device, its repeater regenerates the bits and passes them along.
• A ring is relatively easy to install and reconfigure. Each device is linked to only its
immediate neighbors (either physically or logically). To add or delete a device requires
changing only two connections.
• The only constraints are media and traffic considerations (maximum ring length and
number of devices). In addition, fault isolation is simplified.
• Generally, in a ring a signal is circulating at all times. If one device does not receive a
signal within a specified period, it can issue an alarm. The alarm alerts the network
operator to the problem and its location.
Advantages:
• All data flows in one direction, reducing the chance of packet collisions.
• A network server is not needed to control network connectivity between each
workstation.
• Data can transfer between workstations at high speeds.
• Additional workstations can be added without impacting performance of the network.
Dis-advantages:
• Unidirectional traffic can be a disadvantage. In a simple ring, a break in the ring (such as
a disabled station) can disable the entire network. This weakness can be solved by using a
dual ring or a switch capable of closing off the break.
• All data being transferred over the network must pass through each workstation on the
network, which can make it slower than a star topology.
• The entire network will be impacted if one workstation shuts down.
• The hardware needed to connect each workstation to the network is more expensive than
Ethernet cards and hubs/switches.
Hybrid Topology:
Explanation:
• A hybrid topology is a type of network topology that uses two or more differing network
topologies. These topologies include a mix of bus topology, mesh topology, ring
topology, star topology, and tree topology.
Representation:
Advantages:
Reliable:
• It has far better fault tolerance. The section where fault is found could possibly be singled
out from the rest of network and required restorative steps could be taken, without
impacting the working of rest of the network.
Effective:
• The most important advantage of this topology is that the weakness of the different
topologies connected are disregarded and only the strengths are taken into consideration.
For instance, ring topology has good data reliability and star topology has high tolerance
capability, so these two functions quite well in hybrid star-ring topology.
Flexible:
• One of the key advantages of this topology is its flexibility. The topology is created, so
that it can be implemented for a variety of distinct network environment. Hybrid Network
can be created in line with the demands of the corporation and by maximizing the
available resources.
Dis-advantages:
Complexity:
• Due to the fact that different topologies connect in a hybrid topology, managing the
topology gets challenging. It’s not easy to design this type of architecture and it’s a
difficult job for designers. Configuration and installation process need to be very
efficient.
Expensive:
• The network hubs needed for hybrid topology networking are costly to purchase and
maintain. The cost of this topology is higher in comparison to the other topologies. The
hubs used to connect two distinct networks are expensive.
NETWORK TYPES:
• A local-area network (LAN) is a computer network that spans a relatively small area.
Most often, a LAN is confined to a single room, building or group of buildings, however,
one LAN can be connected to other LANs over any distance via telephone lines and radio
waves.
• A local area network (LAN) is usually privately owned and connects some hosts in a
single office, building, or campus. Depending on the needs of an organization, a LAN can
be as simple as two PCs and a printer in someone’s home office, or it can extend
throughout a company and include audio and video devices.
• Each host in a LAN has an identifier, an address that uniquely defines the host in the
LAN. A packet sent by a host to another host carries both the source host’s and the
destination host’s addresses.
• Representation:
• In the past, all hosts in a network were connected through a common cable, which meant
that a packet sent from one host to another was received by all hosts.
• The intended recipient kept the packet; the others dropped the packet.
• Today, most LANs use a smart connecting switch, which is able to recognize the
destination address of the packet and guide the packet to its destination without sending it
to all other hosts.
• The switch alleviates the traffic in the LAN and allows more than one pair to
communicate with each other at the same time if there is no common source and
destination among them.
Examples of LAN:
• Home Network
• Office Network
• Personal Network
• A metropolitan area network (MAN) is a network that interconnects users with computer
resources in a geographic area or region larger than that covered by even a large local
area network (LAN) but smaller than the area covered by a wide area network (WAN).
• The term is applied to the interconnection of networks in a city into a single larger
network (which may then also offer efficient connection to a wide area network).
• It is also used to mean the interconnection of several local area networks by bridging
them with backbone lines.
• MANs are extremely efficient and provide fast communication via high-speed carriers,
such as fiber optic cables.
• The working mechanism of a MAN is similar to an Internet Service Provider (ISP), but a
MAN is not owned by a single organization. Like a WAN, a MAN provides shared
network connections to its users.
• A MAN mostly works on the data link layer, which is Layer 2 of the Open Systems
Interconnection (OSI) model.
Representation:
• A wide area network (WAN) is a network that exists over a large-scale geographical area.
A WAN connects different smaller networks, including local area networks (LANs) and
metro area networks (MANs).
• This ensures that computers and users in one location can communicate with computers
and users in other locations. WAN implementation can be done either with the help of the
public transmission system or a private network.
• A wide area network (WAN) is also an interconnection of devices capable of
communication.
• A WAN has a wider geographical span, spanning a town, a state, a country, or even the
world.
• A WAN interconnects connecting devices such as switches, routers, or modems.
• A WAN is normally created and run by communication companies and leased by an
organization that uses it.
Point-to-Point WAN:
• A point-to-point WAN is a network that connects two communicating devices through a
transmission media (cable or air).
Switched WAN:
• A switched WAN is a network with more than two ends.
• We can say that a switched WAN is a combination of several point-to-point WANs that
are connected by switches.
• As the name indicates, a switched WAN network is used to connect multiple end nodes
through a common WAN network. The end nodes connect to a switched WAN network
to either reach other nodes connected to the switched network or to connect to the public
Internet.
• X.25, Frame Relay, ATM, MPLS are examples of popular switched WAN protocols.
• All switched WAN networks work on the principle of VC (Virtual Circuit) based packet
switching.
the role as gateway. A PAN may be wireless or carried over wired interfaces such as
USB.
• A personal area network (PAN) is the interconnection of information technology devices
within the range of an individual person, typically within a range of 10 meters.
• For example, a person traveling with a laptop, a personal digital assistant (PDA), and a
portable printer could interconnect them without having to plug anything in, using some
form of wireless technology. Typically, this kind of personal area network could also be
interconnected without wires to the Internet or other networks.
Representation:
.
• Wireless personal area network (WPAN) which is virtually a synonym since almost
any personal area network would need to function wirelessly.
• Conceptually, the difference between a PAN and a wireless LAN is that the former tends
to be centered around one person while the latter is a local area network (LAN) that is
connected without wires and serving multiple users.
Internetwork:
• When two or more networks are connected, they make an internetwork, or internet.
• As an example, assume that an organization has two offices, one on the east coast and the
other on the west coast. Each office has a LAN that allows all employees in the office to
communicate with each other.
• To make the communication between employees at different offices possible, the
management leases a point-to-point dedicated WAN from a service provider, such as a
telephone company, and connects the two LANs.
• Now the company has an internetwork, or a private internet (with lowercase i).
Communication between offices is now possible.
• When a host in the west coast office sends a message to another host in the same office,
the router blocks the message, but the switch directs the message to the destination.
• On the other hand, when a host on the west coast sends a message to a host on the east
coast, router R1 routes the packet to router R2, and the packet reaches the destination.
Advantages of Networking:
5. It is highly flexible.
• Peers make a portion of their resources, such as processing power, disk storage or
network bandwidth, directly available to other network participants, without the need for
central coordination by servers or stable hosts. Peers are both suppliers and consumers of
resources,
• In contrast to the traditional client-server model in which the consumption and supply of
resources is divided.
Client-Server Architecture:
JAIN SCHOOL OF CS & IT 19
COMPUTER NETWORKS 16BCA3C03
• Client/server architecture is a computing model in which the server hosts, delivers and
manages most of the resources and services to be consumed by the client.
• This type of architecture has one or more client computers connected to a central server
over a network or internet connection. This system shares computing resources.
• Transmission media are actually located below the physical layer and are directly
controlled by the physical layer.
• A transmission medium can be broadly defined as anything that can carry information
from a source to a destination. For example, the transmission medium for two people
having a dinner conversation is the air.
• The air can also be used to convey the message in a smoke signal or semaphore. For a
written message, the transmission medium might be a mail carrier, a truck, or an airplane.
• The transmission medium is usually free space, metallic cable, or fiber-optic cable. The
information is usually a signal that is the result of a conversion of data from another
form.
• In telecommunications, transmission media can be divided into two broad categories:
guided and unguided.
• Guided media include twisted-pair cable, coaxial cable, and fiber-optic cable.
GUIDED MEDIA
• Guided media, which are those that provide a conduit from one device to another, include
twisted-pair cable, coaxial cable, and fiber-optic cable.
• A signal traveling along any of these media is directed and contained by the physical
limits of the medium.
• Twisted-pair and coaxial cable use metallic (copper) conductors that accept and transport
• signals in the form of electric current.
• Optical fiber is a cable that accepts and transports signals in the form of light.
Twisted-Pair Cable:
• A twisted pair consists of two conductors (normally copper), each with its own plastic
insulation, twisted together, as shown.
• One of the wires is used to carry signals to the receiver, and the other is used only as a
ground reference. The receiver uses the difference between the two.
• In addition to the signal sent by the sender on one of the wires, interference (noise) and
crosstalk may affect both wires and create unwanted signals.
• If the two wires are parallel, the effect of these unwanted signals is not the same in both
wires because they are at different locations relative to the noise or crosstalk sources
(e.g., one is closer and the other is farther).
• This results in a difference at the receiver. By twisting the pairs, a balance is maintained.
For example, suppose in one twist, one wire is closer to the noise source and the other is
farther; in the next twist, the reverse is true.
• Twisting makes it probable that both wires are equally affected by external influences
(noise or crosstalk). This means that the receiver, which calculates the difference between
the two, receives no unwanted signals.
• The unwanted signals are mostly canceled out. From the above discussion, it is clear that
the number of twists per unit of length (e.g., inch) has some effect on the quality of the
cable.
The Electronic Industries Association (EIA) has developed standards to classify unshielded
twisted-pair cable into categories.
Connectors:
• The most common UTP connector is RJ45 (RJ stands for registered jack), as shown.
• The RJ45 is a keyed connector, meaning the connector can be inserted in only one way.
Performance:
• One way to measure the performance of twisted-pair cable is to compare attenuation
versus frequency and distance.
Applications:
• Twisted-pair cables are used in telephone lines to provide voice and data channels.
• The local loop—the line that connects subscribers to the central telephone office—
commonly consists of unshielded twisted-pair cables.
• The DSL lines that are used by the telephone companies to provide high-data-rate
connections also use the high-bandwidth capability of unshielded twisted-pair cables.
• Local-area networks, such as 10Base-T and 100Base-T, also use twisted-pair cables.
Coaxial Cable:
• Coaxial cable (or coax) carries signals of higher frequency ranges than those in twisted
pair cable, in part because the two media are constructed quite differently.
• Instead of having two wires, coax has a central core conductor of solid or stranded wire
(usually copper) enclosed in an insulating sheath, which is, in turn, encased in an outer
conductor of metal foil, braid, or a combination of the two.
• The outer metallic wrapping serves both as a shield against noise and as the second
conductor, which completes the circuit.
• This outer conductor is also enclosed in an insulating sheath, and the whole cable is
protected by a plastic cover.
• Coaxial cables are categorized by their Radio Government (RG) ratings. Each RG
number denotes a unique set of physical specifications, including the wire gauge of the
inner conductor, the thickness and type of the inner insulator, the construction of the
shield, and the size and type of the outer casing.
• The BNC connector is used to connect the end of the cable to a device, such as a TV set.
• The BNC T connector is used in Ethernet networks to branch out to a connection to a
computer or other device.
• The BNC terminator is used at the end of the cable to prevent the reflection of the signal.
Applications:
• Coaxial cable was widely used in analog telephone networks where a single coaxial
network could carry 10,000 voice signals.
• Later it was used in digital telephone networks where a single coaxial cable could carry
digital data up to 600 Mbps. However, coaxial cable in telephone networks has largely
been replaced today with fiberoptic cable.
• Cable TV networks also use coaxial cables. In the traditional cable TV network, the
entire network used coaxial cable.
• Later, however, cable TV providers replaced most of the media with fiber-optic cable;
hybrid networks use coaxial cable only at the network boundaries, near the consumer
premises. Cable TV uses RG-59 coaxial cable.
• Another common application of coaxial cable is in traditional Ethernet LANs.
FIBER-OPTIC CABLE:
• A fiber-optic cable is made of glass or plastic and transmits signals in the form of light.
• To understand optical fiber, we first need to explore several aspects of the nature of light.
• Light travels in a straight line as long as it is moving through a single uniform substance.
• If a ray of light traveling through one substance suddenly enters another substance (of a
different density), the ray changes direction.
• Optical fibers use reflection to guide light through a channel. A glass or plastic core is
surrounded by a cladding of less dense glass or plastic.
• The difference in density of the two materials must be such that a beam of light moving
through the core is reflected off the cladding instead of being refracted into it.
PROPAGATION MODES:
• Current technology supports two modes (multimode and single mode) for propagating
light along optical channels, each requiring fiber with different physical characteristics.
Multimode can be implemented in two forms: step-index or graded-index.
• Multimode is so named because multiple beams from a light source move through the
core in different paths. How these beams move within the cable depends on the structure
of the core.
• In multimode step-index fiber, the density of the core remains constant from the center to
the edges. A beam of light moves through this constant density in a straight line until it
reaches the interface of the core and the cladding.
• At the interface, there is an abrupt change due to a lower density; this alters the angle of
the beam’s motion. The term step-index refers to the suddenness of this change, which
contributes to the distortion of the signal as it passes through the fiber.
• Multimode graded-index fiber, decreases this distortion of the signal through the cable.
The word index here refers to the index of refraction. As we saw above, the index of
refraction is related to density.
• A graded index fiber, therefore, is one with varying densities. Density is highest at the
center of the core and decreases gradually to its lowest at the edge.
SINGLE-MODE:
• Single-mode uses step-index fiber and a highly focused source of light that limits beams
to a small range of angles, all close to the horizontal.
• The single-mode fiber itself is manufactured with a much smaller diameter than that of
multimode fiber, and with substantially lower density (index of refraction). The decrease
in density results in a critical angle that is close enough to 90° to make the propagation of
beams almost horizontal.
• Fiber Sizes Optical fibers are defined by the ratio of the diameter of their core to the
diameter of their cladding, both expressed in micrometers.
CABLE COMPOSITION:
• The outer jacket is made of either PVC or Teflon. Inside the jacket are Kevlar strands to
strengthen the cable.
• Kevlar is a strong material used in the fabrication of bulletproof vests. Below the Kevlar
is another plastic coating to cushion the fiber. The fiber is at the center of the cable, and it
consists of cladding and core.
APPLICATIONS:
• Fiber-optic cable is often found in backbone networks because its wide bandwidth is
cost-effective. Today, with wavelength-division multiplexing (WDM), we can transfer
• data at a rate of 1600 Gbps.
• Some cable TV companies use a combination of optical fiber and coaxial cable, thus
creating a hybrid network. Optical fiber provides the backbone structure while coaxial
cable provides the connection to the user premises.
• This is a cost-effective configuration since the narrow bandwidth requirement at the user
end does not justify the use of optical fiber.
• Local-area networks such as 100Base-FX network (Fast Ethernet) and 1000Base-X also
use fiber-optic cable.
Radio Waves:
• Electromagnetic waves ranging in frequencies between 3 kHz and 1 GHz are normally
called radio waves; waves ranging in frequencies between 1 and 300 GHz are called
microwaves.
• Radio waves, for the most part, are omnidirectional. When an antenna transmits radio
waves, they are propagated in all directions. This means that the sending and receiving
antennas do not have to be aligned.
• A sending antenna sends waves that can be received by any receiving antenna. The
omnidirectional property has a disadvantage, too. The radio waves transmitted by one
antenna are susceptible to interference by another antenna that may send signals using the
same frequency or band.
• Radio waves, particularly those of low and medium frequencies, can penetrate walls. This
characteristic can be both an advantage and a disadvantage. It is an advantage because,
for example, an AM radio can receive signals inside a building.
• It is a disadvantage because we cannot isolate a communication to just inside or outside a
building. The radio wave band is relatively narrow, just under 1 GHz, compared to the
microwave band. When this band is divided into sub-bands, the sub-bands are also
narrow, leading to a low data rate for digital communications.
• Radio waves use omnidirectional antennas that send out signals in all directions.
• Based on the wavelength, strength, and the purpose of transmission, we can have several
types of antennas.
Applications:
• The omnidirectional characteristics of radio waves make them useful for multicasting, in
which there is one sender but many receivers. AM and FM radio, television, maritime
radio, cordless phones, and paging are examples of multicasting.
• Radio waves are used for multicast communications, such as radio and television, and
paging systems.
Microwaves:
• Electromagnetic waves having frequencies between 1 and 300 GHz are called
microwaves.
• Microwave propagation is line-of-sight. Since the towers with the mounted antennas need
to be in direct sight of each other, towers that are far apart need to be very tall.
• The curvature of the earth as well as other blocking obstacles do not allow two short
towers to communicate by using microwaves. Repeaters are often needed for long
distance communication.
• Very high-frequency microwaves cannot penetrate walls. This characteristic can be a
disadvantage if receivers are inside buildings.
• The microwave band is relatively wide, almost 299 GHz. Therefore, wider sub-bands can
be assigned, and a high data rate is possible.
• Use of certain portions of the band requires permission from authorities.
Unidirectional Antenna:
• Microwaves need unidirectional antennas that send out signals in one direction. Two
types of antennas are used for microwave communications: the parabolic dish and the
horn.
• A parabolic dish antenna is based on the geometry of a parabola: Every line parallel to
the line of symmetry (line of sight) reflects off the curve at angles such that all the lines
intersect in a common point called the focus.
• The parabolic dish works as a funnel, catching a wide range of waves and directing them
to a common point. In this way, more of the signal is recovered than would be possible
with a single-point receiver.
• Outgoing transmissions are broadcast through a horn aimed at the dish. The microwaves
hit the dish and are deflected outward in a reversal of the receipt path.
• A horn antenna looks like a gigantic scoop. Outgoing transmissions are broadcast up a
stem (resembling a handle) and deflected outward in a series of narrow parallel beams by
the curved head.
• Received transmissions are collected by the scooped shape of the horn, in a manner
similar to the parabolic dish, and are deflected down into the stem.
Applications:
• Microwaves are used for unicast communication such as cellular telephones, satellite
networks, and wireless LANs.
Infrared:
• Infrared waves, with frequencies from 300 GHz to 400 THz (wavelengths from 1 mm to
770 nm), can be used for short-range communication. Infrared waves, having high
frequencies, cannot penetrate walls.
• This advantageous characteristic prevents interference between one system and another; a
short-range communication system in one room cannot be affected by another system in
the next room.
• When we use our infrared remote control, we do not interfere with the use of the remote
by our neighbors. However, this same characteristic makes infrared signals useless for
long-range communication.
• In addition, we cannot use infrared waves outside a building because the sun’s
rays contain infrared waves that can interfere with the communication.
Applications:
• Infrared signals can be used for short-range communication in a closed area using line-of-
sight propagation.
ROUTER:
• A router is a networking device that forwards data packets between computer networks.
Routers perform the traffic directing functions on the Internet.
• A router is a physical or virtual appliance that passes information between two or more
packet-switched computer networks - analyzing a given data packet's destination IP
address, calculating the best way for it to reach that destination and then forwarding it
accordingly.
• A routing table often specifies a default route, which the router uses whenever it fails to
find a better forwarding option for a given packet. For example, the typical home office
router directs all outbound traffic along a single default route to its internet service
provider (ISP).
• Data sent through the internet, such as a web page or email, is in the form of data packets.
A packet is typically forwarded from one router to another router through the networks
that constitute an internetwork (e.g. the Internet) until it reaches its destination node.
• A router is connected to two or more data lines from different networks. When a data
packet comes in on one of the lines, the router reads the network address information in
the packet to determine the ultimate destination.
• Then, using information in its routing table or routing policy, it directs the packet to the
next network on its journey.
SWITCH:
• A switch is a multi-port bridge with a buffer and a design that can boost its efficiency
(large number of ports imply less traffic) and performance.
• Switch is data link layer device. Switch can perform error checking before forwarding
data, that makes it very efficient as it does not forward packets that have errors and
forward good packets selectively to correct port only.
• In other words, switch divides collision domain of hosts, but broadcast domain remains
same.
• A network switch is a multiport network bridge that uses hardware addresses to process
and forward data at the data link layer (layer 2) of the OSI model. Some switches can also
process data at the network layer (layer 3) by additionally incorporating routing
functionality. Such switches are commonly known as layer-3 switches or multilayer
switches.
• A switch is more intelligent than an Ethernet hub, which simply retransmits packets out
of every port of the hub except the port on which the packet was received, unable to
distinguish different recipients, and achieving an overall lower network efficiency.
• A switch is a device in a computer network that connects other devices together. Multiple
data cables are plugged into a switch to enable communication between different
networked devices.
• Switches manage the flow of data across a network by transmitting a received network
packet only to the one or more devices for which the packet is intended.
• Each networked device connected to a switch can be identified by its network address,
allowing the switch to direct the flow of traffic maximizing the security and efficiency of
the network.
HUB:
• A hub is basically a multiport repeater. A hub connects multiple wires coming from
different branches, for example, the connector in star topology which connects different
stations.
• Hubs cannot filter data, so data packets are sent to all connected devices. In other words,
collision domain of all hosts connected through Hub remains one. Also, they do not have
intelligence to find out best path for data packets which leads to inefficiencies and
wastage.
Types of Hub:
• Active Hub: - These are the hubs which have their own power supply and can clean,
boost and relay the signal along the network. It serves both as a repeater as well as wiring
center. These are used to extend maximum distance between nodes.
• Passive Hub: - These are the hubs which collect wiring from nodes and power supply
from active hub. These hubs relay signals onto the network without cleaning and boosting
them and can’t be used to extend distance between nodes.
REPEATER:
• A repeater operates at the physical layer. Its job is to regenerate the signal over the same
network before the signal becomes too weak or corrupted so as to extend the length to
which the signal can be transmitted over the same network.
• An important point to be noted about repeaters is that they do not amplify the signal.
When the signal becomes weak, they copy the signal bit by bit and regenerate it at the
original strength. It is a 2-port device.
Gateway:
• A gateway, as the name suggests, is a passage to connect two networks together that may
work upon different networking models.
• They basically work as the messenger agents that take data from one system, interpret it,
and transfer it to another system.
• Gateways are also called protocol converters and can operate at any network layer.
Gateways are generally more complex than switch or router.
Modem:
• Modem is abbreviation for Modulator – Demodulator.
• is a device or program that enables a computer to transmit data over, for example,
telephone or cable lines.
• Computer information is stored digitally, whereas information transmitted over telephone
lines is transmitted in the form of analog waves. A modem converts between these two
forms.
• When an analog facility is used for data communication between two digital devices
called Data Terminal Equipment (DTE), modems are used at each end. DTE can be a
terminal or a computer.
• An open system is a set of protocols that allows any two different systems to
communicate regardless of their underlying architecture.
• The purpose of the OSI model is to show how to facilitate communication between
different systems without requiring changes to the logic of the underlying hardware and
software.
• The OSI model is a layered framework for the design of network systems that allows
communication between all types of computer systems. It consists of seven separates but
related layers, each of which defines a part of the process of moving information across a
network
JAIN SCHOOL OF CS & IT 38
COMPUTER NETWORKS 16BCA3C03
Bit synchronization:
• The physical layer provides the synchronization of the bits by providing a clock. This
clock controls both sender and receiver thus providing synchronization at bit level.
Bit rate control:
• The Physical layer also defines the transmission rate i.e. the number of bits sent per
second.
Physical topologies:
• Physical layer specifies the way in which the different, devices/nodes are arranged in a
network i.e. bus, star or mesh topology.
Transmission mode:
• Physical layer also defines the way in which the data flows between the two connected
devices. The various transmission modes possible are: Simplex, half-duplex and full-
duplex.
*Hub, Repeater, Modem, Cables are Physical Layer devices.
• The main function of this layer is to make sure data transfer is error free from one node to
another, over the physical layer.
• When a packet arrives in a network, it is the responsibility of DLL to transmit it to the
Host using its MAC address.
• Data Link Layer is divided into two sub layers:
▪ Logical Link Control (LLC)
▪ Media Access Control (MAC)
• The packet received from Network layer is further divided into frames depending on the
frame size of NIC (Network Interface Card). DLL also encapsulates Sender and
Receiver’s MAC address in the header.
Framing:
• Framing is a function of the data link layer. It provides a way for a sender to transmit a
set of bits that are meaningful to the receiver. This can be accomplished by attaching
special bit patterns to the beginning and end of the frame.
• Physical addressing:
After creating frames, Data link layer adds physical addresses (MAC address) of sender
and/or receiver in the header of each frame.
• Error control:
Data link layer provides the mechanism of error control in which it detects and
retransmits damaged or lost frames.
• Flow Control:
The data rate must be constant on both sides else the data may get corrupted thus, flow
control coordinates that amount of data that can be sent before receiving
acknowledgement.
• Access control:
When a single communication channel is shared by multiple devices, MAC sub-layer of
data link layer helps to determine which device has control over the channel at a given
time.
*Packet in Data Link layer is referred as Frame.
*Data Link layer is handled by the NIC (Network Interface Card) and device drivers of
host machines.
*Switch & Bridge are Data Link Layer devices.
• Routing: The network layer protocols determine which route is suitable from source to
destination. This function of network layer is known as routing.
• Logical Addressing: In order to identify each device on internetwork uniquely, network
layer defines an addressing scheme. The sender & receiver’s IP address are placed in the
header by network layer. Such an address distinguishes each device uniquely and
universally.
• At sender’s side:
• Transport layer receives the formatted data from the upper layers, performs Segmentation
and also implements Flow & Error control to ensure proper data transmission.
• It also adds Source and Destination port number in its header and forwards the segmented
data to the Network Layer.
• Note: The sender needs to know the port number associated with the receiver’s
application.
• Generally, this destination port number is configured, either by default or manually.
• For example, when a web application makes a request to a web server, it typically uses
port number 80, because this is the default port assigned to web applications. Many
applications have default port assigned.
• At receiver’s side:
• Transport Layer reads the port number from its header and forwards the Data which it has
received to the respective application.
• It also performs sequencing and reassembling of the segmented data.
*All the below 3 layers (including Session Layer) are integrated as a single layer in TCP/IP
model
as “Application Layer”.
*Implementation of these 3 layers is done by the network application itself. These are also
known
as Upper Layers or Software Layers.
Encryption/ Decryption:
• Data encryption translates the data into another form or code.
• The encrypted data is known as the cipher text and the decrypted data is known as plain
text. A key value is used for encrypting as well as decrypting data.
Compression:
• Reduces the number of bits that need to be transmitted on the network.
• At the very top of the OSI Reference Model stack of layers, we find Application layer
which is implemented by the network applications.
• These applications produce the data, which has to be transferred over the network.
• This layer also serves as a window for the application services to access the network and
for displaying the received information to the user.
TCP/IP Model:
• The OSI Model we just looked at is just a reference/logical model. It was designed to
describe the functions of the communication system by dividing the communication
procedure into smaller and simpler components.
• But when we talk about the TCP/IP model, it was designed and developed by Department
of Defense (DoD) in 1960s and is based on standard protocols. It stands for Transmission
Control Protocol/Internet Protocol.
• The TCP/IP model is a concise version of the OSI model. It contains four layers, unlike
seven layers in the OSI model.
• The layers are:
▪ Process/Application Layer
▪ Host-to-Host/Transport Layer
▪ Internet Layer
▪ Network Access/Link Layer
2: Internet Layer:
• An internet layer is the second layer of the TCP/IP model.
ARP Protocol:
physical address in the form of ARP reply. The recipient adds the physical address both
to its cache memory and to the datagram header.
• Address Resolution Protocol (ARP) is a protocol for mapping an Internet Protocol
address (IP address) to a physical machine address that is recognized in the local
network. For example, in IP Version 4, the most common level of IP in use today, an
address is 32 bits long.
• In an Ethernet local area network, however, addresses for attached devices are 48 bits
long. (The physical machine address is also known as a Media Access Control or MAC
address.) A table, usually called the ARP cache, is used to maintain a correlation between
each MAC address and its corresponding IP address. ARP provides the protocol rules for
making this correlation and providing address conversion in both directions.
• When an incoming packet destined for a host machine on a particular local area network
arrives at a gateway, the gateway asks the ARP program to find a physical host or MAC
address that matches the IP address.
• The ARP program looks in the ARP cache and, if it finds the address, provides it so that
the packet can be converted to the right packet length and format and sent to the machine.
• If no entry is found for the IP address, ARP broadcasts a request packet in a special
format to all the machines on the LAN to see if one machine knows that it has that IP
address associated with it.
• A machine that recognizes the IP address as its own returns a reply so indicating. ARP
updates the ARP cache for future reference and then sends the packet to the MAC
address that replied.
*There is a Reverse ARP (RARP) for host machines that don't know their IP address. RARP
enables them to request their IP address from the gateway's ARP cache.
ICMP Protocol:
• The related ping utility is implemented using the ICMP echo request and echo reply
messages.
• ICMP Test: ICMP Test is used to test whether the destination is reachable or not.
• ICMP Reply: ICMP Reply is used to check whether the destination device is responding
or not.
• The core responsibility of the ICMP protocol is to report the problems, not correct them.
The responsibility of the correction lies with the sender.
• ICMP can send the messages only to the source, but not to the intermediate routers
because the IP datagram carries the addresses of the source and destination but not of the
router that it is passed to.
3: Transport Layer:
• The transport layer is responsible for the reliability, flow control, and correction of data
which is being sent over the network.
• The two protocols used in the transport layer are User Datagram protocol and
Transmission control protocol.
• TCP is a reliable protocol as it detects the error and retransmits the damaged frames.
Therefore, it ensures all the segments must be received and acknowledged before the
transmission is considered to be completed and a virtual circuit is discarded.
• At the sending end, TCP divides the whole message into smaller units known as segment,
and each segment contains a sequence number which is required for reordering the
frames to form an original message.
• At the receiving end, TCP collects all the segments and reorders them based on sequence
numbers.
4: Application Layer:
• An application layer is the topmost layer in the TCP/IP model.
• It is responsible for handling high-level protocols, issues of representation.
• This layer allows the user to interact with the application.
• When one application layer protocol wants to communicate with another application
layer, it forwards its data to the transport layer.
• HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us to access
the data over the World Wide Web. It transfers the data in the form of plain text, audio,
video. It is known as a Hypertext transfer protocol as it has the efficiency to use in a
hypertext environment where there are rapid jumps from one document to another.
• SNMP: SNMP stands for Simple Network Management Protocol. It is a framework used
for managing the devices on the internet by using the TCP/IP protocol suite.
• SMTP: SMTP stands for Simple mail transfer protocol. The TCP/IP protocol that
supports the e-mail is known as a Simple mail transfer protocol. This protocol is used to
send the data to another e-mail address.
• DNS: DNS stands for Domain Name System. An IP address is used to identify the
connection of a host to the internet uniquely. But people prefer to use the names instead
of addresses. Therefore, the system that maps the name to the address is known as
Domain Name System.
• FTP: FTP stands for File Transfer Protocol. FTP is a standard internet protocol used for
transmitting the files from one computer to another computer.