MATLAB implementation of an emulator of the downlink physical layer of the LTE system A Degree Thesis Submitted to the Faculty of the Escola Tècnica d'Enginyeria de Telecomunicació de Barcelona Universitat Politècnica de Catalunya by Christian Guitart Canal In partial fulfilment of the requirements for the degree in Telecommunications Systems Engineering
2 Advisor: Ferran Casadevall Palacio Barcelona, May 2016
3 Abstract LTE (Long Term Evolution) and LTE-A (Long Term Evolution Advance) are two mobile communication standards nowadays are intensively being deployed around the World. Their benefits are meaningful both for users and network exploiters; users take profit of a better bit data rate and network exploiters reduce costs related to network infrastructures. In this project two main tasks have been performed. Firstly, an analysis of the LTE physical layer in downlink domain, secondly, a GUI (Graphical User Interface) has been developed as an academic tool with the purpose to study the LTE system. Both tasks have been carried out by the use of MATLAB software, which provides some features that allows performing these tasks. The scope of this project is mainly academic. In one hand, a better comprehension for mobile communications networks has been acquired by the author. On other hand, a tool for other people is provided. They don’t have to be aware how the code works: only they need to select the desired parameters and then the system simulation is performed.
4 Resum LTE i LTE-A són dos estàndards de comunicacions mòbils que s’estan desplegant de forma intensiva en tot el Mon. Els seus beneficis son rellevants tant per als usuaris com per als explotadors de les xarxes; els usuaris treuen profit d’una taxa de transmissió de dades més altes I els explotadors de xarxes redueixen costos relacionats amb les infraestructures de xarxes. En aquest projecte s’han dut a terme dos tasques principals. Primerament, un anàlisis de la capa física de LTE en enllaç descendent. També s’ha creat una GUI com a eina acadèmica amb el propòsit d’estudiar com funciona el Sistema LTE. Ambdós tasques s’han fet mitjançant l’ús del software MATLAB, el qual proporciona moltes facilitats que permeten realitzar aquestes tasques. El propòsit del projecte és bàsicament acadèmic. Per una banda, l’autor ha adquirit una millor comprensió de les xarxes de comunicacions mòbils. Per una alter banda es proporciona una eina perquè la facin servir altres persones sense que hagin de conèixer com funciona el codi, sinó que simplement han de seleccionar els paràmetres del Sistema LTE i amb això ja es duu a terme la simulació del sistema.
5 Resumen LTE y LTE-A son dos estándares de comunicaciones móviles que se están desplegando intensivamente en todo el Mundo. Sus beneficios son significativos tanto para los usuarios como para los operadores de redes; los usuarios sacan provecho de una mayor tasa de transferencia de datos y los operadores de red reducen costes relacionados con las infraestructuras de redes. En este proyecto se han llevado a cabo dos tareas principales. Primeramente, se realizó un análisis de enlace descendente de la capa física del Sistema LTE. Posteriormente se ha creado una GUI como herramienta académica con el propósito de facilitar el estudio del sistema LTE. Ambas tareas se han llevado a cabo con el uso del software MATLAB, que proporciona muchas facilidades para realizarlas. El propósito de este proyecto es académico. Por un lado al autor ha adquirido una mejor comprensión de las redes de comunicaciones móviles. Por otro lado, se ha desarrollado una herramienta para que puedan usarla otras personas, sin que sea preciso que conozcan cómo funciona el código: simplemente necesitan seleccionar los parámetros deseados del sistema y luego realizar la simulación del sistema.
6 Dedication This project has been possible thanks to advisor and supervisor Ferran Casadevall Palacio, who has given to me a set of guidelines and advisors. Also has giving to me an academic support, revising some concepts about LTE physical layer concepts. Also I would like to mention my family and friends, whom have supported me not to fail on the road.
7 Revision history and approval record Revision Date Purpose 0 05/05/2016 Document creation 0.1 06/05/2016 First revision 0.5 10/05/2016 Document correction 1 13/05/2016 Final version delivered 1 13/05/2016 Document validated DOCUMENT DISTRIBUTION LIST Name e-mail Christian Guitart Canal
[email protected] Ferran Casadevall Palacio
[email protected] Written by: Reviewed and approved by: Date 05/05/2016 Date 13/05/2016 Name Christian Guitart Canal Name Ferran Casadevall Palacio Position Project Author Position Project Supervisor
8 Table of contents Abstract ................................................................................................................................. 3 Resum .................................................................................................................................. 4 Resumen .............................................................................................................................. 5 Dedication ............................................................................................................................. 6 Revision history and approval record................................................................................... 7 Table of contents .................................................................................................................. 8 List of Figures ..................................................................................................................... 10 List of Tables: ..................................................................................................................... 11 1. Introduction .................................................................................................................. 12 1.1. Target ................................................................................................................... 13 1.2. Incidences ............................................................................................................ 13 1.3. Work plan, Work packages and Final Grant Diagram ........................................ 13 2. State of the art of the technology used or applied in this thesis: ............................... 18 2.1. Frame of reference .............................................................................................. 18 2.1.1. An overview of digital mobile communications standards ........................... 18 2.1.2. LTE ............................................................................................................... 20 3. Theoretical background: ............................................................................................. 21 3.1. Some theoretical concepts about mobile communications channels [1] ............ 21 3.2. Learning about LTE standard: Downlink Physical Layer .................................... 23 3.2.1. LTE channels in physical layers ................................................................... 23 3.2.2. Medium access techniques .......................................................................... 24 3.2.3. Frame structure ............................................................................................ 25 3.2.4. LTE transmission modes .............................................................................. 28 3.2.5. MIMO ............................................................................................................ 29 3.2.6. Link adaption ................................................................................................ 30 3.2.7. How to calculate data peak rate in LTE for SISO mode .............................. 30 4. Results......................................................................................................................... 33 4.1. Simulating the LTE Downlink Transmission Mode 1 .......................................... 33 4.1.1. SISO mode ................................................................................................... 33 4.1.1.1. SISO basic ................................................................................................. 35 4.1.1.2. SISO phase corrector................................................................................. 37 4.1.1.3. SISO with channel estimator...................................................................... 41 4.1.1.4. SISO complete ........................................................................................... 48
9 4.1.2. SIMO mode................................................................................................... 51 4.2. Creating the GUI .................................................................................................. 52 5. Budget ......................................................................................................................... 57 5.1. Labor Cost ........................................................................................................... 57 5.2. Amortizations ....................................................................................................... 57 6. Conclusions and future development: ........................................................................ 59 7. Bibliografía .................................................................................................................. 60 Glossary .............................................................................................................................. 61
16 GUI 05/05/2016 Project: MATLAB implementation of an emulator of the downlink physical layer of the LTE system WP ref: 5 Major constituent: Final report Sheet 5 of 5 Short description: Develop the final report including all the work done previously with more significant outcomes, as well as doing a final report revision to have a coherent memory. Start date: 01/04/2016 End date: 13/05/2016 Start event: End event: Internal task T1: Writing final report Internal task T2: Revising final report Deliverables: Final Report Dates: 13/05/2016 Milestones WP# Task# Short title Milestone / deliverable Date (week) 1 2 Project planning Project proposal and work plan 4 3 1 Transmitter design Transmitter scheme 20 3 2 Receiver design Receiver scheme 20 3 3 Communication channel design Communication channel scheme 20 4 2 GUI validation GUI 34 5 2 Revising final report Final report 35 Table 1: Milestones
Gantt Diagram Figure 1: Gantt Diagram
2. State of the art of the technology used or applied in this thesis: 2.1. Frame of reference 2.1.1. An overview of digital mobile communications standards In this section a reference of project context is provided. As the project is about LTE system, a general vision of it and about the used technologies is provided. In addition, other wireless communications that precede LTE are also commented. In early 90s, 2G (2nd -Generation) wireless mobile networks were commercially launched. Two standards, GSM (Global Systems for Mobile Communications) and IS-54 (Interim Standard-54), were the most representative. GSM vas developed by the ETSI (European Telecommunications Standards Institute) and operated not only in Europe but also in the major part of the countries of the world. IS-54 vas standardized by EIA (Electronic Industries Alliance) and TIA (Telecommunications Industry Association) together, and operated in North America. Both 2G networks were based in circuit-switching TDMA (Transmission Division Multiple Access) access technology, and were built mainly to provide voice services. Later on, the GPRS (General Packet Radio Service) standard appeared. This new standard operates over GSM networks and allows transmitting IP (Internet Protocol) packets to provide data services as SMS, MMS or WAP. All the end of the past Century, new standards for 3G (3rd-Generation) systems were proposed. These new standards suppose a fundamental improvement with respect to the previous ones, because they incorporate from very early stage not only circuit switching technologies (like 2G) but also packet-switching technologies to offer different set of Internet applications such as web browser or e-mail. Among all 3G standards the most important was UMTS (Universal Mobile Telecommunications Service), standardized by 3GPP (3rd Generation Partnership Project). Whilst at the beginning UMTS only operated in Europe and Japan, later this standard was applied to most of the World regions, mainly thanks to standardization efforts carried out. 3G standards were CDMA (Code Divided Multiple Access) based. Improvements over 3G networks such HSPA (High Speed Packet Access) or HSPA+ (High Speed Packet Access Plus) were launched for reaching higher data bit rates. These evolved standards are referred as 3’5G and 3’75G respectively.
19 In 2008 the first LTE release was developed by the 3GPP. LTE, which is sometimes considered as 3’9G standard, an echelon between 3G and 4G mobile networks. In comparison with the CDMA based standards, LTE is totally based in Internet Protocol (IP) for carrying out any kind of service, and provides more bandwidth, better speed transmission and more spectral efficiency than UMTS and its evolutions (HSPA, HSPA+). Also in 2008, specifically in March, the ITU-R (International Telecommunications Union- Radio) specified a set of requirements for 4G standards named IMT-Advanced (International Mobile Telecommunications Advanced) specification. Within 4G two standards must be highlighted: WiMax (Worldwide Interoperability for Microwave Access) or IEEE 802.16, standardized by IEEE (Institute of Electrical and Electronics Engineers); and LTE-A, a LTE evolution, standardized by 3GPP. 4G systems have the following characteristics: Internet protocol (IP) based as packet switching. Does not support traditional circuit switching telephony service. OFDMA (Orthogonal Frequency Division Multiple Access) as medium access technique. Downlink peak data transmission rates of 1 [Gbps] in low mobility and 100 Mbps in high mobility environment. Nowadays, although is not standardized yet, telecommunications enterprises are developing the first 5G (5th-Generation) prototypes, and some tests have been made. The results announce outstanding improvements in terms of data transmission speed and latency. In Table 2 a comparison of the achievable (theoretical) data peak rate for both uplink and downlink and different standards is shown. Short Term Standard Data Rate Downlink Data Rate Uplink 2G GSM 9.6 [Kbps] 9.6 [Kbps] 2’5G GPRS 53.6 [Kbps] 26.8 [Kbps] 3G UMTS 384 [Kbps] 128 [Kbps] 3’5G HSPA 7.2 [Mbps] 3.6 [Mbps] 3’7G HSPA+ (R8) 42.2 [Mbps] 11.5 [Mbps]
20 3’9G LTE 100 [Mbps] 50 [Mbps] 4G LTE-A 1 [Gbps] 500 [Mbps] Table 2: Maximum data peak rate (theoretical) comparison for different mobile communications standards 2.1.2. LTE As described in previous subsection, LTE standard is almost 4G mobile network developed by the 3GGP. Its apparition is due to different reasons that are listed below: To offer a network that could satisfy the exponential increase of data traffic. The apparition of new services over Internet, such as videoconference or video streaming, which requires an enhancement in terms of data transmission speed. By the point of view of MNO, a necessity of a new standard that drastically decreases the network costs (both CAPEX and OPEX). LTE standardization was reached at 2008 and its requirements are listed below: Improved system capacity and coverage with respect UMTS release 4th. High peak data rates. Low latency. Reduced operating costs. Multi-antenna support. Flexible bandwidth operations. Seamless integration with existing systems (UMTS, Wi-Fi, etc.). This project is based in LTE release 8 (3GPP version 8.8.0). The next LTE releases (in fact release 10) are already considered 4G standards, and a new acronym, LTE-A (LTE- Advanced), is used for referring them. However, the system core of these new releases is deeply related with the main LTE features. For this reason a good comprehension in LTE it’s useful to understand LTE-A.
3. Theoretical background: In this section the methodology applied in this project is exposed. Basically there are two different kinds of knowledge necessary to carry out this document: firstly, how it works the LTE physical layer in the downlink side; secondly, it’s necessary to have basic notions in MATLAB language programming and how it works the software with the same name. Therefore, before to exhibit the project results, it’s mandatory to have a look at the LTE physical layer in downlink side and how MATLAB works. 3.1. Some theoretical concepts about mobile communications channels [1] To understand the LTE behavior, and to familiarize the reader with the document terminology, it’s necessary to briefly explain some concepts about mobile communications channels that the LTE physical layer faces-on. Multipath propagation Multipath propagation happens because, in mobile environments, the path between transmitter and receiver is non-unique. This fact means that, while the transmitted signal is being propagated, multiple indirect paths appear as consequence of reflection and diffraction. Two kinds of multipath propagation appear: Close echoes: Also called fast fading, occur at the receiver proximities due to the multiple signal reflections within short time scale. There are two models used to characterize this fading: Rayleigh and Riccian. Throughout this document only Rayleigh model is going to be used. Far echoes: Associated with reflections far to the receiver, these echoes occur within a large time scale. These reflections produce channel scattering, which importance is related to transmitter symbol time Ts. Delay Spread parameter is a way to measure this scattering and it can be calculated in a statistical way. A common, well-accepted distribution model for the different path delays related to the different echoes is to assume that they take an exponential probability distribution function [2]. Taking into account this distribution, the delay spread is calculated as its standard deviation. The Equation 1 is used to calculate an upper boundary for the delay spread, where 𝜏𝑀 refers the moment that last reflection arrives to the receiver, while 𝜏0 refers to the first signal to arrive.
22 𝐷𝑆≤𝜏𝑀− 𝜏0 [𝑠] ; 𝑀 ≥0 (1) Coherence bandwidth Parameter that ensures that channel impulse response doesn’t introduce distortion over the signal transmitted. Taking into account that channel impulse response is a stochastic process, it’s possible to determinate this parameter, from a statistical point of view by means of the channel response autocorrelation function for two different frequencies. So, two different frequencies separated less than coherence bandwidth see almost the same channel response. On the other hand, if the frequencies are separated more than coherence bandwidth, the channel response for each of these frequencies is independent with respect the others. A well-accepted relation between delay spread and coherence bandwidth is given by the equation 2, assuming that there is an exponential distribution probability function for the delay spread. 𝐵𝑐𝑜ℎ= 1 2𝜋𝐷𝑆 [𝐻𝑧] (2) ISI (Inter-Symbolic Interference) In scattering environments, ISI is produced when the delay spread is greater than symbols duration (Ds > Ts), causing that during one symbol time, the received signal coming from main path is contaminated with delayed versions of the same transmitted signal that come over other paths. As a result, the multipath propagation produces distortion. When ISI occurs is necessary to make use of equalizers to improve the original transmitted signal recovery. Doppler Effect Sometimes the UE (User Equipment) is moving while receiving data and this fact implies that the signal is received at different carrier frequency than it was transmitted. As a result, the formula for the received carrier frequency can be expressed as shown in equation 3, where 𝑓𝑡𝑥 and 𝑓𝑟𝑥 are the frequencies which signal is transmitted and received respectively, while 𝑓𝑑 is called Doppler frequency. 𝑓𝑟𝑥 = 𝑓𝑡𝑥 ±𝑓𝑑 (3) Depending on where receiver is moving to, 𝑓𝑟𝑥 will be larger or smaller than 𝑓𝑡𝑥. Doppler frequency can be calculated by using equation 4, where 𝜆 is the wavelength of the carrier frequency of the transmitted signal, 𝑣 stands for the velocity which is moving the receiver
23 and c is the light speed. Doppler frequency can be expressed in terms of transmitted carrier frequency and speed light as shown in equation 4, if taking into account that both parameters are related to wavelength. 𝑓𝑑= 𝑣 𝜆=𝑣𝑓𝑡𝑥 𝑐 [𝐻𝑧] (4) Coherency time From Doppler Effect derives coherency time concept. Can be defined as the time allowed elapsing before the envelope signal significantly changes. A theoretically value can be expressed as equation 5. 𝜏𝑐= 1 5′58𝑓𝑑 [𝑠] (5) In high-mobility environments Doppler frequency will be higher and, therefore, the Coherence Time value will be small, implying that the UE will see different channel conditions in short time intervals, combining situations where the received signal is good with moments when the signal fades. 3.2. Learning about LTE standard: Downlink Physical Layer 3.2.1. LTE channels in physical layers As can be shown in Figure 2, in LTE standard there are three channel categories, namely: Logical channels, Transport Channels and Physical Channels. Logical channels are on the top while physical channels are on the bottom. Multiple logical channels are multiplexed into one or more transport channel, which in turn are multiplexed into one or more physical channels. Not all the physical channels provide from one transport channel, but they can be created to cope as functionality related to the physical layer. Figure 2: Relation among logical, transport and physical channels in LTE downlink side [3]
24 In downlink there are two physical channel types: traffic channels and control channels. Before going further with an explanation of these channels, it’s important to remark that, unlike GSM or UMTS systems, the traffic physical channels in LTE are shared instead of dedicated; in other words, only when the network needs to send common control data or when user has to receive data, these physical channels are enabled to the user. Thus, resources are non-wasted while the channel is not being used. Within physical traffic channels outstands PDSCH (Physical Downlink Shared Channel), responsible to transport user data and information delivered by DLSCH (Downlink Shared Channel). Although is not going to be used within this document, there is another physical channel for traffic data called PMCH (Physical Multicast Channel), used to transmit broadcast and multicast data. There are four control physical channels: PBCH (Physical Broadcast Channel), PDCCH (Physical Downlink Control Channel), PCFICH (Physical Control Format Indicator Channel) and PHICH (Physical Hybrid ARQ Indicator Channel), which are used for signaling purposes. 3.2.2. Medium access techniques In LTE there are different medium access techniques depending if the communication is in downlink or uplink side. In the uplink medium access technique used is SC-FDMA (Single Carrier – Frequency Division Multiple Access), but as the uplink is out of the scope within this project, in this document only the OFDMA medium access technique, which is used in downlink side, is studied OFDMA (Orthogonal Frequency Division Multiple Access) technique is based on the OFDM (Orthogonal Frequency Division Multiplex) transmission technique, which consists on multiplexing a set of symbols over a set of subcarriers. There is no problem at the receiver side because by implementing some signal processing techniques (Cyclic Prefix insertion), each subcarrier signal is orthogonal respectively with each other, so with the right receiver these signals can be separated.
25 Figure 3: OFDM spectrum example [4] The use of OFDMA as a multiple access technique has a lot of advantages; some of them related to a single user in the system are listed below: Robustness to multipath propagation: This occurs due to cyclic prefix insertion, which tries to deal with the inter-symbolic interference caused by the multipath propagation. Despite this robustness, it could be necessary to equalize in frequency domain at the receiver in order to erase the multipath propagation, if link adaptation technique is not used. Frequency diversity: Refers to the possibility to assign to a single user multiple non-adjacent subcarriers, separated enough to perceive statistical independent channel behavior of the different subcarriers. Digital-domain easy implementation: Thanks to the possibility to use chips that performs FFT (Fast Fourier Transform) /IFFT (Inverse Fast Fourier Transform), it’s easy to implement optimized real systems in both economic and performance terms. In the case of multi-user scenarios, some benefits, related to the multi-user diversity and flexibility within assigned bandwidth have also to be mentioned. 3.2.3. Frame structure There are two types of frame structures; one for TDD (Time Division Duplexing) and another for FDD. Since the first is out of the scope, we only are going to explain frame structure for FDD in downlink side. An LTE frame takes up 10 [ms] and is composed by 10 subframes, which is the minimum transmitted unit and takes up 1 [ms]. Within a subframe 2 TS (Time Slot) are transmitted,
32 In this report an academic license of MATLAB R2015b (8.6) version has been used as shown in Figure 6. This license has been provided as UPC student. Figure 6: MATLAB software screenshot Initially the code to simulate the LTE downlink air interface was not expected to be provided, so the author had to create himself using existing MATLAB libraries and toolboxes. These have been listed just below: Signal Processing Toolbox DSP system toolbox Communication system toolboxes Despite of this, while reading the book ‘Understanding LTE with MATLAB’, it was noticed that part of the envisaged code could be also provided [3] from a third part. The provided code has constituted the initial framework of the project, however, the author has still spent so much time understanding the code, modifying it to develop simple cases for academic purposes, deleting parts of the code and adding, when necessary, some other news. In addition a Graphical User Interface (GUI), MATLAB based, has also been created. The GUI allows the user to select (in a smart way) different LTE parameters and then to set up a valid transmission/reception chain to perform the envisaged simulation. Although the author had been working with MATLAB before, MATLAB’s reference manual [6], GUI manual [7] and the company’s website [8] has been helpful source
4. Results This section is divided in two parts. In the first part simulation results of LTE Transmission Mode 1 in are shown. In the second part a GUI for SISO mode is created as an academic tool. 4.1. Simulating the LTE Downlink Transmission Mode 1 The scope of the section is to demonstrate the evolution of the BER (Bit Error Rate) when improvements in the chain transmission are made. Firstly, a basic transmission chain is considered, which allows the link establishment with poor BER performance. Then, some gradual improvements are assumed until we get a SISO mode with a great enough performance. Finally, a brief simulation of SIMO mode is presented. Before going further, it’s important to enumerate the limitations referred to Transmission Mode 1: FDD mode is assumed. Normal cyclic prefix is considered. Full bandwidth is used. All the systems studied within this section can be structured as a classical communication system. This is composed of a transmitter, a channel and a receiver, as it is shown in Figure 7. Figure 7: Transmission chain In this section an objective is purposed; obtain the minimum BER with highest bit data rate possible. On consequence, most of the time if the system has a good performance the selected modulation will be 64QAM and channel bandwidth equal to 20 [MHz]. 4.1.1. SISO mode Throughout this section an analysis of SISO transmission mode is performed. We first simulate a basic system, which is not using techniques to estimate the channel. As we go Transmitter Channel Receiver
34 forward, different channel estimation techniques are progressively applied and, as a result, better BER will be obtained. File commlteeSISO_params.m is a custom script where you can choose from different LTE parameters. In Figure 8 a script screenshot is shown. Parameters that are equal to X are susceptible to be changed throughout this section, while others remain constant. Figure 8: Parameters file for Transmission Mode 1 Also an explanation for almost all parameters is given in Figure 8. In the case of the parameter chanMdl, which stands for channel model, is possible to choose from four channel types with parameters that are described in Table 7. Path delays are related to the channel sample rate, chSRate, i.e. a delay with 10 value means that this delay is 10 times the inverse of the channel sample rate. As it was seen in section 3.2.7, channel sample rate is related with the channel bandwidth. In order to shape the communication channel, four types have been defined, although is possible to define new channels by modifying the MIMOFadingChan.m function. Channel type Path delays Path gains [dB] fd,max flat-low-mobility 0 0 0 flat-high-mobility 0 0 70 frequency-selective-low- [0,10,20,30,100] [0,-3,-6,-8-172] 0
35 mobility frequency-selective-high- mobility [0,10,20,30,100] [0 -3 -6 -8 -172] 70 Table 7: Channel types used in transmission chain 4.1.1.1. SISO basic This analysis is performed assuming basic features, which don’t include channel estimation and frequency domain equalization. In Figure 9 the transmission chain for this mode is illustrated. Figure 9: Basic SISO transmission chain In Table 8, the parameters chosen to simulate this mode are indicated. Parameter Value LTE value modType 2 16QAM chanBW 6 20 [MHz] contReg 1 1 symbol per subframe to transmit the content of PDCCH channel (control data) snrdB 50 50 [dB] chanMdl ‘flat-low- mobility’ Flat channel impulse response and there is no Doppler Effect Transmitter •Codeword generation •Channel coding •Codeword scrambling •Modulation •OFDM transmission Channel •Close echoes: Rayleigh Fading •Add AWGN noise Receiver •OFDM reception •Demodulation •Codeword descrambling •Channel decoding •Detection
36 maxNumBits 1e7 Maximum number of bits processed before simulation stops Table 8: Parameters for SISO basic Despite that a higher number of processed bits could be chosen, the selected value 1e7 is great enough to ensure that the simulation properly works, without the simulation time being excessive. Once the parameters are chosen, it’s time to run the simulation. In Figure 10 a constellation of received data and a spectrum of both transmitted and received signal are shown. The simulation also gives the BER value as a result. Throughout the simulation time, it has been observed that the received signal spectral density (blue-colored) remains constant because coherence time is very long, as we have chosen a low-mobility channel. In addition, the received signal spectral density value is always below the transmitted signal (yellow-colored). This could be explained by the fact that received signal is affected by non-selective fading due to the close echoes that produce that received signal is affected by phase and amplitude changes. These amplitude and phase changes can also be shown in constellation diagram. The received constellation is a scaled and shifted version of the transmitted constellation. Figure 10: SPD & Constellation Diagram for 16QAM for SISO basic
37 The simulation also gives a BER equal to 0.5. Such high value is due because there isn’t any mechanism to estimate the channel at the receiver, so the imperfections observed before are not corrected, even when the SNR has set to very high value. 4.1.1.2. SISO phase corrector The scope of this subsection is to compensate (as much as possible) the close echoes modelled by Rayleigh channel. The transmission chain is almost the same that used in SISO basic except by an addition of a phase corrector, as shown in Figure 11 Figure 11: Transmission chain for SISO phase corrector The received signal for the model used before is given by the expression 9, where r(t) is the received signal at the OFDM receiver, s(t) is the OFDM transmitted signal, h(t) is the channel response and n(t) is AWGN noise. 𝑟(𝑡)= 𝑠(𝑡)∗ℎ(𝑡)+𝑛(𝑡) (9) Suppose now that the channel has a flat frequency response and the receiver is totally static, from a point of view of mobility. Then, the channel response can be expressed as shown in equation 10, where N is the number of reflections close to the receiver. ℎ(𝑡)= ∑ |ℎ𝑛|exp(𝑗𝜑𝑛) 𝑁−1 𝑛=0 = 𝑅.exp(𝑗 ). (𝑡) (10) Then, if assuming that we can estimate the phase parameter (ϕ) of equation 10, a slightly improvement will be reached. The implementation of phase corrector into the function commlteSISO_step.m is performed using the code lines shown below. We can see in the code that this block is implemented just before the AWGN (Additive White Gaussian Noise) addition: Transmitter •Codeword generation •Channel coding •Codeword scrambling •Modulation •OFDM transmission Channel •'Próximos' echos: Rayleigh Fading •Phase corrector •Add AWGN noise Receiver •OFDM reception •Demodulation •Codeword descrambling •Channel decoding •Detection
38 % Balance out phase rotation due of Rayleigh Channel (this implementation is valid for channel with flat frequency response) ang = phase(chPathG); complex = exp(-(1i).*ang); rxComp = rxFade.*complex; As a result, the received signal at the receiver entry is the last equality in equation 11. 𝑟(𝑡)= 𝑅.exp(𝑗 ).𝑠(𝑡)exp(−𝑗 ).+𝑛(𝑡)= 𝑅.𝑠(𝑡)+𝑛(𝑡) (11) Since the phase corrector has been defined, it is time to see the performance of this new transmission chain. Firstly, a simulation using QPSK (Quadrature Phase-Shift Keying) modulation (modType = 2) is presented, with the rest of the parameters the same than used in Table 8. Figure 12: SPD & Constellation Diagram for QPSK, flat-low-mobility channel in SISO phase corrector Looking at the Figure 12, it is clear that received constellation is almost the same than reference constellation, and received SPD (Spectral Power Density) is almost with the same wave-shape and power than transmitted SPD. Simulation results also provide BER value equal to 0, a consistent result when taking into account the comments explained before. In summary, for a flat-low-mobility channel and with QPSK modulation the system works. The same conclusions, than extracted with QPSK modulation, can be formulated when setting a 16QAM (16 Quadrature Amplitude Modulation) modulation. However, when 64QAM modulation is set the simulation results provides a BER value equal to 0.0909, which is a non-acceptable value. An explanation of this BER results for 64QAM can be obtained looking at Figure 13. Despite the received constellation remains non-rotated, the received symbols amplitude is a scaled version of the transmitted one, and considering
39 that the distance between neighbor symbols in 64QAM is approximately a quarter than the available in 16QAM, there are more symbols concentration in the interior squares, so it’s more difficult to properly detect the right symbol. Note that for the border symbols, the probability to wrongly detect a symbol is smaller than for the middle symbols. So, the proposed phase correction scheme will work properly if selecting QPSK or 16QAM modulation. Figure 13: SPD & Constellation Diagram for 64QAM, flat-low-mobility channel in SISO phase corrector Suppose now that 64QAM modulation option is not considered. What would happen with the modulation behavior when changing channel type? To check this, the selected channel type is set to ‘flat-high-mobility’ and the modulation scheme is set to QPSK, while other parameters remain the same than the indicated in Table 8. A screenshot of the results is shown in Figure 14. The amplitude of the received constellation is swapping, but the phase doesn’t change in any moment. The simulation results provide a BER value equal to 0. It could seem a little strange because sometimes the received symbol is not close to the reference symbol, but there is an explanation for such BER behavior. As the received symbols are always oscillating inside the rightdetection quadrant, the detector always detects the right symbol transmitted, even when the distance between received and reference symbol is significantly.
40 Figure 14: SPD & Constellation Diagram for QPSK, flat-high mobility in SISO phase corrector When modulation is set to 16QAM a screenshot of the constellation diagram and spectrum is shown in Figure 15. As it happened with QPSK, constellation diagram is oscillating from 0 to the reference constellation by simulation elapses. But now the BER result is equal to 0.1210, a non-acceptable value for a mobile communication system. This high BER value is caused because not all the symbols have the same amplitude. When the received constellation is close from reference constellation the BER will take low values, but when it is far (close to the [0,0] point) the detector won’t detect correctly the transmitted symbol and the instantaneous BER value will be very high. Figure 15: SPD & Constellation Diagram for 16QAM, flat-high mobility in SISO phase corrector Until now, it has been checked that the proposed scheme only works for QPSK modulation when using a flat channel response. It’s easy to realize that when setting the channel behavior to a frequency-selective response, the proposed LTE transmission chain won’t properly work, because there isn’t any mechanism to estimate and equalize the channel at the receiver.
41 4.1.1.3. SISO with channel estimator This transmission chain, which is shown in Figure 16, is more sophisticated than the used before, and takes better profit of LTE physical layer capacities. Figure 16: SISO channel estimation + basic transmission chain LTE supplies a method to estimate the channel response. To carry out this channel identification, a set of reference signals, also called pilots or CSR (Cell Signal Reference), are placed throughout resource grid. An example of one possible resource grid is shown in Figure 17, where CSR signals are plotted in cream color. The function chanEstimate_1Tx.m is the responsible of performing the channel estimation. An enumerated explanation of how the channel estimation works followa: 1. Extract CSR cells values from received signal and store them in a matrix called, csrRx. 2. Divide one by one each of the csrRx matrix field per each corresponding CSR reference value, which are stored in the so called is csr_Ref matrix in the code. The result is stored in a matrix called hp. Transmitter •Codeword generation •Channel coding •Codeword scrambling •Modulation •OFDM transmission Channel •Close echoes: Rayleigh Fading •Add AWGN noise Receiver •OFDM reception •Channel estimation •Demodulation •Codeword descrambling •Channel decoding •Detection
48 increases, and maybe it would be better to change the modulation to 16QAM or QPSK in order to reduce the BER value. 4.1.1.4. SISO complete This scheme is the definitive for SISO transmission mode and its transmission chain is shown in Figure 24. When comparing with the scheme presented in the previous section an equalizer has been added to deal with multipath propagation. Figure 24: Transmission chain for SISO complete We choose parameters from Table 9 and we also set the equalization mode to Zero Forcing. The simulation carried out shows that throughput has a peak value of 30.58 [Mbps] and a BER is equal to 7.98e-06. The spectrum analyzer and constellation diagram before and after equalizer are displayed in Figure 25. Clearly we can see that, with the use of an equalizer, the received constellation looks clear and quite similar to the transmitted one. In terms of spectrum analysis, it’s easy to see the multipath effect in the received signal before equalizer, which is printed in blue-color. We can also observe how blue-colored signal is affected by multipath propagation and how it changes the waveform. However, the equalized signal (orange-colored) is almost the same that transmitted signal – displayed in yellow-colored- and practically non-appreciable. Transmitter •Codeword generation •Channel coding •Codeword scrambling •Modulation •OFDM transmission Channel •Doppler effect •Multipath propagation •Add AWGN noise Receiver •OFDM reception •Channel estimation •Equalizer •Demodulation •Codeword descrambling •Channel decoding •Detection
49 Figure 25: SPD & Constellation Diagram for 64QAM, frequency-selective-high-mobility in SISO complete Under these conditions the system works well. But it is important to take in consideration that a SNR equal to 50 [dB] is assumed, which in real environments is not a usual value. Therefore, now let’s simulate the system swapping the SNR value for different modulations in order to determinate the BER behavior as function of SNR and the chosen modulation. The parameters, expect SNR and modulation, are shown in Table 8. The BER results are displayed in Table 11 and a curve for each modulation is plotted in Figure 26. SNR 0 [dB] 3 [dB] 6 [dB] 9 [dB] 12[dB] 15[dB] 18[dB] 21[dB] 24[dB] QPSK 0.2644 0.1802 0.0816 0.0238 8.2e-3 1.6e-3 1’7e-4 1’1e-5 8e-6 16QAM 0.3315 0.2807 0.1962 0.1252 0.0479 1.1e-2 2’7e-3 0’8e-3 2’4e-5 64QAM 0.3943 0.2578 0.2903 0.2241 0.1241 7.7e-2 3e-2 5’1e-3 8’1e-4 Table 11: BER results in function of SNR and modulation According to the Figure 26, when SNR is very small (approximately equal to the unity) the system takes high BER value regardless which modulation is chosen. As SNR increases we can clearly observe that QPSK is, from far away, the modulation which obtains better BER values. When comparing BER results for 64QAM modulation with 16QAM we can also observe that 16QAM obtains significantly better BER values since SNR takes medium values (𝑆𝑁𝑅 ≥6 [𝑑𝐵]). Despite of these, when the channel conditions gets
50 better, the channel becomes clearer and 64QAM is a good enough choice (𝑆𝑁𝑅 ≥ 20[𝑑𝐵]) when a high data rates wants to be obtained. Figure 26: BER graphic in function of SNR and modulation for SISO complete mode Moreover, notice that this transmission chain admits two equalization modes: ZF (Zero Forcing) and MMSE (Minimum Mean Square Error). The selection of one or other depends of UE’s manufacturer preferences. Here simply let’s compare the performances of the both - by swapping SNR value. The obtained simulation results are displayed in Table 12 and Figure 27. For very low SNR values (0-6 [dB]) both equalizers have almost the same performance, but when the SNR value increases the MMSE method provides better BER values. SNR 0 [dB] 3 [dB] 6 [dB] 9 [dB] 12 [dB] 15 [dB] 18 [dB] 21 [dB] 24 [dB] ZF 0.3940 0.3577 0.2901 0.2236 0.1246 0.0759 2.9738e- 2 5.184e-3 6.34e-4 MMSE 0.3940 0.3493 0.2901 0.1443 0.1037 0.0328 1.03e-2 1.671e-3 0 Table 12: BER results in function of SNR using ZF or MMSE equalizer
51 Figure 27: BER graphic in SNR function using ZF or MMSE equalizer 4.1.2. SIMO mode Such as it has been previously discussed in section 3, SIMO is a variant of SISO operation mode wherein multiple antennas are used in reception, with the purpose of increasing the SNR at the receiver thanks to the spatial diversity. In LTE the number of antennas used in reception can be 1, 2 or 4. The theoretical SNR value at the receiver side is given by the following formula, assuming that each receiver branch has the same weighting: 𝛾𝑜= ∑𝛾𝑛 𝑁𝑅𝑥 𝑛=1 (13) The code for simulating SIMO mode it’s very similar than the used for SISO simulation. The transmitter and channel block are the same, but not the receiver, which has been implemented with multiple antennas and provides a specific equalizer adapted to this case. Let us check the improvement in BER terms as function of the SNR value under the same conditions that the considered when complete SISO mode was. As SIMO mode is more complete than SISO mode, the settings script must be upgraded. The relevant parameters for the SIMO configuration are shown in Table 13. Parameter Value LTE value chanBW 6 20 [MHz]
52 modType 3 64-QAM contReg 1 1 symbol per subframe to transmit the content of PDCCH channel (control data) chanMdl ‘frequency-selective- high-mobility’ Multipath propagation and significantly Doppler effect. corrLvl ‘Low’ Low correlation level among antennas Eqmode 1 Zero Forcing SNR 16 16 [dB] Table 13: Parameters for SIMO mode Table 14 summarizes the obtained BER results when run the script commlteSIMO_test_timing_ber.m, and considering different number of reception antennas. As it was expected, taking into account equation 14, the BER value have been reduced although there isn’t an improvement in data user bit date, which is the same than in SISO mode. Number of antennas 1 2 4 BER 0.015 0.02 0 Table 14: BER in function of number of antennas 4.2. Creating the GUI In this section the main steps followed for developing a basic student-oriented GUI for SISO transmission mode is presented. A UI (User Interface) is a graphical display that enables the user to perform interactive tasks without the requirement that user understands how the code works. MATLAB offers two ways to create a GUI: one is to use a GUIDE tool, which has an own graphic interface and is more appropriate for a quick, non-complicated apps; another one is create it programmatically, using the MATLAB language, which gives more flexibility to merge with the existing code. The choice for the GUI implemented in this project was to use the MATLAB language for creating it. The reasons are the following:
53 1. More flexibility while coding. 2. Allows the use of nested callback functions. In programmatic UIs, when using these kinds of functions, there is a shared workspace with the main function. As a result, these have access to all the UI components and variables defined in the main function. The scope is to create a GUI that allows choosing from a set of parameters and later on then simulates the whole system, displaying then constellation diagram and spectrum analyzer. To carry out the GUI some tutorials and a manual of building GUI with MATLAB have been used [7]. GUI is basically composed by figures, components and callbacks. In the case of figures we can insert a set of components such as tables, panels or axes. Any component can have its own callback; an action when the user does something over the component, such as selecting an item from popup menu or clicking a push button. Create a GUI programmatically is composed of the following phases: 1. Layout: Structure, organize and place all the components that compose the GUI in an m file. 2. Writing the callbacks: Callbacks are the routines that execute in response to usergenerated events such as mouse click and key strokes. 3. Utility functions: Can be placed inside the callbacks or as an auxiliary function. Once the user set the parameters and press the start pushbutton, the GUI has to store the customable parameters into a structure and then simulate the whole system with these parameters. To carry out this procedure it’s necessary to create a command that performs this task. A graphically interpretation of what the GUI does is shown in Figure 28.
54 Figure 28: GUI workflow Below there are a summary of steps that have been taken to implement the main GUI: 1. Create an m extension function file 2. Identify which LTE parameters and graphics users can choose from 3. Create a structure with these parameters and graphics, and initialize them User can choose whether SPD and constellation diagram for relevant signals are displayed or not. 4. Construct the components Different component types are created. For example, for selecting channel bandwidth a popup menu component is created, whilst a checkbox component is created for selecting the SPD visualization. 5. Create a callback for each component Each component has associated its own callback. The callback functions saves the desired choice selected by the user and store it as a structure cell. This step is the main reason why the author has decided to create a programmatic GUI instead of GUIDE GUI. 6. Modify functions and scripts of original code This is the most important step because it’s here when we have to merge into a single script four different implementations of the LTE transmission chain. 7. Copy the main script to the pushbutton callback 8. Add to the existing structure a set of variables to enable/disable graphics visualization •User sets LTE parameters •User sets which graphics wants to display. GUI file •By pushbutton callback function. •Main script retrieves parameters selected for the user and set them to the code GUI calls to main function •Run main script. •User viualizes the graphics selected in GUI. •Simultation returns BER value. Run simulation
55 In Figure 29 we can see a GUI screenshot. It is possible to select one of the four SISO- based transmission chain studied within section 4.1.1. Besides, for each transmission chain we can choose the following parameters: Modulation type Channel bandwidth Channel type Signal-to-Noise ratio, in dB Equalization mode (when selecting SISO_COMPLETE transmission chain) Figure 29: GUI to simulate LTE SISO mode Moreover, it would be useful for the user to see the resource grid as a function of the number of transmitted subframe. For this reason, another GUI where resource grid is displayed has implemented. In this GUI the user selects the desired number of subframe, channel bandwidth and number of OFDMA symbols dedicated to control data. Then, by clicking on the start pushbutton, the resource grid is displayed. In Figure 30 two figures are displayed: the left figure is the resource grid GUI, where the user selects the parameters which resource grid is related to. The right figure is the resource grid plot, which is displayed by pressing the start push button at the left figure.
56 The selected parameters in this case are: channel bandwidth equal to 3 [MHz], number of subframe equal to 0 and number of OFDMA symbols dedicated to control data equal to 2. Figure 30: GUI to display resource grid The code related to both GUI’s is provided in an annex to this document.
5. Budget In this project a MATLAB R2015b student license has been used as being the author UPC student, which doesn’t has any directly economic cost. On the other hand, taking into account that this project could be an enterprise project, we could consider two different cases: Case 1: Who is contracted is not familiarized with LTE standard but they know how mobile communications systems work. Also has basic MATLAB and Microsoft Word knowledge. Case 2: Who is contracted is familiarized with LTE standard. Also has basic MATLAB and Microsoft Word knowledge. 5.1. Labor Cost The personnel cost table below (Table 15) is based on the following figures: A junior engineer perceiving 13.04 Euros per hour. The employee costs a 30% more to the employer than the perceived remuneration due to social security and other taxes, elevating the cost per hour to 17.4 Euros. Case 1 Case 2 Amount of hours 1050 600 Salary [€/hour] 17.4 17.4 Labor cost 18270 [€] 10440 [€] Table 15: Labor cost 5.2. Amortizations The development of this project only used a single laptop computer for development tasks. Case 1 Case 2 Laptop for the developer Purchase cost 900 [€]