You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/thz.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ In this module, it tests the link-layer transmission performance of the nanoscal
15
15
Model Description
16
16
*****************
17
17
18
-
The source code for the new module lives in the directory ``src/thz``.
18
+
The source code for the new module lives in the directory ``/thz``.
19
19
20
-
* The frequency database file (data_frequency.txt) and the corresponding molecular absorption coefficient database file (data_AbsCoe.txt) are located inside ``src/thz/model``.
20
+
* The frequency database file (data_frequency.txt) and the corresponding molecular absorption coefficient database file (data_AbsCoe.txt) are located inside ``/thz/model``.
21
21
22
22
Design
23
23
======
@@ -38,7 +38,7 @@ Design
38
38
Scope and Limitations
39
39
=====================
40
40
41
-
* In its current state, the THz system module is adapt to the latest ns-3 version (ns-3.29)
41
+
* In its current state, the THz system module is adapt to the latest ns-3 version (ns-3.30)
42
42
* As of now, the ns-3 interface to THz is Ipv4 only.
43
43
44
44
References
@@ -57,24 +57,24 @@ The first step is to clone THz from the github repository and build it::
Copy the thz folder to your local source folder of ns-3 directory (../ns-allinone-3.29/ns-3.29/src), then go back to ns-allinone-3.29 folder to build the THz module by::
60
+
Copy the thz folder to your local source folder of ns-3 directory (../ns-allinone-3.30/ns-3.30/contrib), then go back to ns-allinone-3.30 folder to build the THz module by::
61
61
62
62
$ cd ../..
63
63
$ ./build.py
64
64
65
-
Once THz has been built successfully, try to run one of the examples (i.e., nano-adhoc.cc). First, you need to copy this example from ns-3.29/src/thz/examples to ns-3.29/scratch::
65
+
Once THz has been built successfully, try to run one of the examples (i.e., nano-adhoc.cc). First, you need to copy this example from ../thz/examples to ns-3.30/scratch::
Then enter the ns-3.29 folder and run the example::
69
+
Then enter the ns-3.30 folder and run the example::
70
70
71
-
$ cd ns-3.29
71
+
$ cd ns-3.30
72
72
$ ./waf --run scratch/nano-adhoc
73
73
74
74
75
75
Helpers
76
76
=======
77
-
All the helper files can be found in ``src/thz/helper/``:
77
+
All the helper files can be found in ``/thz/helper/``:
78
78
79
79
* THzHelper: helps to create THzNetDevice objects:
80
80
* THzMacHelper: create THz MAC layers for THzNetDevice
@@ -148,7 +148,7 @@ The link layer performance in terms of the throughput and the discarding probabi
148
148
149
149
Examples
150
150
===============
151
-
The following examples have been written, which can be found in ``src/thz/examples/``:
151
+
The following examples have been written, which can be found in ``/thz/examples/``:
152
152
153
153
* 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.
154
154
@@ -157,7 +157,7 @@ The following examples have been written, which can be found in ``src/thz/exampl
157
157
Validation
158
158
**********
159
159
160
-
This model has been tested validated by the results generated from the following test files, which can be found in ``src/thz/test``:
160
+
This model has been tested validated by the results generated from the following test files, which can be found in ``/thz/test``:
161
161
162
162
* The test files ``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.
163
163
* The test file ``test-directional-antenna.cc`` plots the antenna radiation pattern of the directional antenna.
0 commit comments