Research Article

Efficient Payload Compression in IP-based Wireless Sensor Network: Algorithmic Analysis and Implementation

Algorithm 4

Algorithm description of compression at sink node level.
Procedure CompressdataSink(compressedDataFromSensors)
   sinkWaitingTimeValue ← amount of time to wait before sending the compressed value to
   the terminal
   collectSensorsCompressedData ← compressedDataFromSensors collect the data
   compressed by sensors nodes
   If startCollectingTime is greater or equal to sinkWaitingTimeValue
      compressedSinkData ← ArithmeticEncoding(collectSensorsCompressedData)
      sendToTerminal(compressedSinkData)
   end If
end Procedure