Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Submission: (i) The assignment submission must be made through Moodle for this unit by the
due date. (ii) The submission of this assignment must be in the form of a single PDF
file, C code file/s and log file/s.
Extensions: No extensions will be given.
Lateness: Late penalty of 5% per day after the due date, including the weekends.
Authorship: This assignment is an individual assignment and the final submission must be
identifiably your own work. Breaches of this requirement will result in an
assignment not being accepted for assessment and may result in disciplinary action.
Cover Sheet: A completed individual assignment covered sheet is required with the submission.
This coversheet should be appended with the assignment report (PDF file). Please
refer to the submission details at the end of this file.
2
Assignment Question
Event detection in a fully distributed wireless sensor network -WSN
I. WSN Description
The wireless sensor network comprises 20 nodes and a base station. These nodes are arranged in a
4 x 5 (rectangular-shaped) grid.
Distance between the adjacent nodes is kept as such that these nodes can wirelessly communicate.
The adjacent nodes can exchange data through unicast and broadcast modes of communications.
Communication between non-adjacent nodes is not possible.
Every node in the WSN can however independently exchange data with the base-station (e.g.
through a satellite link). Base-station for this WSN is an additional computer node that is entrusted
with the task of gathering data from all the 20 nodes in the WSN.
Event Detection Criterion: In order for an event to be recorded by the WSN, at least three adjacent
nodes, to a reference node, must simultaneously report their activations to the base-station
(explanatory in Section III). The base station then collects all the event reports and writes these to its
log file.
Assignment Project: Develop a Message Passing Interface (MPI) C code that simulates the operation
of this WSN including the base station in an efficient manner. The criterion for measuring efficiency
in this exercise is in finding a communication scheme that minimises the messages to the basestation
whilst satisfying the WSN’s event detection criterion (stated above). In addition, the events
and/or messages sent between adjacent nodes and to the base station are to be encrypted. You can
choose and implement any C based encryption algorithm. You are also allowed to use available
encryption algorithms (in C programming language) provided you properly cite the owner of the
algorithm (in your C source code and in your report). More importantly, you are required to
demonstrate the use of Open Multi-processing (OpenMP) to improve the performance of the
applied encryption algorithm.