Advanced Network Simulations Simplified

Book description

Get to grips with the essential concepts and features of ns-3 using practical examples and assessments

Purchase of the print or Kindle book includes a free PDF eBook

Key Features

  • Explore network simulation for development, testing, and evaluation activities
  • Understand the key building blocks of simulation and evaluate network topologies
  • Learn how to set up and evaluate wired, Wi-Fi (802.11a/b/g/n/ac/ax), and 4G LTE networks

Book Description

Network simulation is a powerful technique that uses software programs to replicate the behaviors of real networks. Network simulators are programs that can predict the performance of computer networks or wireless communication networks. This book is your hands-on guide to ns-3, a script-based simulator that allows for learning, experimenting, and evaluating wired, wireless (802.11a/b/g/n/ac/ax), and 4G long-term evolution (LTE) networks quickly and at low cost.

You'll begin by learning how to install and use ns-3, along with exploring its key features such as building blocks for creating a variety of wired or wireless network topologies, installing suitable protocols and applications, identifying and resolving networking issues, and systematically evaluating network performance. As you make progress, you'll gain a clear understanding of simulation errors, exceptions, and abrupt events. You'll also discover how to set up and evaluate Ethernet, Wi-Fi (802.11n/ac/ax) LANs, ad-hoc, and LTE networks. The concluding chapters discuss LTE advanced topics such as capacity planning, site surveys, radio resources, mobility management, and interference handling. By the end of this simulation book, you'll be able to use ns-3 to implement, analyze, debug, and evaluate the performance of wired or wireless networks, as well as setting up custom test scenarios.

What you will learn

  • Get to grips with the installation of ns-3 for learning and research
  • Explore ns-3 logging, debugging, tracing, and evaluation on networks
  • Discover various wired, wireless, and ad hoc networks
  • Understand the set-up using Wi-Fi protocols, placement, and mobility models
  • Find out how to set up advanced Wi-Fi technologies such as 802.11n/ac/ax features
  • Explore LTE basics, advanced network features, and research activities

Who this book is for

This book is primarily for network engineers, networking researchers, and undergraduates. Postgraduate students, researchers, and professors interested in network simulations will also find this book useful. A basic understanding of network simulation technology will be helpful in grasping the topics present in this book.

