Professional Documents
Culture Documents
net/publication/335443910
CITATIONS READS
0 397
5 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Dac-Nhuong Le on 28 August 2019.
Publishers at Scrivener
Martin Scrivener (martin@scrivenerpublishing.com)
Phillip Carmical (pcarmical@scrivenerpublishing.com)
Network Modeling, Simulation and
Analysis in MATLAB
Dac-Nhuong Le
Haiphong University, Haiphong, Vietnam
Sairam Tadepalli
AWS Architect, Python Developer, India
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or other-
wise, except as permitted by law. Advice on how to obtain permission to reuse material from this title
is available at http://www.wiley.com/go/permissions.
For details of our global editorial offices, customer services, and more information about Wiley prod-
ucts visit us at www.wiley.com.
ISBN 978-1-119-63143-9
Set in size of 11pt and Minion Pro by Manila Typesetting Company, Makati, Philippines
10 9 8 7 6 5 4 3 2 1
Contents
List of Figures xi
List of Tables xv
Foreword xvii
Preface xix
Acknowledgments xxi
Acronyms xxiii
1 Introduction to Modeling, Simulations and Analysis 1
1.1 MATLAB Modeling and Simulation 2
1.2 Computer Networks Performance Modeling and Simulation 4
1.2.1 Computer-Based Models 4
1.2.2 Computer Network Simulation 5
1.3 Discrete-Event Simulation for MATLAB 6
1.3.1 Terminology and Components of Discrete-Event Simulation 7
1.3.2 The Principle of Discrete-Event Simulation 8
1.3.3 ESTA Algorithm 9
1.3.4 ANALYSIS: Determination of Time to Attain Steady State
Condition for MATLAB 11
1.4 Simulation Software Selection for MATLAB 11
1.5 Simulation Tools Based on High Performance 12
1.5.1 Network Model 13
1.5.2 Network Simulators 15
1.6 Conclusion 22
References 23
2 Introduction to MATLAB Programming 25
2.1 Introduction 26
2.2 Basic Features 27
2.2.1 Features of MATLAB 27
2.2.2 Uses of MATLAB 27
2.3 Notation, Syntax, and Operations 27
2.3.1 Practical Examples for MATLAB 27
2.3.2 Use of Semicolon (;) in MATLAB 28
v
vi Contents
xi
xii List of Figures
xv
Foreword
In addition to modeling and simulating systems, this book provides a better understand-
ing of how real-world systems function. This enables us to predict the behavior of sys-
tems before they are actually built and to accurately analyze them under various operating
conditions. This book provides comprehensive, state-of-the-art coverage of all the essential
aspects of modeling and simulation both physical and conceptual systems. Various real-life
examples are included, which show how simulation plays a crucial role in understanding
real-world systems. We also explain how to effectively use MATLAB to apply the modeling
and simulation techniques presented successfully.
After introducing the underlying philosophy of the systems, the book offers step-by-
step procedures for modeling with practical examples, and codes different types of sys-
tems using modeling techniques such as the Rayleigh fading model, BPSK modulation and
demodulation, QPSK modulation and demodulation, etc.
This book will prepare both undergraduate and graduate students for advanced modeling
and simulation courses, and will help them carry out useful simulation studies. Moreover,
postgraduate students should be able to comprehend and conduct simulation research after
completing this book.
xvii
Preface
This book is organized into eight chapters. In Chapter 1 a detailed overview is provided on
how MATLAB can be used for network simulation and modeling. Then various types of
simulation are described, followed by their working principles and different terminologies,
along with the algorithms governing these simulations. The chapter also describes the selec-
tion of various software simulations for MATLAB, and the simulation tools based on high
performance, followed by the different network models. This chapter will effectively help
readers understand the concepts more clearly and provide them with a clear understanding
of how to perform these tasks in MATLAB.
In Chapter 2, the power of MATLAB for computational mathematics is shown, followed
by a detailed description of the features. A detailed discussion of various areas of MATLAB
use is provided. We also discuss multiple notations, operators, and syntax and give hands-on
practical examples along with various loop structures and decision controls, import, and
export operations, using and creating M-files, different types of plotting and graphs, etc.
Also explained are the various clones of MATLAB. This chapter will effectively help readers
understand the workings and uses as well as applications of MATLAB more clearly.
In Chapter 3, we explain how digital communication system simulations can be per-
formed using MATLAB. A detailed introduction to digital communications, i.e, data trans-
mission, is provided along with an example. Next, a detailed explanation of
simulations of Rayleigh fading model, BPSK modulation and demodulation, QPSK
(Quadrature Phase Shift Keying) modulation and demodulation is given, along with their
MATLAB coding, and the output is shown as well. We image error rate vs signal-to-noise
ratio and OFDM with sample MATLAB coding and their output.
In Chapter 4, we explain how to perform statistical analysis of network data utilizing
MATLAB starting from affiliation systems/networks with examples. Time series analysis,
statistical stationarity, time series decomposition, de-trending, curve fitting, digital filtering,
recurrence reaction, and the connection between recurrence reaction to spline parameter
are also explained. Next, details are provided about autocorrelation, test for independence,
linear autoregressive models, etc.
In Chapter 5, we explain how network routing simulations can be done using MATLAB.
Additionally, deep insights are provided about the evaluation of Granger causality measures
on known systems, along with results. We explain the application to fMRI BOLD (Blood-
Oxygenation-Level-Dependent) information from a visuospatial consideration undertaking
followed by various model development approaches, models validation, universal algo-
rithms, and sequential algorithms, acoustic-centric and radio-centric algorithms, AODV
routing protocols, etc.
xix
xx Preface
In Chapter 6, we explain how wireless network simulations can be done using MATLAB.
We explain how shadowing methods are used for radio propagation, two-ray model, indoor
propagation, classical empirical model, Hata model, Walfisch-Ikegami model, Erceg model,
multi-slope model, dispersive model, 3GPP SCM, MAC: IEEE 802.11 (CSMA/CA, virtual
carrier sense, and RTS-CTS-DATA-ACK), NET-ad hoc routing, APP-overlay routing pro-
tocols, etc.
In Chapter 7, we explain various layers and protocols such as Vehicle Network Toolbox.
In this toolbox, an explanation is given on how to make a receiving channel, how to access
a chain, how to start a channel, how to transmit a message, etc. Next, the topic of network
management (NM) is presented, in which a detailed explanation is given of network instal-
lation planning, setting up a remote client access configuration, interaction layer, direct-
ing protocols in MANET, along with their results and analysis, and transport layer with
protocols.
In Chapter 8, a detailed explanation is provided of various real-time scenarios by using
case studies taken from multiple real-time situations with their sample codes and result
from analysis for a better understanding of how MATLAB performed in these situations
and how it can solve critical simulation problems in detail.
Dr. Dac-Nhuong Le
Deputy-Head, Faculty of Information Technology
Haiphong University, Haiphong, Vietnam
Abhishek K. Pandey
Assistant Professor (Computer Science Engineering)
ACERC, Visiting faculty, Mdsu, Ajmer Rajasthan, India
Sairam Tadepalli
Junior Data Scientist, AWS Architect, Python Developer
Pramod Singh Rathore
Assistant Professor (Computer Science Engineering)
ACERC, Visiting faculty, Mdsu Ajmer Rajasthan, India
Jyotir Moy Chatterjee
Assistant Professor (IT)
Lord Buddha Education Foundation (APUTI), Kathmandu, Nepal
Acknowledgments
First of all, I would like to thank the authors for contributing their chapters to this book.
Without their contributions, this book would not have been possible. Thanks to all my
associates for sharing my happiness at the start of this project and following up with their
encouragement when it seemed to be too difficult to complete.
I want to acknowledge and thank the most important people in my life, my grandfather,
grandmother, and finally thanks to my wife. This book has been a long-cherished dream
of mine which would not have been turned into reality without the support and love of
these fantastic people, who encouraged me despite my not giving them the proper time and
attention. I am also grateful to my best associates for their blessings and unconditional love,
patience, and encouragement.
Dac-Nhuong Le
Deputy-Head, Faculty of Information Technology
Haiphong University, Haiphong, Vietnam
Writing a book is harder than I thought and more rewarding than I could have ever
imagined. First and foremost, I would like to thank my father Mr. Krishan Dev Pandey for
being the coolest father ever and my mother Mrs. Veena Pandey for allowing me to follow
my ambitions throughout my childhood. They taught me discipline, tough love, manners,
respect, and so much more that has helped me succeed in life. Also, I would like to express
my gratitude to my elder sister Mrs. Arpna Tripathi, who always stood by me during every
struggle and all my successes. She has been my inspiration and motivation for continuing
to improve my knowledge and move my career forward. Also, I’m eternally grateful to my
wife, Mrs. Kajal Pandey, for standing beside me throughout my career and the writing of
this book. I also thank my wonderful son, Aarudra Pandey, for always making me smile
and for understanding on those weekend mornings when I was writing this book instead of
playing games with him. I hope that one day he can read it and understand why I spent so
much time in front of my computer. Last but not the least, I want to thank my friends who
always backed me up during both good and bad days and everyone who ever said anything
positive to me or taught me something. I heard it all, and it meant something.
Abhishek K. Pandey
Assistant Professor (Computer Science Engineering)
ACERC, Visiting faculty, Mdsu, Ajmer Rajasthan, India.
xxi
Acronyms
xxiii
xxiv Acronyms