Networking
Networking
Networking
• Digital communication
ANALOG DIGITAL
More likely to get affected reducing Less affected since noise response
Response to Noise accuracy are analog in nature
Analog hardware is not flexible. Digital hardware is flexible in
Flexibility implementation.
Can be used in analog devices only. Best suited for Computing and
Uses Best suited for audio and video digital electronics.
transmission.
instant
e-mail chat rooms
messaging
Reference: https://www.youtube.com/watch?v=jZOg39v73c4
Unguided Media
• Unguided media, or wireless communication, transport
electromagnetic waves without using a physical conductor.
Instead the signals are broadcast though air or water, and
thus are available to anyone who has a device capable of
receiving them.
• The section of the electromagnetic spectrum defined as radio
communication is divided into eight ranges, called bands,
each regulated by government authorities.
Reference: https://www.youtube.com/watch?v=cLlwVlNroCY
https://www.youtube.com/watch?v=Rim2WQ8ryNs
https://www.youtube.com/watch?
v=kxLcwIMYmr0
Propagation of Radio Waves
• Radio technology considers the earth as surrounded by
two layers of atmosphere: the troposphere and the
ionosphere.
• The troposphere is the portion of the atmosphere
extending outward approximately 30 miles from the
earth's surface.
• The troposphere contains what we generally think of as
air, Clouds, wind, temperature variations, and weather in
general occur in the troposphere.
• The ionosphere is the layer of the atmosphere above the
troposphere but below space.
• Broadcast Radio
– Distribute signals through the air over long
distance
– Uses an antenna
– Typically for stationary locations
– Can be short range
• Cellular Radio
– A form of broadcast radio used for mobile
communication
– High frequency radio waves to transmit voice
or data
– Utilizes frequency-reuse
• Microwaves
– Radio waves providing high speed transmission
– They are point-to-point (can’t be obstructed)
– Used for satellite communication
• Infrared (IR)
– Wireless transmission media that sends signals
using infrared light waves
Physical Transmission Media
Networks
• Collection of computers and devices connected together
• Used to transfer information or files, share resources, etc.
• What is the largest network?
• Characterized based on their geographical coverage, speed,
capacities
• Networks are categorized based on the following
characteristics:
– Network coverage: LAN, MAN, WAN
– Network topologies: how the computers are connected
together
– Network technologies
– Network architecture
• The generic term node or host refers to any
device on a network
• Data transfer rate:- The speed with which
data is moved from one place on a network to
another
• Data transfer rate is a key issue in computer
networks
LAN vs WAN
LAN - Local Area Network a group of
computers connected within a building
or a campus (Example of LAN may
consist of computers located on a
single floor or a building or it might link
all the computers in a small company.
personal personal
computer computer
personal computer
personal computer
personal computer
host
personal computer computer
printer
file server
Network Architecture
• Refers to how the computer or devices are designed in a
network
• Basic types:
– Peer-2-Peer
• Each computer (peer) has equal responsibilities,
capacities, sharing hardware, data with the other
computers on the peer-to-peer network
• Good for small businesses and home networks
• Simple and inexpensive
– Client/Server
• All clients must request service from the server
• The server is also called a host
• Different servers perform different tasks: File server, web
server etc.
Computer networks have opened up an entire
frontier in the world of computing called the
client/server model
File server: A computer that stores and
manages files for multiple users on a network
Web server: A computer dedicated to
responding to requests (from the browser
client) for web pages
P2P vs Client-Server
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
Internet Connections
• Internet backbone A set of high-speed
networks that carry Internet traffic
These networks are provided by companies
such as AT&T and IBM
• Internet service provider (ISP) A company
that provides other companies or individuals
with access to the Internet
Internet Connections
There are various technologies available that you can use to
connect a home computer to the Internet
– A phone modem converts computer data into an analog
audio signal for transfer over a telephone line, and then a
modem at the destination converts it back again into data
– A digital subscriber line (DSL) uses regular copper phone
lines to transfer digital data to and from the phone
company’s central office
– A cable modem uses the same line that your cable TV
signals come in on to transfer the data back and forth
Internet Connections
Communication Architecture
• Strategy for connecting host computers and other
communicating equipment.
• Defines necessary elements for data communication between
devices.
• A communication architecture, therefore, defines a standard
for the communicating hosts.
• A programmer formats data in a manner defined by the
communication architecture and passes it on to the
communication software.
• Separating communication functions adds flexibility, for
example, we do not need to modify the entire host software
to include more communication devices.
OSI Model
Layer Architecture
• Layer architecture simplifies the network design.
• It is easy to debug network applications in a layered
architecture network.
• The network management is easier due to the layered
architecture.
• Network layers follow a set of rules, called protocol.
• The protocol defines the format of the data being exchanged,
and the control and timing for the handshake between layers.
The OSI Model
Established in 1947, the International Standards
Organization (ISO) is a multinational body dedicated to
worldwide agreement on international standards. An ISO
standard that covers all aspects of network
communications is the Open Systems Interconnection (OSI)
model. It was first introduced in the late 1970s.
ISO is the organization.
OSI is the model.
OSI Model
Physical Layer
• Provides physical interface for transmission of information.
• Defines rules by which bits are passed from one system to
another on a physical communication medium.
• Covers all - mechanical, electrical, functional and procedural -
aspects for physical communication.
• Such characteristics as voltage levels, timing of voltage
changes, physical data rates, maximum transmission
distances, physical connectors, and other similar attributes are
defined by physical layer specifications.
Physical layer
The physical layer is responsible for movements of
individual bits from one hop (node) to the next.
Data Link Layer
• Data link layer attempts to provide reliable communication
over the physical layer interface.
• Breaks the outgoing data into frames and reassemble the
received frames.
• Create and detect frame boundaries.
• Handle errors by implementing an acknowledgement and
retransmission scheme.
• Implement flow control.
• Supports points-to-point as well as broadcast communication.
• Supports simplex, half-duplex or full-duplex communication.
Data link layer
The data link layer is responsible for moving
frames from one hop (node) to the next.
OSI Model
Network Layer
• Implements routing of frames (packets) through the network.
In other words, The network layer is responsible for delivery
of a packet between the original source and final destination.
• Defines the most optimum path the packet should take from
the source to the destination
• Defines logical addressing so that any endpoint can be
identified. Using logical addresses (IP address) instead of
physical address
• Handles congestion in the network.
• Facilitates interconnection between heterogeneous networks
(Internetworking).
• The network layer also defines how to fragment a packet into
smaller packets to accommodate different media.
Network layer
The network layer is responsible for the
delivery of individual packets from
the source host to the destination host.
OSI Model
Transport Layer
• Purpose of this layer is to provide a reliable mechanism for
the exchange of data between two processes in different
computers.
• It is responsible for breaking the entire message into
several packets and delivery them to the network layer.
• It is responsible for ensuring that the whole message is
transmitted.
• Ensures that the data units are delivered error free.
• Ensures that data units are delivered in sequence.
• Ensures that there is no loss or duplication of data units.
• Provides connectionless or connection oriented service.
• Provides for the connection management.
• Multiplex multiple connection over a single channel.
OSI Model
Session Layer
• Session layer provides mechanism for controlling the dialogue
between the two end systems. It defines how to start, control
and end conversations (called sessions) between applications, in
other words, it is designed to control the dialog between users.
• The synchronization points divides a long message into smaller
ones and ensure that each section is received and
acknowledged by the receiver.
• This layer requests for a logical connection to be established on
an end-user’s request.
• Any necessary log-on or password validation is also handled by
this layer.
• Session layer is also responsible for terminating the connection.
• This layer provides service which can be full duplex or half
duplex.
• Session layer can also provide check-pointing mechanism such
that if a failure of some sort occurs between checkpoints, all
data can be retransmitted from the last checkpoint.
OSI Model
Presentation Layer
• Presentation layer defines the format in which the data is to
be exchanged between the two communicating entities. It
deals with the fact that different systems use different coding
methods.
• Also handles data compression and data encryption
(cryptography).
OSI Model
Application Layer
• Application layer interacts with application programs and is
the highest level of OSI model.
• Application layer contains management functions to support
distributed applications.
• Examples of application layer are applications such as file
transfer, electronic mail, remote login etc.
OSI Model
OSI in Action
• A message begins at the top
application layer and moves
down the OSI layers to the
bottom physical layer.
• As the message descends, each
successive OSI model layer
adds a header to it.
• A header is layer-specific
information that basically
explains what functions the
layer carried out.
• Conversely, at the receiving
end, headers are striped from
the message as it travels up
the corresponding layers.
TCP/IP Model
TCP/IP MODEL
TCP/IP Model
• DIFFERENTIAL MANCHESTER
This encoding scheme is a combination of RZ and
NRZ-I. It also transitions at the middle of the bit but
changes phase only when 1 is encountered.
• BIPOLAR ENCODING
Bipolar encoding uses three voltage levels, positive,
negative and zero. Zero voltage represents binary 0
and bit 1 is represented by altering positive and
negative voltages.
Analog-to-digital conversion
• Microphones creates analog voice and camera creates
analog videos, which here in our case is treated is analog
data. To transmit this analog data over digital signals we
need an analog to digital conversion.
• Analog data is wave form continuous stream of data
whereas digital data is discrete. To convert analog wave
into digital data we use Pulse Code Modulation.
• Pulse Code Modulation is one of the most commonly
used method to convert analog data into digital form. It
involves three steps: Sampling, Quantization and
Encoding.
• SAMPLING
The analog signal is sampled every T interval. Most
important factor in sampling is the rate on 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.
• ENCODING
In encoding, each approximated value is then converted
into binary format.
Transmission Modes
How data is to be transferred between to computer is
decided by the transmission mode they are using. Binary
data i.e. 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 computer
distinguish between high order and low order data lines.
The sender sends all the bits at once on all lines. Because
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 speed and
disadvantage is the cost of wires, as it is equal to the
number of bits needs to send parallelly.
• SERIAL TRANSMISSION
In serial transmission, bits are sent one after another in a
queue manner. Serial transmission requires only one
communication channel as oppose parallel transmission
where communication lines depends upon bit word
length.
1 = Amp. 1
0 = Amp. 2
1 1
0 0
A B
Amp. 1 Amp. 2
Characteristics of Amplitude Modulation
1 = Frequency F1
0 = Frequency F2
1 1
0 0
Freq. 1 Freq. 2
Characteristics of Frequency Modulation
• Frequency is modulated
• Frequency f1
– Represents 1
• Frequency f2
– Represents 0
• The amplitude remains unaltered in both
cases
Usage
• Variations in frequency are easy to detect
– They are less susceptible to interference
• FM and variations of this technique are
used in modems
• Easy to implement full duplex transmission
under FM
• A variation of the FM technique described
here is used in FM radio transmission
Modulation in Modern Day Modems
Y
Strength
1
0
90 Degrees
0 Degree phase shift
phase shift
This is also known as phase shift keying
Characteristics of Phase Shift Modulation
• Phase is modulated
• Phase shift of 0 represents a 0
• Phase shift of 90 degrees represents a 1
• Both amplitude and frequency remain
unaltered is both cases
• Also known as Phase Shift Keying, it is used in
a number of modern modems as well
Multiplexing
• Multiplexing is a method by which multiple analog
message signals or digital data streams are combined into
one signal over a shared medium. “The aim is to share an
expensive resource”.
• The multiplexed signal is transmitted over a
communication channel, which may be a physical
transmission medium (e.g. a cable), air (radio frequency),
and light (optical fiber).
• The multiplexing divides the capacity of the high-level
communication channel into several low-level logical
channels, one for each message signal or data stream to
be transferred.
• A reverse process, known as de-multiplexing, can extract
the original channels on the receiver side.
• A device that performs the multiplexing is called
a multiplexer (MUX), and a device that performs the
reverse process is called a demultiplexer (DEMUX).
Types of multiplexing
• Circuit Switching
• Message Switching
• Packet Switching
Circuit Switching
• Circuit switching is a technique that directly connects the
sender and the receiver in an unbroken path.
• Telephone switching equipment, for example, establishes
a path that connects the caller's telephone to the
receiver's telephone by making a physical connection.
• With this type of switching technique, once a connection
is established, a dedicated path exists between both ends
until the connection is terminated.
• Routing decisions must be made when the circuit is first
established, but there are no decisions made after that
time.
• Circuit switching in a network operates almost the same way
as the telephone system works.
• A complete end-to-end path must exist before
communication can take place.
• The computer initiating the data transfer must ask for a
connection to the destination.
• Once the connection has been initiated and completed to
the destination device, the destination device must
acknowledge that it is ready and willing to carry on a
transfer.
Advantages:
The communication channel (once established) is dedicated.
Disadvantages:
• Possible long wait to establish a connection, (10 seconds,
more on long- distance or international calls.) during which
no data can be transmitted.
• More expensive than any other switching techniques,
because a dedicated path is required for each connection.
• Inefficient use of the communication channel, because the
channel is not used when the connected systems are not
using it.
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.
• This type of network is called a store-and-forward network.
• A switch working on message switching, first receives the
whole message and buffers it until there are resources
available to transfer it to the next hop. If the next hop is not
having enough resource to accommodate large size message,
the message is stored and switch waits.
• This technique was considered substitute to circuit switching.
As in circuit switching the whole path is blocked for two
entities only. Message switching is replaced by packet
switching. Message switching has some drawbacks:
• Every switch in transit path needs enough storage to
accommodate entire message.
• Because of store-and-forward technique and waits included
until resources available, message switching is very slow.
• Message switching was not a solution for streaming media
and real-time applications.
Packet Switching
• Packet switching can be seen as a solution that tries to combine the
advantages of message and circuit switching and to minimize the
disadvantages of both.
• There are two methods of packet switching:
Datagram and virtual circuit.
• In both packet switching methods, a message is broken into
small parts, called packets.
• Each packet is tagged with appropriate source and destination
addresses.
• Since packets have a strictly defined maximum length, they
can be stored in main memory instead of disk, therefore access
delay and cost are minimized.
• Also the transmission speeds, between nodes, are optimized.
• With current technology, packets are generally accepted onto
the network on a first-come, first-served basis. If the network
becomes overloaded, packets are delayed or discarded
Packet Switching Technique
• A station breaks long message into packets
• Packets are sent out to the network sequentially, one
at a time
• How will the network handle this stream of packets
as it attempts to route them through the network
and deliver them to the intended destination?
Two approaches
• Datagram approach
• Virtual circuit approach
Datagram
• Each packet is treated independently, with no reference to
packets that have gone before.
– Each node chooses the next node on a packet’s path.
• Packets can take any possible route.
• Packets may arrive at the receiver out of order.
• Packets may go missing.
• It is up to the receiver to re-order packets and recover from
missing packets.
• Example: Internet
Virtual Circuit