MockReal Logo
Home
BlogPricing
For Employers →
  1. Home
  2. Questions
  3. How does TCP 3-way handshake work?

How does TCP 3-way handshake work?

TechnicalSecurity TesterNetwork Security EngineerApplication Security Engineer

The TCP 3-way handshake is a process used to establish a reliable connection between a client and server before data transmission begins. It involves three steps: first, the client sends a SYN packet to the server to initiate the connection. Then, the server responds with a SYN-ACK packet, acknowledging the receipt of the SYN and indicating its readiness to establish a connection. Finally, the client sends an ACK packet back to the server, confirming the connection.

This mechanism ensures that both parties are synchronized and ready to communicate, which is crucial for maintaining data integrity and reliability. For example, in a web application, this handshake allows the browser and server to agree on the parameters of the session, which helps prevent data loss or corruption.

One important trade-off is that while the 3-way handshake provides reliable connection establishment, it also introduces latency due to the need for multiple round trips. In contrast, protocols like UDP do not require such a handshake, making them faster but less reliable, which might be suitable for applications like live video streaming where speed is prioritized over reliability.

More Questions

  • How SSL/TLS makes my content secured over the internet?
  • What happens when you type google.com in your browser?
  • Why is TLS important in cybersecurity and can you explain the use of TLS in detail for a website?
  • A critical vulnerability is discovered in a third-party library used extensively in your company’s application. Explain the process you would follow to assess the impact, communicate with stakeholders, and implement a fix. How would you prevent similar issues in the future?
  • A development team is working on a new feature that requires handling and storing user passwords. They plan to use a simple hash function (e.g., MD5) to store these passwords. As a security architect, how would you advise them on securely handling and storing passwords? Provide a detailed explanation of best practices.
  • Can you explain the password hashing function and the importance of salt? Also, how salting and hashing passwords are used in this domain?
  • Can you give an example of a security vulnerability you discovered during a code review and how you addressed it?
  • Can you provide an example of how you have implemented SDL in a past project?
  • Describe a strategy to ensure secure coding practices in a multi-team development environment, especially when teams are working on interdependent components.
  • Describe how you would conduct threat modeling for a cloud-native application. What specific security concerns are most critical in any cloud native application?
MockReal Logo

Spoken interview practice for technical professionals

Product

  • Pricing
  • Questions
  • Positions
  • Resumes
  • For Employers →

Company

  • Careers
  • About Us
  • Contact
  • Blog

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2025 MockReal. Spoken interview practice. All rights reserved.