TCP 3-Way Handshake Delay Calculation (2024)

HTTP uses TCP as the transport protocol and before user data is sent, TCP 3-way handshake establishes the TCP connection.

TCP 3-Way Handshake Delay Calculation (1)

So, for each TCP connection, there are 3 packets exchanged and each packet is between 54 and 66 Bytes (notice the Len field). Note that the picture above shows relative sequence (seq) and acknowledgement (ack) numbers.

TCP 3-Way Handshake Overhead

Let’s calculate end-to-end delay, just for fun! As seen in a previous post, the end-to-end delay of a 1,500Byte user data packet is the sum of the transmission delay, propagation delay and any router processing delay. We calculated an end-to-end delay of 68ms.

TCP 3-Way Handshake Delay Calculation (2)

To break it down a little further, here’s the result for reach segment.
  • Segment 1 delay =26 ms
  • Segment 2 delay =22 ms
  • Segment 3 delay =10 ms
  • Router Processing =10 ms
How does TCP impact performance?

To send that 1,500Byte packet, the TCP session must be established first so to get an overall sense of performance, we also have to include the end-to-end delay of the TCP 3-way handshake. A big difference with the TCP handshake is the packet size is much smaller so we’ll have to calculate the delay for each stage of the handshake using the smaller packet sizes.

TCP Syn Delay

TCP 3-Way Handshake Delay Calculation (3)

Also, both R1 and R2 each introduce 5 ms of delay so the overall delay to send the TCP Syn segment is 52.79 ms.

TCP 3-Way Handshake Delay Calculation (4)

TCP Syn-Ack Delay

See Also
TCP Tab

Since the TCP Syn-Ack packet is the same size at 66 Bytes as the TCP Syn packet, the delay calculation will also come out to 52.79 ms.

TCP Ack Delay

The TCP Ack packet of the 3-way handshake is 54 Bytes, so the delay calculation will be a little lower.

TCP 3-Way Handshake Delay Calculation (5)

TCP 3-Way Handshake Delay

  • TCP Syn: 52.79 ms
  • TCP Syn-Ack: 52.79 ms
  • TCP Ack: 52.65 ms

Total TCP Handshake Delay: 158.23 ms.

So, when sending a 1,500Byte packet that has an end-to-end delay of 68 ms, the TCP 3-way handshake overhead is approximately 158.23 ms. WOW!

Recognizing this issue, upper layer protocols like HTTP have developed persistence. Persistence allows for multiple packets to be sent over an existing TCP connection, typically based on a keep-alive type of timer.

TCP 3-Way Handshake Delay Calculation (2024)
Top Articles
settlement patterns
Board Organization Charts
Craigslist San Francisco Bay
Joliet Patch Arrests Today
Lifewitceee
Mcfarland Usa 123Movies
Fort Carson Cif Phone Number
Ds Cuts Saugus
Insidious 5 Showtimes Near Cinemark Tinseltown 290 And Xd
Doby's Funeral Home Obituaries
Free Robux Without Downloading Apps
Swimgs Yung Wong Travels Sophie Koch Hits 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Springs Cow Dog Pig Hollywood Studios Beach House Flying Fun Hot Air Balloons, Riding Lessons And Bikes Pack Both Up Away The Alpha Baa Baa Twinkle
William Spencer Funeral Home Portland Indiana
Zoebaby222
Aita Autism
Dr. med. Uta Krieg-Oehme - Lesen Sie Erfahrungsberichte und vereinbaren Sie einen Termin
7 Fly Traps For Effective Pest Control
Telegram Scat
Aucklanders brace for gales, hail, cold temperatures, possible blackouts; snow falls in Chch
Zalog Forum
PowerXL Smokeless Grill- Elektrische Grill - Rookloos & geurloos grillplezier - met... | bol
Lista trofeów | Jedi Upadły Zakon / Fallen Order - Star Wars Jedi Fallen Order - poradnik do gry | GRYOnline.pl
Craigslist Prescott Az Free Stuff
Busted Newspaper Fauquier County Va
Craigslist Personals Jonesboro
Soulstone Survivors Igg
Canvasdiscount Black Friday Deals
A Person That Creates Movie Basis Figgerits
Yonkers Results For Tonight
Horn Rank
Hdmovie2 Sbs
Parent Management Training (PMT) Worksheet | HappierTHERAPY
Best New England Boarding Schools
Moonrise Time Tonight Near Me
2015 Chevrolet Silverado 1500 for sale - Houston, TX - craigslist
Clark County Ky Busted Newspaper
D3 Boards
Craigslist Summersville West Virginia
Temu Y2K
Telugu Moviez Wap Org
Craigslist Free Manhattan
MSD Animal Health Hub: Nobivac® Rabies Q & A
Gary Lezak Annual Salary
Free Crossword Puzzles | BestCrosswords.com
Advance Auto.parts Near Me
Strange World Showtimes Near Century Stadium 25 And Xd
Headlining Hip Hopper Crossword Clue
Glowforge Forum
Land of Samurai: One Piece’s Wano Kuni Arc Explained
Wayward Carbuncle Location
Latest Posts
Article information

Author: Greg Kuvalis

Last Updated:

Views: 6273

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Greg Kuvalis

Birthday: 1996-12-20

Address: 53157 Trantow Inlet, Townemouth, FL 92564-0267

Phone: +68218650356656

Job: IT Representative

Hobby: Knitting, Amateur radio, Skiing, Running, Mountain biking, Slacklining, Electronics

Introduction: My name is Greg Kuvalis, I am a witty, spotless, beautiful, charming, delightful, thankful, beautiful person who loves writing and wants to share my knowledge and understanding with you.