Debugging bundle transferIn the 2.0 release, we have replaced DTN with a Java-based DTN-like protocol. This is implemented by the OCMP DTN Connection Object (CO). Like the original DTN protocol, the DTN CO uses a postgres database to keep track of bundles in transit. To check on the progress of bundles, you can just check the database. Note that this allows nodes to power cycle without loss of state. All KioskNet nodes (kiosks, ferries, gateways, and the proxy) have a database in Postgres named 'ocmp'. This database has three important tables:
Each table keeps track of the source of each bundle, its destination, and a sendcount, which is how often it has been sent. If the sendcount is non-zero, it has been properly handled. If it is -1, it has just been received and is not ready to be sent yet, and if it is 0, it is ready to be sent. Each OCMP node prioritize sending those bundles whose sendcounts are smaller, but are greater than -1. Checking the databaseTo check on the bundles waiting to be sent at, say, the kiosk do the following:
This will list the bundles that are pending transfer. To list bundles that have been received, you would do
Clearing the databaseIf you want to clear all the information in the database to restore it to pristine state, issues the following postgres command on all the databases (ignore warnings):
Checking the log filesAnother source of debugging information are the OCMP logs.
Return to deployment guide. |
![]() |
