What are TCP sequence numbers and acknowledgment numbers? How do they prevent duplicate packets?

Technical