Understanding Minstrel's rc_stats file in Linux (WiFi bitrate adaptation algorithm)











up vote
-1
down vote

favorite












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.










share|improve this question


















  • 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















up vote
-1
down vote

favorite












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.










share|improve this question


















  • 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













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










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.






share|improve this answer























    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',
    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
    });


    }
    });














    draft saved

    draft discarded


















    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








    up vote
    0
    down vote



    accepted










    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.






    share|improve this answer



























      up vote
      0
      down vote



      accepted










      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.






      share|improve this answer

























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        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.






        share|improve this answer














        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.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 2 at 18:21

























        answered Dec 2 at 17:51









        fortune_pickle

        164




        164






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy