Implementation of selective-repeat transmission
Fix debug traces