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.


Reorder the three-way-handshake

Can you correctly reorder the three segments that are used to establish a TCP connection and set the SYN and ACK flags correctly ?

# Length Resumé Status
0 24 bytes <TCP: SEQ: 1554975569, ACK: 1541628760, MSS>  
1 20 bytes <TCP: SEQ: 1541628760, ACK: 1554975570>  
2 24 bytes <TCP: SEQ: 1541628759, ACK: 0, MSS>  

0000  04d2d1d85caf0b51  5be3635860??7080  
0010  4f900000020405a0                    

0000  .ÒÑØ\¯.Q[ãcX`?p.
0010  O.......        
  • TCP:
    • Source Port: 1234
    • Destination Port: 53720
    • Sequence Number: 1554975569
    • Acknowledgment Number: 1541628760
    • Data Offset: 6
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK:
    • PSH: 0
    • RST: 0
    • SYN:
    • FIN: 0
    • Window: 28800
    • Checksum: 20368
    • Urgent Pointer: 0
    • Options: Maximum Segment Size
      • Kind: 2
      • Length: 4
      • Max Seg Size: 1440
0000  d1d804d25be36358  5caf0b5250??7080  
0010  4f8c0000                            

0000  ÑØ.Ò[ãcX\¯.RP?p.
0010  O...            
  • TCP:
    • Source Port: 53720
    • Destination Port: 1234
    • Sequence Number: 1541628760
    • Acknowledgment Number: 1554975570
    • Data Offset: 5
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK:
    • PSH: 0
    • RST: 0
    • SYN:
    • FIN: 0
    • Window: 28800
    • Checksum: 20364
    • Urgent Pointer: 0
0000  d1d804d25be36357  0000000060??7080  
0010  4f900000020405a0                    

0000  ÑØ.Ò[ãcW....`?p.
0010  O.......        
  • TCP:
    • Source Port: 53720
    • Destination Port: 1234
    • Sequence Number: 1541628759
    • Acknowledgment Number: 0
    • Data Offset: 6
    • Reserved: 0
    • NS: 0
    • CWR: 0
    • ECE: 0
    • URG: 0
    • ACK:
    • PSH: 0
    • RST: 0
    • SYN:
    • 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