My algorithm for determining whan an incoming sequence number can be allowed is incor...