Tags:
create new tag
, view all tags
To set up a simple network (one sink, one source) and to verify WiSeNeT’s functionality: (Refer to Appendix B for WiSeNeT’s usage instructions, or type python wisenet.py –h)

  • 1. Connect two packet radios to the computer, and open two terminal windows
  • 2. Verify successful connection between the packet radios and the computer
      • > ./test_radios.py
  • 3. Set up the sink on one terminal
      • > Python wisenet.py –a XX i. XX is the address of the radio designated as the sink (NOTE: if using the old Monash packet radios, be sure to include the --pro and --sym options in the command line)
  • 4. Set up a source on the other terminal, and send packet generator packets to the sink
      • > Python wisenet.py –a YY –d XX –g i. YY is the address of the radio designated as the source (NOTE: if using the old Monash packet radios, be sure to include the --pro and --sym options in the command line)
  • 5. Once the source completes sending and exits, exit out of the sink
      • > Press Control + C at the sink’s terminal window
  • 6. Review both the runtime and master log files within the log directory.
Figure 17 below describes one send within the basic test scenario above. At the source, a packet generator generates the application layer frame (data), and passes it to the network layer. As routing is turned off, it simply encapsulates it into the network layer frame (payload) and passes it to the link layer. The link layer encapsulates the payload into a complete link layer frame (packet) and transmits to the sink. At the sink, it receives the packet, and sends an ACK back to the source to denote successful receipt. It then decodes the packet into its link layer constituents, verifies the packet’s integrity, and passes it up to the network layer. As routing is turned off, the network layer decodes the payload into its network layer components, checks the packet’s destination, and passes it up to the application layer. The application layer, being a sink then processes the packet generator packet accordingly.

f17.png

Figure 17: Simple and ACK

Topic revision: r3 - 2012-02-06 - BenjaminFoo
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback