Protocol and test application for testing the responsiveness of neighbors.
The discovery protocol takes care of finding the neighbors, this protocol
is used to make sure they exist and are reachable at the moment. The
protocol does this by periodically sending out a PokeCapsule to each
neighbor it has been passed. The neighbors are then expected to
immediately reflect the capsule back to the source. If the reflection is
received, the expiration time of the neighbor is refreshed, otherwise the
timer will run out and any external interests will be notified of the lost
neighbor.
In addition to the normal class files, the protocol also carries the
protocol.properties file. This is a Java properties file that
carries some configuration data and describes the protocol to the webmin
interface. Properties that the protocol will pay attention to are as
follows:
- parameter.poke-frequency - The amount of time to wait between pings.
- parameter.expiration-time - The amount of time to wait before declaring
a neighbor as lost.
Note: If you would like to change these in the development
environment you need to edit the protocol.properties.in file
and rerun make.