scieee AI-readable full text Open interactive document viewer

A software defined networking solution for on-demand base station wake-up in softwarized LTE systems

Abideen, Zainul

Abstract

LTE is a standard offering high speed wireless communication, and it is a major milestone towards flourishing the capabilities of 5th generation (5G) mobile networks to meet the exploding traffic growth in the current and future Internet. However, the introduction of new devices and smartphones is creating many challenges to the LTE operators, and one of the most significant challenges is to control the load on the LTE eNB base stations. In the meantime, operators look for ways to reduce their energy consumptions, for which putting the no- or low-throughput base stations to sleep is a promising solution. Therefore, this project is designed to provide a solution, which would detect congestion in the Radio Access part of LTE network and remotely wake up base stations in the congestion zones. If a congestion is detected at one eNB, a nearby eNB that had been put to sleep (for reasons of energy conservation, reduction of interferences, etc.) is woken up. We provide two implementations of this Congestion-aware On-demand eNB Wake-up (COEW) solution: a deployment of traditional LTE network using a softwarized LTE implementation, consisting of EPC and eNB implementations on different machines. The second implementation is based on Software Defined Networking (SDN), which is then integrated to the traditional network setup. For this, Open vSwitch (OVS) is used on eNBs and EPC machines, in order to have the congestion information to be collected by the SDN controller using OpenFlow protocol. SDN controller (based on OpenDayLight-ODL) communicates with COEW Application via Northbound plugins. COEW application then analyzes the data from each eNB and wakes up sleeping eNB remotely. Validation of the two COEW solutions have been done through physical experiments using commercial UEs and aforementioned community-driven SDN software components.

Full text

