Remove is_packet_available.
Replace the two client dicts with a single array.
Make gateway ignore packets with unknown client ids.
Implement counter check in gateway.
* The gateway now only accepts packets with certain counters
* The counter needs to be in the range of [last_counter+1:last_counter+10]