# Calculating Maximum Theoretical Throughput of a TCP connection from Window and RTT

Published: 2018-01-10 13:21:55 +0000
Categories: Misc,

Misc

### Description

Using the TCP window size and Round Trip Time (RTT), it's possible to calculate the maximum possible throughput of a given connection. Realistically, the actual throughput will usually be much lower than this figure

### Snippet

``````tcp-window-size (bits) / Latency (seconds) = Bits-per-second

``````

### Usage Example

``````50KB Window, 15ms RTT

50 * 8 * 1000 = 400000
400000 / 0.015 = 26666666.666666667 bits per second = 26.6667 Megabits
``````

### Keywords

TCP, connection, throughput, bandwidth, calculate, RTT, Round-trip, latency,
{"ft_lang_label":"__label__en","ft_lang_prob":0.6811143,"math_prob":0.9379861,"size":392,"snap":"2021-43-2021-49","text_gpt3_token_len":110,"char_repetition_ratio":0.11597938,"word_repetition_ratio":0.0,"special_character_ratio":0.35204083,"punctuation_ratio":0.10144927,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.95033395,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-11-28T03:14:37Z\",\"WARC-Record-ID\":\"<urn:uuid:cb5087f1-1ae3-47ca-9255-47b35144d5b3>\",\"Content-Length\":\"12919\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:89aac2f6-b483-4c70-addc-37fffc6d7420>\",\"WARC-Concurrent-To\":\"<urn:uuid:96e1a3ae-9655-4a8a-8b46-3423082d9e31>\",\"WARC-IP-Address\":\"37.19.206.70\",\"WARC-Target-URI\":\"http://snippets.bentasker.co.uk/page-1801101318-Calculating-Maximum-Theoretical-Throughput-of-a-TCP-connection-from-Window-and-RTT-Misc.html\",\"WARC-Payload-Digest\":\"sha1:6HMZTQJXZIKXH2A6MMALGE4YS3AVJ6CP\",\"WARC-Block-Digest\":\"sha1:HONWU3N6BBJGRRDBNL46PQMLTVZUCFZV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964358443.87_warc_CC-MAIN-20211128013650-20211128043650-00392.warc.gz\"}"}