THz system module is a software architecture for simulating configurable Terahertz(THz)-band (0.1-10 THz) communication networks. This module takes into account both the nanoscale scenario (transmission distance less than one meter) and the macroscale scenario (transmission distance larger than several meters) of THz-band communication. The THz module consists of the protocol stack layer design from THzChannel to THzPhy(Nano/Macro) up until the THzMac(Nano/Macro). It also includes the supporting modules such as THzDirectionalAntenna and THzEnergyHarvestor to achieve the scenario specific functionalities. Other supporting modules that help modeling the THz channel peculiarities, such as THzSpectrumValueFactory and THzSpectrumPropagationLoss, are also included in the system module. The THz system module provides a comprehensive THz-band communication networks simulator that is expected to help the research community to test THz networking protocols without having to delve into the channel and physical layers.
In this module, it tests the link-layer transmission performance of the nanoscale scenario with an adhoc network architecture and the macroscale scenario with a centralized network architecture. The following handshake protocols are implemented:
Model Description
The source code for the new module lives in the directory thz/
. This directory is typically placed in the contrib/
directory of ns-3.
/thz/model
.Design
Scope and Limitations
References
Helpers
All the helper files can be found in /thz/helper/
:
Attributes
Basically every THz-class in THz module holds attributs. Some key attributes from different classes are summarized as follows:
Output
The link layer performance in terms of the throughput and the discarding probability of DATA packets on each node will be output as the result. Besides, the perfermance of each layer in the protocol stack can be enabled by using LogComponentEnable function in the main function i.e.,:
$ LogComponentEnable("THzChannel", LOG_LEVEL_ALL);
In the case of macroscale scenario with the ADAPT procotol, the output is a TXT file with an entry for each packet with the format (client_id, packet_size, packet_delay, success, discard). This can be then postprocessed to obtain the desired metrics, such as throughput or discard rate, both overall and per node. A MATALB script is provided in /thz/macro_postprocessing/compute_metrics.m
.
Examples
The following examples have been written, which can be found in /thz/examples/
:
nano-adhoc.cc: This example file is for the nanoscale scenario of the THz-band communication networks, i.e., with transmission distance below one meter. It outputs the link layer performance mainly in terms of the throughput and the discarding probability of the DATA packets. In this example, an adhoc network architecture is implemented. User can set network topology in this file. The nodes in the nanonetwork are equipped with the energy module we developed. The basic parameters of the energy model can be set in this file. User can also set the number of samples of the TSOOK pulse within frequency range 0.9-4 THz window in this file. User can select one of the two MAC protocols that include a 0-way and a 2-way handshake protocols. 0-way starts the link layer transmission with a DATA frame and 2-way with an RTS frame. The selection can be done by setting the attribute value of EnableRts in THzMacNano. In the end, the user can also set the generated packet size and the mean value of the packet generation interval in this file.
macro-central.cc: This example file is for the macroscale scenario of the THz-band communication networks, i.e., with transmission distance larger than several meters. A centralized network architecture is implemented. A high speed turning directional antenna is used in the base station (Servernodes), while all clients (Clientnodes) point the directional antennas towards the receiver. Important parameters:
configuration
: sets the frequency window used, the number of sectors and modulation used.handshake_ways
: use a 0-, 1-, 2- or 3-way handshake. (0: CSMA, 1: ADAPT-1, 2: CSMA/CA, 3: ADAPT-3)nodeNum
: number of client nodesinterArrivalTime
: average time between two packets arriving at client's queue Validation
This model has been tested validated by the results generated from the following test files, which can be found in /thz/test
:
test-thz-psd-macro.cc
and test-thz-psd-nano.cc
are used to plot the power spectral densities of the generated waveform by the physical layer and the received signal at certain distance for macroscale scenario and nanoscale scenario respectively.test-directional-antenna.cc
plots the antenna radiation pattern of the directional antenna.test-thz-path-loss.cc
plots the path loss as a function of distance.Copy Right
https://unlab.tech/
Works with ns-3.36
Build History : TeraSim thz-1.2Release Notes
Works with ns-3.33
Build History : TeraSim thz-1.1Release Notes
Works with ns-3.29
Build History : TeraSim thz-1.0Release Notes
This ns-3 extension is one or more contributed modules.