DeDuplication Logic in v4

Hi Folks,

Can someone point me to the message deduplication code in V4 please - I want to look at how the system handles messages from different gateways if some parts of the payload for what appears to be the same valid message (same devId, fCnt) but with different content in the payload.

Thanks
Phil

Here you go:

1 Like

Thanks. My Rust isn’t brilliant - but from what I can see the tx_info and phy_payload have to match for an event to be considered a duplicate, is that right ?

So if a gateway was able to fake a packet for a device (accepting this means some breach in the keys) with the same fCnt as a valid packet, and both arrived in the dedup window they wouldn’t be considered as duplicates - and one would be delivered and the second dropped as being an invalid framecount ?

(My interest is is how we might detect this from outside Chirpstack)

Correct, a duplicate means the same PhyPayload + same Tx Info (containing frequency, data-rate etc… which should be te same for all receivers).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.