Unit-1 (Part-B)
Unit-1 (Part-B)
BY :- NEERJA ARORA
Summary of OSI Layers
TCP/IP Protocol Suite
Unit-1: Physical Layer
Types of connections
Network Topology design
Transmission media
Signal Transmission and encoding
Network performance and impairments
Switching techniques
Multiplexing
Physical Structures
Physical Topology
Physical 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:
1. Mesh
2. Star
3. Bus,
4. Ring
Mesh topology
One practical example:- the connection of telephone regional offices in which each regional
office needs to be connected to every other regional office.
advantages disadvantages
use of dedicated links guarantees that each connection Huge amount of cabling and the number of I/O
can carry its own data load, thus eliminating the traffic ports required
problems.
every device must be connected to every other
It is robust. If one link becomes unusable, it does not device, installation and reconnection are difficult.
incapacitate the entire system.
the sheer bulk of the wiring can be greater than the
there is the advantage of privacy or security. When available space can accommodate.
every message travels along a dedicated line, only the
Finally, the hardware required to connect each link
intended recipient sees it.
(I/O ports and cable) can be prohibitively
point-to-point links make fault identification and fault
expensive.
isolation easy. Traffic can be re-routed to avoid links
with suspected problems.
Star Topology
Bus topology is multipoint unlike Mesh and Star topology. One long cable acts 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
ease of installation disadvantages
difficult to add new devices. As adding new
Backbone cable can be laid along the most efficient
path, then connected to the nodes by drop lines of devices may require modification or replacement
various lengths. of the backbone
uses less cabling than mesh or star topologies. difficult reconnection and fault isolation
In a star, for example, four network devices in the same Signal reflection at the taps can cause
room require four lengths of cable reaching all the way to
the hub.
degradation in quality.
No robustness: fault or break in the bus cable
In a bus, this redundancy is eliminated. Only the
backbone cable stretches through the entire facility. Each stops all transmission, even between devices on
drop line has to reach only as far as the nearest point on the same side of the problem.
the backbone.
advantages disadvantages
easy to install and reconfigure. Each device is
linked to only its immediate neighbors (either only constraints are media and traffic
physically or logically). To add or delete a device considerations (maximum ring length and number
requires changing only two connections. of devices).
as a signal is circulating in a ring at all times, unidirectional traffic can be a disadvantage.
fault isolation is easy 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
Ring Topology
• Transmission media is a communication channel that carries the information from the
sender to the receiver.
• The information is usually a electromagnetic signal that is the result of a conversion of
data(to be transmitted) from another form(in bits format).
• It provides a physical path between transmitter and receiver in data communication.
• The transmission media is available in the lowest layer of the OSI reference model,
i.e., Physical layer.
• The characteristics and quality of data transmission are determined by the
characteristics of medium and signal.
Transmission media can be divided into two broad categories: guided and unguided.
• Guided − In guided media, transmitted data travels through cabling system that has a
fixed path. A signal traveling along any of these media is directed and contained by the
physical limits of the medium.
For example: copper wires, fibre optic wires, etc.
• Unguided − In unguided media, transmitted data travels through free space in form of
electromagnetic signal.
For example: radio waves, lasers, etc.
Each transmission media has its own advantages and disadvantages in terms of
bandwidth, speed, delay, cost per bit, ease of installation and maintenance, etc.
Twisted-Pair Cable
Copper wires are the most common wires used for transmitting signals
because of good performance at low costs.
They are most commonly used in telephone lines.
However, if two or more wires are lying together, they can interfere with
each other’s signals. To reduce this electromagnetic interference, pair of
copper wires are twisted together in helical shape like a DNA molecule.
Such twisted copper wires are called twisted pair.
To reduce interference between nearby twisted pairs, the twist rates are
different for each pair.
Up to 25 twisted pair are put together in a protective covering to form
twisted pair cables that are the backbone of telephone systems and
Ethernet networks.
Advantages of twisted pair cable Disadvantages of twisted pair cable
Twisted pair cable are the oldest and most popular • Signal cannot travel long distances
cables all over the world. This is due to the many without repeaters
advantages that they offer − • High error rate for distances greater
• Trained personnel easily available due to shallow
than 100m
learning curve
• Very thin and hence breaks easily
• Can be used for both analog and digital transmissions
• Not suitable for broadband connections
• Least expensive for short distances
• Entire network does not go down if a part of network
is damaged
To counter the tendency of twisted pair cables to pick up noise signals, wires are shielded in the following
three ways −
Each twisted pair is shielded.
Set of multiple twisted pairs in the cable is shielded.
Each twisted pair and then all the pairs are shielded.
Such twisted pairs are called shielded twisted pair (STP) cables.
The wires that are not shielded but simply bundled together in a protective sheath are called unshielded
twisted pair (UTP) cables. These cables can have maximum length of 100 metres.
Shielding makes the cable bulky, so UTP are more popular than STP. UTP cables are used as the last mile
network connection in homes and offices.
Coaxial Cables
• Thin glass or plastic threads used to transmit data using light waves are
called optical fibre.
• Light Emitting Diodes (LEDs) or Laser Diodes (LDs) emit light waves at the source,
which is read by a detector at the other end.
• Optical fibre cable has a bundle of such threads or fibres bundled together in a
protective covering.
if the angle of incidence I (the angle the ray makes with the line perpendicular to the interface between the
two substances) is less than the critical angle, the ray refracts and moves closer to the surface.
If the angle of incidence is equal to the critical angle, the light bends along the interface.
If the angle is greater than the critical angle, the ray reflects (makes a turn) and travels again in the denser
substance.
Each fibre is made up of these three layers,
starting with the innermost layer −
Optical fibre is fast replacing copper wires because of these advantages that it
offers −
• High bandwidth
• Immune to electromagnetic interference
• Suitable for industrial and noisy areas
• Signals carrying data can travel long distances without weakening
Disadvantages of Optical Fibre
Despite long segment lengths and high bandwidth, using optical fibre may not be a
viable option for every one due to these disadvantages −
• Optical fibre cables are expensive
• Sophisticated technology required for manufacturing, installing and maintaining
optical fibre cables
• Light waves are unidirectional, so two frequencies are required for full duplex
transmission
UNGUIDED MEDIA: WIRELESS
2) Sky propagation
Higher-frequency radio waves radiate upward into the ionosphere (the layer of atmosphere where particles
exist as ions) where they are reflected back to earth.
This type of transmission allows for greater distances with lower output power.
3) line-or-sight propagation
•very high-frequency signals are transmitted in straight lines directly from antenna to antenna.
• Antennas must be directional, facing each other, and either tall enough or close enough
together not to be affected by the curvature of the earth.
Types of wireless media
1) Radio Waves
ranging in frequencies between 3 kHz and 1 GHz are normally called radio waves.
Radio waves, for the most part, are Omni directional.
Omni directional, propagate in all direction.
Radio waves propagate in the sky mode, can travel long distances.
radio wave band is relatively narrow, just under 1 GHz, compared to the microwave band.
Omni directional Antenna
Omni directional 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.
Types of radio waves
frequencies from 300 GHz to 400 THz (wavelengths from 1 mm to 770 nm), can be used
for shortrange communication.
Infrared signals can be used for short-range communication in a closed area using line-of-
sight propagation.
Example: TV remote, automatic doors, wireless speakers
Transmit data through airs.
Propagate throughout rooms.
Can’t penetrate walls.
Consider to be secure one
Applications
Very high data rates can be supported due to very high bandwidth
(approximately 400 THz).
For communication between keyboard, mouse, PCs, printers
Signal Transmission and encoding
Generally, the data usable to a person or application are not in a form that can be transmitted over a network.
For example, a photograph must first be changed to a form that transmission media can accept.
Digital data take on discrete values. For example, data are stored in computer memory in the
form of 0s and 1s. They can be converted to a digital signal or modulated into an analog signal
for transmission across a medium
Analog and Digital Signals
Like the data they represent, signals can be either analog or digital.
An analog signal has infinitely many levels of intensity over a period of time. As the wave moves from
value A to value B, it passes through and includes an infinite number of values along its path.
A digital signal, on the other hand, can have only a limited number of defined values. Although each value
can be any number, it is often as simple as 1 and O.
The conventional methods of communication used analog signals for long distance communications,
which suffer from many losses such as distortion, interference, and other losses including security
breach.
In order to overcome these problems, the signals are digitized using different techniques. The
digitized signals allow the communication to be more clear and accurate without losses.
Advantages of Digital Communication
• The effect of distortion, noise, and interference is much less in digital signals as they are less affected.
• Digital circuits are more reliable.
• Digital circuits are easy to design and cheaper than analog circuits.
• The hardware implementation in digital circuits, is more flexible than analog.
• The occurrence of cross-talk is very rare in digital communication.
• The signal is un-altered as the pulse needs a high disturbance to alter its properties, which is very difficult.
• Signal processing functions such as encryption and compression are employed in digital circuits to maintain
the secrecy of the information
Encoding
Encoding is the process of converting the data or a given sequence of characters, symbols, alphabets etc.,
into a specified format, for the secured transmission of data.
Decoding is the reverse process of encoding which is to extract the information from the converted format.
Encoding Techniques
Analog data to Analog signals − The modulation techniques such as Amplitude Modulation,
Frequency Modulation and Phase Modulation of analog signals, fall under this category.
Analog data to Digital signals − This process can be termed as digitization, which is done by
Pulse Code Modulation PCM. Hence, it is nothing but digital modulation. sampling and
quantization are the important factors in this. Delta Modulation gives a better output than PCM .
Digital data to Analog signals − The modulation techniques such as Amplitude Shift
Keying ASK, Frequency Shift Keying FSK, Phase Shift Keying PSK, etc., fall under this
category.
Digital data to Digital signals − There are several ways to map digital data to digital signals.
Digital Encoding process uses various patterns of voltage or current levels to
represent 1s and 0s of the digital signals on the transmission link.
1. Analog data-to-Analog signal Conversion
Analog signals are modified to represent analog data. This conversion is also known as Analog
Modulation.
Analog modulation is required when bandpass is used. Analog to analog conversion can be done in
three ways:
(Analog Data)
Amplitude Modulation
In this modulation, the amplitude of the carrier signal is
modified to reflect the analog data.
Amplitude modulation is implemented by means of a
multiplier. The amplitude of modulating signal (analog
data) is multiplied by the amplitude of carrier signal,
which then reflects analog data.
The frequency and phase of carrier signal remain
unchanged.
(Analog Data)
Frequency Modulation
In this modulation technique, the frequency of the
carrier signal is modified in accordance with the
frequency of modulating signal to reflect the change
in the voltage levels of the modulating signal
(analog data).
The amplitude and phase of the carrier signal are not
altered.
(Analog Data)
Phase Modulation
In the modulation technique, the phase of carrier
signal is modulated in order to reflect the change
in voltage (amplitude) of analog data signal.
Phase modulation is practically similar to
Frequency Modulation, but in Phase modulation
frequency of the carrier signal is constant.
The phase of carrier signal is changed (made dense
and sparse) to reflect voltage change in the
amplitude of modulating signal(analog data).
2. Analog data-to-Digital signal Conversion
Microphones create analog voice and camera creates analog videos, which are treated is analog data. To
transmit this analog data over digital signals, we need analog to digital conversion.
Analog data is a continuous stream of data in the wave form whereas digital data is discrete. To convert
analog wave into digital data, we use Pulse Code Modulation (PCM).
PCM is one of the most commonly used method to convert analog data into digital form. It involves three
steps:
• Sampling
• Quantization
• Encoding.
Sampling
The analog signal is sampled at every T interval.
Most important factor in sampling is the rate at
which analog signal is sampled.
According to Nyquist Theorem, the sampling
rate must be at least two times of the highest
frequency of the signal.
Quantization
Sampling yields discrete form of continuous analog signal. Every discrete pattern shows the amplitude of
the analog signal at that instance. The quantization is done between the maximum amplitude value and the
minimum amplitude value. Quantization is approximation of the instantaneous analog value.
Encoding
In encoding, each approximated value is then converted into binary format.
3. Digital data-to-Analog signal Conversion
When digital data from one computer is sent to another via some analog carrier, it is first converted
into analog signals.
Analog carrier signals are modified to reflect digital data.
An analog signal is characterized by its amplitude, frequency, and phase. There are three kinds of
digital-to-analog conversions:
a) Amplitude Shift Keying
b) Frequency Shift Keying
c) Phase Shift Keying
a) Amplitude Shift Keying
In this conversion technique, the amplitude of analog
carrier signal is modified to reflect binary data.
When binary data represents digit 1, the amplitude is
held; otherwise it is set to 0. Both frequency and
phase remain same as in the original carrier signal.
Frequency Shift Keying
In this conversion technique, the frequency of the 1 0 1 0 1
analog carrier signal is modified to reflect binary
data.
This technique uses two frequencies, f1 and f2.
One of them, for example f1, is chosen to
represent binary digit 1 and the other one is used
to represent binary digit 0.
Both amplitude and phase of the carrier wave are
kept intact.
Phase Shift Keying
In this conversion scheme, the phase of the
original carrier signal is altered to reflect the
binary data.
When a new binary symbol is encountered, the
phase of the signal is altered.
Amplitude and frequency of the original carrier
signal is kept intact.
4. Digital data-to-Digital signal Conversion
Baseband Transmission
Baseband transmission means sending a digital signal over a channel
without changing the digital signal to an analog signal.
Transmission Modes
The transmission mode decides how data is transmitted between two computers.
The binary data in the form of 1s and 0s can be sent in two different modes:
Parallel and Serial.
Parallel Transmission
The binary bits are organized in-to groups of fixed length. Both
sender and receiver are connected in parallel with the equal
number of data lines.
Both computers distinguish between high order and low order
data lines.
The sender sends all the bits at once on all lines.
Because the data lines are equal to the number of bits in a group
or data frame, a complete group of bits (data frame) is sent in one
go.
Advantage of Parallel transmission is high speed and
disadvantage is the cost of wires, as it is equal to the number of
bits sent in parallel.
Serial Transmission
In serial transmission, bits are sent one after another in a queue manner. Serial transmission
requires only one communication channel
Serial transmission can be either asynchronous or synchronous.
NETWORK PERFORMANCE
1. Bandwidth
One characteristic that measures network performance is bandwidth.
In networking, the term bandwidth is used in two contexts.
The first, bandwidth in hertz, refers to the range of frequencies in a composite signal or the range of
frequencies that a channel can pass.
The second, bandwidth in bits per second, refers to the speed of bit transmission in a channel or link.
2. Throughput
The throughput is a measure of how much amount of data we can actually send through a network
successfully.
bandwidth in bits per second and throughput seem the same, but they are different.
A link may have a bandwidth of B bps, but we can only send T bps through this link with T always less
than B i.e. (T<B).
For example, we may have a link with a bandwidth of 1 Mbps, but the devices connected to the end of the
link may handle only 200 kbps. This means that we cannot send more than 200 kbps through this link
Example A network with bandwidth of 10 Mbps can pass only an average of 12,000 frames per minute with
each frame carrying an average of 10,000 bits. What is the throughput of this network?
Example: A signal travels through an amplifier, and its power is increased 10 times. This means that P2= 10 P1
In this case, the amplification (gain of power) can be calculated as
2. Distortion
In other words, signal components at the receiver have phases different from what they had at the
sender. The shape of the composite signal is therefore not the same.
3. Noise
SNR is actually the ratio of what is wanted (signal) to what is not wanted (noise).
A high SNR means the signal is less corrupted by noise;
a low SNR means the signal is more corrupted by noise.
Because SNR is the ratio of two powers, it is often described in decibel units,
SNRdB, defined as
Switching Techniques and Multiplexing
Switching
For very large networks, when we have to connect multiple devices, the MESH
topology or STAR topologies are impractical and wasteful to make one-to-one
communication possible.
The number and length of the links require too much infrastructure to be cost-
efficient, and the majority of those links would be idle most of the time.
Other topologies employing multipoint connections, such as a bus, are ruled out
because the distances between devices and the total number of devices will
increase beyond the capacities of the media and equipment.
Each switch is
Switched connected to
Network multiple links.
Types of Switching
Before starting communication, the stations must make a reservation for the resources to be
used during the communication.
These resources, such as channels (bandwidth in FDM and time slots in TDM), switch buffers,
switch processing time, and switch input/output ports, must remain dedicated during the entire
duration of data transfer until the teardown phase.
Data transferred between the two stations are not packetized. The data are a continuous flow
sent by the source station and received by the destination station, although there may be periods
of silence.
There is no addressing involved during data transfer. The switches route the data based on their
occupied band (FDM) or time slot (TDM).
• More expensive than any other switching techniques,
2. Packet-switched network
1. In the setup phase, the source and destination use their global addresses to help
switches make table entries for the connection.
2. In the teardown phase, the source and destination inform the switches to delete
the corresponding entry.
3. Data transfer occurs between these two phases.
1. Setup phase:
In the setup phase, a switch creates an entry for a virtual circuit. For example, suppose source A needs to
create a virtual circuit to B.
Two steps are required:
a) the setup request
b) the acknowledgment
a) Setup Request
Setup Request
A setup request frame is sent from the source to the destination.
a. Source A sends a setup frame to switch 1.
b. Switch 1 receives the setup request frame. The switch, has a routing table and knows that a frame going from A to B goes
out through port 3. The switch creates an entry in its table for this virtual circuit, but it is only able to fill three of the four
columns i.e. (the incoming port (1) and chooses an available incoming VCI (14) and the outgoing port (3)). It does not yet
know the outgoing VCI, which will be found during the acknowledgment step. The switch then forwards the frame
through port 3 to switch 2.
c. Switch 2 receives the setup request frame. The same events happen here as at switch 1; three columns of the table are
completed: in this case, incoming port (l), incoming VCI (66), and outgoing port (2).
d. Switch 3 receives the setup request frame. Again, three columns are completed: incoming port (2), incoming VCI (22),
and outgoing port (3).
e. Destination B receives the setup frame, and if it is ready to receive frames from A, it assigns a VCI to the incoming
frames that come from A, in this case 77. This VCI lets the destination know that the frames come from A, and not other
b) the acknowledgment
Acknowledgment
A special frame, called the acknowledgment frame, completes the entries in the switching tables.
a. The destination sends an acknowledgment to switch 3. The acknowledgment carries the global source and destination
addresses so the switch knows which entry in the table is to be completed. The frame also carries VCI 77, chosen by
the destination as the incoming VCI for frames from A. Switch 3 uses this VCI to complete the outgoing VCI column
for this entry. Note that 77 is the incoming VCI for destination B, but the outgoing VCI for switch 3.
b. Switch 3 sends an acknowledgment to switch 2 that contains its incoming VCI in the table, chosen in the previous
step. Switch 2 uses this as the outgoing VCI in the table.
c. Switch 2 sends an acknowledgment to switch 1 that contains its incoming VCI in the table, chosen in the previous
step. Switch 1 uses this as the outgoing VCI in the table.
d. Finally switch 1 sends an acknowledgment to source A that contains its incoming VCI in the table, chosen in the
previous step.
e. The source uses this as the outgoing VCI for the data frames to be sent to destination B
Data Transfer Phase
To transfer a frame from a source to its destination,
all switches need to have a table entry for this
virtual circuit.
For eg. a frame arriving at port 1
with a VCI of 14. When the frame arrives, the
switch looks in its table to find port 1 and a VCI of
14. When it is found, the switch knows to change
the VCI to 22 and send out the frame from port 3.
Given fig. shows how a frame from source A
reaches destination B and how its VCI changes
during the trip. Each switch changes the VCI and
routes the frame.
Teardown Phase:
In this phase, source A, after sending all frames to B, sends a special frame called a teardown
request.
Destination B responds with a teardown confirmation frame. All switches delete the
corresponding entry from their tables.
Efficiency
The efficiency of a datagram network is better than that of a circuit-switched network;
resources are allocated only when there are packets to be transferred.
If a source sends a packet and there is a delay of a few minutes before another packet can be
sent, the resources can be reallocated during these minutes for other packets from other sources.
Delay
There may be greater delay in a datagram network than in a virtual-circuit network. Although
there are no setup and teardown phases, each packet may experience a wait at a switch before it
is forwarded. the delay is not uniform for the packets of a message.
Disadvantages
• They are unsuitable for applications that cannot afford delays in communication like high
quality voice calls.
• Packet switching high installation costs.
• They require complex protocols for delivery.
• Network problems may introduce errors in packets, delay in delivery of packets or loss of
packets. ...
Message Switching
With message switching there is no need to establish a dedicated path between two stations.
When a station sends a message, the destination address is appended to the message.
The message is then transmitted through the network, in its entirety, from node to node.
Each node receives the entire message, stores it in its entirety on disk, and then transmits the
message to the next node.
Message broadcasting can be achieved with the use of broadcast address appended
in the message.
Disadvantages:
Message switching is not compatible with interactive
applications.
Store-and-forward devices are expensive, because they must have
large disks to hold potentially long messages.
Bandwidth Utilization: Multiplexing
Whenever the bandwidth of a medium linking two devices is greater than the
bandwidth needs of the devices, the link can be shared with multiple devices so
that the available bandwidth (a precious resource) is not wasted or utilized
efficiently.
Digital
Analog Analog
FDM and WDM are techniques designed for analog signals, the third, for digital signals
1. Frequency-Division Multiplexing
Frequency-division multiplexing (FDM) is an analog technique that can be applied when the
bandwidth of a link (in hertz) is greater than the combined bandwidths of the signals to be
transmitted.
In FDM, signals generated by each sending device modulate different carrier frequencies. These
modulated signals are then combined into a single composite signal that can be transported by the
link.
Channels can be separated by strips of unused bandwidth-guard bands-to prevent signals from
overlapping. In addition, carrier frequencies must not interfere with the original data frequencies.
Multiplexing Process
Each source generates a signal of a
similar frequency range. Inside the
multiplexer, these similar signals
modulates different carrier
frequencies (f1,f2, and f3).
The resulting modulated signals are
then combined into a single
composite signal that is sent out over
a media link that has enough
bandwidth to accommodate it.
De-Multiplexing Process
WDM is conceptually the same as FDM, except that the multiplexing and
demultiplexing involve optical signals transmitted through fiber-optic channels.
The optical fiber data rate is higher than the data rate of metallic transmission
cable.
The idea is the same: We are combining different signals of different frequencies.
The difference is that the frequencies are very high.
Wavelength Division Multiplexing
MUX DEMUX
3. Time-division multiplexing (TDM)
In synchronous TDM, the data flow of each input connection/source is divided into units, where each
input unit occupies one input time slot. A unit can be 1 bit, one character, or one block of data.
Each input unit becomes one output unit and occupies one output time slot. However, the duration of an
output time slot is n times shorter than the duration of an input time slot.
Interleaving
b) Statistical (Asynchronous) TDM