A SOFTWARE DEFINED NETWORKING SOLUTION FOR ON-DEMAND BASE STATION WAKE-UP IN SOFTWARIZED LTE SYSTEMS Master’s Thesis Submitted to the Faculty of the Escola Tècnica Superior d’Enginyeria de Telecomunicació de Barcelona Universitat Politècnica de Catalunya by Zainul Abideen In partial fulfillment of the requirements for the degree of MASTER OF SCIENCE IN TELECOMMUNICATIONS Advisor: Dr. Ilker Seyfettin Demirkol Barcelona, May 2017 Title: A Software Defined Networking Solution for On-demand Base Station Wake-up in Softwarized LTE Systems Author: Zainul Abideen Advisor: Dr.Ilker Seyfettin Demirkol Abstract: LTE is a standard offering high speed wireless communication, and it is a major milestone towards flourishing the capabilities of 5th generation (5G) mobile networks to meet the exploding traffic growth in the current and future Internet. However, the introduction of new devices and smartphones is creating many challenges to the LTE operators, and one of the most significant challenges is to control the load on the LTE eNB base stations. In the meantime, operators look for ways to reduce their energy consumptions, for which putting the no- or low-throughput base stations to sleep is a promising solution. Therefore, this project is designed to provide a solution, which would detect congestion in the Radio Access part of LTE network and remotely wake up base stations in the congestion zones. If a congestion is detected at one eNB, a nearby eNB that had been put to sleep (for reasons of energy conservation, reduction of interferences, etc.) is woken up. We provide two implementations of this Congestion-aware On-demand eNB Wake-up (COEW) solution: a deployment of traditional LTE network using a softwarized LTE implementation, consisting of EPC and eNB implementations on different machines. The second implementation is based on Software Defined Networking (SDN), which is then integrated to the traditional network setup. For this, Open vSwitch (OVS) is used on eNBs and EPC machines, in order to have the congestion information to be collected by the SDN controller using OpenFlow protocol. SDN controller (based on OpenDayLight-ODL) communicates with COEW Application via Northbound plugins. COEW application then analyzes the data from each eNB and wakes up sleeping eNB remotely. Validation of the two COEW solutions have been done through physical experiments using commercial UEs and aforementioned community-driven SDN software components. Keywords: Software Defined Networking, Network Softwarization, Open Air Interface, LTE, eNB, EPC. 1 Dedicated to my (Late)parents and my family 2 Acknowledgments First of all I would like to thank Almighty ALLAH, who has always blessed me. Because of His blessings I got the confidence to manage this thesis and all other hardships in my life. This thesis wouldn’t be possible without the supervision and ideas of my advisor, Dr.Ilker Seyfettin Demirkol, for that I would like to thank him for his tremendous support and cooperation, which lead me to this point. In addition to that I am grateful to the UPC community and the whole teaching staff of the ETSETB. Finally, I am extremely thankful to my brothers and my sisters who have always supported me and always prayed for my success. I am grateful to all my friends specially Khalid, Umair and Ahmad who were always there whenever I felt down in life. 3 Revision History and Approval Record Revision Date Purpose 0 1 2 3 Written by Reviewed and Approved by Date May 22, 2017 Date May 24 , 2017 Name Zainul Abideen Name Dr.Ilker Seyfettin Demirkol Position Thesis Author Position Thesis Supervisor 4 Contents Abstract 1 Acknowledgments 3 Revision History and Approval Record 4 Contents 5 List of Figures 7 List of Tables 11 1 Introduction 13 1.1 Traditional Networking solution . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.2 Software Defined Networking (SDN) solution . . . . . . . . . . . . . . . . . . 15 2 Background 17 2.1 Evolved Packet System (EPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.1.1 Long Term Evolution (LTE) . . . . . . . . . . . . . . . . . . . . . . . . 17 2.1.2 EPS Network Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.1.3 ElementsofEPC.............................. 18 2.1.4 E-UTRAN (Access Network) . . . . . . . . . . . . . . . . . . . . . . . 19 2.2 Software Defined Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.2.1 Software Defined Network Architecture . . . . . . . . . . . . . . . . . . 20 2.2.2 OpenFlow Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5 2.2.3 OpenFlow structure diagram . . . . . . . . . . . . . . . . . . . . . . . 21 2.2.4 Controllers ................................. 22 2.3 OAI-OpenAirInterface Platform . . . . . . . . . . . . . . . . . . . . . . . . . . 24 2.3.1 Host Machines and its Processors . . . . . . . . . . . . . . . . . . . . . 26 2.3.2 SIMCard.................................. 28 2.3.3 SoftwarePlatform ............................. 29 3 Implementation of Softwarized LTE Testbed 31 3.1 Requirements and Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.2 Implementation and Configuration of OAI-based LTE Network Setup . . . . . 33 3.3 eNBSystemSettings................................ 34 3.3.1 Low-latency kernel installation . . . . . . . . . . . . . . . . . . . . . . 34 3.3.2 CPU Frequency Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.4 EPCSystemSettings................................ 35 3.4.1 Operating System (Ubuntu Installation) . . . . . . . . . . . . . . . . . 35 3.4.2 EPCSourceCode ............................. 37 3.4.3 Specify FQDN for EPC . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.5 EPC Elements Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.5.1 HSSBuild.................................. 38 3.5.2 EPC configuration file updates . . . . . . . . . . . . . . . . . . . . . . 43 3.6 eNBInstallation .................................. 45 3.6.1 eNBSourceCode.............................. 46 3.6.2 ConfiguringeNB .............................. 46 3.7 Compiling and Running eNB, EPC and HSS . . . . . . . . . . . . . . . . . . . 49 3.7.1 Running EPC: Initializations (Needed only one time) . . . . . . . . . . 49 3.8 Compilation and running eNB . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 3.9 OAISoftScope................................... 51 3.10 Verification of OAI Testbed . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.10.1UEConnectivity .............................. 53 6 4 Congestion Aware On-demand eNB Wake-up (COEW) 60 4.1 COEW Solution without any Networking Setup Changes . . . . . . . . . . . . 61 4.1.1 Congestion Assessment by Monitoring Traffic on eNB-EPC Link . . . 61 4.1.2 Congestion Assessment by Monitoring Number of Connected UEs . . . 65 4.2 SDN (Software Defined Network) Based COEW Solution . . . . . . . . . . . . 68 4.2.1 OpenDaylight Beryllium SDN controller installation . . . . . . . . . . 69 4.2.2 OpenvSwitch(OVS)............................ 73 4.2.3 Open vSwitch Configuration . . . . . . . . . . . . . . . . . . . . . . . . 74 4.2.4 action=normal ............................... 75 4.2.5 SDN-based COEW Solution Implementation . . . . . . . . . . . . . . 75 5 COEW Validation through Experiments 79 5.1 COEW Solution without any Networking Setup Change . . . . . . . . . . . . 79 5.2 Validation of SDN-based COEW solution . . . . . . . . . . . . . . . . . . . . 84 5.2.1 Open vSwitch Confirmation . . . . . . . . . . . . . . . . . . . . . . . . 84 5.2.2 SDNController............................... 84 5.2.3 COEW Controller Application . . . . . . . . . . . . . . . . . . . . . . 85 6 Conclusions and Future Work 93 References 95 Appendix 97 7 Defined Radio (SDR) and open-source LTE implementation for LTE base station (eNB) and for EPC (Evolved Packet Core). The open-source eNB and EPC implementation is taken from Open Air Interface (OAI) project [8], which does the baseband processing at a generic purpose PC using the signals digitized by an SDR. As SDR, we use low cost USRP B200 (Universal Software Defined Radio) and connect it to a general purpose computer where the eNB software is running. USRP B200 provide the LTE air interface to make wireless connection with a User Equipment (UE), which can be a mobile phone or an LTE USB Dongle. Figure 1.1 – EPS using COEW Controller. According to traffic fluctuations, an application (COEW Controller) will activate the nearby eNB. To control the congestion on each eNB there are two COEW solutions proposed in this document such as: •Traditional Networking solution •Software Defined Networking solution 1.1 Traditional Networking solution In traditional networking solution, many eNBs can be connected to one EPC and one COEW controller as shown in Figure 1.1. EPC connects eNBs to Internet, while COEW controller polls statistics from eNBs, analyze these for a possible congestion and send wake-up 14 message to the sleeping eNBs if congestion occurs. Congestion can be decided by monitoring traffic on eNBs or the number of users that are connected to the eNB. In this project both solutions are implemented in order to analyze the congestion. For this, standard Linux commands are used, without the need of any change in the networking setup of the system. 1.2 Software Defined Networking (SDN) solution In the last years, the concept of SDN emerged as a proposal to encounter the limitations of traditional networking [19]. The main goal of SDN is to separate control plane from data plane, which allows the restructuring of the network management. Figure 1.2 depicts the SDN-based COEW solution designed. We use Open vSwitches [20] as SDN agents on each node of the network which generate node statistics. These statistics are collected by the SDN controller (implemented using OpenDayLight [5]) through regular poll requests using OpenFlow [7]. COEW application will communicate with the SDN controller in order to analyze these node statistics. On the bases of node statistics, COEW Application will decide which nodes are congested. If a node is congested, COEW Application will send an eNB wake-up message to activate the sleeping eNB. This report is structured into 6 main chapters. Chapter 1 includes a brief introduction of Figure 1.2 – SDN Based COEW Application. congestion problems and solutions on Access network. Chapter 2 provides the background and core concept of Evolved Packet System (EPS) and Software Defined Network. EPS 15 is divided into two main parts Access Network (eNB) and Core Network (EPC). In the same chapter OpenAir Interface and its hardware and software elements will be discussed. Implementation and configuration of OpenAir interface will be introduced in Chapter 3. In Chapter 4 congestion control solutions and its implementations will be explained, and Chapter 5 summarizes the validations and project results. Finally, Chapter 6 gives the project’s overall conclusion and future work. 16 Chapter 2 Background 2.1 Evolved Packet System (EPS) EPS system is introduced by the 3GPP (3rd Generation Partnership Project) [1][2], when they were designing the 3G system. The aim of this technology was to transport data over dedicated IP (Internet Protocol) as key protocol to all services. 3GPP community agreed to design EPC (Evolved Packet Core) as packet-switching instead of circuit-switching. 2.1.1 Long Term Evolution (LTE) LTE is the evolution of the UMTS, which provides radio access through the E-UTRAN (Evolved UMTS Radio Access Network) [2]. Unlike the circuit-switching, which is used in the old cellular system, LTE is packet-switched system. LTE provides wireless IP connection between Packet Data Network (PDN) and end terminal or UE (User Equipment), and also provides mobility aspects without any disruptions. The standard of LTE is also introduced by the 3GPP as the technological future of UMTS and HSPA (High Speed Packet Access). The combination of LTE and SAE (System Architecture Evolution) is considered as EPS (Evolved Packet System). 3G LTE is applies more to radio access technology of the cellular telecommunications system, while SAE is an evolution to core network. The core objective of LTE is its high speed data rate in uplink and downlink. The 3GPP standard guarantees that access network reduces latency, and replaces BSC (Base Station Controller) in 2G, with 17 the RNC ( Radio Network Controller) of 3G in order to simplify the network architecture. Important aspect of LTE, is its capabilities to flexibly handle more ranges of bandwidths such as 1.4,3,5,15 and 20 MHz. 2.1.2 EPS Network Architecture EPC provides the connectivity between PDN and user in order to access the network to facilitate with the services and other applications like VoIP (Voice over IP). EPS bearer is usually associated with Quality of Service (QoS) and thus user can be facilitated with QoS by establishing multiple bearers connecting them with different PDNs. Figure 2.1 – The overall EPS network Architecture. Figure 2.1 shows the complete architecture of the EPS network. The network interfaces and elements will be discussed in detail later in this chapter. EPS is based on E-UTRAN and CN (Core Network), where eNB connecting UE (User Equipment) to EPC. EPS consists of many logical nodes, interconnected by means of standardized interfaces to allow for interoperability with other EPCs (from other operators). 2.1.3 Elements of EPC HSS HSS stands for Home Subscriber Server. It is a database where users profiles are stored [4]. It works as coordinator with MME in order to provide the authentication and user profiles. It communicates with mobility management entity (MME) through S6a interface. It contains 18 the information about the user’s subscription, QoS profile and roaming restrictions etc. HSS also provides information related to PDN gateway which is necessary for the user to connect with. It is important for HSS to have the identity of the MME that users are connected with.. MME Mobility Management Entity (MME) is the most important element of the CN [3]. It connects the eNB with a signalling interface. MME provides the initial handshaking process facility with UE via eNB. MME verifies user data in HSS. Serving GateWay (S-GW) It is connected to eNBs with a physical link. All IP traffic from/to eNBs pass through the Serving gateway [3]. It also provides the local mobility services for the data bearers between the eNB and UE during the handover process. Packet forwarding, routing and buffering are also the responsibilities of the Serving gateway. PDN GateWay (P-GW) In order to have access to Packet Data Network and external Internet resources, PGW provides this facility to UE by assigning an IP address from the address space of the PDN [3]. It also provides the services mobility anchoring point, in order to make the handover process easier between 3GPP and non-3GPP (e.g CDMA2000 and WiMAX) entities. Packet filtering, policy enforcement and charging etc, are also the responsibilities of PGW. 2.1.4 E-UTRAN (Access Network) E-UTRAN handles traffic between the Core Network and UE [17]. It consists of eNB, which is connected to EPC through S1 interface as shown in Figure 2.2 . S1 interface is later divided in two parts, i.e: S1-C which performs signalling procedure between eNB and MME, while S1-U connects eNB to S-GW. eNB connects other eNBs with X2 interfaces. eNB which is communicating with UE is considered as Serving eNB. X2 interface is mainly used for forwarding and handover process. eNB supports the following functions: 19 Figure 2.2 – The E-UTRAN communication between eNBs and with UE •eNB performs Radio transmissions in order to send and receive data to all connected UEs using digital and analogue functions of LTE air interface. •eNB also controls low level operation of all the terminals, using signalling messages transmission such as handover processing commands. 2.2 Software Defined Networking The concept of Software Defined Networking (SDN) was introduced by Stanford University. SDN is different than the traditional network in terms of its functionalities of control and forwarding plane. SDN separates control plane from data plane which is the core concept of traditional network as it was discussed before. SDN enables network control to be directly programmed and underlying infrastructure to be abstracted for applications and network services. SDN has the capability to be functional in all network domains from data centers to service provider and local area network. 2.2.1 Software Defined Network Architecture The core concept of SDN is to centralize the control plane that allows us to use one control plane for the whole network. Figure 2.3 shows the architecture of SDN. The SDN consists of two interfaces Northbound and Southbound. Northbound interface allocates interaction between controller and application, while Southbound describes communication with low level devices such as routers and switches. 20 Figure 2.3 – The Software-Defined Network Architecture. 2.2.2 OpenFlow Protocol In order to enable communication between control plane and data plane we need a protocol [19]. OpenFlow is the first protocol started in 2007 and introduced by the openflow community, which collaborates between academic and commercial entities. OpenFlow was first developed by the Stanford and California Berkley Universities under the standardization of ONF (Open Networking Foundation). ONF is responsible for the promotion and adoption of SDN through open standards. It is an open standard communication interface between both planes (control and data ). OpenFlow is a communication protocol, which provides manipulation and direct access to switches and routers (Data Plane) of either physical or virtual network. It allows packet forwarding with the help of defined software. The best aspect of the OpenFlow, is its backward compatibility characteristics. OpenFlow allows devices to work with conventional protocols, it also allows OpenFlow switches to communicate without any big problem with traditional switches and routers. 2.2.3 OpenFlow structure diagram OpenFlow protocol defines messages for example packet received, packet sent, modification in forwarding tables, etc. Figure 2.4 shows the components of OpenFlow network. OpenFlow switch functions according to the rules that switch gets from the OpenFlow controller, and 21 thus switch directs the traffic in the network. As the figure shows that both Open vSwitch and SDN controller are installed with OpenFlow protocol. SDN controller and Open vSwitch communicates through a SSL (Secure Socket Layer) / TLS (Transport Layer Security) based channel. The execution of packet forwarding is based on the table entries in the Open vSwitch, while forwarding decisions are taken on the controller side. In case a packet received at switch side that does not match the flow entries, it will be forwarded towards the Controller. If the controller decided not to drop the packet, packet will be added to the switch flow table entries to accept the packet next time [19]. Figure 2.4 – OpenFlow architecture and Functions. OpenFlow Channel The interface which connects Open vSwitch to the Controller is called OpenFlow Channel. From the controller side also this is the only interface that is used to manage and configure devices. 2.2.4 Controllers SDN Controller controls the network programmably with the help of software applications that allows instructions to be sent to the existing devices on the network. The controller performs the following instructions: add, remove, drop and modify etc. That’s why controller is 22 considered as the brain of the SDN. There are plenty of controller softwares with specific identities and functions. Software applications for different controllers use different programming languages such as NOX, POX, Floodlight, Beacon and Opendaylight, etc [10]. NOX NOX is an open source development platform for application control, based on programming language C++. It was developed by Nicira Network [18] side-by-side with OpenFlow Controller. NOX provides C++ OpenFlow 1.0 API and asynchronous IO. It has included components such as topology discovery, learning switch and Network-wide switch. POX POX is python based controller. It has the following features: •Python OF interface. •Reusable components for path selection and topology discovery etc. •Specifical targets Linux, Mac OS and Windows. •Supports the same GUI and visualization tools as NOX. Floodlight Controller Floodlight Controller is written in Java, and was introduced by Big Switch Network that works with the OpenFlow protocol to orchestrate traffic flows in SDN environment. It has many advantages for the developers, since it has the software adaptation ability, because it is written in java. REST APIs (Representational State Transfer) is also included in the floodlight which make programming interfaces easier with the product. Floodlight has also the advantage of compatibility with both physical and virtual switches. Network compatibility is another advantage of floodlight, where OpenFlow switches are connected to conventional networks. Compatibility with OpenStack help in building and manage cloud computing platform for both public and private clouds. 23 and MSVC (Microsoft Visual C++) compilers. It is a free software driver and free code, which is specifically directed and developed for the Software Defined Radio USRP platform by the Ettus Research [13][14]. GNU Radio, OpenBTS and Simulink are the software instruments that use the UHD APIs. In this thesis we will mention USRP B200 device which is recommended by the OAI for the communication between the underlying layers and hardware. In order to control large number of low level USRP parameters like Transport controls, device identification, clock speed, etc., this kind of APIs are used. By default USRP has a built in special firmware and images for the FPGA. During the implementation process of OAI testbed, when UHD is called, these actions are performed and separate windows appeared and remained until the device is turned off. Later in this thesis we will show these actions practically. 30 Chapter 3 Implementation of Softwarized LTE Testbed Classical LTE hardware solutions bring high CAPEX and OPEX costs to the operators such as maintenance, upgrade costs, etc.. In contrast, softwarized LTE uses generic off the shelf hardware, which has many advantages such as easy availability, lower prices, low maintenance cost and open-source software availability. There are several network softwarization efforts including in the LTE domain. One such project is the Open Air Interface (OAI) led by EURECOM. OAI aims to provide an open source ecosystem for the Access Network and Core Network based on 3GPP specifications. OAI platform is a software development platform targeting 4G experimentation and 5G research using commodity hardware. Using commodity hardware with OAI can reduce cost, increase flexibility, improve innovation speed and accelerate time-to-market for introduction of new services. In addition OAI has achieved a huge economic success and attraction by industry. Therefore, OAI is getting high community support such as from National Instruments, TCL, Thales, Orange, Intel, etc. In this project, OAI testbed scenario will be implemented by using commercially off the shelf hardware. This chapter describes the implementation of this softwarized LTE testbed. Open Air Interface platform can be used in many configuration scenarios such as: •Commercial UE <-> OAI eNB + Commercial EPC 31 •Commercial UE <-> OAI eNB + OAI EPC •Commercial UE <-> Commercial eNB + OAI EPC •OAI UE <-> Commercial eNB + OAI EPC (experimental) •OAI UE <-> Commercial eNB + Commercial EPC (experimental) •OAI UE <-> OAI eNB + Commercial EPC (experimental) •OAI UE <-> OAI eNB + OAI EPC •OAI UE <-> OAI eNB (noS1, i.e., without EPC) In this project, the Commercial UE <-> OAI eNB + OAI EPC scenario is used as a basis for the final implementation. As compared to other available scenarios, it is less complex, yet, use of a commercial UE validates the feasibility of the proposed solution. In this scenario a UE (Nexus 5, Huawei USB LTE Dongle) and USRP B200 will be required, while the source code will be provided by OAI. 3.1 Requirements and Installation Linux PCs used for OAI installation are required to run Ubuntu 14.04 LTS 64-bit, which is currently the only supported version by the OAI project. Using other versions can result in problems, since OAI needs many packages that are not usually compatible with other versions. As part of requirements, it is also necessary to disable C-states from BIOS, in order to run processor at performance mode, i.e. at full speed. OAI provides executables for MME, HSS and SPGW (SGW and PGW functionalities combined) and eNB (Figure 3.1). Within this project, we use Nexus 5 mobile phone and Huawei USB LTE Dongle as UEs. The resulting communication flows are then: Uplink: UE—–>USRP B200—>eNB—->EPC (SPGW+MME+HSS) —->Internet Downlink: Internet—->EPC (SPGW+MME+HSS) —->eNB—>USRP B200—->UE 32 Figure 3.1 – EPS Elements within OAI testbed. To build the setup shown in Figure 3.1, we used two different machines (PCs), which is recommended setup by OAI to avoid the possible problems during the execution. The first machine hosts eNB with USRP B200, while the second machine hosts EPC components. For multiple eNB evaluations, additional machines with USRP B200 are setup. 3.2 Implementation and Configuration of OAI-based LTE Network Setup The setup is depicted in the following Figure 3.2 , where two major parts of this project with the IP addresses and interfaces has shown. Both major parts E-UTRAN and EPC are implemented and configured on different machines, LG Nexus 5 and Huawei USB Dongle 3372 are used as UEs. In case of Huawei USB Dongle, a separate machine is used with some initial configuration process. Although OAI provides the opportunity to work with one host machine in order to implement the scenario with virtual machines, it is not recommended. Building scenario on different hosts might consume more resources but it is more closer to the real network setups. On the other hand using a single host for E-UTRAN and EPC increases CPU processing and leaves limited resources to baseband signal processing in eNB, which can cause packet drops and latency. So to avoid such problems of using a single host, we use separate machines. S1-C interface connects MME to achieve signalling procedure for new users and controls 33 high-level operations of the mobile signalling message and HSS. In the core network side intertask communication (communications between the entities of the EPC) is managed by the operating system without going through the network layer. The intertask communication is preconfigured by the OAI EPC and OAI eNB. In this project, IP addresses are configured according to the scenario shown in the Figure 3.2. Figure 3.2 – Full diagram of OAI testbed with IP addresses and network interfaces. 3.3 eNB System Settings Detailed installation procedure of eNB will be explained in the eNB installation section but before that, some pre-installation processes are required. The Linux PC that hosts eNB needs to perform several calculation with a time limit. Low latency kernel is hence required on eNB machine, since is responsible for the processing part. The kernel version used for eNB is 3.19-61-lowlatency. Low-latency kernel installation steps are provided in the following. 3.3.1 Low-latency kernel installation In order to install Low-latency kernel on top of the Ubuntu, the following command is executed: $sudo apt-get install linux-image-$3.19.0-61-$lowlatency linux-headers-$3.19.0- 61-$ lowlatency 34 To check kernel version after rebooting the system, we type uname -r or uname -a (for complete list) in Ubuntu terminal. Sometimes, because of the various reasons, kernel version does not change [9]. In that case we use the following commands: $version=3.19 $wget -r -e robots=off –accept-regex "(.*lowlatency.*amd64)|(all).deb"http:// kernel.ubuntu.com/ kernel-ppa/mainline/v$version-vivid/dpkg -i kernel.ubuntu.com /*/*/*/*deb 3.3.2 CPU Frequency Scaling For real-time operation, the CPU frequency scaling should be disabled. For this, we first install cpufrequtils package: $sudo apt-get install cpufrequtils After that, we need to indicate the “performance” mode in the following file: $sudo nano /etc/default/cpufrequtils And then add the following line GOVERNOR=”performance” After saving the file, now we disable on-demand daemon in order to avoid overwriting: $sudo update-rc.d ondemand disable To check the setting type: $cpufreq-info You should see the output of the following settings in Figure 3.3. 3.4 EPC System Settings 3.4.1 Operating System (Ubuntu Installation) Regarding the EPC, a generic kernel version 4.7.1 is required by SPGW to create GTP tunnels. The IP packets to/from the UE are delivered between the eNB and the SPGW through such GTP tunnel. UE sends all the IP packets to SPGW through eNB regardless of their destination IP address. In order to install kernel version the following steps should follow. 35 Figure 3.3 – CPU frequency policy set to “performance” Changing the kernel version from 3.19 to kernel version 4.7.1 is a time consuming procedure. Before starting the process, open a terminal and then run the following commands one by one. $sudo apt-get update $sudo apt-get install xz-utils build-essential wget $sudo apt-get build-dep linux-image-$(uname -r) ncurses-bin $wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.7.1.tar.xz $unxz linux-4.7.1.tar.xz $tar -xovf linux-4.7.1.tar $cd Linux-4.7.1 $make menuconfig After running the “make menuconfig” command, Kernel Configuration window will appear in the terminal, where we need to set “GPRS Tunneling Protocol” (Figure 3.3). Path to go to “GPRS Tunneling Protocol datapath (GTP-U)” is: Device Drivers->Network device support->GPRS Tunneling Protocol datapath (GTP-U) Then, the kernel is installed with: $make -j‘nproc‘ $sudo make modules_install 36 Figure 3.4 – GTP Tunneling. $sudo make install 3.4.2 EPC Source Code After the process of Ubuntu and a higher kernel version installation, now it’s time to install the EPC source code. The source code can be obtained from the git server. It is important to log in to the first machine as non root user, for EPC the git server provide top directory with the name of openair-cn. To start installation process, open a terminal and run the following commands: $sudo apt-get update $sudo apt-get install git Ubuntu 14.04 needs to be certificated, the certificate can be downloaded from the gitlab.eurecom.fr. It is important to be root user when running the following certificate. $roothost: echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne ’/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ » /etc/ssl/certs/ca-certificates.crt In order to check the git repository for openair-cn: $git clone https://gitlab.eurecom.fr/oai/openair-cn.git and optionally 37 $git clone https://gitlab.eurecom.fr/oai/xtables-addons-oai.git At the end of this process you will see a directory appeared with name “openair-cn” in your home folder. 3.4.3 Specify FQDN for EPC To check your hostname $cat /etc/hostname zainul To make changes in hosts $cat nano /etc/hosts 127.0.0.1 localhost 127.0.1.1 zainul.openair4G.eur zainul 127.0.1.1 hss.opernair4G.eur hss 3.5 EPC Elements Installation 3.5.1 HSS Build In order to install HSS, execute the build command in openair-cn/SCRIPTS directory. $./build-hss -i This command will install all required software on our host (first machine). During the installation procedure another configuration window will occur in order to install MySQL server too. By default MySQL server has set to username “root” and we will give a password “linux”. •MySQL installation During the installation process, phpmyadmin will also ask for the username and password. In this case the username and password will be same as it was for MySQL.Choose web server that has to be configured as Apache. During the installation process the following windows will occur: 38 Figure 3.5 – Entering password “root”. Figure 3.6 – Repeat Password “root”. Apart from that we have to install phpmyadmin Figure 3.7 – Phpmyadmin installation and configuration of database. Enter here the MS-PW-ROOT.: Figure 3.8 – Phpmyadmin installation DB admin password. 39 3.6.1 eNB Source Code The software is obtained from the oai git lab server. In order to do that, follow the next steps: Before starting the building process we need to install git on our 2nd machine. $sudo apt-get update $sudo apt-get install git $sudo apt-get install subversion git Download certificate as root user $root@host: # echo -n | openssl s_client -showcerts -connect gitlab.eurecom.fr:443 2>/dev/null | sed -ne ’/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ » /etc/ssl/certs/ca-certificates.crt $sudo git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git After running the above command line a folder “openairinterface5g” will appear in your home directory. Now it’s time to build the eNB with the following commands: $cd /openairinterface5g $source oaienv $cd cmake_targets$ For using USRP as the SDR: $cd /openairinterface/cd cmake_targets$./build_oai -I –eNB -x –install-system- files -w USRP 3.6.2 Configuring eNB Configuration files are provided within the openairinterface5g directory to facilitate the determination of the parameters for each component. To configure eNB some parameters has to be changed. These parameters are the following: Main parameters: Station ID,TAC (Tracking Area Code), MCC (Mobile Country Code) and MNC (Mobile Network Code). 46 PHY Parameters: Frequency, Power control, Tx/Rx Number of Antennas [16], Gain etc are considered to be as Physical Layer parameters. SRB Parameters: SRB stands for Special Radio Bearers parameter and it is for the configuration of the poll retransmission and reordering timer. Network Interfaces: It is used in order to configure Network interfaces such as S1-U, S1- MME. Interfaces must be configured according to IPv4 addresses. In eNB machine we will use the enb.band7.tm1.usrpb210.conf file, which corresponds to the LTE Band 7, Transmission Mode 1 (SISO) and USRP SDR. $sudo nano /openairinterface5g/targets/PROJECTS /GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf$ •eNB configuration file Configuration file of eNB is divided into: –Identification parameters –Physical Parameters –MME Parameters –Network Interfaces Parameters The following table shows all the indicated parameters along the values that has been assigned to it, during the experiments. In case of multiple eNBs, some parameter will be changed which will be explained in the experiments chapter. 47 Table 3.6 – Identification Parameters (eNB) eNB_ID 0xe00 cell_type "CELL_MACRO_ENB" eNB_name "eNB_Eurecom_LTEBox" tracking_area_code "1" mobile_country_code "208" Mobile_network_code "93" Table 3.7 – Physical Parameters (eNB) frame_type "FDD"; tdd_config 3; tdd_config_s 0; prefix_type "NORMAL"; eutra_band 7; downlink_frequency 2680000000L; uplink_frequency_offset -120000000; Nid_cell 0; N_RB_DL 25; Table 3.8 – MME Parameters (eNB) ipv4 "192.168.12.62"; ipv6 "192:168:30::17"; active "yes"; preference "ipv4"; 48 Table 3.9 – NETWORK_INTERFACES (eNB) ENB_INTERFACE_NAME_FOR_S1_MME "eth0"; ENB_IPV4_ADDRESS_FOR_S1_MME "192.168.12.82/24"; ENB_INTERFACE_NAME_FOR_S1U "eth0"; ENB_IPV4_ADDRESS_FOR_S1U "192.168.12.82/24"; ENB_PORT_FOR_S1U 2152; # Spec 2152 3.7 Compiling and Running eNB, EPC and HSS After all the installations and configuration of .conf files now it’s time to connect both machines (via Ethernet). It is important to compile and run first EPC and then eNB. In order to run EPC it is important to run HSS, MME and SPGW in the mentioned order. 3.7.1 Running EPC: Initializations (Needed only one time) In order to install certificates run the following commands in the openair-cn/SCRIPTS directory. $./check_hss_s6a_certificate /usr/local/etc/oai/freeDiameter/ hss.openair4G.eur $./check_mme_s6a_certificate /usr/local/etc/oai/freeDiameter/ zainul.openair4G.eur Then run the command: $./run_hss -i /openair-cn/SRC/OAI_HSS/db/oai_db.sql Running HSS $./run_hss After running HSS you will find terminal display as Figure 3.14. 49 Figure 3.14 – HSS output. Running MME Figure 3.15 – State open. $cd /openair-cn/SCRIPTS $./run_mme A successful connection between MME and HSS will show a STATE_OPEN in MME terminal. Running SPGW $cd /openair-cn/SCRIPTS $./run_spgw The output of the SPGW run is shown in Figure 3.16. 50 Figure 3.16 – SPGW run. 3.8 Compilation and running eNB Before compiling and running eNB make sure that both machines are connected through Ethernet and able to ping each other. Second, make sure that USRP B200 is connected to eNB via a USB 3.0 port. To run eNB enter to “openairinterface5g” directory and execute the following commands in a terminal. $source oaienv $./cmake_targets/build_oai -w USRP -x -c –eNB After this command line terminal will take few minute for configuration of USRP B200. $cd openairinterface5g/cmake_targets/lte_build_oai/build $ sudo -E ./lte-softmodem -O /openairinterface5g/targets/ PROJECTS/GENERIC-LTE-EPC/CONF/enb.band7.tm1.usrpb210.conf -d 3.9 OAI Soft Scope OAI Soft Scope is a tool that allows us to monitor physical interface by means of real time graphs of received power, frequency response, throughput and constellations diagram etc. It also provide various kinds of statistics such as assigned PRBs, Channel Quality Indicator (CQI) etc. In this project we will observe the uplink statistics on eNB side. In order to analyze UE side physical interface execute the eNB and EPC according to the following scenario Commercial UE <-> OAI eNB + OAI EPC and Soft Scope windows will appear as shown in Figure 3.17. 51 Figure 3.17 – Different physical level data, captured in the eNB side using 16 QAM. 3.10 Verification of OAI Testbed Once the testbed is established with both the configuration files (i.e EPC and eNB) in the previous sections. Now we will verify that the network correctly respond once UE connection established to outside network. Through the following tests we will check the differents aspects of UE connection and we will analyzed some packets that are exchanging during the process between the different entities of eNB and EPC. UE synchronize to each frequency after switch on in order to check whether the frequency is from the right operator to which it wants to connect. After the synchronization process UE reads the Master Information Blocks (MIBs) and System Information blocks (SIBs) in order to check that is this the right PLMN. Although, Wireshark does not support MIBs but it supports the SIBs, which we can seen in the Wireshark Figure 3.25. Figure 3.18 shows the UE RRC_RECONFIGURED message on the eNB side, which means that the connection is correctly established between UE and eNB using radio carrier signalling. Figure 3.19 shows established connectivity of eNB with EPC by highlighting the local address (EPC 192.168.12.62) and remote peer address (eNB 192.168.12.82). 52 Figure 3.18 – RRC Connection validation on eNB side. Figure 3.19 – Connection between Access Network and Core Network. 3.10.1 UE Connectivity UE requires some changes in settings, in order to perform connectivity test. Specifically, the APN information should be provided to UEs as: Name = “eur” APN field = “oai.ipv4” Bearer = “LTE” In Nexus 5, this is done through the following menus: Settings->Mobile network settings->Access Point Names-> Add a new apn Huawei Dongle USB E3372 is another option we used as UE, which can be configured with GUI. The APN info is provided through this GUI. The default IP address of Dongle USB to access the GUI is 192.168.8.1. After adding new APN, insert the SIM Card and restart the mobile phone. When the mobile phone will completely switched on, MME terminal will show its existence as shown 53 in the Figure 3.20. Figure 3.21(a) shows UE connectivity to 4G network, where operator is Figure 3.20 – Successful registration of UE to MME. UPC because SIM card is specifically programmed for UPC. Figure 3.21(b) indicate rest of the available networks that can be connected within the location. Figure 3.21 – Available network operators and OAI connection. Successful Connection to Internet Internet access through Nexus 5 Once eNB and EPC connection is established, UE (Nexus5) is turned on and successfully connects to Internet. Ping and Traceroute commands are used to check the connectivity and response time by ICMP Echo Request/Reply packets. Speed measurement application “SPEEDTEST” is used to check the application level speed. Figures 3.22 shows the UE 54 Figure 3.22 – Internet access through Nexus 5. screenshots, regarding the speed test, ping and traceroute applications. Figure 3.22(a) shows traceroute command in order to check route to www.google.com , while Figure 3.22(b) shows ICMP echo request in order to check IP level connectivity. Speed test is performed in Figure 3.22(c) and (d). Internet access through Huawei Dongle E3372 In case of LTE Dongle, no need to give commands in order to configure it, because its configuration is possible through graphical interface. By default IP address 192.168.8.1 is assigned to LTE Dongle. By using url 192.168.8.1 the following GUI opens as shown in Figure 3.23, where user has to add a new APN in the Profile Management. In the scenario of OAI oai.ipv4 will be used as APN. Iperf Measurements Iperf is TCP, UDP and SCTP network bandwidth measurement tool, which is used for active measurements of the maximum achievable bandwidth on IP networks. In order to avoid the interference of the intermediate nodes of the external network, Iperf test will be perform on the Uu interface only. It is not possible to see the command line directly, that’s why we download Iperf Android application. For the downlink, UE is used as client and EPC host is used as server in this test and TCP protocol has been chosen. Figure 3.24 illustrates the Iperf output in both UE and EPC using the following commands. 55 to a sleeping neighboring eNB to be functional. If the data rate goes lower than a minimum capacity x of the link, the eNBs will be turned off. This process will control not only congestion but also help the operators in order to save energy. Practical Implementation We are using two eNBs (i.e, eNB1 and eNB2) with a common EPC as shown in the Figure 4.2. As our testbed environment is not commercial, so we have to use commodity hardware to perform our tests. We are using Nexus 5 and Huawei USB dongles (E3372 L) as UEs and USRP B200 along with our eNBs. Figure 4.2 – Entire Scenario of two eNBs. eNB1 is connected to EPC and eNB2 using Ethernet interface eth0. A switch provide multiple Ethernet in order joint all nodes. eNB2 communicates with EPC and eNB1 using eth1 via switch. Both eNBs are assigned with different frequencies in order to avoid interference. Figures 4.3 and 4.4 shows the downlink_frequency parameters for eNB1 and eNB2. Downlink frequency of eNB1 is 2630 MHz, while eNB2 operates on 2680 MHz. Duplex spacing between 62 the uplink and downlink is 120 MHz, and band gap is 50 MHz. The IP addresses to be Figure 4.3 – eNB1 Frequency assignment (eNB1.conf). Figure 4.4 – eNB2 Frequency assignment (eNB2.conf). assigned are then: Eth0: 192.168.12.82 //eNB1 Eth1: 192.168.12.2 //eNB2 Eth2: 192.168.12.63 //EPC Eth3: 147.83.47.159 //SGi (EPC) Connected to Internet UE: In case of UEs IP addresses are assigned from the IPV4_LIST. 172.16.0.0/12 //it is in case of our setup Monitoring Controller A controller will be monitoring the interface eth0 of eNB1. Controller will get data from that interface and will process it in order to get the data rate that currently passes through the link. Data rate is compared with the threshold value that is given to the monitoring controller. There are many network monitoring tools available to get the data rate such as 63 Nmap, cacti, vnstat, etc., but this project preferred to control data rate through standard ifconfig command. The terminal output shows the ifconfig command on eth0, which illustrates receiving and transmitting data every time when the command is executed. The congestion Figure 4.5 – Tx/Rx Bytes on interface. on the link is considered to be in both directions (Uplink and Downlink). A shell script is used to execute the corresponding commands, and doing the data rate calculation as detailed below. Data Rate Calculation To calculate data rate, we run ifconfig command with an interval of one second and extract the rx and tx traffic values in bps (bits per second). The pseudo-code of this method is provided below: Receiver Side: Rx1=data_bytes_1 Space of 1 second Rx2=data_bytes_2 Difference of RX_bytes=Rx2-Rx1 Transmitter Side: Tx1=data_bytes_1 Space of 1 second Tx1=data_bytes_2 Difference of TX_bytes=Tx2-Tx1 Data Rate per Second: Total data rate per second =TX_bytes+RX_bytes 64 The corresponding shell script is developed for the Monitoring Controller. while : do rx1=$(ifconfig eth0 | grep ’RX packets’ | awk -F: ’print $2’| awk ’print $1’) sleep 1 rx2=$(ifconfig eth0 | grep ’RX packets’ | awk -F: ’print $2’| awk ’print $1’) totrx=$((rx2-rx1)) tx1=$(ifconfig eth0 | grep ’TX packets’ | awk -F: ’print $2’| awk ’print $1’) sleep 1 tx2=$(ifconfig eth0 | grep ’TX packets’ | awk -F: ’print $2’| awk ’print $1’) tottx=$((tx2-tx1)) tot=$((totrx+tottx)) echo "Bytes/seconds=" $tot if [ $tot -gt 0 ] then echo "i am going to run second eNB" ssh younes192.168.12.2 ./enb_compile.sh sleep 5 fi sleep 1 Done 4.1.2 Congestion Assessment by Monitoring Number of Connected UEs The second idea to assess the congestion on a given eNB is to control the number of users that are served by that eNB. The increasing number of UEs can occupy more bandwidth which decrease the speed. Figure 4.6 shows that the number of users are increasing on the eNB1, in this case let’s assume that the maximum number of users that eNB can handle is two. When 65 Figure 4.6 – Congestion on eNB1 and new user connectivity to eNB2. a new user tries to connect the eNB1, it sends a signal that activates the eNB2. Like the Figure 4.7 – COEW Controller functionality in the eNBs. previous section we will use a shell script based controller to monitor the congestion and to send wake-up commands to eNB2. We will save the log output of eNB1 in a log file. COEW controller will read the number of users from this log file and process it. If the number of existing users are more than the threshold value we applied, controller will send an activation signal to eNB2. On the eNB2 side another shell script to activate the EUTRAN at eNB2, which will be executed by the COEW Controller at eNB1. Note that COEW Controller can be located in a separate and centralized “controller” machine. Figure 4.8 shows the number of UEs that are currently connected to the eNB1. [PHY][I]UE:0 rnti 1a06 [PHY][I]UE:1 rnti 1ea4 66 Figure 4.8 – eNB1 output. Monitoring Controller UE=$(cat enb.log | awk ’{ if (index($0,"[PHY][I]UE")==1) { if ($2>0) print $2 fi} }’) The above command shows that the controller first read the log file enb.log and then grep the number of UEs from the log file. SSH connection is used to send the activation signal. The resulting shell script is then: while : do UE=$(cat enb.log | awk ’{ if (index($0,"[PHY][I]UE")==1) { if ($2>0) print $2 fi} }’) echo $ if [ $UE -gt 0 ] then echo "i am going to run second eNB" ssh -t younes192.168.12.2 ./enb_compile.sh break fi sleep 1 Done 67 4.2 SDN (Software Defined Network) Based COEW Solution SDN is another approach in order to control congestion on the eNBs. SDN is easily manageable, cost-effective, dynamic and adoptable for the current applications. As we have discussed before in this document that SDN separate Control Plane from the Data Plane, while a conventional network based on joint control and data plane devices as we have seen in the previous section. The figure shows the SDN controller connected to n eNBs and one EPC. Based on the Figure 4.9 we will design and integrate SDN to existing traditional network in the next sections. Figure 4.9 – SDN-based COEW solution scenario. SDN Controller is considered to be the brain of Software Defined Network. SDN controller uses OpenFlow protocol in order to communicate with routers and switches. OpenFlow has to federate between SDN controller and open virtual switches. In order to install controller, there are various ways and options. There are many types of SDN controller applications available such as Floodlight Controller, Juniper SDN Controller and Opendaylight (ODL) Controller. In OpenDaylight Controller there are many versions and releases such as Helium, Lithium, Carbon, Boron and Beryllium. Beryllium is the most recent release. It is an opensource controller that belongs to Linux foundation. It has critical features for example Highavailability, clustering, and Openflow support. In order to interconnect all layers and modules, MD-SAL (Model-Driven Service Adaptation Layer) plays an important role. MD-SAL is kernel of this platform through which all layers and modules are working together. There is a centralized data store at the core of the 68 Figure 4.10 – OpenDaylight Architecture [10] platform, where two sub-datastores store relevant data, which are a) Config data store and b) Operational Data store. 4.2.1 OpenDaylight Beryllium SDN controller installation OpenDaylight is a large platform, where we can find many plugins and features. There are various versions of OpenDaylight controllers. In order to download the package OpenDaylight, the website www.opendaylight.org/downloads provides Karaf pre-built package.Karaf container functions as system integrator and acts as enabler in order to assemble many small packages or bundles like OSGi (Open Service Gateway Initiative) to combine and compose a big system. Karaf container is compatible with both Windows and Linux Operating Systems, because it is written and developed in java. After downloading the ODL unzip it and enter to the Karaf distribution directory and run the following commands. $ cd Documents/distribution-karaf-0.4.4-Beryllium-SR4/ $ ./bin/karaf 69 Figure 4.11 – ODL console. Figure 4.11 shows the initial appearance of the ODL console, where instructions for shutdown, logout, help etc. can be run. Once the installation and testing process is completed, the next step is to install components. Components installation There are many components that are not compatible with each other. Here we will describe the components that are compatible with our other components, because most of the components are dependent on others. We will explain them with the help of a table indicating their compatibility and a short description. This table will also show the Karaf feature name and component name. In order to install the features use the following command in the Karaf container. opendaylight-userroot>feature:install <component> The Compatibility section in the table 4.1 shows: all : means that this component will be compatible and run with other features. self+all : shows that this component will be compatible with other component having value all, but can not be compatible with the value self+all. MD-SAL Clustering Model-Driven SAL is a set of infrastructure services that is providing common and generic support to application and plugin developers. It should be installed before any other feature 70 Table 4.1 – ODL Components and its functions Component Name Comp.Description Karaf feature Name Compatibility MD-SAL Clustering Provide support for operating a cluster of OPendaylight instances odl-mdsal- clustering Special L2 Switch Provides L2 (Ethernet) forwarding across connected OpenFlow switches and support for host tracking odl-l2switch- switch -ui Self+all RESTCONF API Enable REST API access to the MD-SAL including the data store odl-restconf all DLUX web interface Display information on web interfaces odl-dlux-all all TSDR TSDR is providing database supports to Controller odl-tsdr-hsqldb- all all installed on the controller. It provides the following services: 1. Data Store 2. RPC (Remote Procedure Call)/Service routing 3. Notification subscription and publishing services In order to install MD-SAL Clustering use the following command: opendaylight-userroot>feature:install odl_mdsal_clustering DLUX web Interface DLUX is a web interface for the Opendaylight controller. It collect and draw the information from the OpenFlow protocol and L2 switch components. DLUX analyze information and display the topology of the network, flow statistics and hosts etc. 71 Figure 4.16 – Entire diagram of SDN-based COEW Solution Setup. 78 Chapter 5 COEW Validation through Experiments 5.1 COEW Solution without any Networking Setup Change Figure 5.1 – COEW Controller in scenario diagram. The scenario diagram 5.1 shows that two eNBs are connected to the same EPC and COEW controller. COEW controller receives data from the both eNBs and analyzes it, if it finds congestion on eNB1, it sends a wake-up message eNB2 in order to activate it. The following section describes the function of COEW controller, its output and validations through Wireshark captures. In this implementation, COEW Controller is implemented on eNB1, however, in real implementations a central node can be used to monitor different eNBs using ssh com- 79 mands and the provided congestion monitoring scripts. Figure 5.2 shows the calculated bit Figure 5.2 – Output of the Monitoring Controller. rate of the eNB1 interface connected to EPC. The monitoring controller taking the data from the interface each second and print it to the console. We provide the capacity threshold of the link between eNB1 and EPC to be 400 bytes/second. The figure shows continuous data rate but when the data rate gets over the threshold value it prints a message of congestion on eNB1 and asked for activation of the eNB2. We have seen in the previous figure that when data rate reach to a threshold value monitoring controller sends an activation message to eNB2 via ssh connection. Now we will compare the Wireshark captures of both eNBs, in order to check the connectivity. Figure 5.3 shows 80 Figure 5.3 – SSH message to eNB2 from eNB1. SSHv2 protocol message has been sent to client eNB2 right after the congestion message indicated by the monitoring controller. The next Wireshark Figure 5.4 is taken from the eNB2 interface eth0 which is connected Figure 5.4 – SSH connection with eNB1. to EPC and also connected to eNB1 for the signalling purpose. The figure shows the SSHv2 protocol message received from source eNB1(192.168.12.82), which confirms the established connection between eNB1 and eNB2. When eNB2 is activated, it starts communication with the EPC located in a separate machine. Figure 5.5 shows the connectivity request from eNB2 to EPC, while in the next line we can clearly see the acknowledgement and then response 81 Figure 5.5 – S1AP connection Request from eNB2 (192.168.12.2). from the EPC to eNB2. The figure also shows that one UE (172.16.0.2) is connected to EPC by the generated GTP tunnel. The next figure is showing the MME log file where we can observe that both eNBs are successfully connected to a single EPC. After the analysis of both Figures 5.6 and 5.7 we have Figure 5.6 – S1AP Connection between eNB1 and EPC. seen that the associated IDs of the eNBs are 7 and 8 respectively. The first associated ID 7 82 Figure 5.7 – Established connection between eNB2 and EPC. is assigned to eNB1 while eNB2 has assigned with ID 8. Figure 5.7 shows connected UE to the eNB1 successfully. 83 5.2 Validation of SDN-based COEW solution 5.2.1 Open vSwitch Confirmation Figure 5.8 – Open vSwitches configurations and its connectivity with SDN controller. Figures 5.8 shows the Open vSwitch configuration and its connectivity with the controller (192.168.12.10), where Figure 5.8(a) and (c) belongs to eNB1 and eNB2, respectively and Figure 5.8(b) belongs to EPC. 5.2.2 SDN Controller DLUX graphical interface shows the network topology, where two Open vSwitches belongs to eNBs while third Open vSwitch represent EPC. Moreover, graphical interface illustrates nodes information as well. Figures 5.9 - 5.16 shows that SDN controller provide statistics in the form of (Tx/Rx) packets and (Tx/Rx) Bytes in both LOCAL and GLOBAL interfaces of the switches. Here in this document we will analyze the statistics with respect to packets. 84 Figure 5.9 – All the three Open vSwitches through DLUX GUI. Figure 5.10 – All the three Open vSwitches with its node IDs. Figure 5.11 – Open vSwitch s1 with its physical port eth0. 5.2.3 COEW Controller Application Figures 5.9 - 5.11 shows the existing switches, their IDs and statistics. SDN controller is residing on a totally separate machine, on the same machine COEW controller is set as well. The COEW controller reads the node statistics from all the nodes and analyze the congestion on the nodes. A threshold value is set at the COEW Controller in order to control 85 Figure 5.12 – Open vSwitch s2 with its physical port eth3. Figure 5.13 – Open vSwitch s3 with its physical port eth0. Figure 5.14 – Open vSwitch s1 node statistics. Figure 5.15 – Open vSwitch s2 node statistics. congestion. SDN Controller polls the statistics from OVS every 15 seconds in this case (which can be change by XML file). According to Figure 5.23 a threshold value of 200 packets/15 seconds has been set at COEW controller. COEW controller collects the data via TSDR HSQLDB using REST APIs. 86 Figure 5.16 – Open vSwitch s3 node statistics. This experiment is based on the setup shown in Figure 5.17, where two eNBs connected to one EPC and all the three machines are monitored by SDN controller. All the three machines are configured with Open vSwitches. The following section shows the execution of the experiment and it results based on the figures and Wireshark captures. First of all, activate the SDN Controller along with the COEW Controller and then turn on EPC (HSS, MME and SPGW). According to the scenario diagram turn on eNB1. Monitoring controller started counting and collection of statistics. A value is assigned to COEW controller according to the available capacity limit on the eNB EPC link. For example the capacity threshold of the eNB1 and EPC link is set to 200 packets/15 seconds. The Wireshark captures in Figures 5.18-5.22 shows the detailed procedure of OpenFlow protocol communication between Open vSwitches and SDN Controller. The Figures 5.18 - 5.19 illustrates the OpenFlow protocol that is used for the communication between Open vSwitches and SDN controller. Figure 5.21 shows the SDN Controller communication flows with all three Open vSwitches. All the previous Figures 5.18-5.22 shows that Open vSwitches are using OpenFlow10 protocol. Figure 5.22 shows the connection established between eNB1 and EPC through S1AP protocol. In the same figure a UE is also connected to EPC through GTP tunnelling protocol. COEW controller continuously checks the collected statistics from S1 interface of eNB1 in 87 and OAI community has proved to be important assets. The project provides many useful tools and an environment for the study of the LTE for example integration of Wireshark, ITTI analyser, etc. However, during the thesis execution, many difficulties have occurred because of the complex code and lack of documentations. It was very difficult to modify or customize the code as an outsider to the OAI project. An aim of the thesis was to build a complete mobile communication setup using COTS hardware, in order to perform useful experiments such as congestion control. Multiple eNBs scenario was tested using monitoring controller application (COEW) and remote eNB wakeup experiments are performed. The target of the solutions was to make user-friendly, efficient and reliable networks, where eNBs are less congested. As per the SDN-based COEW solution, open-source SDN programs and specifications are used such as OpenDayLight controller, Open vSwitch, OpenFlow protocol, etc. Through physical experiments, we show that we can monitor the LTE traffic and react accordingly as part of our COEW solution. As future work, eNB cell sizes can be adjusted dynamically. Contraction and expansion of the cell size is another attractive solution in order to control congestion. In this solution eNB will contract its size according to the congestion, if the congestion is increasing, the eNB will shrink its cell size. The shrinked eNB will send a wake-up signal to the nearby not congested eNB to expand his cell size to connect more users. Moreover, the collection of number of UE information can be directly done by modifying the OAI code instead of using the logs. 94 References [1] Lescuyer, Pierre and Thierry Lucidarme.Evolved Packet System (EPS) .Chichester, West Sussex, England: J. Wiley & Sons, 2008. Print. http://read.pudn.com/downloads161/ebook/729955/Evolved%20Packet%20System.pdf [2] "Releases".3GPP Releases ,2016.http://www.3gpp.org/specifications/67releases [3] "The Evolved Packet Core" http://www.3gpp.org/theevolved-packet-core [4] http://www.3gpp.org/technologies/keywords-acronyms/102-gprs-edge [5] http://www.opendaylight.org [6] https://github.com/floodlight/floodlight [7] https://www.opennetworking.org/images/stories/downloads/sdn-resources /onf-specifications/openflow/openflow-spec-v1.4.0.pdf [8] EUTRAN USER GUIDE , EURECOM, 2016. http://manualzz.com/doc/4142140/eutran-user-guide [9] Nohrborg, Magdalena. "LTE Overview". 3gpp.org . http://www.3gpp.org/technologies/keywords-acronyms/98-lte [10] "UHD (USRP Hardware DriverTM)". ettus.com , 2016. https://www.ettus.com/sdrsoftware/detail/usrp-hardware-driver [11] "USRP Hardware Driver and USRP Manual: Firmware and FPGA Images". ettus.com , 2016. http://files.ettus.com/manual/page_images.html 95 [12] "Announcing the USRP B200 and USRP B210, the first fully integrated USRP devices with continuous RF coverage from 70 MHz –6 GHz". ettus.com , 2016. https://www.ettus.com/news/article/36 [13] "USRP Bandwidth". https://www.ettus.com/kb/detail/usrp-bandwidth [14] "USRP B200 (Board Only)". https://www.ettus.com/product/details/UB200-KIT [15] "Towards Open Cellular Ecosystem". Openairinterface.org , 2016. http://www.openairinterface.org/?page_id=864 [16] "Openair5G User". Lists.eurecom.fr , 2016. http://www.sigcomm.org/sites/default/files/ccr/papers/2014/ October/0000000-0000004.pdf [17] Evolved Universal Terrestrial Radio Access (E-UTRA); Physical layer procedures , 3GPP TS 36.213 http://www.etsi.org/deliver/etsi_ts/136200_136299/136213/08.08.00_60/ ts_136213v080800p.pdf [18] NOX GUI (2012), https://github.com/noxrepo/nox-classic/wiki/NOX-GUI [19] Foundation, O.N.: Openflow switch specification version 1.3.1. Tech. rep., Open Networking Foun-dation (September 2012) [20] http://docs.openvswitch.org/en/latest/ [21] http://docs.opendaylight.org/en/stable-boron/user-guide/tsdr-user-guide.html 96 Appendix A.1 (COEW Monitoring Controller) while : do rx1=$(ifconfig eth0 | grep ’RX packets’ | awk -F: ’print $2’| awk ’print $1’) sleep 1 rx2=$(ifconfig eth0 | grep ’RX packets’ | awk -F: ’print $2’| awk ’print $1’) totrx=$((rx2-rx1)) tx1=$(ifconfig eth0 | grep ’TX packets’ | awk -F: ’print $2’| awk ’print $1’) sleep 1 tx2=$(ifconfig eth0 | grep ’TX packets’ | awk -F: ’print $2’| awk ’print $1’) tottx=$((tx2-tx1)) tot=$((totrx+tottx)) echo "Bytes/seconds=" $tot if [ $tot -gt 0 ] then echo "i am going to run second eNB" ssh younes192.168.12.2 ./enb_compile.sh sleep 5 fi sleep 1 97 Done A.2 (COEW Controller Application) 98