Q: How can I tell what is the latency from the last byte on the wire to the moment when I get an inbound message callback?
A: We suggest the following approach:
T1
timestamp is recorded, and the counter is incremented.When the inbound message callback is called, the T2
timestamp is recorded, and the counter is analyzed:
1
, then the inbound latency is equal to T2-T1
.1
, it means that there was TCP fragmentation, so the latency cannot be calculated properly.0
, it means that more than one SBE message was received in one IP package, and the latency cannot be calculated properly.In any case, the counter should be set back to 0
.