From: Taran Lynn <tflynn@ucdavis.edu>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: QDisc Implementation: Setting bit rate and getting RTT
Date: Tue, 03 Jul 2018 16:13:18 -0700 [thread overview]
Message-ID: <76defaacd96053915523b4ba91693d5dca3d9158.camel@ucdavis.edu> (raw)
Hello,
I'm new to linux development and am working on creating a qdisc module,
similar to those under net/sched/sch_*.c. Currently I'm stuck on two
things.
1. What's the best way to set the maximum bit rate?
2. How do I determine the RTT for packets?
For (1) I'm currently tracking the number of bits sent, and only sending
packets if they stay within the appropriate rate bound. Is there a better
way to do this? I've looked at net/sched/sch_netem.c, and as far as I can
tell it determines the delay between packets for a given rate and sends
them after that delay has passed. However, when I tried to do this I got
inconsistent rates, so I think I may be missing something.
As for (2) I'm not sure where to start.
Thanks in advance for any advise.
next reply other threads:[~2018-07-03 23:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 23:13 Taran Lynn [this message]
2018-07-04 4:54 ` QDisc Implementation: Setting bit rate and getting RTT Cong Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76defaacd96053915523b4ba91693d5dca3d9158.camel@ucdavis.edu \
--to=tflynn@ucdavis.edu \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox