Tags:
create new tag
, view all tags
The highest layer of the WiSeNeT networking protocol is the application layer, which is a framework to implement end-to-end source/sink programs such as a chat program. Due to the logic in the other layers taking care of the complex networking between nodes, the coding and programs found at this layer can be kept very simple. It must be noted that the current application layer is connection-less; that is, packets transmitted from one application layer to another are not acknowledged at the application layer (they are only ACKed at the link layer). It is possible to make the application layer connection-oriented by implementing such a feature, and it would be useful for programs that depend on a reliable transfer of information such as file transfer. However, it was decided not to implement this feature for the current release of WiSeNeT as it does not tie in with the characteristics of wireless sensor networks.

This particular file (application_layer.py) provides the framework with common functions and variables across all the different application layer programs, such as a mechanism to decode and encode the data (or the application layer frame). Currently, there are four different application layer programs which are detailed further below:

  • Sink
  • Packet Generator
  • Chat
  • File Send
Further application layer programs can be developed using the application layer template provided in the /templates/ folder. Care must be taken to add additional APP variables for each new program where required, as well as to program the required response in the sink. Note that all application layer packets are of type TYPE_DATA.
Topic revision: r1 - 2012-01-18 - XiaohongWu
 
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