How sequence numbers are generated and managed