Open Source Mobile Network Using Openbts and Usrp 9: The University of Mississippi Undergraduate Research Journal
Open Source Mobile Network Using Openbts and Usrp 9: The University of Mississippi Undergraduate Research Journal
Volume 2 Article 12
4-1-2017
Bryan Harper
Recommended Citation
Bratu, Erin and Harper, Bryan (2017) "Open Source Mobile Network Using OpenBTS and USRP 9," The University of Mississippi
Undergraduate Research Journal: Vol. 2 , Article 12.
Available at: https://egrove.olemiss.edu/umurjournal/vol2/iss1/12
This Article is brought to you for free and open access by eGrove. It has been accepted for inclusion in The University of Mississippi Undergraduate
Research Journal by an authorized editor of eGrove. For more information, please contact [email protected].
Open Source Mobile Network Using OpenBTS and USRP 9
Erratum
2017-04-01
This article is available in The University of Mississippi Undergraduate Research Journal: https://egrove.olemiss.edu/umurjournal/
vol2/iss1/12
Open Open
Source Mobile Network Using OpenBTS and USRP
Source Mobile Network Using OpenBTS and USRP
Erin Bratu and Bryan Harper Advised by Mr. Raviteja Chinnambeti and Dr. Lei Cao
Erin Bratu and Bryan Harper
Department of ElectricalAdvised
Engineering, University
by Mr. Raviteja of Mississippi,
Chinnambeti and Dr. University,
Lei Cao MS 38677
Department of Electrical Engineering, University of Mississipi, University, MS 3867 7
I. INTRODUCTION
The creation of affordable, transportable, easily installable,
Fig. 1. Hardware Setup.
and reliable networks has been a prime motivation in the
field of communication. These network features can be
realized by integration of hardware and software as a single
II. SYSTEM AND COMPONENTS
functioning network unit. Such a network is called a Software
Defined Network (SDN). The advantage of using an SDN Open Base Station Transceiver
over traditional networking methods is that much of the OpenBTS is an open source software, written in C++, that
configuration can be adjusted as needed, with few to no can be used to implement a self-contained cellular network.
changes to the existing hardware infrastructure required. Peripherals—such as USRP devices—are used as base sta-
This paper describes the use of USRP as a hardware unit tions. GSM (Global System for Mobile Communications)
and OpenBTS as a software unit to create a functioning, devices can be used as mobile stations, as OpenBTS uses the
portable GSM network. This network can be used for Search GSM protocol stack [2]. However, core network functions,
and Rescue (SAR) missions in disaster struck areas, as a local such as resource management, connection establishment,
commercial or non-commercial network in remote areas for switching, etc., are performed internally on the computer(s)
communication, as a local network between employees in an running the software [3]. The services which can be provided
industrial zone e.t.c.. include voice, SMS, MMS, and data.
All of the above situations call for a dynamic, low-cost
mobile network that can be configured as needed. A demon- Asterisk
stration of this type of system may be seen in Fig. 1. This For long-distance calling functionality we use the software
particular system uses a computer running Linux Ubuntu Asterisk. Asterisk is an open source software implementation
14.04, a USRP B210, two GSM-band antennae, and Android- of a PBX (Private Branch Exchange). In addition to commu-
based mobile phones, as well as the Asterisk and OpenBTS nication within the PBX, Asterisk is capable of connecting
softwares to create the network. The implementation of with other networks such as the PSTN (Public Switched
GSM network using USRP can be found online but never Telephone network) or VoIP (Voice over Internet Protocol)
given in detailed description, this paper gives full insight on services [9]. OpenBTS delivers calls via SIP (session ini-
implementation including the debugging process if any error tiation protocol) via Asterisk. Without Asterisk or a VoIP
persists during installation process, as well as presents some soft switch, OpenBTS would require calls to be forwarded
field test results. through an operator’s mobile switching center.
The rest of the paper is organized as follows. Section II
explains the system components and requirements. section III Universal Software Radio Peripheral
describes the implementation procedure of GSM network. USRP is an inexpensive hardware platform for software
Section IV shows the performance of the system in a defined radio. Generally, a USRP device is connected to
practical scenario, and discusses possible ways for network a host computer by using high-speed links. Host-based
extension. Finally, section V concludes the paper. software is used to control the USRP in order to transmit
and receive data. All USRP products utilize free, open-source Step 2: Install GNU Radio and UHD
USRP hardware driver (UHD) software package. USRP Open the terminal window in ubuntu and install GNU
devices are commonly used with the GNU Radio software Radio along with UHD by running the following script:
suite to create complex software-defined radio systems.
wget h t t p : / / www. s b r a c . o r g / f i l e s / b u i l d g n u r a d i o &&
The USRP hardware driver (UHD) is provided by Ettus chmod a+x b u i l d g n u r a d i o && . / b u i l d g n u r a d i o
Research (National instruments subsidiary) for use with the
USRP product family. It is supported for use with Linux, For any additional instruction or detail refer to [5].
MacOS, Windows systems and several frameworks including
GNU Radio, LabVIEW, MATLAB and simulink. The UHD Step 3: Install Development Packages
functionality can also be directly accessed using UHD API It is necessary to install the following prerequisite devel-
which provides native support for C++. Any other languages opment packages on your Linux machine:
that can import C++ functions can also use UHD. For • autoconf
example, this can be used by Python through Simplified • libtool
Wrapper and Interface Generator (SWIG). • libosip2-dev
USRP B200/B210 are used in our implementation and • libortp-dev
their specifications include: • libusb-1.0-0-dev
• g++
• USB 3.0 interface
• sqlite3
• Xilinx Spartan 6 XC6SLX75 FPGA
• libsqlite3-dev
• A Cypress EZ-USB FX3 High-speed USB 3.0 controller
• erlang
• Analog Devices AD9361 RFIC
• libreadline6-dev
• Coverage from 70 MHz - 6 GHz RF
• libncurses5-dev
• Flexible rate 12 bit ADC/DAC
• libuhd-dev
• 1 TX, 1 RX, Half or Full Duplex (B200) / 2 TX, 2 RX,
• libuhd003
Half or Full Duplex (B210)
• -host
• Fully coherent 2 ⇥ 2MIMO capability (B210)
• libboost-dev
• Up to 56 MHz of real-time bandwidth 1 ⇥ 1
• bind9
• Up to 32 MHz of real-time bandwidth 2 ⇥ 2 (B210)
• ntp
cd dev Now configure the GSM band and Absolute Radio Fre-
. / b u i l d . s h B210
quency Channel Number (ARFCN) by the following com-
The above commands should have installed OpenBTS and mand and customize them if necessary.
built the necessary files but if any error persists one can use OpenBTS > c o n f i g GSM. R a d i o
the following commands: GSM. R a d i o . ARFCNs 1 [ d e f a u l t ]
GSM. R a d i o . Band 900 [ d e f a u l t ]
. / s w i t c h t o . sh 5 . 0 GSM. R a d i o . C0 51 [ d e f a u l t ]
cd o p e n b t s GSM. R a d i o . M a x E x p e c t e d D e l a y S p r e a d 4 [ d e f a u l t ]
g i t checkout master GSM. R a d i o . PowerManager . MaxAttenDB 10 [ d e f a u l t ]
git pull GSM. R a d i o . PowerManager . MinAttenDB 0 [ d e f a u l t ]
g i t submodule i n i t GSM. R a d i o . R S S I T a r g e t 50 [ d e f a u l t ]
g i t s u b m o d u l e update GSM. R a d i o . SNRTarget 10 [ d e f a u l t ]
cd . .
i n s t a l l l i b s o d i u m 13 d e p e n d e n c y f i l e i f prompted OpenBTS > c o n f i g
. / NodeManager / i n s t a l l l i b z m q . s h GSM. R a d i o . Band 850
. / b u i l d . s h B210 GSM. R a d i o . Band c h a n g e d from 900 to 850
WARNING: GSM. R a d i o . C0 ( 5 1 ) f a l l s o u t s i d e t h e v a l i d
The above commands should have resolved most of the r a n g e o f ARFCNs
128 251 f o r GSM. R a d i o . Band ( 8 5 0 )
installation issues. GSM. R a d i o . Band i s s t a t i c ; c h a n g e t a k e s e f f e c t on
Step 7: Install deb Packages restart
A Debian Package (.deb) is an archive file that consists If ARFCN falls outside the range please use the following
of executable files, libraries and documentation associated command to get it inside the range.
with particular suite of a program or group of programs. OpenBTS > c o n f i g
To install .deb files go to BUILDS folder installed in dev GSM. R a d i o . C0 166
GSM. R a d i o . C0 c h a n g e d from 5 1 to 166
and look for the folder named in the format year-month- GSM. R a d i o . C0 i s s t a t i c ; c h a n g e t a k e s e f f e c t on
date hours-minutes-seconds (ex: 2016-03-1410-47-42) and restart
run the following command:
Configuring the Mobile Phones:
c o n f i g C o n t r o l . LUR . O p e n R e g i s t r a t i o n . ⇤
Once the configuration is done proceed with the following
instructions to detect the USRP OpenBTS network (often
Now check the IMSI numbers of the connected mobiles
seen as Test PLMN 1-1 or 001005).
using the following command:
1) Launch the Settings application from the Android
menu system. OpenBTS > t m s i s
2) Select More. IMSI TMSI IMEI AUTH CREATED ACCESSED TMSI ASSIGNED
214057715229963 012546629231850 0 78 s 78 s 0
3) Select Mobile networks. 001010000000002 312547515229963 1 80 h 95 s 0
4) Select Network operators. This may or may not start 001010000000003 351771053005400 1 80 h 108 s 0
a search. If it does not, select Search networks.
5) Once the search has finished, a list of available carrier Here, a ’1’ in the AUTH column indicates the LUR
networks is presented. (Location Update Request) succeeded due to being a known
subscriber and a ’0’ indicates LUR failed due to the mobile
not being a known subscriber.
IV. R ESULTS
A. Field Test:
TABLE II
PARAMETERS SET B EFORE ESTIMATING PERFORMANCE OF NETWORK .
Parameter Value
Frequency of operation 900 MHz
Transmitted power of BTS 23dBm
BTS gain 3dB
Transmitted power of MS 33dBm
Height of antenna at BTS 24.2cm
Noise RSSI -63dB
Uplink SNR cutoff 10dB
V. C ONCLUSION
The above implementation creates a complete, self-
contained cellular network with minimal hardware (a com-
puter and a USRP device). It is light, portable, cheap, and
simple to install. Additionally, all software used is free and
open-source. Thus, the implementation can find utility in
applications including SAR missions in areas with compro-
mised communication infrastructures, private networks for a
business or work site, or research and development.
Acknowledgments
This work is supported by NASA EPSCoR program under
grant NNX14AN38A.
R EFERENCES
[1] T. Rappaport, Wireless communications, 1st ed. Upper Saddle River,
N.J.: Prentice Hall PTR, 2002.
[2] ”OpenBTS”, En.wikipedia.org, 2016. [Online]. Available:
https://en.wikipedia.org/wiki/OpenBTS. [Accessed: 23- Nov- 2016].
[3] ”GSM”, En.wikipedia.org, 2016. [Online]. Available:
https://en.wikipedia.org/wiki/GSM. [Accessed: 23- Nov- 2016].
[4] ”2G”, En.wikipedia.org, 2016. [Online]. Available:
https://en.wikipedia.org/wiki/2G. [Accessed: 23- Nov- 2016].
[5] ”ECEN 4652/5002, Communications Lab, Spring 2016
- GNU Radio Installation”, Ecee.colorado.edu, 2016.
[Online]. Available: http://ecee.colorado.edu/ mathys/e-
cen4652/SDRsoftware/GNURadioInstall.html. [Accessed: 23- Nov-
2016].
[6] ”Instalasi dan Konfigurasi OpenBTS 5.0”, My notebook, 2016.
[Online]. Available: https://antonraharja.com/2016/03/16/instalasi-dan-
konfigurasi-openbts-5-0/. [Accessed: 23- Nov- 2016].
[7] ”Asterisk 13 and FreePBX 13 on Ubuntu 14.04”, My notebook, 2016.
[Online]. Available: https://antonraharja.com/2016/03/12/asterisk-13-
and-freepbx-13-on-ubuntu-14-04/. [Accessed: 23- Nov- 2016].
[8] ”OpenBTS 5.0 install”, MessageLoop Footprints, 2016. [Online].
Available: https://xmsg.org/wordpress/?p=819. [Accessed: 23- Nov-
2016].
[9] ”Asterisk (PBX)”. En.wikipedia.org. N.p., 2017. Web. 24 Jan. 2017.
[10] Anthony, Faustine, Maria Gabriel, and Bertha Shao. ”Open Source
Cellular Technologies for Cost Effective Cellular Connectivity in Rural
Areas.” International Journal of Computer Applications 146, no. 15
(2016).