Applicable Versions | NetSim Standard | NetSim Pro |
TABLE OF CONTENTS
- Objective
- Infographic
- NetSim Scenario
- Network Configuration
- Application Configuration
- Configuration File Structure
- Performing Simulation via command-line interface
- Analyzing results and viewing NetSim animation
Objective
We explain how to combine IoT and 5G Networks in NetSim by modifying the configuration file and simulating it via CLI
Infographic
Applicable Releases | v13 |
NetSim Scenario
In this example, we are creating a scenario that is equivalent to the topology shown below. The flow of traffic is UE-> gNB->UPF->Router->6LowPAN_Gateway->Sensor.
Network Configuration
6_lowPan_Gateway Properties | |
Routing Protocol | RPL |
Router Properties | |
Routing Protocol | OSPF |
5G-CORE Properties | |
All Default Properties | |
gNB Properties | |
All Default Properties | |
UE Properties | |
All Default Properties |
Application Configuration
Application Type | CBR |
Source ID | 8(i.e UE) |
Destination ID | 11(i.e Wireless Sensor) |
Packet Size | 1460 Bytes |
Inter Arrival Time | 1 s |
Configuration File Structure:
Device Configuration: This section of the configuration file contains all the device properties used for this example.
Connection Configuration: This section of the configuration file contains all the connection properties from one device to another as shown in the scenario.
Application Configuration: This section of the configuration file contains information about the application properties. i.e. in this example its CBR Application from UE to Sensor.
Analyzing results and viewing NetSim animation:
NetSim GUI does not allow combining the IoT and 5G toolboxes. Therefore, this combining is done via the configuration file. Once the configuration file is set up correctly, the simulation is then run via CLI.
Explanation on How to Run NetSim via CLI is explained in NetSim User Manual – Chapter 7 Running Simulation via Command Line Interface Section – 7.1.
Both Results Dashboard and Animation Window (if enabled in the configuration file) can be opened via NetSim UI after simulating the scenario via CLI.
All the files related to Results and Animation will be generated in the folder where configuration.netsim was simulated.
For opening Result Dashboard open command prompt in NetSim Installation directory and run command that given below,
NetSimMetrics.exe %appdata%\NetSim\std_13.1
After opening Result Dashboard, open Animation window by running command that given below,
NetSimAnimation.exe %appdata%\NetSim\std_13.1
Applicable Releases | v12.2 |
NetSim Scenario
In this example, we are creating a scenario that is equivalent to the topology shown below. The flow of traffic is UE -> gNB->EPC->Router->6LowPAN_Gateway->Sensor.
Network Configuration
6_lowPan_Gateway Properties | |
Routing Protocol | RPL |
Router Properties | |
Routing Protocol | OSPF |
EPC Properties | |
All Default Properties | |
gNB Properties | |
All Default Properties | |
UE | |
All Default Properties |
Application Configuration
Application Type | CBR |
Source ID | 6 (i.e UE) |
Destination ID | 1 (i.e Wireless Sensor) |
Packet Size | 50 Bytes |
Inter Arrival Time | 1 s |
Configuration File Structure
Device Configuration: This section of the configuration file contains all the device properties used for this example.
Connection Configuration: This section of the configuration file contains all the connection properties from one device to another as shown in the scenario.
Application Configuration: This section of the configuration file contains information about the application properties. i.e. in this example its CBR Application from UE to Sensor.
Note: All the screenshots attached above are of the configuration file of the example given in this document. And they are shown in the contract view (Visual studio terminology). Further users can expand each device, connection, and application properties for a detailed view.
More detail on understanding the Configuration file is explained in NetSim User Manual, Chapter 7, Section-7.2 Understanding the Configuration.netsim file.
Performing Simulation via command-line interface
NetSim GUI does not allow combining the IoT and 5G toolboxes. Therefore, this combining is done via the configuration file. Once the configuration file is set up correctly, the simulation is then run via CLI.
Explanation on How to Run NetSim via CLI is explained in NetSim User Manual – Chapter 7 Running Simulation via Command Line Interface Section – 7.1.
Firstly import the configuration file (attached) to NetSim. Explanation on how to import configuration files is given in User Manual Chapter 4 Workspace and Experiment section 4.10.
Once you import the experiment you can perform the simulation via CLI.
Analyzing results and viewing NetSim animation
Both Results Dashboard and Animation Window (if enabled in the configuration file) can be opened via NetSim UI after simulating the scenario via CLI.
All the files related to Results and Animation will be generated in the folder where configuration.netsim was simulated.
To open the NetSim Results Dashboard, go to NetSim Home Screen > Open Simulation > View Results on a particular experiment.
After opening the results dashboard, to open NetSim Animation:
- Open Command Prompt in NetSim Installation Dir.
- Run command:
NetSimAnimation.exe %appdata%\NetSim\std12.2.26_x64\GUIConfigurations
- NetSim Animation window will be opened for the scenario which was simulated via CLI.
Note:Make sure that you first open the NetSim Result dashboard and then NetSim Animation