Henry Zárate Ceballos, Jorge Ernesto Parra Amaris, Hernan Jiménez Jiménez, Diego Alexis Romero Rincón, Oscar Agudelo Rojas and Jorge Eduardo Ortiz Triviño

Wireless Network Simulation

A Guide using Ad Hoc Networks and the ns-3 Simulator

1st ed.
Henry Zárate Ceballos
Bogotá, Colombia
Jorge Ernesto Parra Amaris
Montreal, QC, Canada
Hernan Jiménez Jiménez
Bogotá, Colombia
Diego Alexis Romero Rincón
Bogotá, Colombia
Oscar Agudelo Rojas
Mosquera, Colombia
Jorge Eduardo Ortiz Triviño
Bogotá, BOGOTA, Colombia
ISBN 978-1-4842-6848-3e-ISBN 978-1-4842-6849-0
© Henry Zárate Ceballos, Jorge Ernesto Parra Amaris, Hernan Jiménez Jiménez, Diego Alexis Romero Rincón, Oscar Agudelo Rojas, Jorge Eduardo Ortiz Triviño 2021
This work is subject to copyright. All rights are solely and exclusively licensed by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use.
The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress Media, LLC part of Springer Nature.

The registered company address is: 1 New York Plaza, New York, NY 10004, U.S.A.

Preface

Today connectivity is the principal need in our technologically linked society. In this information society, users from children to elders share their information, show their feelings, and publish their lives on the information networks. Distributed and highly complex systems established between machines support these networks, which interact in fractions of seconds over long distances, delivering all kind of services. Both machines and services are transforming our environment, with engineers’ new ideas about computing devices, data networks, and information systems. This high demand for services is the result of the evolution of several elements: first, the growth of the Internet due to the changing nature of user preferences, the increasing number of connections, and the development and diffusion of social networks. Another factor is the emergence of mobility features that add dynamic and random behavior to linked devices, systems, and users.

Network services are support services at cities, government institutions, university campuses, and companies, to name a few. These networks provide service to the Internet and intranets, allowing shared information, services, and stablishing users communications. Access to these services is through different means such as optical fiber, copper, and air. Commonly, the interactions between users happen over several networks and mediums. The change of mediums is one of the critical processes for the throughput and quality of network services and the management of the systems supported by them across all communications channels and network components. Network components are usually diverse, and with only a few of them, it is possible to build relatively complex systems. It is difficult to predict their performance or characterize their operation when there are too many nodes, a heterogeneity of components, multiple layers of specialized functions, different services, and different mediums.

With all these factors, how do you know what the network behavior will be? There are two ways: first you can emulate it or determine the key points of the traffic behavior virtually through modeling or by reproducing the logical processes involved. The reliable option to emulate is intended to reproduce the network, routers, switches, nodes, and users; however, it is quite extensive and expensive. Another solution is the use of simulators, which are computational tools that allow the generation of a similar scenario to a real one. The use of simulators can help to explore interactions, component performance, and theoretical limits. Simulations are useful tools for empirical research because they permit us to generate data from a real network that can be high priced or difficult or impossible to control when designing a new network model that needs novel hypotheses for experimentation.

Setting up a virtual environment is useful to re-create a massive network with thousands of nodes. For instance, to evaluate mobile data traffic in IoT, Cisco [1] estimates that the monthly global mobile data traffic will be 49 exabytes by 2021, and the annual traffic will exceed half a zettabyte. The IoT environment has produced an increase in mobile devices, which will represent 20 percent of the total IP traffic. The platform business creates real Big Data scenarios and connects consumers with producers who share information, goods, and services through the Internet.

Simulation is a type of research methodology to compare some models, identify hypotheses, and understand the behavior and interactions between services, users, devices, and architectures. Since a network simulator can be event-based, each event represents an abstraction of a network and a computer system. For instance, nodes and physical networks can be represented in classes such as node and channel classes. The tools and components used, and the explanations, revolve around the ns-3 simulator.

The ns-3 simulator allows the simulation and emulation of networks. It is an open and free simulator that emulates networks using the network interface card (NIC) of the computer that tests and transports the traffic generated by the simulation script and saves the simulation data in different traces for post-simulation data analysis. In this sense, it is important to discuss many concepts related to simulators, the abstractions used for the ns-3 simulator, the application of the stack protocols (TCP, UDP, OLSR, and so on), and the computational model created to imitate the NICs, routers, and other network devices.

