Unit I CN
Unit I CN
Computer Networks
Introduction
Types of Networks
A local area network is generally called as LANs; these are privately-owned networks
within a single Building or campus of up to a few kilometers in size.
LANs are widely used to connect personal computers and work stations in company
Offices and factories to share resources like printers, and to exchange information.
LANs are different from other networks by three characteristics (1).With their size,
(2).With their transmission technology. (3).their topology.
LANs run at a speed of 10 to 100 Mbps (mega bits/sec)
LANs use a transmission Technology consisting of a single cable to which all the
systems are attached, Like a telephone lines.
Here it uses IEEE 802.3 popularly known as Ethernet, and IEEE 802.5 IBM Token ring
Various Topologies are used for broadcasting the LANs. The most common LAN
topologies are bus, ring, and star.
Metropolitan Area Network (MAN)
A metropolitan area network (MAN) is a network with a size between a LAN and a WAN.
Both the buses contain Head-End which initiates the tran*smission. The traffic of right
Side of the sender uses upper bus. And to send left side uses lower one.
It is designed for customers who need a high-speed connectivity.
The range of MAN is 100M to 10KM
These are private and public owned networks
The job of the subnet is to carry messages from system to the system, just like a
Telephone which carries Words from speaker to speaker in most wide area networks
the subnet consists of two distinct components transmission lines and switching
elements. Transmission lines are also called as circuits, channels or trunks move bits
between machines. The switching elements are specialized computers used to connect
two or more transmission lines connecting multiple networks known as routers.
Network Topologies
Topology: The Physical arrangement of computers which are connected to each other
through via communication channel is called topology.
Bus Topology:
Bus topology is a network type in which every computer and network device is
connected to single cable. When it has exactly two endpoints, then it is
called Linear Bus topology.
2. RING Topology
3. STAR Topology
In this type of topology all the computers are connected to a single hub through a
cable.
This hub is the central node and all others nodes are connected to the central
node.
Reference model
It describes how information from a software application in one computer moves
through a physical medium to the software application in other computer.
Reference models are two types 1. OSI 2.TCP/IP
OSI Reference Model
It stands for open system inter connection. It was developed by International standard
organization in 1984.It consist of 7 layers.
1. Application Layer 2.Presentation Layer 3.Session Layer 4.Transport Layer 5.Network
Layer 6.Data Link Layer 7.Physical Layer
Layers 1, 2, and 3-physical, data link, and network layers are known as
Networksupport layers
Layers 5, 6, and 7-session, presentation, and application layers are known as the
Usersupport layers
1. Physical Layer
The main functionality of the physical layer is to transmit the individual bits from
one node to another node.
It is the lowest layer of the OSI model.
It establishes, maintains and deactivates the physical connection.
It transmit the raw bits over a communication channel
If system at one side sends one bit and other side receive one bit
Framing: It divides the stream of bits received from network layer into data units
called Frame. It contains header, Data and trailer.
Physical addressing: The data link layer adds a header to the frame that
consists of a destination address.
Flow control: It is the main function of the data link layer. The constant data
rate is maintained on both sender and receiver so no data get corrupted.
Error Control: It is achieved by adding calculated value CRC (Cycle Redundancy
Check) it is placed to data link layer. The trailer which is added to message to
frame before it is sending to physical layer. if any error seems to occur the
receiver sends acknowledgement to retransmit of the corrupted frame.
Access Control: When two or more devices are connected to the same
communication channel then the data link layer protocols are used to determine
which device control over the link at has given time.
3. Network Layer:
4. Transport Layer:
The Transport layer is a fourth layer of OSI reference model.
The main responsibility of the transport layer is to transfer the data completely.
It receives the data from the upper layer and converts them into smaller units
known as segments.
This layer can be termed as an end-to-end layer as it provides a point-to-point
connection between source and destination to deliver the data reliably. This
layer used two protocols are TCP and UDP
Functions of a Transport Layer:
Segmentation: When the transport layer receives the message from the upper
layer, it divides the message into multiple segments, and each segment is
assigned with a sequence number that uniquely identifies each segment. When
the message has arrived at the destination, then the transport layer reassembles
the message based on their sequence numbers.
Connection control: Transport layer provides two services Connection-oriented
service and connectionless service. A connectionless service treats each segment
as an individual packet, and they all travel in different routes to reach the
destination. A connection-oriented service makes a connection with the transport
layer at the destination machine before delivering the packets. In connection-
oriented service, all the packets travel in the single route.
Flow control: The transport layer also responsible for flow control but it is
performed end-to-end rather than across a single link.
Error control: The transport layer is also responsible for Error control. The
sender transport layer ensures that message reach at the destination without
any error.
5. Session Layer:
Dialog control: Session layer acts as a dialog controller that creates a dialog
between two processes or we can say that it allows the communication between
two processes which can be either half-duplex or full-duplex.
6. Presentation Layer:
A Presentation layer is mainly concerned with the syntax and semantics of the
information exchanged between the two systems.
7. Application Layer
It is the 7th and top most layer of OSI reference model
It handles issues such as network transparency, resource allocation, etc.
This layer provides the network services to the end-users.
Disadvantages
The OSI model is a theoretical model. Sometimes it can be a difficulty if the
appropriate technology is not available.
The OSI restricts its practical implementation.
The OSI model is a very complex model.
The initial implementation of the OSI model is slow.
The initial implementation of the OSI model is costly.
There is inter dependence among the OSI layers. OSI layers cannot work in
parallel. Each upcoming layer needs to wait to receive the data from its
predecessor layer. For an example the application layer receives the data from
the presentation layer and the presentation layer needs to wait to receive the
data from the session layer and so on.
The duplication of services in various layers is a problem in the OSI model. Some
Services are offered by multiple layers. Some of these services are mentioned
below;
Flow control
Error control
Addressing etc.
OSI TCP/IP
The OSI model was developed first, and The protocols were created first and
then protocols were created to fit the then built the TCP/IP model.
network architecture’s needs.
The OSI model represents defines It does not mention the services,
administration, interfaces and interfaces, and protocols.
conventions. It describes clearly which
layer provides services.
The smallest size of the OSI header is 5 The smallest size of the TCP/IP header
bytes. is 20 bytes.
Characteristics of ARPANET:
• The software was split into two parts: subnet and host.
• The subnet would consist of minicomputers called IMPs (Interface Message Processors)
connected by 56-kbps transmission lines.
• Each IMP would be connected to at least two other IMPs. The subnet was to be a datagram
subnet, so if some lines and IMPs were destroyed, messages could be automatically rerouted
along alternative paths.
• Limitations of ARPANET :
ATM NETWORK:
• ATM Stands for Asynchronous Transfer Mode
• ATM is an International Telecommunication Union- Telecommunications Standards
Section (ITU-T).
• It is used to transfer all the services like voice, data, or video.
• These services can be conveyed in a small fixed-sized packet called the cell. These
cells are connected in a network that transmits the data asynchronously.
• It is a connection –oriented network.
• It is a Switching technique used by the telecommunication network.
• It uses Asynchronous time division multiplexing to encode data into small,fixed
cells.
• It transfer data in cells of a fixed size.
• Each cell consists of 53 bytes longs. Further, the 53 bytes long can be divided into 5
bytes header and 48 bytes payload.
There are two different cell formats - user-network interface (UNI) and network-network
interface (NNI).
1. UNI header
This is used in the private connection in the Asynchronous transfer mode (ATM) network
between ATM switches and ATM endpoints.
2. NNI header
It communicates between the Asynchronous Transfer Mode (ATM) switches.
ATM reference model comprises of three layers
Physical Layer − This layer corresponds to physical layer of OSI model. At this layer, the cells are
converted into bit streams and transmitted over the physical medium. This layer has two sub layers: PMD
sub layer (Physical Medium Dependent) and TC (Transmission Convergence) sub layer.
ATM Layer −This layer is comparable to data link layer of OSI model. It accepts the 48 byte segments
from the upper layer, adds a 5 byte header to each segment and converts into 53 byte cells. This layer is
responsible for routing of each cell, traffic management, multiplexing and switching.
ATM Adaptation Layer (AAL) −This layer corresponds to network layer of OSI model. It accepts the
data and converts them into fixed sized segments. This layer has two sub layers − Convergence sub layer
and Segmentation and Reassembly sub layer.
ATM endpoints − It contains ATM network interface adaptor. Examples of endpoints are workstations,
routers, CODECs, LAN switches, etc.
ATM switch −It transmits cells through the ATM networks. It accepts the incoming cells from ATM
endpoints (UNI) or another switch (NNI), updates cell header and retransmits cell towards destination.
INTERNET:
The number of networks, machines, and users connected to the ARPANET grew rapidly
after TCP/IP became the only official protocol on January 1, 1983. When NSFNET and
the ARPANET were interconnected, the growth became exponential.
Traditionally the Internet and its predecessors had four main applications:
1. E-mail. The ability to compose, send, and receive electronic mail has been around
since the early days of the ARPANET and is enormously popular. Many people get
dozens of messages a day and consider it their primary way of interacting with the
outside world, far outdistancing the telephone and snail mail. E-mail programs are
available on virtually every kind of computer these days.
2. News. Newsgroups are specialized forums in which users with a common interest
can exchange messages. Thousands of newsgroups exist, devoted to technical and
Transmission media:
Transmission media is a communication channel that carries the information from the
sender to the receiver. It is included in the Physical layer of the OSI reference
Model.
.
It is used for transmitting either analog or digital signals
The band with depends upon the thickness of the wire and the distance
travel
Twisted cables are two types 1.Unshield Twisted Pair
2. Shied twisted pair
Optical Fiber:
A fiber optic cable is made of glass or plastic and transmits signals in the structure
of light signals.
Core: The optical fibre consists of a narrow strand of glass or plastic known as a
core. A core is a light transmission area of the fibre. The more the area of the core,
the more light will be transmitted into the fibre.
Cladding: The concentric layer of glass is known as cladding. The main
functionality of the cladding is to provide the lower refractive index at the core
interface as to cause the reflection within the core so that the light waves are
transmitted through the fibre.
Jacket: The protective coating consisting of plastic is known as a jacket. The main
purpose of a jacket is to preserve the fibre strength, absorb shock and extra fibre
protection.
Structure of Fiber Optical Cable:
Fiber optic cable support two modes of propagating light , They are Multimode: In
this mode many beams from a light source traverse alongmultiple paths and
multiple angles.
Single mode: The beams propagate almost horizontally LED or Laser acts
as the source converting electric pulse to light pluses and photodiode acts
as receiver doing vice versa.
Characteristics of Optical Fiber Cables
Fiber optic cabling can support too high bandwidths in the range from 100
Mbps to 2 gigabytes because light has a much greater frequency than
electricity.
Fiber optic cable is not concerned by EMI effects and can be used in
locations where high voltages pass.
The value of fiber optic cable is more distinguished to twisted pair and co-
axial.
The setup of fiber optic cables is complex and endless.
Advantages of Optical Fibers
Small Size and lightweight − the size (diameter) of the optical fibers is
minimal (comparable to the diameter of a human hair).
Easily available and low cost − the material used for producing the
optical fibers is silica glass. This material is readily applicable. Therefore,
the optical fibers cost lower than the cables with metallic conductors.
No electrical or electromagnetic interface − since the transmission
occurs in light rays, the signal is not affected by electrical or
electromagnetic interference.
Large Bandwidth − As the light arrays have a very high frequency in the
GHz range, the optical fiber bandwidth is vast. This allows the
transmission of more numbers of channels. Therefore, the information-
carrying capacity of an optical fiber is much higher than that of a Co-axial
cable.
Radio Waves:
Characteristics of Microwave:
Frequency range: The frequency range of terrestrial microwave is from 4-6 GHz
to 21-23 GHz.
Bandwidth: It supports the bandwidth from 1 to 10 Mbps.
Short distance: It is inexpensive for short distance.
Long distance: It is expensive as it requires a higher tower for a longer distance.
Attenuation: Attenuation means loss of signal. It is affected by environmental
conditions and antenna size.
Advantages :
Used for Telephone ,Cellular phone,TV etc.
It carry thousand of voice channels at same time.
Microwave transmission is cheaper than using cables.
It is free from land acquisition as it does not require any land for the
installation of cables.
Communication over oceans can be achieved by using microwave
transmission.
Disadvantages:
Installation cost is high.
Susceptible to weather condition: A microwave transmission is susceptible
to weather condition. This means that any environmental change such as rain,
wind can distort the signal.
Bandwidth limited: Allocation of bandwidth is limited in the case of
microwave transmission.
Satellite Microwave Transmission:
Infrared Waves
The maximum data rate for noiseless channels is calculated using the Nyquist
Theorem, which states: Maximum Data Rate = 2 * Bandwidth * log2(L),
where L is the number of signal levels.
Examples:
Input2: We need to send 265 kbps over a noiseless channel with a bandwidth of 20
kHz. How many signal levels do we need?
Output2 : 265000 = 2 * 20000 * log2(L)
log2(L) = 6.625
L = 26.625 = 98.7 levels
In the above equation, bandwidth is the bandwidth of the channel, SNR is the
signal-to-noise ratio, and capacity is the capacity of the channel in bits per second.
The signal-to-noise ratio (S/N) is usually expressed in decibels (dB) given by the
formula:
10 * log10(S/N)
So for example a signal-to-noise ratio of 1000 is commonly expressed as:
10 * log10(1000) = 30 dB.
Examples:
Input1: A telephone line normally has a bandwidth of 3000 Hz (300 to 3300 Hz)
assigned for data communication. The SNR is usually 3162. What will be the
capacity for this channel?
Output1: C = 3000 * log2(1 + SNR) = 3000 * 11.62 = 34860 bps
Input2: The SNR is often given in decibels. Assume that SNR(dB) is 36 and the
channel bandwidth is 2 MHz. Calculate the theoretical channel capacity.
Output2: SNR(dB) = 10 * log10(SNR)
SNR = 10(SNR(dB)/10)
SNR = 103.6 = 3981
Hence, C = 2 * 106 * log2(3982) = 24 MHz
Multiplexing:
Multiplexing is the process in which multiple signals coming from multiple
sources are combined and transmitted over a single communication/physical
line.
Multiplexing is achieved by using a device called Multiplexer (MUX) that
combines n input lines to generate a single output line. Multiplexing follows
many-to-one, i.e., n input lines and one output line.
Demultiplexing is achieved by using a device called Demultiplexer (DEMUX)
available at the receiving end. DEMUX separates a signal into its component
signals (one input and n outputs).
Why Multiplexing?
The transmission medium is used to send the signal from sender to receiver. The
medium can only have one signal at a time.
If there are multiple signals to share one medium, then the medium must be
divided in such a way that each signal is given some portion of the available
bandwidth. For example: If there are 10 signals and bandwidth of medium is100
units, then the 10 unit is shared by each signal.
When multiple signals share the common medium, there is a possibility of collision.
Multiplexing concept is used to avoid such collision.
Multiplexing technique is widely used in telecommunications in which several
telephone calls are carried through a single wire.
Each Sending device modulate different carrier frequency, which is combined into
composite signal for transmitting
In FDM, we can observe a lot of inter-channel cross-talk, due to the fact that in
this type of multiplexing the bandwidth is divided into frequency channels.
In order to prevent the inter-channel cross talk, unused strips of bandwidth
must be placed between each channel. These unused strips between each
channel are known as guard bands.
Applications of FDM:
FDM is commonly used in TV networks.
It is used in FM and AM broadcasting. Each FM radio station has different
frequencies, and they are multiplexed to form a composite signal. The
multiplexed signal is transmitted in the air.
Advantages Of FDM:
FDM is used for analog signals.
FDM process is very simple and easy modulation.
A Large number of signals can be sent through an FDM simultaneously.
Disadvantages Of FDM:
FDM technique is used only when low-speed channels are required.
It suffers the problem of crosstalk.
A Large number of modulators are required.
It requires a high bandwidth channel.
Wavelength Division Multiplexing (WDM):
Wavelength Division Multiplexing is same as FDM except that the optical signals
are transmitted through the fibre optic cable.
It is an analog multiplexing technique.
Narrow band of light from different sources are combined to wide band.
Optical signals from different source are combined to form a wider band of light
with the help of multiplexer.
At the receiving end, demultiplexer separates the signals to transmit them to
their respective destinations.
Multiplexing and Demultiplexing can be achieved by using a prism.
Prism can perform a role of multiplexer by combining the various optical signals
to form a composite signal, and the composite signal is transmitted through a
fibre optical cable.
Prism also performs a reverse operation, i.e., demultiplexing the signal.
Time Division Multiplexing:
It is a Digital multiplexing technique.
In Frequency Division Multiplexing Technique, all signals operate at the same
time with different frequency, but in case of Time Division Multiplexing
technique, all signals operate at the same frequency with different time.
Divide the channel into time slots using Round Robin fashion.
The capacity of the channel is not fully utilized as the empty slots are also transmitted
which is having no data.
Asynchronous TDM:
The difference between Asynchronous TDM and Synchronous TDM is that many
slots in Synchronous TDM are unutilized, but in Asynchronous TDM, slots are
fully utilized.
An asynchronous TDM is also known as Statistical TDM.
An asynchronous TDM technique dynamically allocates the time slots to the
devices.
An asynchronous TDM is a technique in which time slots are not fixed as in the
case of Synchronous TDM. Time slots are allocated to only those devices which
have the data to send.
Asynchronous Time Division multiplexor accepts the incoming data streams and
creates a frame that contains only data with no empty slots.
In the above diagram, there are 4 devices, but only two devices are sending the
data, i.e., A and C. Therefore, the data of A and C are only transmitted through the
transmission line.