Reordering the three-way-handshake

A TCP connection, as explained in the TCP chapter of Computer Networking: Principles, Protocols and Practice always starts with a three-way-handshake.


Three-way handshake

Can you correctly reorder the three segments that are used to establish a TCP connection ?

# Length Resumé Status
0 24 bytes <TCP: ACK, SYN, SEQ: 20522819, ACK: 4119273527, MSS>
1 20 bytes <TCP: ACK, SEQ: 4119273527, ACK: 20522820>
2 24 bytes <TCP: SYN, SEQ: 4119273526, ACK: 0, MSS>

0000  04d2d1d601392743  f587203760127080  
0010  4f900000020405a0                    

0000  .ÒÑÖ.9'Cõ. 7`.p.
0010  O.......        
  • TCP:
    • Source Port: 1234
    • Destination Port: 53718
    • Sequence Number: 20522819
    • Acknowledgment Number: 4119273527
    • Data Offset: 6
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK: 1
    • PSH: 0
    • RST: 0
    • SYN: 1
    • FIN: 0
    • Window: 28800
    • Checksum: 20368
    • Urgent Pointer: 0
    • Options: Maximum Segment Size
      • Kind: 2
      • Length: 4
      • Max Seg Size: 1440
0000  d1d604d2f5872037  0139274450107080  
0010  4f8c0000                            

0000  ÑÖ.Òõ. 7.9'DP.p.
0010  O...            
  • TCP:
    • Source Port: 53718
    • Destination Port: 1234
    • Sequence Number: 4119273527
    • Acknowledgment Number: 20522820
    • Data Offset: 5
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK: 1
    • PSH: 0
    • RST: 0
    • SYN: 0
    • FIN: 0
    • Window: 28800
    • Checksum: 20364
    • Urgent Pointer: 0
0000  d1d604d2f5872036  0000000060027080  
0010  4f900000020405a0                    

0000  ÑÖ.Òõ. 6....`.p.
0010  O.......        
  • TCP:
    • Source Port: 53718
    • Destination Port: 1234
    • Sequence Number: 4119273526
    • Acknowledgment Number: 0
    • Data Offset: 6
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK: 0
    • PSH: 0
    • RST: 0
    • SYN: 1
    • FIN: 0
    • Window: 28800
    • Checksum: 20368
    • Urgent Pointer: 0
    • Options: Maximum Segment Size
      • Kind: 2
      • Length: 4
      • Max Seg Size: 1440

Information

Author(s) Olivier Bonaventure
Deadline No deadline
Submission limit No limitation
Category Tags TCP

Sign in