Bca 2 Unit 2
Bca 2 Unit 2
Parallel transmission
Defination:
Within a computing or communication device, the distances between different
subunits are too short. Thus, it is normal practice to transfer data between subunits
using a separate wire to carry each bit of data. There are multiple wires connecting
each sub-unit and data is exchanged using a parallel transfer mode. This mode of
operation results in minimal delays in transferring each word.
Asynchronous Transmission
• Asynchronous transmission sends only one character at a time where a character
is either a letter of the alphabet or number or control character i.e. it sends one byte
of data at a time.
• Bit synchronization between two devices is made possible using start bit and stop
bit.
• Start bit indicates the beginning of data i.e. alerts the receiver to the arrival of
new group of bits. A start bit usually 0 is added to the beginning of each byte.
• Stop bit indicates the end of data i.e. to let the receiver know that byte is finished,
one or more additional bits are appended to the end of the byte. These bits, usually
1s are called stop bits.
• Addition of start and stop increase the number of data bits. Hence more
bandwidth is consumed in asynchronous transmission.
• There is idle time between the transmissions of different data bytes. This idle time
is also known as Gap
• The gap or idle time can be of varying intervals. This mechanism is called
Asynchronous, because at byte level sender and receiver need not to be
synchronized. But within each byte, receiver must be synchronized with the
incoming bit stream.
Application of Asynchronous Transmission
Asynchronous transmission is well suited for keyboard type-terminals and paper tape
devices. The advantage of this method is that it does not require any local storage at
the terminal or the computer as transmission takes place character by character.
2. Asynchronous transmission is best suited to Internet traffic in which information is
transmitted in short bursts. This type of transmission is used by modems.
Advantages of Asynchronous transmission
1. This method of data transmission is cheaper in cost as compared to
synchronous e.g. If lines are short, asynchronous transmission is better, because
line cost would be low and idle time will not be expensive.
2. In this approach each individual character is complete in itself, therefore if
character is corrupted during transmission, its successor and predecessor character
will not be affected.
3. It is possible to transmit signals from sources having different bit rates.
4. The transmission can start as soon as data byte to be transmitted becomes
available.
5. Moreover, this mode of data transmission in easy to implement.
Disadvantages of asynchronous transmission
1. This method is less efficient and slower than synchronous transmission due to the
overhead of extra bits and insertion of gaps into bit stream.
2. Successful transmission inevitably depends on the recognition of the start bits.
These bits can be missed or corrupted.
Synchronous Transmission
• Synchronous transmission does not use start and stop bits.
• In this method bit stream is combined into longer frames that may contain
multiple bytes.
• There is no gap between the various bytes in the data stream.
• In the absence of start & stop bits, bit synchronization is established between
sender & receiver by ‘timing’ the transmission of each bit.
• Since the various bytes are placed on the link without any gap, it is the
responsibility of receiver to separate the bit stream into bytes so as to reconstruct
the original information.
• In order to receive the data error free, the receiver and sender operates at the
same clock frequency.
Data Communication
Data communication refers to the exchange of data between a source and a
receiver via form of transmission media such as a wire cable. Data
communication is said to be local if communicating devices are in the same
building or a similarly restricted geographical area.
The meanings of source and receiver are very simple. The device that transmits
the data is known as source and the device that receives the transmitted data is
known as receiver. Data communication aims at the transfer of data and
maintenance of the data during the process but not the actual generation of
the information at the source and receiver.
Datum mean the facts information statistics or the like derived by calculation or
experimentation. The facts and information so gathered are processed in
accordance with defined systems of procedure. Data can exist in a variety of
forms such as numbers, text, bits and bytes. The Figure is an illustration of a
simple data communication system.
The term data used to describe information, under whatever form of words you
will be using.
A data communication system may collect data from remote locations through
data transmission circuits, and then outputs processed results to remote
locations. Figure provides a broader view of data communication networks. The
different data communication techniques which are presently in widespread use
evolved gradually either to improve the data communication techniques already
existing or to replace the same with better options and features. Then, there are
data communication jargons to contend with such as baud rate, modems, routers,
LAN, WAN, TCP/IP, ISDN, during the selection of communication systems. Hence, it
becomes necessary to review and understand these terms and gradual
development of data communication methods.
8. Data security. Providing data security and privacy is also built into most
communication software packages. It prevents access of data by unauthorized
users.
9. Log information. Several communication software are designed to develop
log information, which consists of all jobs and data communications tasks that
have taken place. Such information may be used for charging the users of the
network based on their usage of the network resources.
The effectiveness depends on four fundamental characteristics of data
communications
1. Delivery: The data must be deliver in correct order with correct destination.
2.Accuracy: The data must be deliver accurately.
3. Timeliness: The data must be deliver in a timely manner.late delivered
Data useless.
4. Jitter: It is the uneven delay in the packet arrival time that cause uneven
quality.
Analog Transmission
To send the digital data over an analog media, it needs to be converted into analog
signal.There can be two cases according to data formatting.
Bandpass:The filters are used to filter and pass frequencies of interest. A bandpass
is a band of frequencies which can pass the filter.
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.
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.
Analog-to-Analog 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:
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
frequency, which then reflects analog data.
The frequency and phase of carrier signal remain unchanged.
Frequency Modulation
In this modulation technique, the frequency of the carrier signal is modified 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.
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.
Easier in processing
Best suited for audio and video transmission.
It has a low cost and is portable.
It has a much higher density so that it can present more refined information.
Not necessary to buy a new graphics board.
Uses less bandwidth than digital sounds
Provide more accurate representation of a sound
It is the natural form of a sound.
Disadvantages of Analog Signals
Analog tends to have a lower quality signal than digital.
The cables are sensitive to external influences.
The cost of the Analog wire is high and not easily portable.
Low availability of models with digital interfaces.
Recording analog sound on tape is quite expensive if the tape is damaged
It offers limitations in editing
Tape is becoming hard to find
It is quite difficult to synchronize analog sound
Quality is easily lost
Data can become corrupted
Plenty of recording devices and formats which can become confusing to store a
digital signal
Digital sounds can cut an analog sound wave which means that you can’t get a
perfect reproduction of a sound
Offers poor multi-user interfaces
Digital Transmission
Data or information can be stored in two ways, analog and digital. For a computer to
use the data, it must be in discrete digital form.Similar to data, signals can also be
in analog and digital form. To transmit data digitally, it needs to be first converted to
digital form.
Digital-to-Digital Conversion
This section explains how to convert digital data into digital signals. It can be done
in two ways, line coding and block coding. For all communications, line coding is
necessary whereas block coding is optional.
Line Coding
The process for converting digital data into digital signal is said to be Line Coding.
Digital data is found in binary format.It is represented (stored) internally as series of
1s and 0s.
Digital signal is denoted by discreet signal, which represents digital data.There are
three types of line coding schemes available:
Uni-polar Encoding
Unipolar encoding schemes use single voltage level to represent data. In this case,
to represent binary 1, high voltage is transmitted and to represent 0, no voltage is
transmitted. It is also called Unipolar-Non-return-to-zero, because there is no rest
condition i.e. it either represents 1 or 0.
Polar Encoding
Polar encoding scheme uses multiple voltage levels to represent binary values. Polar
encodings is available in four types:
Differential Manchester
This encoding scheme is a combination of RZ and NRZ-I. It also transit 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.
Block Coding
To ensure accuracy of the received data frame redundant bits are used. For
example, in even-parity, one parity bit is added to make the count of 1s in the frame
even. This way the original number of bits is increased. It is called Block Coding.
Block coding is represented by slash notation, mB/nB.Means, m-bit block is
substituted with n-bit block where n > m. Block coding involves three steps:
Division,
Substitution
Combination.
After block coding is done, it is line coded for transmission.
Analog-to-Digital 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 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
Analog Digital
An analog signal is a continuous signal Digital signals are time separated
that represents physical signals which are generated using
measurements. digital modulation.
It is denoted by sine waves It is denoted by square waves
It uses a continuous range of values Digital signal uses discrete 0 and 1 to
that help you to represent represent information.
information.
Temperature sensors, FM radio Computers, CDs, DVDs are some
signals, Photocells, Light sensor, examples of Digital signal.
Resistive touch screen are examples
of Analog signals.
The analog signal bandwidth is low The digital signal bandwidth is high.
Analog signals are deteriorated by Relatively a noise-immune system
noise throughout transmission as well without deterioration during the
as write/read cycle. transmission process and write/read
cycle.
Analog hardware never offers flexible Digital hardware offers flexibility in
implementation. implementation.
It is suited for audio and video It is suited for Computing and digital
transmission. electronics.
Processing can be done in real-time It never gives a guarantee that digital
and consumes lesser bandwidth signal processing can be performed in
compared to a digital signal. real time.
Analog instruments usually have s Digital instruments never cause any
scale which is cramped at lower end kind of observational errors.
and gives considerable observational
errors.
Analog signal doesn’t offer any fixed Digital signal has a finite number, i.e., 0
range. and 1.
o Attenuation: Attenuation means the loss of energy, i.e., the strength of the
signal decreases with increasing the distance which causes the loss of energy.
o Distortion: Distortion occurs when there is a change in the shape of the
signal. This type of distortion is examined from different signals having
different frequencies. Each frequency component has its own propagation
speed, so they reach at a different time which leads to the delay distortion.
o Noise: When data is travelled over a transmission medium, some unwanted
signal is added to it which creates the noise.
Guided Media
It is defined as the physical medium through which the signals are transmitted. It is
also known as Bounded media.
Types Of Guided media:
Twisted pair:
Twisted pair is a physical media made up of a pair of cables twisted with each other.
A twisted pair cable is cheap as compared to other transmission media. Installation of
the twisted pair cable is easy, and it is a lightweight cable. The frequency range for
twisted pair cable is from 0 to 3.5KHz.
A twisted pair consists of two insulated copper wires arranged in a regular spiral
pattern
The degree of reduction in noise interference is determined by the number of turns
per foot. Increasing the number of turns per foot decreases noise interference.
Fibre Optic
o Fibre optic cable is a cable that uses electrical signals for communication.
o Fibre optic is a cable that holds the optical fibres coated in plastic that are used
to send the data by pulses of light.
o The plastic coating protects the optical fibres from heat, cold, electromagnetic
interference from other types of wiring.
o Fibre optics provide faster data transmission than copper wires.
UnGuided Transmission
o An unguided transmission transmits the electromagnetic waves without using
any physical medium. Therefore it is also known as wireless transmission.
o In unguided media, air is the media through which the electromagnetic energy
can flow easily.
Unguided transmission is broadly classified into three categories:
Radio waves
o Radio waves are the electromagnetic waves that are transmitted in all the
directions of free space.
o Radio waves are omnidirectional, i.e., the signals are propagated in all the
directions.
o The range in frequencies of radio waves is from 3Khz to 1 khz.
o In the case of radio waves, the sending and receiving antenna are not aligned,
i.e., the wave sent by the sending antenna can be received by any receiving
antenna.
o An example of the radio wave is FM radio.
Microwaves
Microwaves are of two types:
o Terrestrial microwave
o Satellite microwave communication.
Characteristics of Microwave:
o Frequency range: The frequency range of terrestrial microwave is from 4-6
GHz to 21-23 GHz.
o Bandwidth: It supports the bandwidth from 1 to 10 Mbps.
o Short distance: It is inexpensive for short distance.
o Long distance: It is expensive as it requires a higher tower for a longer
distance.
o Attenuation: Attenuation means loss of signal. It is affected by environmental
conditions and antenna size.
Advantages Of Microwave:
o Microwave transmission is cheaper than using cables.
o It is free from land acquisition as it does not require any land for the
installation of cables.
o Microwave transmission provides an easy communication in terrains as the
installation of cable in terrain is quite a difficult task.
o Communication over oceans can be achieved by using microwave
transmission.
Infrared
o An infrared transmission is a wireless technology used for communication over
short ranges.
o The frequency of the infrared in the range from 300 GHz to 400 THz.
o It is used for short-range communication such as data transfer between two
cell phones, TV remote operation, data transfer between a computer and cell
phone resides in the same closed area.
Characteristics Of Infrared:
o It supports high bandwidth, and hence the data rate will be very high.
o Infrared waves cannot penetrate the walls. Therefore, the infrared
communication in one room cannot be interrupted by the nearby rooms.
o An infrared communication provides better security with minimum
interference.
o Infrared communication is unreliable outside the building because the sun rays
will interfere with the infrared waves.
What is Topology?
Topology defines the structure of the network of how all the components are
interconnected to each other. There are two types of topology: physical and logical
topology.
Physical topology is the geometric representation of all the nodes in a network.
Bus Topology
o The bus topology is designed in such a way that all the stations are connected
through a single cable known as a backbone cable.
o Each node is either connected to the backbone cable by drop cable or directly
connected to the backbone cable.
o When a node wants to send a message over the network, it puts a message
over the network. All the stations available in the network will receive the
message whether it has been addressed or not.
o The bus topology is mainly used in 802.3 (ethernet) and 802.4 standard
networks.
o The configuration of a bus topology is quite simpler as compared to other
topologies.
o The backbone cable is considered as a "single lane" through which the
message is broadcast to all the stations.
o The most common access method of the bus topologies is CSMA (Carrier
Sense Multiple Access).
CSMA: It is a media access control used to control the data flow so that data
integrity is maintained, i.e., the packets do not get lost. There are two alternative
ways of handling the problems that occur when two nodes send the messages
simultaneously.
o CSMA CD: CSMA CD (Collision detection) is an access method used to
detect the collision. Once the collision is detected, the sender will stop
transmitting the data. Therefore, it works on "recovery after the collision".
o CSMA CA: CSMA CA (Collision Avoidance) is an access method used to
avoid the collision by checking whether the transmission media is busy or not.
If busy, then the sender waits until the media becomes idle. This technique
effectively reduces the possibility of the collision. It does not work on "recovery
after the collision".
Advantages of Bus topology:
o Low-cost cable: In bus topology, nodes are directly connected to the cable
without passing through a hub. Therefore, the initial cost of installation is low.
o Moderate data speeds: Coaxial or twisted pair cables are mainly used in
bus-based networks that support upto 10 Mbps.
o Familiar technology: Bus topology is a familiar technology as the installation
and troubleshooting techniques are well known, and hardware components are
easily available.
o Limited failure: A failure in one node will not have any effect on other nodes.
Disadvantages of Bus topology:
o Extensive cabling: A bus topology is quite simpler, but still it requires a lot of
cabling.
o Difficult troubleshooting: It requires specialized test equipment to
determine the cable faults. If any fault occurs in the cable, then it would disrupt
the communication for all the nodes.
o Signal interference: If two nodes send the messages simultaneously, then
the signals of both the nodes collide with each other.
o Reconfiguration difficult: Adding new devices to the network would slow
down the network.
o Attenuation: Attenuation is a loss of signal leads to communication issues.
Repeaters are used to regenerate the signal.
Ring Topology
Star Topology
Tree topology
o Tree topology combines the characteristics of bus topology and star topology.
o A tree topology is a type of structure in which all the computers are connected
with each other in hierarchical fashion.
o The top-most node in tree topology is known as a root node, and all other
nodes are the descendants of the root node.
o There is only one path exists between two nodes for the data transmission.
Thus, it forms a parent-child hierarchy.
Advantages of Tree topology
o Support for broadband transmission: Tree topology is mainly used to
provide broadband transmission, i.e., signals are sent over long distances
without being attenuated.
o Easily expandable: We can add the new device to the existing network.
Therefore, we can say that tree topology is easily expandable.
o Easily manageable: In tree topology, the whole network is divided into
segments known as star networks which can be easily managed and
maintained.
o Error detection: Error detection and error correction are very easy in a tree
topology.
o Limited failure: The breakdown in one station does not affect the entire
network.
o Point-to-point wiring: It has point-to-point wiring for individual segments.
Disadvantages of Tree topology
o Difficult troubleshooting: If any fault occurs in the node, then it becomes
difficult to troubleshoot the problem.
o High cost: Devices required for broadband transmission are very costly.
o Failure: A tree topology mainly relies on main bus cable and failure in main
bus cable will damage the overall network.
o Reconfiguration difficult: If new devices are added, then it becomes difficult
to reconfigure.
Mesh topology