Professional Documents
Culture Documents
CONTENTS
SL NO.
CHAPTER
PAGE NO.
PREAMBLE
1.1
Introduction
1.2
Overview
1.3
PROJECT PLANNING
2.1
10
2.2
11
2.3
Work Execution
12
LITERATURE REVIEW
3.1
14
3.1.1
Traditional Scheme(TS)
15
3.1.2
15
3.1.3
16
3.2
17
3.2.1
17
3.2.2
19
3.3
Software
3.3.1
MatLab
22
3.3.2
Simulink
22
4.1
PNC
4.1.1
24
4.1.2
30
4.2
4.2.1
36
4.2.2
37
SL NO.
CHAPTER
PAGE NO.
4.2.3
5.1
40
5.2
43
5.3
47
5.4
Throughput comparison
48
6.1
Conclusion
50
6.2
Future Scope
50
REFERENCES
51
APPENDIX
53
38
LIST OF FIGURES
FIGURE NO.
NAME
PAGE NO.
1.1
2.1
Gantt chart
10
2.2
11
2.3
11
3.1
Traditional Scheme
15
3.2
16
3.3
16
3.4
BPSK transmitter
18
3.5
BPSK receiver
18
3.6
BPSK Modulation
19
3.7
QPSK transmitter
20
3.8
QPSK receiver
21
3.9
QPSK modulation
21
4.1
26
4.2
28
4.3
29
4.4
29
4.5
30
4.6
33
4.7
34
4.8
34
4.9
35
4.10
35
4.11
36
5.1
40
5.2
40
5.3
41
5.4
41
5.5
BPSK demodulation
42
FIGURE NO.
NAME
PAGE NO.
5.6
Output at node 1
42
5.7
Output at node 2
43
5.8
43
5.9
44
5.10
44
5.11
45
5.12
Iphase demodulation
45
5.13
Qphase demodulation
46
5.14
Output at node 1
46
5.15
Output at node 2
47
5.16
47
5.17
48
LIST OF TABLES
TABLE NO.
NAME
PAGE NO.
2.1
Work distribution
12
4.1
24
4.2
25
4.3
31
4.4
31
CHAPTER 1
PREAMBLE
CHAPTER 1
PREAMBLE
1.1
INTRODUCTION
One of the biggest challenges in the wireless communication research is to deal with
the interference at the receiver when signals from multiple sources arrive
simultaneously. In the radio channel of the physical layer of wireless networks, data
are transmitted through electromagnetic (EM) waves in a broadcast manner. The
interference between these EM waves causes the data to be scrambled.
To overcome its negative impact, most schemes attempt to find ways to either reduce
or avoid interference through receiver design or transmission scheduling. For
example, in 802.11 networks, the carrier-sensing mechanism manages the nodes
within the same broadcast range so that at most one source can transmit or receive at
any time. However, network coding arithmetic is generally only applied on bits that
have already been correctly received. That is, when the EM waves from multiple
sources overlap and mutually interfere, network coding cannot be used to resolve the
data at the receiver.
This project proposes the application of network coding directly within the radio
channel at the physical layer. We call this scheme Physical-layer Network Coding
(PNC). The main idea of PNC is to make use of a technique similar to network
coding, but at the physical layer that deals with EM signal reception and modulation.
We show that PNC requires only two time slots for the two end nodes to exchange
two frames, one in each direction, via the middle relay node. By contrast, three time
slots are needed in straightforward network coding, and four time slots are needed if
network coding is not used at all.
1.2
OVERVIEW
A main distinguishing feature of a wireless network compared with a wired network
is its broadcast nature, in which the signal transmitted by a node may reach several
other nodes, and a node may receive signals from several other nodes simultaneously.
Rather than a blessing, this feature is treated more as an interference-inducing
nuisance in most wireless networks today .In this project we have tried to bring out
this advantage by simulating a wireless transmission scheme intended to work at the
physical layer.
The simulation of PNC using different modulation techniques has been performed
using Simulink. The various issues faced while trying to implement hardware were
low cost, low power transmitters and receivers are not feasible. PNC requires tight
synchronization due to which complexity in implementation increases. Mapping at
relay is not similar to normal demodulation techniques because of which a new
complex mapping system needs to be designed which in turn increases the cost. Thus,
hardware implementation of the project was not feasible. Instead of the same, BER
analysis and Throughput Comparison was simulated in MatLab.
1.3
CHAPTER 2
PROJECT PLANNING
CHAPTER 2
PROJECT PLANNING
2.1
10
2.2
11
2.3
WORK EXECUTION
The various Software based works which includes Simulink models, algorithm
formulation and coding were divided among the team members present in the group
and the table 2.1 shows the same.
SL
TASK
TEAM MEMBERS
NO.
1
PNC mapping
3
PNC mapping
5
12
CHAPTER 3
LITERATURE REVIEW
13
CHAPTER 3
LITERATURE REVIEW
Wireless networks have been designed using the wired network as the blueprint. The
design abstracts the wireless channel as a point-to-point link, and grafts wired
network protocols onto the wireless environments. For example, routing uses shortest
path protocols, routers forward packets but do not modify the data, and reliability
relies on retransmissions. The design has worked well for wired networks, but less so
for the unreliable and unpredictable wireless medium.
Wireless networks have been designed using the wired network as the blueprint. The
design abstracts the wireless channel as a point-to-point link, and grafts wired
network protocols onto the wireless environments. For example, routing uses shortest
path protocols, routers forward packets but do not modify the data, and reliability
relies on retransmissions. The design has worked well for wired networks, but less so
for the unreliable and unpredictable wireless medium.
3.1
14
3.1.1
3.1.2
15
3.1.3
16
the different modulation techniques and how these modulation techniques are applied
to PNC. They are explained in the later chapters.
3.2
3.2.1
S1 (t )
Eb
cos(2 fct ) ; for symbol 1
Tb
S 2 (t )
Eb
E
cos(2 f ct ) - b cos(2 f ct ) ; for symbol 0
Tb
Tb
In the case of PSK, there is only one basis function of Unit energy which is given by
1 (t )
2
cos(2 fct ) ; 0 t Tb
Tb
17
S1 (t )
Eb 1 (t ) ; 0 t Tb ; for symbol 1
S 2 (t ) Eb 1 (t ) ; 0 t Tb ; for symbol 0
BINARY DATA
SEQUENCE
PRODUCT
MODULATOR
BINARY PSK
SIGNAL
DECISION
DEVICE
Choose 1 if x1>0
Choose 0 if x1<0
THRESHOLD
18
3.2.2
19
Sn (t )
2 Es
cos 2 fc t 2n 1 ; n = 1,2,3,4.
Ts
4
1 (t )
2
cos 2 fct
Ts
2 (t )
2
sin 2 f ct
Ts
BINARY
SIGNAL
DEMULTIPLEXER
QPSK
SIGNAL
20
DECISION
DEVICE
RECEIVED
SIGNAL
MUX
DECISION
DEVICE
OUTPUT
BINARY
SIGNAL
21
3.3 .1
MATLAB
The name MATLAB stands for MATrix LABoratory. MATLAB was written
originally to provide easy access to matrix software developed by the LINPACK
(linear system package) and EISPACK (Eigen system package) projects. MATLAB is
a high-performance language for technical computing. It integrates computation,
visualization, and programming environment. Furthermore, MATLAB is a modern
programming language environment: it has sophisticated data structures, contains
built-in editing and debugging tools, and supports object-oriented programming.
These factors make MATLAB an excellent tool for teaching and research. MATLAB
has many advantages compared to conventional computer languages (e.g. C,
FORTRAN) for solving technical problems. MATLAB is an interactive system
whose basic data element is an array that does not require dimensioning. The software
package has been commercially available since 1984 and is now considered as a
standard tool at most universities and industries worldwide.
It has powerful built-in routines that enable a very wide variety of computations. It
also has easy to use graphics commands that make the visualization of results
immediately available. Specific applications are collected in packages referred to as
toolbox. There are toolboxes for signal processing, symbolic computation, control
theory, simulation, optimization, and several other fields of applied science and
engineering.
3.3.2
SIMULINK
Simulink is an environment for simulation and model-based design for dynamic and
embedded systems. It provides an interactive graphical environment and a
customizable set of block libraries that let you design, simulate, implement, and test a
variety of time-varying systems, including
22
CHAPTER 4
DESIGN AND IMPLEMENTATION
23
CHAPTER 4
Where r2(t) is the received signal, a1 and a3 are the transmitted amplitudes, and fc is
the carrier frequency.
PNC mapping for BPSK can be shown in the Table 4.1
24
25
26
Sine Wave
The Sine Wave block provides a sinusoid.
Switch
The Switch block passes through the first input or the third input based on the
value of the second input. The first and third inputs are called data inputs. The
second input is called the control input.
Inport
Inport blocks are the links from outside a system into the system.
Outport
Outport blocks are the links from a system to a destination outside the system.
Scope
The Scope block displays its input with respect to simulation time. The Scope
block can have multiple axes (one per port); all axes have a common time
range with independent y-axes. The Scope allows you to adjust the amount of
time and the range of input values displayed.
Unit delay
The Unit Delay block delays its input by the specified sample period.
Logical Operator
The Logical Operator block performs the specified logical operation on its
inputs. An input value is TRUE (1) if it is nonzero and FALSE (0) if it is zero.
Clock
Digital clock for logic systems.
27
Quantizer
The Quantizer block passes its input signal through a stair-step function so
that many neighboring points on the input axis are mapped to one point on the
output axis. The effect is to quantize a smooth signal into a stair-step output.
Compare to constant
The Compare To Constant block compares an input signal to a constant.
Abs
The Abs block outputs the absolute value of the input.
Gain
The Gain block multiplies the input by a constant value (gain).
28
29
Fig. 4.5 Simulink model for XOR operation performed at the nodes.
Figure 4.5 shows the Simulink model used to obtain the data from other node by
XORing it data present at its own node
4.1.2
30
Real-Imag to complex
The Real-Imag to Complex block converts real and/or imaginary inputs to a
complex-valued output signal.
Constant
The Constant block generates a real or complex constant value.
D Flip Flop
The block satisfies the truth table of a D-flip flop.
Unipolar to bipolar
31
The Unipolar to Bipolar Converter block maps the unipolar input signal to a
bipolar output signal.
Sign
The Sign block indicates the sign of the input:The output is 1 when the input
is greater than zero.The output is 0 when the input is equal to zero.The output
is -1 when the input is less than zero.
32
33
Fig. 4.7 Simulink Model for Even and odd bits generation
In QPSK, the input data is splitted into even and odd bits. These even and odd bits are
modulated using sinosoidal waveforms known as in-phase and quadrature-phase
components. The in-phase and quadrature-phase components are obtained from the
Simulink model shown in the figure 4.7. The iphase and qphase components are
modulated using the model shown in the figure 4.8.
34
channel. The iphase and qphase signals are obtained back from the complex signal.
These signas is given to a sample and hold circuit. The outputs are then applied to
various stages of digitization to obtain the pnc mapped signals. The mapping process
is carried out using the model shown in the figure 4.9.
35
Figure 4.10 shows QPSK demodulation. At the nodes the received signal is
demodulated using a product modulator, the output of which is given to a filter. Then
by comparative and logical operations the data is obtained
The ouput at node 1 is obtained by XORing the received data with its own data.
Similarly, at node 2 also. Simulink model used for the same is shown in the figure
4.11.
Fig. 4.11 Simulink Model for XOR operation performed at the nodes
4.2 .1
stream over
a communication
channel that
has
been
altered
due
36
coding scheme,
and
by
applying channel
coding schemes
such
as
4.2.2
For a set of SNR values, Random noise is is generated and added to the
modulated signal.
Signum function is used to convert the sinosoidal signal received back to bits.
The number of error bits is calculated from the transmitted and received bits
and BER is computed.
The following algorithm was implemented in matlab for BER analysis of PNC:
These two signals get added up and are received at the relay.
For a set of SNR values, Random noise is is generated and added to the
received modulated signal.
Signum function is used to convert the sinosoidal signal received back to bits.
37
4.2.3
Throughput comparison is done for the obtained values and the results are
plotted.
38
CHAPTER 5
RESULTS AND DISCUSSION
39
5.1
40
41
42
5.2
43
44
45
46
5.3
47
5.4
THROUGHPUT COMPARISON
Using MATLAB, Throughput Comparison for TS, SNC and PNC is performed and
the results is shown in the figure 5.17. And in doing so, PNC can potentially achieve
100% and 50% throughput increases compared with traditional transmission and
straightforward network coding, respectively, in multi-node networks.
48
CHAPTER 6
CONCLUSION AND FUTURE
SCOPE
49
CHAPTER 6
CONCLUSION
This project has introduced a novel scheme called Physical-layer Network Coding
(PNC) that significantly enhances the throughput performance of multi-hop wireless
networks. Instead of avoiding interference caused by simultaneous electromagnetic
waves transmitted from multiple sources, PNC embraces interference to effect
network-coding operation directly from physical-layer signal modulation and
demodulation. With PNC, signal scrambling due to interference, which causes packet
collisions in the MAC layer protocol of traditional wireless networks (e.g., IEEE
802.11), can be eliminated. For PNC to be feasible, network-coding arithmetic must
be realized with direct electromagnetic-wave mixing, coupled with appropriate
modulation and demodulation schemes.
PNC using BPSK and QPSK is simulated using Simulink. BER analysis is done for
BPSK, QPSK and PNC using MATLAB and expected results are obtained.
6.2
FUTURE SCOPE
The concept of PNC can not only be applied using phase modulation schemes but
also for frequency modulation schemes and OFDM. Here, we assume the carrier
frequencies and the symbol duration should be same. But, if the carrier frequencies
and symbol duration vary for different users, then the PNC mapping schemes and the
demodulation techniques vary. When multiple nodes are trying to communicate
between them, then the user nodes must act as a relay also, because at any given point
of time only two nodes can communicate. A scheduling algorithm should be
implemented so that which node transmits its data at a given time.
50
REFERENCES
[1] Simon Haykin, Communication Systems, Wiley, 4th edition, 2001
[2] Physical Layer Network Coding, Shengli Zhang, Soung-Chang Liew, and Patrick, P. K. Lam
[3] Physical-layer network coding: Tutorial, survey, and beyond, Soung Chang Liew,
Department of Information Engineering, The Chinese University of Hong Kong, Hong
Kong, Shengli Zhang, Lu Lu, Department of Communication Engineering, Shenzhen
University, China
[4] http://en.wikipedia.org/wiki/Linear_network_coding
[5] http://en.wikipedia.org/wiki/Phase-shift_keying
51
APPENDIX
52
LIST OF ABBREVIATIONS
ABBREVIATION
DEFINITION
BER
BPSK
EM
Electro Magnetic
MATLAB
Matrix Laboratory
PNC
QPSK
RF
Radio Frequency
RX
Receiver
SNC
TS
Traditional Scheme
XOR
eXclusive-OR
53
USER MANUAL
PROJECT TITLE:
PROJECT NO.:
PES13FYP11
GUIDE:
1PE10EC059
VISHRUTH D
1PE10EC118
SUMEET KUMAR
1PE09EC097
ABHILASH AM
1PE11EC400
54
CONCEPT:
55
Light is also a form of EM wave, hence PNC can be applied for light wave
communication.
BLOCK DIAGRAM:
Input data at user nodes 1 and 2 are modulated and sent to relay node at the same time
in one time slot. Relay demodulates the superimposed received signal and maps it to
the XORed signal. This XORed signal is modulated and broadcasted back to two
nodes in one timeslot. Each node demodulates and decodes the received signal by
performing XOR operation using its own data in order to obtain the data sent from
other user.
56
USING SIMULINK
Open MATLAB and select SIMULINK tool as shown in the figure 1
Using Simulink
57
The Simulink Library Browser is the library where you find all the blocks you may
use in Simulink. Simulink software includes an extensive library of functions
commonly used in modelling a system.
The toolbar of the scope has options for changing the axis parameter to enable
the user for proper analysis of the waveform.
58