Networking ppt (1)
Networking ppt (1)
COLLEGE OF INFORMATICS
DEPARTMENT OF COMPUTER SCIENCE
Belayneh M.
Gondar, Ethiopia
November 2022
Chapter One: Data Communication Basics
Definition of Network
A Network is just a combination of two or more objects to exchange or share
information.
A computer network is a system in which a number of independent computers are
linked together to share data and peripherals, such as files and printers.
In the modern world, computer networks have become almost indispensable.
All major businesses, governmental and educational institutions make use of computer
networks to such an extent that it is now difficult to imagine a world without them.
Effective and efficient data communication and networking facilities are vital to any
enterprise.
Cont…
Communication Basics
When we communicate, we are sharing information.
This sharing can be local or remote.
Between individuals, local communication usually occurs face to face, while remote
communication takes place over distance.
The term telecommunication, which includes telephony, telegraphy, and television,
means communication at a distance (tele is Greek for "far").
Cont…
The word “data” refers to information presented in whatever form is agreed upon by the
parties creating and using the data.
Data communications are the exchange of data between two devices via some form of
transmission medium such as a wire cable.
For data communications to occur, the communicating devices must be part of a
communication system made up of a combination of hardware (physical equipment) and
software (programs).
Cont…
Effectiveness data communications system depends on four fundamental characteristics:
delivery, accuracy, timeliness, and jitter.
Delivery: The system must deliver data to the correct destination. Data must be received by
the intended device or user and only by that device or user.
Accuracy: The system must deliver the data accurately. Data that have been altered in
transmission and left uncorrected are unusable.
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.
Cont…
Jitter: Jitter refers to the variation in the packet arrival time.
It is the uneven delay in the delivery of audio or video packets.
For example, let us assume that video packets are sent every 3D-ms.
If some of the packets arrive with 3D-ms delay and others with 4D-ms delay, an
uneven quality in the video is the result.
Components Communications
A data communications system has five components
Cont…
Message: The message is the information (data) to be communicated. Popular forms
of information include text, numbers, pictures, audio, and video.
Sender: The sender is the device that sends the data message. It can be a computer,
workstation, telephone handset, video camera, and so on.
Receiver. The receiver is the device that receives the message. It can be a computer,
workstation, telephone handset, television, and so on.
Transmission Medium: The transmission medium is the physical path by which a
message travels from sender to receiver.
Some examples of transmission media include twisted-pair wire, coaxial cable, fiber-
optic cable, and radio waves.
Cont…
Protocol: A protocol is a set of rules that govern data communications.
It represents an agreement between the communicating devices.
Without a protocol, two devices may be connected but not communicating, just
as a person speaking French cannot be understood by a person who speaks only
Japanese.
Communication between two devices can be simplex, half-duplex, or full-duplex depending on
the channel capabilities as shown in following Figure.
Cont…
Cont…
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 (see the above
figure).
The device can either send or receive signal but not do both.
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.
Cont…
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 (see the above
figure).
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.
Cont…
Full-Duplex
o In full-duplex mode (also called duplex), both stations can transmit and receive
simultaneously (See the above figure).
o The full-duplex mode is like a two-way street with traffic flowing in both directions at
the same time.
o In full-duplex mode, signals going in one direction share the capacity of the link: with
signals going in the other direction.
o 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.
Cont…
One common example of full-duplex communication is the telephone network. When
two people are communicating by a telephone line, both can talk and listen at the same
time.
The full-duplex mode is used when communication in both directions is required all the
time. The capacity of the channel, however, must be divided between the two directions
Data Representation Techniques
o Information today comes in different forms such as text, numbers, images, audio, and
video.
o In general, information today comes in different forms such as text, numbers, images,
audio and video. In data communications, text is represented as a bit pattern.
o A code such as ASCII is used to represent text.
o The Text is converted into a sequence of Zero’s and One’s.
o Numbers are also represented by bit patterns.
o However, a code such as ASCII is used to represent numbers. The number is directly
converted to a binary number to simplify mathematical operations. Images are also
represented by bit pattern.
Data Representation Techniques
The size and the value of the pattern depend on the image.
Audio is by nature different from test, numbers or images.
It is continuous, not discrete.
Video can either be produced as a continuous entity (like a TV Camera). or it can be a
combination of images, each a discrete entity, arranged to convey the idea of motion.
Analog video can be changed to digital video.
Synchronous and Asynchronous Data Transmission
Synchronous
In Synchronous Transmission, data is sent in form of blocks or frames.
This transmission is the full-duplex type.
Between sender and receiver, synchronization is compulsory.
In Synchronous transmission, There is no gap present between data.
It is more efficient and more reliable than asynchronous transmission to transfer a large
amount of data.
Example: Chat Rooms, Telephonic Conversations, Video Conferencing
Synchronous and Asynchronous Data Transmission
Asynchronous
In Asynchronous Transmission, data is sent in form of byte or character.
This transmission is the half-duplex type transmission.
In this transmission start bits and stop bits are added with data.
It does not require synchronization. E.g, Email, Forums, Letters
Transmission Impairments
o With any communications system, the signal that is received may differ from the signal
that is transmitted due to various transmission impairments.
o For analog signals, these impairments can degrade the signal quality.
o For digital signals, bit errors may be introduced, such that a binary 1 is transformed into
a binary 0 or vice versa.
The most significant impairments are:
Transmission Impairments
Attenuation
o It means loss of energy.
o The strength of signal decreases with increasing distance which causes loss of energy in
overcoming resistance of medium.
o This is also known as attenuated signal.
o Amplifiers are used to amplify the attenuated signal which gives the original signal back
and compensate for this loss.
Transmission Impairments
Distortion
o It means changes in the form or shape of the signal.
o This is generally seen in composite signals made up with different frequencies.
o Composite signals: a combination of two or more simple sine waves with different
frequency, phase and amplitude.
o Each frequency component has its own propagation speed travelling through a medium.
o And that is why it delay in arriving at the final destination Every component arrive at
different time which leads to distortion.
o Therefore, they have different phases at receiver end from what they had at senders
end.
Transmission Impairments
Noise
o The random or unwanted signal that mixes up with the original signal is called noise.
o There are several types of noise such as induced noise, crosstalk noise, thermal noise
and impulse noise which may corrupt the signal.
o Induced noise comes from sources such as motors and appliances. These devices act as
sending antenna and transmission medium act as receiving antenna.
o Thermal noise is movement of electrons in wire which creates an extra signal.
o Crosstalk noise is when one wire affects the other wire.
o Impulse noise is a signal with high energy that comes from lightning or power lines
Transmission Impairments
Noise
o The random or unwanted signal that mixes up with the original signal is called noise.
o There are several types of noise such as induced noise, crosstalk noise, thermal noise
and impulse noise which may corrupt the signal.
o Induced noise comes from sources such as motors and appliances.
These devices act as sending antenna and transmission medium act as receiving
antenna.
Can be reduced by shielding the cables, using twisted pair and proper grounding.
o Thermal noise is movement of electrons in wire which creates an extra signal.
Generated by the random motion of electrons in a wire.
Transmission Impairments
The ratio of the average signal power to the average noise power is called Signal-to-
Noise Ratio (SNR).
o High SNR means the signal is less corrupted by noise.
o Low SNR means the signal is more corrupted by noise.
• A modem converts digital data to an analog signal so that it can be transmitted over an
analog.
Example: Public telephone system (PSTN)
o Voice frequency range of 300Hz to 3400Hz
o Digital devices are attached to the network via a modem (modulator-demodulator),
which converts digital data to analog signals and vice-versa.
Signal Encoding Techniques
2. Storage Errors
• DRAM memory cell contents can change spuriously due to some electromagnetic
interference
• In magnetic storage devices such as disks, magnetic flux density increases could
cause one or more bits to flip (change that value)
Error Detection and Correction
• Networks must be able to transfer data from one device to another with acceptable
accuracy.
• For most applications, a system must guarantee that the data received are identical to
the data transmitted.
Data Transmission Error Detection and Correction
• Any time data are transmitted from one node to the next, they can become corrupted in
passage.
• Many factors can alter one or more bits of a message.
• Some applications require a mechanism for detecting and correcting errors.
Types of Errors
• Whenever bits flow from one point to another, they are subject to unpredictable
changes because of interference. This interference can change the shape of the signal.
Single-Bit-Error
• The term single-bit error means that only 1 bit of a given data unit (such as a byte,
character, or packet) is changed from 1 to 0 or from 0 to 1.
Data Transmission Error Detection and Correction
• Single-bit errors are the least likely type of error in serial data transmission.
Burst Error
The term burst error means that 2 or more bits in the data unit have changed from 1 to 0
or from 0 to 1.
Redundancy
• The central concept in detecting or correcting errors is redundancy.
• To be able to detect or correct errors, we need to send some extra bits with our data.
• These redundant bits are added by the sender and removed by the receiver.
• Their presence allows the receiver to detect or correct corrupted bits.
• In the simplest system to visualize, the redundancy takes the form of transmitting the
information twice and comparing the two sets of data to see that they are the same.
Data Transmission Error Detection and Correction
Redundancy
• Statistically, it is very unlikely that a random error will occur a second time at the same
place in the data.
• If a discrepancy is noted between the two sets of data, an error is assumed and the data
is caused to be re-transmitted. When two sets of data agree, error-free transmission is
assumed.
DATA RATE LIMITS
• A very important consideration in data communications is how fast we can send data, in
bits per second.
• Over a channel, data rate depends on three factors:
o The bandwidth available
o The level of the signals we use
o The quality of the channel (the level of noise)
Chapter Two: Transmission Medium
o A transmission medium in computer networks is a communication channel between
sender and receiver and it is used to transfer data from one network to another.
o When two or more computers are interconnected through a medium to exchange
messages or information, then the medium is known as a transmission medium in
computer networks.
o The transmission medium is also called transmission media.
o The transmission medium is a media between interconnected devices.
o Different types of transmission media have unique properties and are used for
different purposes.
Transmission Medium
Factors to be considered while selecting a Transmission Medium
o Transmission Rate
o Distances
Chapter 2: Transmission Medium
1. Guided transmission media
Twisted pair
Coaxial cable
Fiber optics
2. Unguided transmission media
Microwave (Terrestrial Microwave)
Satellite Microwave
Broadcast radio
Infrared
Transmission Medium
Guided Media
• It is defined as the physical medium through which the signals are transmitted.
• It is also known as Bounded media and wired media.
Types:
• Twisted pair cable
• Coaxial cable
• Fiber optics cable
Twisted Pair
Twisted Pair Cable
o It was invented by Alexander Graham Bell.
o Consists of two insulated copper wires twisted around each other.
o Twisted pair cables have two conductors that are generally made up of copper and
each conductor has insulation.
o These two conductors are twisted together, thus giving the name twisted pair
cables.
o Uses RJ-45 connectors.
Twisted Pair
Generally inexpensive.
Easy to install.
Radio waves cover a large area, and they can penetrate the walls.
particular computer and sending out that data on the cable as electronic signals.
three concepts:
Signal bounce
Terminator
Chapter Three: Computer Network
Sending the signal
When sending a signal from one computer on the network to another, network data
in the form of electronic signals is in fact sent to all the computers on the network.
However, only the computer whose address matches the address encoded in the
original signal accepts the information.
All other computers reject the data.
Because only one computer at a time can send data on a bus network, the number
of computers attached to the bus will affect network performance.
Chapter Three: Computer Network
The more computers there are on a bus, the more computers will be waiting to put
data on the bus and, consequently, the slower the network will be.
Computers on a bus either transmit data to other computers on the network or
listen for data from other computers on the network.
They are not responsible for moving data from one computer to the next.
Consequently, if one computer fails, it does not affect the rest of the network.
Chapter Three: Computer Network
Signal bounce
Because the data, or electronic signal, is sent to the entire network, it travels from
one end of the cable to the other. If the signal is allowed to continue uninterrupted, it
will keep bouncing back and forth along the cable and prevent other computers from
sending signals. Therefore, the signal must be stopped after it has had a chance to
reach the proper destination address.
Terminator
o To stop the signal from bouncing, a component called a terminator is placed at
each end of the cable to absorb free signals.
Chapter Three: Computer Network
o Absorbing the signal clears the cable so that other computers can send data.
o In a bus topology, if a break in the cable occurs the two ends of the cable at the
break will not have terminators, so the signal will bounce, and all network activity
will stop.
o This is one of several possible reasons why a network will go "down."
o The computers on the network will still be able to function as stand-alone
computers; however, as long as the segment is broken, they will not be able to
communicate with each other or otherwise access shared resources.
Chapter Three: Computer Network
o Absorbing the signal clears the cable so that other computers can send data.
o In a bus topology, if a break in the cable occurs the two ends of the cable at the
break will not have terminators, so the signal will bounce, and all network activity
will stop.
o This is one of several possible reasons why a network will go "down."
o The computers on the network will still be able to function as stand-alone
computers; however, as long as the segment is broken, they will not be able to
communicate with each other or otherwise access shared resources.
Chapter Three: Computer Network
Advantage
o Easy of installation
o Less cable used
Disadvantage
o The failure of Trunk disables the entire network
o Difficult to scale up
Chapter Three: Computer Network
2. RING Topology
o In a ring topology, each device has a dedicated point-to-point connection with only
the two devices on either side of it.
o A signal is passed along the ring in one direction, from device to device, until it
reaches its destination.
o Each device in the ring incorporates a repeater.
o When a device receives a signal intended for another device, its repeater
regenerates the bits and passes them along.
Chapter Three: Computer Network
Advantages
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 (maximum ring
length and number of devices).
Collision is reduced than bus since the data flow is in one direction
In addition, fault isolation is simplified.
Disadvantages
• Unidirectional traffic can be a disadvantage.
• In a simple ring, a break in the ring can disable the entire network.
Chapter Three: Computer Network
3. Star Topology
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 .
Chapter Three: Computer Network
Advantages:
1. A star topology is less expensive than a mesh topology.
2. Easy to install and reconfigure.
3. Far less cabling needs to be housed, and additions, moves, and deletions involve
only one connection: between that device and the hub.
4. Other advantage 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.
Chapter Three: Computer Network
Disadvantages
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).
Costly because of the central device when compared with bus and ring topology.
Chapter Three: Computer Network
4. Mesh Topology:
In a mesh topology, every device has a dedicated point-to-point link to every other
device.
Each and every computers are connected to all the other computers on the
network.
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 - I nodes, node 2 must be connected to n – 1
nodes, and finally node n must be connected to n - 1 nodes. We need n(n - 1)
physical links.
Chapter Three: Computer Network
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.
To accommodate that many links, every device on the network must have n – 1
input/output ports to be connected to the other n - 1 stations.
The data is always delivered.
Since, if one of the primary computers or connections in the network fails, the rest
of the network continues to operate normally.
But the performance of the network will decrease.
Computer Network: Network Topology
4. Mesh Topology
A mesh topology network offers superior redundancy and reliability.
In a mesh topology, each computer is connected to every other computer by
separate cabling.
This configuration provides redundant paths throughout the network so that if one
cable fails, another will take over the traffic.
While ease of troubleshooting and increased reliability are definite benefits, these
networks are expensive to install because they use a lot of cabling.
Chapter Three: Computer Network
Advantages:
Manages high amounts of traffic, because multiple devices can transmit data
simultaneously.
A failure of one device does not cause a break in the network or transmission of
data.
Adding additional devices does not disrupt data transmission between other
devices.
Disadvantages:
Costly
Building and maintaining the topology is difficult and time consuming.
Computer Network: Network Topology
5. Tree Topology
Tree topology integrate multiple star topologies together into bus.
The bus/star hybrid approach supports future expandability of the network much
better than star or bus.
Disadvantages
Overall length of each segment is limited to the type of cabling used.
If the backbone line breaks, the entire segment goes down.
More difficult to configure and wire than other topologies.
Computer Network: Network Topology
6. Hybrid Topology
A combination of two or more topology is known as hybrid topology. For example a
combination of star and mesh topology is known as hybrid topology.
Advantages
2. Scalable as we can further connect other computer networks with the existing
networks with different topologies.
Disadvantages
1. Fault detection and installation is difficult.
3. Design is complex so maintenance is high expensive.
Thank You!
?