With simulation, it is easier to get quantitative results, identify relationships, establish system interactions, determine component performance, and reach theoretical limits. One of the best ways to improve and check the simulation results is to share their results and scripts. In a huge system like the Internet, due to scale, heterogeneity, and level of interaction, the exclusive analytical option is to simulate. It is useful when it is necessary to perform statistical models for data interpretation, with one simulation or with a set of simulations. Each simulation has stages and requires a working methodology. The main objective of this book is to show the mechanism and techniques to design and create simulation models, use the simulator and analyze the results, and find the factors that affect and describe the simulation or the model created.

The book has three parts. The first part covers simulation basics including general information about network simulation and wireless and ad hoc networks and some techniques for experiment design. The second part covers Network Simulator 3 (ns-3) and gives some examples and techniques for analyzing results. The third part covers wireless network simulators on ns-3 that conclude with examples and models to simulate wireless, wired, and mixed networks with ns-3.

Specifically, the first part has three chapters that explain network simulation, wireless networks, ad hoc networks, and experiment design. Chapter 1 explains simulation features, objectives, and the techniques and steps to do simulations.

Chapter 2 gives some insights about wireless and wired networks. Taking elements from the real world and applying them to the simulation world, we explain the evolution and principles of operation on architecrures dynamic and stochastic, such as the Internet of Things (IoT), fog computing, edge computing, and the mobile cloud. These are the new trends in Internet service delivery. In addition, the chapter explains the concept of cyberspace and of interactions on the Internet.

Chapter 3 shows some techniques for experiment design, the key issues for the script design, and the event selection over the network. After the simulation, the most important activity to be performed is the analysis of results, where events are reported, and of the network behavior, including problems and improvements that a network, a model, or a new protocol could have.

The second part of this book covers ns-3. Chapter 4 introduces the ns-3 simulator, including the main abstractions, code style, tracing, and logging. Chapter 5 shows the techniques to analyze the results post-simulations, take information from the generated traces, and determine the reliability of the simulation and the relevance of the simulation model.

Finally, in the third part, Chapters 6 and 7 include examples of mobile ad hoc networks (MANETS) with all the necessary steps for the simulations, to give you more clarity about the use of ns-3 and the process of analyzing the results. Chapter 6 show how to build an ad hoc network and analyze it with artificial agents using the ns-3gym and Open AI Gym tools. Chapter 6 introduces an example that links the ad hoc networks with power line communications (PLC). It is an approximation for the IoT environment. At the end, we present the conclusions and prospects of the network simulations and the future needs in this research field.

For the authors, this book is not just a dream come true but an effort of a team of friends, researchers, and fellow students. With this book, we want to inspire others to write, learn, and apply their knowledge to share it with others.

Table of Contents
Index 251
About the Authors
Henry Zárate Ceballos

received his PhD in engineering computing and systems and his master’s degree in telecommunications from the National University of Colombia. Henry is currently a researcher with the TLÖN Group. Henry has worked extensively with the ns-2 and ns-3 simulators and wireless distributed operating systems.

 
Jorge Ernesto Parra Amaris

received his master’s degree in telecommunication from the National University of Colombia, and a master’s degree in electronics engineering from the Colombian School of Engineering Julio Garavito. Jorge’s master’s thesis proposed a unique algorithm that was validated through simulation using ns-3.

 
Hernán Jiménez Jiménez

received his postgraduate master’s in telecommunications from the National University of Colombia. Hernán is currently a researcher at TLÖN Group.

 
Diego Alexis Romero Rincón

received his master’s in electronics from the National University of Colombia and is currently a researcher with the TLÖN Group. Diego focused his master’s thesis on the ns-3 simulator. Diego is currently a lecturer at the National University of Colombia.

 
Oscar Agudelo Rojas

is a systems engineer and lecturer at the National University of Colombia, where he also received his master’s degree in telecommunications. His research work includes networks (wired and wireless), network coding, simulation (ns-2 and ns-3), and parallel and distributed systems.

 
Jorge Eduardo Ortiz Triviño

received his PhD in engineering computing systems and master’s degrees in telecommunications, statistics, and philosophy from the National University of Colombia. Jorge is currently is Associate Professor in the Department of Systems and Industrial Engineering and Director of the TLÖN research group of the Universidad Nacional de Colombia, while also working as a network specialist.

 
About the Technical Reviewer
John Edwar Gonzalez Ortiz

Electronic Engineer John Edwar Gonzalez has more than five years of experience in the telecommunications industry. He has a master’s degree in telecommunications engineering from the Universidad Nacional of Colombia. He has focused his projects on the area of ad hoc networks and in his work, it is possible to see the focus on the nodes that make up the network and their interaction when a social inspired behavior is applied to the network. John Edwar has belonged to the TLÖN research group for more than 5 years and his research can be seen in various journals where the behavior of the nodes is analyzed. Topics such as decision making in nodes, resource negotiation, game theory, altruism and selfishness have been addressed in his articles.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.251.37