Skip to content

Draft: aap2: Add a `request_id` and use it to validate the request-reply scheme

Felix Walter requested to merge feature/aap20-seqnum into master

We ran into issues that took a while to debug where a BDM sent two responses to a single request. In this case, uD3TN assumes that the second response belongs to the next request and the mismatch is not discovered in most cases until the agent connection is terminated.

This adds a request_id field to AAPMessage which has to be mirrored in the corresponding AAPResponse. Clients may use it as well, but it is not required - the only requirement is that the request_id set in the AAPResponse by a Client matches the one that uD3TN set in the corresponding AAPMessage.

The Python tooling is extended such that it automatically sets the correct IDs in most cases and no changes to existing scripts are necessary.

Merge request reports