CCN Lab Manual
CCN Lab Manual
Laboratory Manual
for
B.Tech. VI Semester
3. NARROWBAND FM TRANSCIEVER
https://www.gnuradio.org/
Process1b:
https://www.gnuradio.org/
1. Aim:
The aim of the project is to design an AMPLITUDE MODULATION: Transmitter and Receiver using
GNU Radio Tool.
2. Software Required:
GNU Radio
3. Theory:
Modulation is the process by which the characteristics of a signal called carrier are varied in accordance with
the instantaneous values of another signal called message signal. Modulation modifies the signal into a form
that is suitable for transmission over the channel. AM is one of the modulation techniques used for signal
transmission.
Modulation maybe
AMPLITUDE MODULATION (A.M)
FREQUENCY MODULATION (F.M)
PHASE MODULATION (P.M)
depending on which parameter of the carrier is varied. Amplitude modulation is a process by which the wave
signal is transmitted by modulating the amplitude of the signal. It is often called AM and is commonly used in
transmitting a piece of information through a radio carrier wave. Amplitude modulation is mostly used in the
form of electronic communication.
AM TRANSMITTER:
AM transmitter takes the audio signal as an input and delivers amplitude modulated wave to the antenna as an
output to be transmitted. The audio signal from the output of the microphone is sent to the pre-amplifier, which
boosts the level of the modulating signal.
The RF oscillator generates the carrier signal. Both the modulating and the carrier signal is sent to AM
modulator. Power amplifier is used to increase the power levels of AM wave. This wave is finally passed to the
antenna to be transmitted.
AM RECEIVER:
AM receiver is capable of picking up the radio waves transmitted from a radio station and transforming them
into audible signals suitable to the human ear. Many stations may be transmitting different signals
simultaneously, and therefore the AM receiver must be capable of focusing on the specific station of your
choice.
The receiver must be able to tune to a particular frequency while having the ability to reject the rest so that only
one station can be heard at a time. The receiver must also convert the modulated signal into the original signal.
This conversion is accomplished through a peak detector. After the original signal is recovered it will be
necessary to amplify it so that one can hear the signal.
4. Block diagram:
AM Transmitter:
AM Receiver:
5. Procedure:
1. Open GNU Radio Companion.
2. Create a new file
3. After completion of new file creation, by default options and variable blocks will be available.
4. Click the options block and change the ID and Title to “AM Transmitter”. Click on Ok
5. Connect the circuit as per the circuit diagram shown below:
6. Observations:
AM Transmitter TESTING – Go to AM Transmitter window. Generate and run the flow graph. Speaking
into the microphone shows a change in the pattern on the QT GUI Time Sink. The level of modulation can be
adjusted with the volume control.
Simulation Result of AM Transmitter
The red coloured wave is the ‘carrier wave’ and the blue coloured signal is the ‘message signal’ performed for
a sampling rate of 48kHz
• when no input is given –
8. Precautions:
1. Connections between the blocks must be made properly.
2. Output type of 1st block and input type of 2nd block must be same. For example let us consider that output
type of 1st block is FLOAT. Then the input type of 2nd block to which 1st block is connected must also
be FLOAT.
9. Result:
AMPLITUDE MODULATION: TRANSMITTER & RECEIVER are generated successfully using GNU
Radio.
10. Applications:
1. Air Band Radio.
2. Broadcast Transmissions.
3. Quadrature Amplitude Modulation.
4. Amplitude Modulation in form of Single side band is still used for HF radio Links.
Experiment 2
SINGLE SIDEBAND TRANSCIEVER
1. Aim:
The aim of the project is to design an SSBSC-SC modulation and demodulation system using GNU
Radio.
2. Software Required:
GNU Radio
3. Theory:
Modulation is the process by which the characteristics of a signal called carrier are varied in accordance with
the instantaneous values of another signal called message signal. Modulation modifies the signal into a form
that is suitable for transmission over the channel. SSB SC is one of the modulation techniques used for signal
transmission.
Modulation may be
AMPLITUDE MODULATION (A.M)
FREQUENCY MODULATION (F.M)
PHASE MODULATION (P.M)
depending on which parameter of the carrier is varied. SSB SC is one of the A.M modulation techniques. The
process of suppressing one of the sidebands along with the carrier and transmitting a single sideband is called
a Single Sideband Suppressed Carrier system or simply SSBSC
In the above figure, the carrier and the lower sideband are suppressed. Hence, the upper sideband is used for
transmission. Similarly, we can suppress the carrier and the upper sideband while transmitting the lower
sideband.
This SSBSC system, which transmits a single sideband has high power, as the power allotted for both the
carrier and the other sideband is utilized in transmitting this Single Sideband.
4. Block diagram:
SSBSC modulation:
SSBSC Demodulation:
5. Procedure:
1. Open GNU Radio Companion.
2. Create a new file using
3. After completion of new file creation, by default options and variable blocks will be available.
4. click the options block and change the ID and Title to “SSBSC”. Click on Ok
BANDPASS FILTER:
FREQUENCY SINK
Address: tcp://127.0.0.1:50301
Signal Source Multiply
OPTIONS:
VARIABLE
QT GUI RANGE AND CHOOSER:
FREQUENCY XLATING FIR FILTER
Taps: firdes.low_pass(1.0,samp_rate,3000,100)
SIGNAL SOURCE
6. Observations:
7. Analysis:
From the experiment, it is observed that the carrier which transmits a single sideband has high power,
as the power allotted for both the carrier and the other sideband is utilized in transmitting this Single
Sideband.
8. Precautions:
In order to limit the rate at which that source block creates samples, the throttle must be present in the
flowgraph.
9. Result:
SSBSC modulated and demodulated signals are generated successfully using GNU Radio.
10. Applications:
Military communication
Radio communications.
Air communication
Radar communication
Experiment 3
NARROWBAND FM TRANSCEIVER
1. Aim:
The aim of the project is to design a NBFM modulation and demodulation system using GNU Radio.
2. Software Required:
GNU Radio
3. Theory:
Modulation is the process by which the characteristics of a signal called carrier are varied in accordance with
the instantaneous values of another signal called message signal.
Modulation maybe
AMPLITUDE MODULATION (A.M)
FREQUENCY MODULATION (F.M)
PHASE MODULATION (P.M)
Frequency Modulation is a modulation in which the frequency of the carrier wave is altered in accordance
with the instantaneous amplitude of the modulating signal, keeping phase and amplitude constant.
Modification of carrier wave frequency is performed for the purpose of sending data or information over small
distances. Frequency and phase modulation are complementary principal methods of angle modulation, which
is a class of carrier frequency modulation often used in telecommunications transmission systems.
𝜔𝑚 = modulation frequency
3. After completion of new file creation, by default options and variable blocks will be available.
4. click the options block and change the ID and Title to “NBFM”. Click on Ok
8. Precautions:
In order to limit the rate at which that source block creates samples throttle must be present in the flowgraph.
9. Result:
NBFM modulated and demodulated signals are generated successfully using GNU Radio.
10. Applications:
• Frequency modulation is widely used for FM radio broadcasting.
• It is also used in telemetry, radar, seismic prospecting, and monitoring newborns for seizures
via EEG
• It is used in two-way radio systems, sound synthesis, magnetic tape-recording systems and
some video transmission systems.
Experiment 4
PHASE SHIFT KEYING TRANSMITTER AND RECEIVER
1. Aim:
The aim of the project is to design a BPSK modulation and demodulation system using GNU
Radio.
2. Software Required:
GNU Radio
3. Theory:
Modulation is the process by which the characteristics of a signal called carrier are varied in accordance
with the instantaneous values of another signal called message signal. Modulation modifies the signal into
a form that is suitable for transmission over the channel.
Digital modulation is the process of encoding a digital information signal into the amplitude, phase, or
frequency of the transmitted signal. The encoding process affects the bandwidth of the transmitted signal
and its robustness
to channel impairments.
Phase Shift Keying 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.
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 is basically a Double Side Band Suppressed Carrier DSBSC modulation scheme, for message being
the digital information.
4. Block diagram:
BPSK Modulator
The block diagram of Binary Phase Shift Keying consists of the balance modulator which has the carrier
sine wave as one input and the binary sequence as the other input. Following is the diagrammatic
representation.
The modulation of BPSK is done using a balance modulator, which multiplies the two signals
applied at the input. For a zero binary input, the phase will be 0° and for a high input, the phase
reversal is of 180°.
Following is the diagrammatic representation of BPSK Modulated output wave along with its given
input.
The output sine wave of the modulator will be the direct input carrier or the inverted 180°phaseshifted
input carrier, which is a function of the data signal.
BPSK Demodulator
The block diagram of BPSK demodulator consists of a mixer with local oscillator circuit, a bandpass
filter, a two-input detector circuit. The diagram is as follows.
By recovering the band-limited message signal, with the help of the mixer circuit and the band pass filter,
the first stage of demodulation gets completed. The base band signal which is band limited is obtained
and this signal is used to regenerate the binary message bit stream.
In the next stage of demodulation, the bit clock rate is needed at the detector circuit to produce the original
binary message signal. If the bit rate is a sub-multiple of the carrier frequency, then the bit clock
regeneration is simplified. To make the circuit easily understandable, a decision-making circuit may also
be inserted at the 2nd stage of detection.
5. Procedure:
1.Open GNU Radio Companion.
2.Create a new file using
3. After completion of new file creation, by default options and variable blocks will be available.
4. click the options block and change the ID and Title to “BPSK”. Click on Ok. Select output
language Python in QT GUI generate option.
Options block: Variable 1:
Variable 2:
Variable 3:
Variable 4:
Variable 2:
Variable 3:
Variable 4: Variable 5:
Variable 6: Variable 7:
Variable 8:
QT GUI Range 1: QT GUI Range 2:
Costas Loop:
6. Observations:
BPSK OUTPUT WAVEFORM OBTAINED AT QT GUI TIME SINK
As the data type of QT GUI Time sink is of complex type so we get the output as complex signal
(real and imaginary signals).
Fig 6.1: This graph represents real part of transmission signal (Signal 1)
From this graph we can observe the high peaks as data “1” and the phase shifted peaks as data “0”.
Fig 6.2: This graph represents imaginary part of transmission signal (signal 3)
On the receive side, to get rid of the ISI by using another RRC filter. Basically, a filter is used on the transmitter
side, the RRC filter, that creates the ISI but controls the bandwidth and then another RRC filter at the receiver.
When we convolve the two RRC filters, we get a raised cosine filter. The raised-cosine filter is a filter frequently
used for pulse-shaping in digital modulation due to its ability to minimize inter symbol interference (ISI).The
output of the receive-side RRC filter is a raised cosine shaped signal with minimized ISI. The frequency plot is
showing a signal with a nice shape to it and that rolls-off into the noise. If we didn't put a shaping filter on the
signal, we would be transmitting square waves that produce a lot of energy in the adjacent channels. By reducing
the out-of-band emissions, our signal now stays nicely within our channel's bandwidth. The below fig 8. graph
is frequency spectrum of BPSK transceiver.
The blue graph indicates frequency spectrum of transmitter part for data ”0”. On the transmitter side RRC
filter that creates ISI but controls bandwidth.
fig 6.4 This graph is frequency spectrum of the receiver part (Data 1). The output of
the receive-side RRC filter is a raised cosine shaped signal with minimized ISI. The
frequency plot is showing a signal with a nice shape to it and that rolls-off into the
noise. Now we can observe the data stream in frequency domain.
At demodulation: The below figure 6.5 QT GUI Time sink output wave form
Fig 6.6 The above graph indicates Recovered message bits from Demodulator
Fig 6.7 The above graph indicates difference signal from subtract block
8. Precautions:
In order to limit the rate at which that source block creates samples throttle must be present in the
flowgraph.
9. Result:
BPSK modulated and demodulated signals are generated successfully using GNU Radio.
10. Applications:
The BPSK modulation is a very basic technique used in various wireless standards such as CDMA,
WiMAX (16d, 16e), WLAN 11a, 11b, 11g, 11n, Satellite, DVB, Cable modem etc.
Experiment 5
QUADRATURE PHASE SHIFT KEYING TRANSMITTER AND
RECEIVER
1. Aim:
The aim of the project is to design QPSK Transceiver using GNU Radio.
2. Software Required:
GNU Radio
3. Theory:
Digital modulation is a process that impresses a digital symbol on to a signal suitable for
transmission on a wired or wireless medium in order to receive that signal at receiving end
correctly without any loss of information. For short distance transmissions, base band modulation
is usually used, which is referred as line coding. In long distance and wireless transmission band
pass modulation (carrier modulation) is used. In band pass modulation a base band signal is
modulated over a high frequency sinusoidal carrier signal. The bandwidth of this modulated signal
depends upon the base band signal and modulation scheme to be used. A sequence of digital
symbols is used to alter the parameters of high frequency carrier signal. There are three parameters
that can be changed, which are amplitude, phase and frequency. In this way three basic digital
modulation schemes are amplitude shift keying (ASK), frequency shift keying (FSK), and phase
shift keying (PSK). Besides on these basic digital modulation schemes a variety of digital
modulation schemes can be derived from their combination. For example, combination of two
orthogonal BPSK modulated signals form quadrature Phase Shift Keying (QPSK). The
combination of amplitude modulated signal and phase modulated signal form a quadrature
amplitude modulation (QAM). These both modulated techniques i.e., QAM and QPSK are used in
IEEE 802.11 (Wi-Fi), IEEE 802.16 (WiMAX) and 3G (WCDMA/HSDPA) Wireless technologies,
including Wireless Modem.
Quadrature Phase Shift Keying (QPSK) QPSK can be stated as a method for transmitting digital
information across an analog channel. Data bits are grouped into pairs, and each pair is represented
by a particular waveform, called a symbol, to be sent across the channel after modulating the
carrier. The most commonly used modulation scheme for wireless and cellular systems is
Quadrature Phase Shift Keying (QPSK). It’s because it does not suffer from BER degradation
while the band width efficiency is increased. The QPSK The QPSK signals are mathematically
defined as:
Si(t)=A cos(2πfc t +θt) 0≤t≤T,---(1)
Where ϴt= (2i-1) π/4 ------ (2)
The carrier frequency is chosen as integral multiple of the symbol rate, therefore in any symbol
interval, the signal initial phase is also one of the four phases (π/4,3π/4,5π/4,7π/4).
The above expression can be written as:
St (t)=A cosθt cos2πfct - A sinθt sin2πfct
St = Si1Ø1(t) + Si2Ø2(t)
where,
Ø1=√(2/T) cos 2πfct,0≤t≤T
Ø2=√(2/T) cos 2πfct,0≤t≤T
Si1=√E cosθt
Si2=√E sinθt
E=A2(T/2)
Θt=tan-1(Si2/Si1)
Therefore, the QPSK signal can be entirely written as:
S(t)=(A/√2) [I(t) cos2πfct - Q(t) sin2πfct] where -∞<t<∞
4. Block diagram:
The block diagram of QPSK modulator :
5. Procedure:
1. Open GNU Radio Companion.
2. Create a new file using
3. After completion of new file creation, by default options and variable blocks will be available.
4. click the options block and change the ID and Title to “QPSK”. Click on Ok
6. Observations:
Bitstream transmitted from random source:
Constellation transmitted:
Constellation received:
Bitstream recovered after psk demod block:
7. Analysis:
8. Precautions:
In order to limit the rate at which that source block creates samples throttle must be present in the
flowgraph.
9. Result:
QPSK transceiver is designed using GNU Radio.
10. Applications:
• Cable modems
• Videoconferencing
• Cellular phone systems
• Satellite transmission of MPEG2 video
Experiment 6
WBFM RECEIVER USING RTL SDR DONGLE
1.Aim:
The aim of the project is to design a FM demodulation system using GNU Radio.
2. Software Required:
GNU Radio
3. Theory:
Modulation is the process by which the characteristics of a signal called carrier are varied in
accordance with the instantaneous values of another signal called message signal.
Modulation maybe
AMPLITUDE MODULATION (A.M)
FREQUENCY MODULATION (F.M)
PHASE MODULATION (P.M)
Frequency Modulation is a modulation in which the frequency of the carrier wave is altered in
accordance with the instantaneous amplitude of the modulating signal, keeping phase and
amplitude constant. Modification of carrier wave frequency is performed for the purpose of
sending data or information over small distances. Frequency and phase modulation are
complementary principal methods of angle modulation, which is a class of carrier frequency
modulation often used in telecommunications transmission systems.
𝜔𝑚 = modulation frequency
4. Hardware connection:
5. Procedure:
1. Open GNU Radio Companion.
2. Create a new file using
3. After completion of new file creation, by default options and variable blocks will be available.
4. click the options block and change the ID and Title to “RTL SDR RADIO”. Click on Ok
7. Analysis:
8. Precautions:
In order to limit the rate at which that source block creates samples throttle must be
present in the flowgraph.
9. Result:
FM demodulated signals are generated successfully using GNU Radio.
10. Applications:
• Frequency modulation is widely used for FM radio broadcasting.
• It is also used in telemetry, radar, seismic prospecting, and monitoring newborns
for seizures via EEG
• It is used in two-way radio systems, sound synthesis, magnetic tape-recording
systems and some video-transmission systems.
CISCO PACKET
TRACER
INSTALLATION
AIM: Installation of Simulation Tools (packet tracer and NS2)
PROCEDURE:
Step 01:
Go to the official Cisco Netacad website. Once you’re logged in click on “RESOURCES >
DOWNLOAD PACKETTRACER”.
Now the file will be downloaded in the Downloads folder of the machine.
Step 02 :
Next, open the folder where the Packet Tracer setup file has been downloaded to and
double click on thesetup file.
Step 03:
On the packet tracer software license agreement select the “ACCEPT THE AGREEMENT”
radio button and click on “NEXT”.
Step 04:
To choose a destination folder where Cisco Packet Tracer will be installed click on the
“BROWSE” button. However, it is always recommended to use the default folder. Click on
“NEXT” to proceed.
Step 05:
• On the “SELECT START MENU” section choose a folder where Packet Tracer shortcuts will be
created and click on “NEXT”
• On the “ADDITIONAL TASKS” section you can also choose to “CREATE A DESKTOP SHORTCUT” and
to “CREATE A QUICK LAUNCH SHORTCUT”
Step - 06: Now the Installation will be done as follows,
Step – 07: After the Installation Process is done, know double click on the Cisco Packet
Tracer desktop iconand enter your NetAcad login credentials. The Packet Tracer user
interface will be displayed and you can now start designing and simulating CISCO networks.
Step – 08: After a successful login, the cisco packet interface appears as shown in the
below image.
Step – 09: Once it is done, the user can access all the contents of the cisco packet tracer.
EXPERIMENT - 7
AIM: LAN configuration using packet tracer
Software Used: Cisco Packet Tracer
EXPERIMENT – 8
AIM: Design sample LAN Topologies using Packet Tracer
Software Used: Cisco Packet Tracer
Theory:
STAR TOPOLOGY:
• Star topology is a type of network topology where each computer/host is
connected to a centraldevice, known as hub device, using a point-to-point
connection (from hub to PC).
• In star topology each host is not only connected with hub, but other computers are
connected togethervia networking terminology. Hosts can communicate with each
other via hub.
RING TOPOLOGY:
• A ring topology is a network configuration where device connections create a circular
data path. Each networked device is connected to two others, like points on a circle.
Together, devices in a ringtopology are referred to as a ring network.
• In a ring network, packets of data travel from one device to the next until they reach
their destination.Most ring topologies allow packets to travel only in one direction,
called a unidirectional ring network. Others permit data to move in either direction,
called bidirectional.
BUS TOPOLOGY:
• Alternatively referred to as line topology, bus topology is a network setup where each
computer andnetwork device is connected to a single cable or backbone. Depending
on the type of computer network card, a coaxial cable or an RJ-45 network cable is
used to connect them together.
MESH TOPOLOGY:
In Mesh Topology, all the computers are inter-connected to each other in a network.
Each computer notonly sends its own signals but also relays data from other computers.
This type of topology is very expensive as its very difficult to establish the connections
of the mesh topology. In a Mesh topology every node has a point-to-point connection to
the other node. The connections in the mesh topology canbe wired or wireless.
STAR TOPOLOGY:
BUS TOPOLOGY:
RING TOPOLOGY:
MESH TOPOLOGY:
Experiment – 9
AIM: Configuring any two application layer protocols using packet tracer.
Step 2:- Configure IP addresses on the PCs and the Mail Server.
Step 3:- Now configure mail clients on the PCs and mail service on the generic server.
Click on PC0. Go to its Desktop tab, and click on Email. Configure the email client by filling in
the user, server and login information. Be sure to Save.
Step 4 :- Lastly test the email service. Go to PC0 email client, compose an email and send its
to PC1 email address
FTP:
Step 1:- Build the network topology.
Step 2:- Configure static IP addresses on the System and the server.
System1: IP address: 192.168.1.1 Subnet Mask: 255.255.255.0
System2: IP address: 192.168.1.2 Subnet Mask: 255.255.255.0
Server: IP address: 192.168.1.2 Subnet Mask: 255.255.255.0
Step 3:- Now try using an FTP client built in the System to send files to an FTP
server configured in the Server.
Step 4:- Create a file in the System1 then upload it to the server using FTP.
Step 5:- Now upload the file from the System1 to the server using FTP.
NETWORK SIMULATOR (NS2) INSTALLATION
Step - 01: Please go to below given link and download the three .rar files after that place
these files into in a single folder.
Link : How to install NS2 on windows 7 with the help of Cygwin Window | DP Project
Development (wordpress.com)
• Part 1:NS 2.35-Part1
Step 2:
Now Extract the NS 2.35.part1 only. It will extract the part2 an part3 automatically.
Extract after the download is complete.
Part 2 and Part 3 will automatically be extracted.
Step 3:
Step 4:
Now create a folder Named Noureddine inside the C:\cygwin\home.
Now copy the ns-allinone-2.35-RC7avecxgraph.rar and Extract there. You’ll get ns-
allinone-2.35-RC7 folder.
Now copy the .bashrc file from the downloaded Extract folder.
Now go to the “C:\cygwin\home\user” folder and replace (i.epaste) the .bashrc file
that is copied.
• Now open the Cygwin command window which is on your desktop and type
source. basher
• Now type ns then the symbol “$” change to “%”
STAR Topology:
INPUT AND OUTPUT :
PROGRAM: RING TOPOLOGY