Calculating the throughput of a given TCP connection











up vote
1
down vote

favorite












Given a TCP session, is there a way to determine the throughput of the sender?
I have a wireshark sniff, and I see that to calculate the throughput of the sender I can use the
TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput formula,
But the window is constantly changing (due to the tcp protocol).
Furthermore, why does the tcp window size is taken into account? isn't that true that sometimes the sender sends more than one segment before receiving the ack?










share|improve this question


























    up vote
    1
    down vote

    favorite












    Given a TCP session, is there a way to determine the throughput of the sender?
    I have a wireshark sniff, and I see that to calculate the throughput of the sender I can use the
    TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput formula,
    But the window is constantly changing (due to the tcp protocol).
    Furthermore, why does the tcp window size is taken into account? isn't that true that sometimes the sender sends more than one segment before receiving the ack?










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Given a TCP session, is there a way to determine the throughput of the sender?
      I have a wireshark sniff, and I see that to calculate the throughput of the sender I can use the
      TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput formula,
      But the window is constantly changing (due to the tcp protocol).
      Furthermore, why does the tcp window size is taken into account? isn't that true that sometimes the sender sends more than one segment before receiving the ack?










      share|improve this question













      Given a TCP session, is there a way to determine the throughput of the sender?
      I have a wireshark sniff, and I see that to calculate the throughput of the sender I can use the
      TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput formula,
      But the window is constantly changing (due to the tcp protocol).
      Furthermore, why does the tcp window size is taken into account? isn't that true that sometimes the sender sends more than one segment before receiving the ack?







      tcp wireshark






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 17 hours ago









      DsCpp

      1323




      1323






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote














          isn't that true that sometimes the sender sends more than one segment before receiving the ack?




          This is exactly what "window" means. Imagine a protocol requiring acknowledgment but only sending a single data packet/segment each time (window = 1 segment) - there can only be a single segment/ACK pair in each round-trip period, regardless of the actual bandwidth.



          The send window provides a method to send multiple segments consecutively before expecting ACKs. Each segment that's ACKed is removed from the send window and the window advanced to a new segment - hence "sliding window".



          Sending multiple segments "in parallel" with an adaptive, sliding window, you can make use of the total bandwidth. Generally, you cannot transport more data than one full window within each RTT period.



          TCP uses a sliding window that is controlled by the (constantly monitored) RTT value as congestion sensor - in a simplified perspective, when RTT goes up, the window size goes down and vice versa. Naturally, each value may change at any time due to the network load and other variables.






          share|improve this answer




























            up vote
            1
            down vote













            All the measurements are changing: the throughput and the latency can be instantaneous measurements too.




            • If you want an average, measure it over a long period

            • Yes, the sender very often will send segments before getting the acknowledgment






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "496"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f54889%2fcalculating-the-throughput-of-a-given-tcp-connection%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              3
              down vote














              isn't that true that sometimes the sender sends more than one segment before receiving the ack?




              This is exactly what "window" means. Imagine a protocol requiring acknowledgment but only sending a single data packet/segment each time (window = 1 segment) - there can only be a single segment/ACK pair in each round-trip period, regardless of the actual bandwidth.



              The send window provides a method to send multiple segments consecutively before expecting ACKs. Each segment that's ACKed is removed from the send window and the window advanced to a new segment - hence "sliding window".



              Sending multiple segments "in parallel" with an adaptive, sliding window, you can make use of the total bandwidth. Generally, you cannot transport more data than one full window within each RTT period.



              TCP uses a sliding window that is controlled by the (constantly monitored) RTT value as congestion sensor - in a simplified perspective, when RTT goes up, the window size goes down and vice versa. Naturally, each value may change at any time due to the network load and other variables.






              share|improve this answer

























                up vote
                3
                down vote














                isn't that true that sometimes the sender sends more than one segment before receiving the ack?




                This is exactly what "window" means. Imagine a protocol requiring acknowledgment but only sending a single data packet/segment each time (window = 1 segment) - there can only be a single segment/ACK pair in each round-trip period, regardless of the actual bandwidth.



                The send window provides a method to send multiple segments consecutively before expecting ACKs. Each segment that's ACKed is removed from the send window and the window advanced to a new segment - hence "sliding window".



                Sending multiple segments "in parallel" with an adaptive, sliding window, you can make use of the total bandwidth. Generally, you cannot transport more data than one full window within each RTT period.



                TCP uses a sliding window that is controlled by the (constantly monitored) RTT value as congestion sensor - in a simplified perspective, when RTT goes up, the window size goes down and vice versa. Naturally, each value may change at any time due to the network load and other variables.






                share|improve this answer























                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote










                  isn't that true that sometimes the sender sends more than one segment before receiving the ack?




                  This is exactly what "window" means. Imagine a protocol requiring acknowledgment but only sending a single data packet/segment each time (window = 1 segment) - there can only be a single segment/ACK pair in each round-trip period, regardless of the actual bandwidth.



                  The send window provides a method to send multiple segments consecutively before expecting ACKs. Each segment that's ACKed is removed from the send window and the window advanced to a new segment - hence "sliding window".



                  Sending multiple segments "in parallel" with an adaptive, sliding window, you can make use of the total bandwidth. Generally, you cannot transport more data than one full window within each RTT period.



                  TCP uses a sliding window that is controlled by the (constantly monitored) RTT value as congestion sensor - in a simplified perspective, when RTT goes up, the window size goes down and vice versa. Naturally, each value may change at any time due to the network load and other variables.






                  share|improve this answer













                  isn't that true that sometimes the sender sends more than one segment before receiving the ack?




                  This is exactly what "window" means. Imagine a protocol requiring acknowledgment but only sending a single data packet/segment each time (window = 1 segment) - there can only be a single segment/ACK pair in each round-trip period, regardless of the actual bandwidth.



                  The send window provides a method to send multiple segments consecutively before expecting ACKs. Each segment that's ACKed is removed from the send window and the window advanced to a new segment - hence "sliding window".



                  Sending multiple segments "in parallel" with an adaptive, sliding window, you can make use of the total bandwidth. Generally, you cannot transport more data than one full window within each RTT period.



                  TCP uses a sliding window that is controlled by the (constantly monitored) RTT value as congestion sensor - in a simplified perspective, when RTT goes up, the window size goes down and vice versa. Naturally, each value may change at any time due to the network load and other variables.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 13 hours ago









                  Zac67

                  23.8k21252




                  23.8k21252






















                      up vote
                      1
                      down vote













                      All the measurements are changing: the throughput and the latency can be instantaneous measurements too.




                      • If you want an average, measure it over a long period

                      • Yes, the sender very often will send segments before getting the acknowledgment






                      share|improve this answer

























                        up vote
                        1
                        down vote













                        All the measurements are changing: the throughput and the latency can be instantaneous measurements too.




                        • If you want an average, measure it over a long period

                        • Yes, the sender very often will send segments before getting the acknowledgment






                        share|improve this answer























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          All the measurements are changing: the throughput and the latency can be instantaneous measurements too.




                          • If you want an average, measure it over a long period

                          • Yes, the sender very often will send segments before getting the acknowledgment






                          share|improve this answer












                          All the measurements are changing: the throughput and the latency can be instantaneous measurements too.




                          • If you want an average, measure it over a long period

                          • Yes, the sender very often will send segments before getting the acknowledgment







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 14 hours ago









                          jonathanjo

                          8,4681629




                          8,4681629






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f54889%2fcalculating-the-throughput-of-a-given-tcp-connection%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              What visual should I use to simply compare current year value vs last year in Power BI desktop

                              How to ignore python UserWarning in pytest?

                              Alexandru Averescu