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 theTCP-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
add a comment |
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 theTCP-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
add a comment |
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 theTCP-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
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 theTCP-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
tcp wireshark
asked Nov 21 at 11:13
DsCpp
1343
1343
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
down vote
accepted
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 - from 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.
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
add a comment |
up vote
2
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
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
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 - from 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.
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
add a comment |
up vote
4
down vote
accepted
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 - from 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.
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
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 - from 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.
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 - from 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.
edited Nov 22 at 18:20
answered Nov 21 at 15:10
Zac67
24.4k21252
24.4k21252
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
add a comment |
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows is not only sliding, but also adapting to the dynamic net, i.e. getting bigger/smaller regards the RTT and packet drop statistics, no? (congestion avoidance algorithms)? do we have a better solution to calculate the throughput than just average the window size over time?
– DsCpp
Nov 22 at 8:46
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
The windows size adapts, see my last paragraph. "Throughput" is a instantaneous value, just like RTT and window size. If you average one, you average them all.
– Zac67
Nov 22 at 18:20
add a comment |
up vote
2
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
add a comment |
up vote
2
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
add a comment |
up vote
2
down vote
up vote
2
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
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
answered Nov 21 at 13:42
jonathanjo
9,1711631
9,1711631
add a comment |
add a comment |
Thanks for contributing an answer to Network Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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