Understanding Minstrel's rc_stats file in Linux (WiFi bitrate adaptation algorithm)
Problem:
The statistics used by minstrel_ht
- Linux's typical WiFi bitrate adaptation algorithm - are published in the file /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
.
This file has a table-like structure. According to the sources I could find ([1, 2], didn't check the source code), I've understood that the letters in the 'best rate' column refer to special bitrates which then make part of Minstrel's 'retry chain':
T : highest throughput
t : second highest throughput
P : highest probability of success (i.e., delivery probability)
However, after inspecting the file myself I found a different set of letters: A, B, C, D, BP, CP and DP.
Question:
What is the meaning of the letters A, B, C, D, BP, CP and DP in the 'best rate' column of the /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
file?
I've made an experiment and collected the contents of the rc_stats_csv
over a period of aprox. 2.5 minutes (results here), and verified that A is probably the equivalent to 'highest throughput', and B, C and D to 2nd, 3rd and 4th highest, respectively. The *P probably refer to the rates with better delivery probabilities.
linux wireless-networking linux-kernel wifi-driver
add a comment |
Problem:
The statistics used by minstrel_ht
- Linux's typical WiFi bitrate adaptation algorithm - are published in the file /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
.
This file has a table-like structure. According to the sources I could find ([1, 2], didn't check the source code), I've understood that the letters in the 'best rate' column refer to special bitrates which then make part of Minstrel's 'retry chain':
T : highest throughput
t : second highest throughput
P : highest probability of success (i.e., delivery probability)
However, after inspecting the file myself I found a different set of letters: A, B, C, D, BP, CP and DP.
Question:
What is the meaning of the letters A, B, C, D, BP, CP and DP in the 'best rate' column of the /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
file?
I've made an experiment and collected the contents of the rc_stats_csv
over a period of aprox. 2.5 minutes (results here), and verified that A is probably the equivalent to 'highest throughput', and B, C and D to 2nd, 3rd and 4th highest, respectively. The *P probably refer to the rates with better delivery probabilities.
linux wireless-networking linux-kernel wifi-driver
1
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
1
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54
add a comment |
Problem:
The statistics used by minstrel_ht
- Linux's typical WiFi bitrate adaptation algorithm - are published in the file /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
.
This file has a table-like structure. According to the sources I could find ([1, 2], didn't check the source code), I've understood that the letters in the 'best rate' column refer to special bitrates which then make part of Minstrel's 'retry chain':
T : highest throughput
t : second highest throughput
P : highest probability of success (i.e., delivery probability)
However, after inspecting the file myself I found a different set of letters: A, B, C, D, BP, CP and DP.
Question:
What is the meaning of the letters A, B, C, D, BP, CP and DP in the 'best rate' column of the /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
file?
I've made an experiment and collected the contents of the rc_stats_csv
over a period of aprox. 2.5 minutes (results here), and verified that A is probably the equivalent to 'highest throughput', and B, C and D to 2nd, 3rd and 4th highest, respectively. The *P probably refer to the rates with better delivery probabilities.
linux wireless-networking linux-kernel wifi-driver
Problem:
The statistics used by minstrel_ht
- Linux's typical WiFi bitrate adaptation algorithm - are published in the file /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
.
This file has a table-like structure. According to the sources I could find ([1, 2], didn't check the source code), I've understood that the letters in the 'best rate' column refer to special bitrates which then make part of Minstrel's 'retry chain':
T : highest throughput
t : second highest throughput
P : highest probability of success (i.e., delivery probability)
However, after inspecting the file myself I found a different set of letters: A, B, C, D, BP, CP and DP.
Question:
What is the meaning of the letters A, B, C, D, BP, CP and DP in the 'best rate' column of the /sys/kernel/debug/ieee80211/phy*/*/stations/*/rc_stats
file?
I've made an experiment and collected the contents of the rc_stats_csv
over a period of aprox. 2.5 minutes (results here), and verified that A is probably the equivalent to 'highest throughput', and B, C and D to 2nd, 3rd and 4th highest, respectively. The *P probably refer to the rates with better delivery probabilities.
linux wireless-networking linux-kernel wifi-driver
linux wireless-networking linux-kernel wifi-driver
asked Dec 2 at 17:20
fortune_pickle
164
164
1
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
1
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54
add a comment |
1
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
1
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54
1
1
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
1
1
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54
add a comment |
1 Answer
1
active
oldest
votes
According to the rc80211_minstrel_ht_debugfs.c
source file, minstrel_ht_stats_dump()
method (available here), the letters in the 'best rate' column in the rc_stats
file mean the following:
A : Highest throughput
B : 2nd highest throughput
C : 3rd highest throughput
D : 4th highest throughput
P : Maximum delivery probability
Cases with two letters, e.g. 'PA', mean when a bitrate is both the i-th highest in throughput and the one with the maximum delivery probability.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2fsuperuser.com%2fquestions%2f1380220%2funderstanding-minstrels-rc-stats-file-in-linux-wifi-bitrate-adaptation-algorit%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
According to the rc80211_minstrel_ht_debugfs.c
source file, minstrel_ht_stats_dump()
method (available here), the letters in the 'best rate' column in the rc_stats
file mean the following:
A : Highest throughput
B : 2nd highest throughput
C : 3rd highest throughput
D : 4th highest throughput
P : Maximum delivery probability
Cases with two letters, e.g. 'PA', mean when a bitrate is both the i-th highest in throughput and the one with the maximum delivery probability.
add a comment |
According to the rc80211_minstrel_ht_debugfs.c
source file, minstrel_ht_stats_dump()
method (available here), the letters in the 'best rate' column in the rc_stats
file mean the following:
A : Highest throughput
B : 2nd highest throughput
C : 3rd highest throughput
D : 4th highest throughput
P : Maximum delivery probability
Cases with two letters, e.g. 'PA', mean when a bitrate is both the i-th highest in throughput and the one with the maximum delivery probability.
add a comment |
According to the rc80211_minstrel_ht_debugfs.c
source file, minstrel_ht_stats_dump()
method (available here), the letters in the 'best rate' column in the rc_stats
file mean the following:
A : Highest throughput
B : 2nd highest throughput
C : 3rd highest throughput
D : 4th highest throughput
P : Maximum delivery probability
Cases with two letters, e.g. 'PA', mean when a bitrate is both the i-th highest in throughput and the one with the maximum delivery probability.
According to the rc80211_minstrel_ht_debugfs.c
source file, minstrel_ht_stats_dump()
method (available here), the letters in the 'best rate' column in the rc_stats
file mean the following:
A : Highest throughput
B : 2nd highest throughput
C : 3rd highest throughput
D : 4th highest throughput
P : Maximum delivery probability
Cases with two letters, e.g. 'PA', mean when a bitrate is both the i-th highest in throughput and the one with the maximum delivery probability.
edited Dec 2 at 18:21
answered Dec 2 at 17:51
fortune_pickle
164
164
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1380220%2funderstanding-minstrels-rc-stats-file-in-linux-wifi-bitrate-adaptation-algorit%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
1
"didn't check the source code" So go check the source code.
– DavidPostill♦
Dec 2 at 17:27
1
@DavidPostill I thought it would be more difficult to find the answer in the code since I'm not familiar with browsing Linux kernel's code. Nevertheless, I've followed your advice and found the answer. I've answered my own question, since this may be useful to others.
– fortune_pickle
Dec 2 at 17:54