Table of contents

  1. Advanced Network Simulations Simplified
  2. Contributors
  3. About the author
  4. About the reviewers
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Download the color images
    5. Conventions used
    6. Get in touch
    7. Share your thoughts
    8. Download a free PDF copy of this book
  6. Part 1: Exploring Network Simulator-3 (ns-3) Thoroughly and Quickly
  7. Chapter 1: Getting Started with Network Simulator-3 (ns-3)
    1. Technical requirements
    2. Getting started with installing ns-3
    3. Exploring ns-3 code easily using the Code::Blocks editor
      1. Installing and configuring Code::Blocks for ns-3
      2. Exploring various ns-3 modules’ source code
    4. Understanding an ns-3 program’s structure
    5. Starting your first network simulation
      1. First simulation implementation activity using ns-3
      2. First simulation evaluation using ns-3
    6. Playing ns-3 simulations using NetAnim
      1. How to install and use NetAnim
      2. How to use the NetAnim GUI (panels and their menus)
      3. Visualizing a network simulation using NetAnim
      4. Playing your simulation using NetAnim
    7. Summary
  8. Chapter 2: Monitoring, Debugging, Tracing, and Evaluating Network Topologies in ns-3
    1. Monitoring ns-3 simulation steps and events using logging
      1. How to display existing modules’ logging details at various levels
      2. How to include your own logging statements in your simulation program
    2. Identifying and resolving simulation issues using a debugger
      1. Going through the gdb commands quickly
      2. Walking through a simulation using gdb
      3. Detecting and resolving a simulation crash
    3. Using callbacks and traces for inspection of ns-3 nodes and protocols
      1. Accessing CSMA protocol-processed packets in your simulation
      2. Understanding TCP protocol implementation in ns-3
    4. Performance evaluation and validation of simulations using Flow Monitor
      1. How to use Flow Monitor in ns-3 simulations
      2. Understanding Flow Monitor results
    5. Using gnuplot to project simulation results
      1. The gnuplot basics
      2. How to parse simulation results for plotting
      3. How to plot line charts and bar charts
    6. Summary
  9. Chapter 3: ns-3 Key Building Blocks for Simulations
    1. Setting up a variety of network nodes using ns-3 nodes and containers
      1. ns-3 wired networking hosts
      2. Interconnecting networks
      3. Wireless networking devices setup
    2. Connecting nodes using a variety of channels
      1. ns-3 wired channels
      2. ns-3 wireless channels
    3. Quickly installing and configuring InternetStack and applications
      1. ns-3 UDP client and server applications
      2. ns-3 UDP echo client and server applications
      3. ns-3 TCP bulk send and packet sink applications
      4. ns-3 On-Off TCP/UDP applications
      5. ns-3 HTTP client and server applications
    4. The step-by-step procedure for building a simple LAN
    5. The step-by-step procedure for building a simple wireless LAN
    6. Summary
  10. Part 2: Learn, Set Up, and Evaluate Wired and Wi-Fi (802.11a/b/g/n/ac/ax) Networks
  11. Chapter 4: Setting Up and Evaluating CSMA/P2P LANs, Wi-Fi LANs, and the Internet
    1. Step-by-step procedure for setting up CSMA/CD LANs
      1. CSMA/CD LANs simulation in ns-3
      2. CSMA/CD LANs evaluation in ns-3
    2. Step-by-step procedure for setting up Wi-Fi LANs
      1. Wi-Fi LANs simulation in ns-3
      2. Wi-Fi LANs evaluation in ns-3
    3. Step-by-step procedure for setting up heterogeneous LANs (CSMA and Wi-Fi LANs)
      1. Heterogeneous LAN simulation in ns-3
      2. Heterogeneous LAN evaluation in ns-3
    4. Step-by-step procedure for setting up and evaluating an internet simulation topology
      1. Internet simulation in ns-3
      2. Internet evaluation in ns-3
    5. Summary
  12. Chapter 5: Exploring Basic Wi-Fi Technologies and Setting Up and Evaluating Wireless Ad Hoc Networks
    1. Getting started with Wi-Fi nodes and channels in ns-3
      1. ns-3 Wi-Fi PHY configuration
      2. ns-3 supporting propagation loss, delay, and error rate models
    2. Exploring Wi-Fi – operating modes, rate control algorithms, and QoS support using ns-3
      1. Wi-Fi operating modes (infrastructural or ad hoc)
      2. ns-3 support for rate control algorithms
      3. ns-3 QoS support
    3. Understanding placement models and mobility models
      1. ListPositionAllocator
      2. GridPositionAllocator
      3. RandomDiscPositionAllocator
      4. RandomRectanglePositionAllocator
      5. GridBuildingAllocator and RandomRoomPositionAllocator
      6. ns-3 mobility models
    4. Setting up wireless ad hoc networks
      1. Setting up a wireless or mobile ad hoc network in ns-3
      2. Evaluation of the ns-3 wireless ad hoc network
    5. Configuring and installing a variety of ad hoc network routing algorithms in ns-3
      1. Configuring and installing various ns-3 ad hoc routing protocols in your simulations
      2. Evaluating the ns-3 Wi-Fi ad hoc routing algorithms
    6. Summary
  13. Chapter 6: Researching Advanced Wi-Fi Technologies – 802.11n, ac, and ax in ns-3
    1. Understanding the 802.11n, ac, and ax Wi-Fi PHY and MAC enhancements supported in ns-3
      1. ns-3 supporting 802.11n, ac, and ax Wi-Fi PHY layer features
      2. ns-3 supporting 802.11n, ac, and ax Wi-Fi MAC layer features
    2. Simulating advanced Wi-Fi features – channel bonding and FA
      1. Setting up an 802.11n Wi-Fi LAN in ns-3 for simulating channel bonding and FA
      2. Testing the channel-bonding and FA features of 802.11n in an ns-3 simulation
    3. Simulating advanced Wi-Fi features – MIMO and OFDM
      1. Setting up and evaluating an 802.11ac Wi-Fi LAN in ns-3 for testing the MIMO and OFDM features
      2. Testing the MIMO and OFDM features of 802.11ac in an ns-3 simulation
    4. Exploring spectrum/resource management in Wi-Fi 6 using ns-3
      1. Setting up and simulating resource scheduling in 802.11ax/Wi-Fi 6 networks
      2. Evaluating the resource scheduling feature of 802.11ax
    5. Exploring spectrum reuse in Wi-Fi 6 using ns-3
      1. Setting up and simulating resource scheduling in 802.11ax/Wi-Fi6 networks
      2. Evaluation of the BSS coloring feature
    6. Summary
  14. Part 3: Learn, Set Up, and Evaluate 4G Long-Term Evolution (LTE) Networks
  15. Chapter 7: Getting Started with LTE Network Simulations Using ns-3
    1. Understanding the LTE network nodes, protocols, and features supported in ns-3
      1. ns-3 LTE implementation supporting E-UTRAN features
    2. Learning how to set up and configure various LTE nodes in ns-3
      1. ns-3 LTE RAN nodes setup and their configuration
      2. Configuring ns-3 resource scheduling, handover, and interference control algorithms
      3. ns-3 LTE EPC node setup and configuration
    3. Simulating LTE RAN and EPC networks using ns-3 key building blocks
      1. Setting up and configuring the LTE EPS network hands-on activity using ns-3
      2. Evaluation of LTE EPS simulation setup
    4. Summary
  16. Chapter 8: Researching LTE Network Radio Resource Management and Mobility Management Using ns-3
    1. Exploring LTE radio resource-scheduling algorithms supported in ns-3
      1. ns-3 LTE operating spectrum
      2. Common design considerations of ns-3 LTE radio resource schedulers
      3. ns-3 LTE schedulers’ performance evaluation hands-on activity
      4. ns-3 LTE schedulers’ performance evaluation
    2. Simulating and testing LTE EPC QoS bearers’ supporting features in ns-3
      1. Evaluation of LTE EPS QoS bearers
    3. Setting up an LTE network mobility scenario using ns-3-supported handover algorithms
      1. Generation and handling of handover measurement reports
      2. LTE standard handover events’ simulation
      3. ns-3.36 LTE module supporting handover algorithms
      4. ns-3 LTE mobility scenario simulation
      5. ns-3 LTE mobility scenario evaluation
    4. Summary
  17. Chapter 9: Researching LTE Advanced Networks: LTE HetNets and Interference Management Using ns-3
    1. Using ns-3 REM plots for site surveying and LTE deployments
      1. LTE deployment site surveying using ns-3 – hands-on activity
      2. REM plot generation and inspection
    2. Setting up LTE HetNets using ns-3
      1. LTE HetNets setup in ns-3
      2. LTE HetNet evaluation
    3. Exploring and configuring the LTE interference management algorithms supported in ns-3
      1. ns-3 supporting LTE interference management approaches
      2. Testing how the ns-3-supporting LTE Strict FR, Soft FFR, and Enhanced FFR algorithms work
    4. Summary
  18. Index
    1. Why subscribe?
  19. Other Books You May Enjoy
    1. Packt is searching for authors like you
    2. Share your thoughts
    3. Download a free PDF copy of this book

Product information

  • Title: Advanced Network Simulations Simplified
  • Author(s): Dr. Anil Kumar Rangisetti
  • Release date: April 2023
  • Publisher(s): Packt Publishing
  • ISBN: 9781804614457