TCP/IP explanation-Timestamp Option in TCP Header Options

Source: Internet
Author: User

I. Introduction

The TCP timestamp option adds 12 bytes to the TCP Header, enabling RTT calculation in a more precise way than the specific proportion of timeout.

 

Ii. Functions

1) The TCP timestamp is in the TCP option, kind =8; Lenth =10Data consists of two values: Timestamp and timestamp echo, each of which has a length of 4 bytes.2The theory of TCP timestamp has three functions: Serial Number rewinding, time judgment basis for disordered order, avoiding confirming ambiguity and calculating RTT.3) TCP timestamp: both parties maintain their own timestamps. The timestamp value increases monotonically with time (defined as 1 ms-1 S/time, the common values are 1 ms and 10 ms ). The local end sends the timesstamp value. After receiving the message, the peer returns the timestamp echo of the ACK to the local end and sends its own timestamp. TCP records the sending Timestamp and response time to obtain the RTT.

 

Iii. Common Operations

1) enable

Net. ipv4.tcp _ timestamps =1

2) Disable

Net. ipv4.tcp _ timestamps =0

TCP/IP explanation-Timestamp Option in TCP Header Options

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.