Unit - 1 Computer Network Notes
Unit - 1 Computer Network Notes
Signal
A signal is a function of one or more variables that indicate some (usually physical)
phenomenon. Signal Serves as Carriers of information between communication devices.
They can Convey Different types of information depending on the Application required.
These signals can be of different forms.
Examples of Signals
• Human voice
• Voltage in electrical circuits
• Room temperature controlled by a thermostat system
• Position, speed, and acceleration of an aircraft
• Accelerometers measured with accelerometers in mobile phones
• Force measured with force sensors in robotic systems
• Electromagnetic waves used to transmit information in wireless computer
networks
• Digital photographs • Digital Music Recording.
Types of Signals
There Are Different Types of Signals Which are given Below:
• Analog Signals
• Digital Signals
• Real and Complex Signals
• Deterministic and Random Signals
• Periodic and Non-periodic Signals
1. Analog Signals
This signals are continues (e.g., a real variable) and infinitely varying with time
parameter or can take any value within a given range.
• This signals are represented by the sine wave
• Example Like audio signals, temperature readings, sound waves or television
waves.
2. Digital Signals
A signal that is a function of discrete variables (e.g., an integer variable) is said to be
discrete time and this are represent in binary form (0s and 1s).
• More robust against noise.
• Commonly used in computer systems and telecommunications.
It has Continuous
This is discrete and
Representation waveforms and infinite
finite values.
number of values.
Temperature, flow
Example Motor start, trip etc.
measurement etc.
•
Distortion – It means changes in the form or shape of the signal. This is generally
seen in composite signals made up with different frequencies. Each frequency
component has its own propagation speed travelling through a medium. And thats
why it delay in arriving at the final destination Every component arrive at different
time which leads to distortion. Therefore, they have different phases at receiver end
from what they had at senders end.
• Noise – The random or unwanted signal that mixes up with the original signal is
called noise. There are several types of noise such as induced noise, crosstalk noise,
thermal noise and impulse noise which may corrupt the signal.
Induced noise comes from sources such as motors and appliances. These devices act
as sending antenna and transmission medium act as receiving
antenna. Thermal noise is movement of electrons in wire which creates an extra
signal. Crosstalk noise is when one wire affects the other wire. Impulse noise is a
signal with high energy that comes from lightning or power lines
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.
Data Encoding
The common types of line encoding are Unipolar, Polar, Bipolar, and Manchester.
Encoding Techniques
The data encoding technique is divided into the following types, depending upon the
type of data conversion.
•
Unipolar scheme – In this scheme, all the signal levels are either above or below the axis.
NRZ - L NRZ–LEVEL
There is a change in the polarity of the signal, only when the incoming signal changes
from 1 to 0 or from 0 to 1. It is the same as NRZ, however, the first bit of the input
signal should have a change of polarity.
NRZ - I NRZ–INVERTED
If a 1 occurs at the incoming signal, then there occurs a transition at the beginning of
the bit interval. For a 0 at the incoming signal, there is no transition at the beginning
of the bit interval.
NRZ codes has a disadvantage that the synchronization of the transmitter clock with
the receiver clock gets completely disturbed, when there is a string of 1s and 0s.
Hence, a separate clock line needs to be provided.
Bi-phase Encoding
The signal level is checked twice for every bit time, both initially and in the middle.
Hence, the clock rate is double the data transfer rate and thus the modulation rate is
also doubled. The clock is taken from the signal itself. The bandwidth required for this
coding is greater.
• Bi-phase Manchester
• Differential Manchester
Bi-phase Manchester
In this type of coding, the transition is done at the middle of the bit-interval. The
transition for the resultant pulse is from High to Low in the middle of the interval, for
the input bit 1. While the transition is from Low to High for the input bit 0.
Differential Manchester
In this type of coding, there always occurs a transition in the middle of the bit
interval. If there occurs a transition at the beginning of the bit interval, then the input
bit is 0. If no transition occurs at the beginning of the bit interval, then the input bit
is 1.
Bipolar schemes – In this scheme there are three voltage levels positive, negative, and zero.
The voltage level for one data element is at zero, while the voltage level for the other element
alternates between positive and negative.
Digital Modulation provides more information capacity, high data security, quicker
system availability with great quality communication. Hence, digital modulation
techniques have a greater demand, for their capacity to convey larger amounts of
data than analog ones.
There are many types of digital modulation techniques and we can even use a
combination of these techniques as well. In this chapter, we will be discussing the
most prominent digital modulation techniques.
Amplitude Shift Keying (ASK) is a type of Amplitude Modulation which represents the
binary data in the form of variations in the amplitude of a signal.
Following is the diagram for ASK modulated waveform along with its input.
Any modulated signal has a high frequency carrier. The binary signal when ASK is
modulated, gives a zero value for LOW input and gives the carrier output for HIGH
input.
Frequency Shift Keying (FSK) is the digital modulation technique in which the frequency
of the carrier signal varies according to the discrete digital changes. FSK is a scheme
of frequency modulation.
The output of a FSK modulated wave is high in frequency for a binary HIGH input and
is low in frequency for a binary LOW input. The binary 1s and 0s are
called Mark and Space frequencies.
Phase Shift Keying (PSK) is the digital modulation technique in which the phase of the
carrier signal is changed by varying the sine and cosine inputs at a particular time.
PSK technique is widely used for wireless LANs, bio-metric, contactless operations,
along with RFID and Bluetooth communications.
PSK is of two types, depending upon the phases the signal gets shifted. They are −
This is also called as 2-phase PSK (or) Phase Reversal Keying. In this technique, the sine
wave carrier takes two phase reversals such as 0° and 180°.
BPSK
Reference Signal
This is the phase shift keying technique, in which the sine wave carrier takes four
phase reversals such as 0°, 90°, 180°, and 270°.
If this kind of techniques are further extended, PSK can be done by eight or sixteen
values also, depending upon the requirement. The following figure represents the
QPSK waveform for two bits input, which shows the modulated result for different
instances of binary inputs.
Switching techniques
In large networks, there can be multiple paths from sender to receiver. The switching technique will
decide the best route for data transmission.
Switching technique is used to connect the systems for making one-to-one communication.
o Circuit switching is a switching technique that establishes a dedicated path between sender
and receiver.
o In the Circuit Switching Technique, once the connection is established then the dedicated
path will remain to exist until the connection is terminated.
o Circuit switching in a network operates in a similar way as the telephone works.
o A complete end-to-end path must exist before the communication takes place.
o In case of circuit switching technique, when any user wants to send the data, voice, video, a
request signal is sent to the receiver then the receiver sends back the acknowledgment to
ensure the availability of the dedicated path. After receiving the acknowledgment, dedicated
path transfers the data.
o Circuit switching is used in public telephone network. It is used for voice transmission.
o Fixed data can be transferred at a time in circuit switching technology.
o Circuit establishment
o Data transfer
o Circuit Disconnect
Message Switching
o Data channels are shared among the communicating devices that improve the efficiency of
using available bandwidth.
o Traffic congestion can be reduced because the message is temporarily stored in the nodes.
o Message priority can be used to manage the network.
o The size of the message which is sent over the network can be varied. Therefore, it supports
the data of unlimited size.
o The message switches must be equipped with sufficient storage to enable them to store the
messages until the message is forwarded.
o The Long delay can occur due to the storing and forwarding facility provided by the message
switching technique.
Packet Switching
o The packet switching is a switching technique in which the message is sent in one go, but it
is divided into smaller pieces, and they are sent individually.
o The message splits into smaller pieces known as packets and packets are given a unique
number to identify their order at the receiving end.
o Every packet contains some information in its headers such as source address, destination
address and sequence number.
o Packets will travel across the network, taking the shortest path as possible.
o All the packets are reassembled at the receiving end in correct order.
o If any packet is missing or corrupted, then the message will be sent to resend the message.
o If the correct order of the packets is reached, then the acknowledgment message will be sent.
o In the above diagram, A and B are the sender and receiver respectively. 1 and 2 are the nodes.
o Call request and call accept packets are used to establish a connection between the sender
and receiver.
o When a route is established, data will be transferred.
o After transmission of data, an acknowledgment signal is sent by the receiver that the message
has been received.
o If the user wants to terminate the connection, a clear signal is sent for the termination.
Node takes routing decisions to forward Node does not take any routing decision.
the packets.
Congestion cannot occur as all the Congestion can occur when the node is busy, and
packets travel in different directions. it does not allow other packets to pass through.
o Packet Switching technique cannot be implemented in those applications that require low
delay and high-quality services.
o The protocols used in a packet switching technique are very complex and requires high
implementation cost.
o If the network is overloaded or corrupted, then it requires retransmission of lost packets. It
can also lead to the loss of critical information if errors are nor recovered