equal
deleted
inserted
replaced
97 |
97 |
98 You should see the now familiar output of the first @command{ns-3} example |
98 You should see the now familiar output of the first @command{ns-3} example |
99 program |
99 program |
100 |
100 |
101 @verbatim |
101 @verbatim |
102 Entering directory `/home/craigdo/repos/ns-3-dev/build' |
102 Entering directory `repos/ns-3-dev/build' |
103 Compilation finished successfully |
103 Compilation finished successfully |
104 Sent 1024 bytes to 10.1.1.2 |
104 Sent 1024 bytes to 10.1.1.2 |
105 Received 1024 bytes from 10.1.1.1 |
105 Received 1024 bytes from 10.1.1.1 |
106 Received 1024 bytes from 10.1.1.2 |
106 Received 1024 bytes from 10.1.1.2 |
107 @end verbatim |
107 @end verbatim |
146 we are going to turn on all of the debugging levels for the application. If |
146 we are going to turn on all of the debugging levels for the application. If |
147 you run the script with NS_LOG set this way, the @command{ns-3} logging |
147 you run the script with NS_LOG set this way, the @command{ns-3} logging |
148 system will pick up the change and you should see the following output: |
148 system will pick up the change and you should see the following output: |
149 |
149 |
150 @verbatim |
150 @verbatim |
151 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
151 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
152 Build finished successfully (00:00:00) |
152 Build finished successfully (00:00:00) |
153 UdpEchoClientApplication:UdpEchoClient() |
153 UdpEchoClientApplication:UdpEchoClient() |
154 UdpEchoClientApplication:StartApplication() |
154 UdpEchoClientApplication:StartApplication() |
155 UdpEchoClientApplication:ScheduleTransmit() |
155 UdpEchoClientApplication:ScheduleTransmit() |
156 UdpEchoClientApplication:Send() |
156 UdpEchoClientApplication:Send() |
199 Now, if you run the script you will see that the logging system makes sure |
199 Now, if you run the script you will see that the logging system makes sure |
200 that every message from the given log component is prefixed with the component |
200 that every message from the given log component is prefixed with the component |
201 name. |
201 name. |
202 |
202 |
203 @verbatim |
203 @verbatim |
204 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
204 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
205 Build finished successfully (00:00:00) |
205 Build finished successfully (00:00:00) |
206 UdpEchoClientApplication:UdpEchoClient() |
206 UdpEchoClientApplication:UdpEchoClient() |
207 UdpEchoClientApplication:StartApplication() |
207 UdpEchoClientApplication:StartApplication() |
208 UdpEchoClientApplication:ScheduleTransmit() |
208 UdpEchoClientApplication:ScheduleTransmit() |
209 UdpEchoClientApplication:Send() |
209 UdpEchoClientApplication:Send() |
234 Now, if you run the script you will see all of the log messages from both the |
234 Now, if you run the script you will see all of the log messages from both the |
235 echo client and server applications. You may see that this can be very useful |
235 echo client and server applications. You may see that this can be very useful |
236 in debugging problems. |
236 in debugging problems. |
237 |
237 |
238 @verbatim |
238 @verbatim |
239 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
239 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
240 Build finished successfully (00:00:00) |
240 Build finished successfully (00:00:00) |
241 UdpEchoServerApplication:UdpEchoServer() |
241 UdpEchoServerApplication:UdpEchoServer() |
242 UdpEchoClientApplication:UdpEchoClient() |
242 UdpEchoClientApplication:UdpEchoClient() |
243 UdpEchoServerApplication:StartApplication() |
243 UdpEchoServerApplication:StartApplication() |
244 UdpEchoClientApplication:StartApplication() |
244 UdpEchoClientApplication:StartApplication() |
267 |
267 |
268 Again, you will have to remove the newline above. If you run the script now, |
268 Again, you will have to remove the newline above. If you run the script now, |
269 you should see the following output: |
269 you should see the following output: |
270 |
270 |
271 @verbatim |
271 @verbatim |
272 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
272 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
273 Build finished successfully (00:00:00) |
273 Build finished successfully (00:00:00) |
274 0s UdpEchoServerApplication:UdpEchoServer() |
274 0s UdpEchoServerApplication:UdpEchoServer() |
275 0s UdpEchoClientApplication:UdpEchoClient() |
275 0s UdpEchoClientApplication:UdpEchoClient() |
276 1s UdpEchoServerApplication:StartApplication() |
276 1s UdpEchoServerApplication:StartApplication() |
277 2s UdpEchoClientApplication:StartApplication() |
277 2s UdpEchoClientApplication:StartApplication() |
397 |
397 |
398 If you now run the script you will see your new ``Creating Topology'' log |
398 If you now run the script you will see your new ``Creating Topology'' log |
399 message, |
399 message, |
400 |
400 |
401 @verbatim |
401 @verbatim |
402 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
402 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
403 Build finished successfully (00:00:00) |
403 Build finished successfully (00:00:00) |
404 Creating Topology |
404 Creating Topology |
405 Sent 1024 bytes to 10.1.1.2 |
405 Sent 1024 bytes to 10.1.1.2 |
406 Received 1024 bytes from 10.1.1.1 |
406 Received 1024 bytes from 10.1.1.1 |
407 Received 1024 bytes from 10.1.1.2 |
407 Received 1024 bytes from 10.1.1.2 |
451 line argument @code{--PrintHelp} to the script. The quotes are required to |
451 line argument @code{--PrintHelp} to the script. The quotes are required to |
452 sort out which program gets which argument. The command line parser will |
452 sort out which program gets which argument. The command line parser will |
453 now see the @code{--PrintHelp} argument and respond with, |
453 now see the @code{--PrintHelp} argument and respond with, |
454 |
454 |
455 @verbatim |
455 @verbatim |
456 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
456 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
457 Build finished successfully (00:00:00) |
457 Build finished successfully (00:00:00) |
458 --PrintHelp: Print this help message. |
458 --PrintHelp: Print this help message. |
459 --PrintGroups: Print the list of groups. |
459 --PrintGroups: Print the list of groups. |
460 --PrintTypeIds: Print all TypeIds. |
460 --PrintTypeIds: Print all TypeIds. |
461 --PrintGroup=[group]: Print all TypeIds of group. |
461 --PrintGroup=[group]: Print all TypeIds of group. |
587 |
587 |
588 in which case we recover the timing we had when we explicitly set the |
588 in which case we recover the timing we had when we explicitly set the |
589 @code{DataRate} and @code{Delay} in the script: |
589 @code{DataRate} and @code{Delay} in the script: |
590 |
590 |
591 @verbatim |
591 @verbatim |
592 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
592 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
593 Build finished successfully (00:00:00) |
593 Build finished successfully (00:00:00) |
594 0s UdpEchoServerApplication:UdpEchoServer() |
594 0s UdpEchoServerApplication:UdpEchoServer() |
595 1s UdpEchoServerApplication:StartApplication() |
595 1s UdpEchoServerApplication:StartApplication() |
596 Sent 1024 bytes to 10.1.1.2 |
596 Sent 1024 bytes to 10.1.1.2 |
597 2.00369s Received 1024 bytes from 10.1.1.1 |
597 2.00369s Received 1024 bytes from 10.1.1.1 |
664 @verbatim |
664 @verbatim |
665 ./waf --run "scratch/myfirst --PrintHelp" |
665 ./waf --run "scratch/myfirst --PrintHelp" |
666 @end verbatim |
666 @end verbatim |
667 |
667 |
668 @verbatim |
668 @verbatim |
669 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
669 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
670 Build finished successfully (00:00:00) |
670 Build finished successfully (00:00:00) |
671 --PrintHelp: Print this help message. |
671 --PrintHelp: Print this help message. |
672 --PrintGroups: Print the list of groups. |
672 --PrintGroups: Print the list of groups. |
673 --PrintTypeIds: Print all TypeIds. |
673 --PrintTypeIds: Print all TypeIds. |
674 --PrintGroup=[group]: Print all TypeIds of group. |
674 --PrintGroup=[group]: Print all TypeIds of group. |
686 @end verbatim |
686 @end verbatim |
687 |
687 |
688 You should now see |
688 You should now see |
689 |
689 |
690 @verbatim |
690 @verbatim |
691 Entering directory `/home/craigdo/repos/ns-3-allinone-dev/ns-3-dev/build' |
691 Entering directory `repos/ns-3-allinone/ns-3-dev/build' |
692 Build finished successfully (00:00:00) |
692 Build finished successfully (00:00:00) |
693 0s UdpEchoServerApplication:UdpEchoServer() |
693 0s UdpEchoServerApplication:UdpEchoServer() |
694 1s UdpEchoServerApplication:StartApplication() |
694 1s UdpEchoServerApplication:StartApplication() |
695 Sent 1024 bytes to 10.1.1.2 |
695 Sent 1024 bytes to 10.1.1.2 |
696 2.25732s Received 1024 bytes from 10.1.1.1 |
696 2.25732s Received 1024 bytes from 10.1.1.1 |