Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi. A user (it's probably my roommate) on my home network is sucking down a ridiculous amount of bandwidth (or so I judge based on my crappy bandwidth). I admin the router that we both use, but it isn't a Linux box, it's just a cheap (although good) Belkin wireless/wired router. It lets my see all of the IPs it hands out (via DHCP), but not how much traffic goes to each. Is there a way using my box to see how many and what size packets he's sending receiving to estimate how much bandwidth he's using?
If the users are connected wireless, you could set your wireless card to promiscuous mode and grab the traffic, even if it is encrypted, using ethereal/wireshark and filter the traffic by destination IP number (or MAC?) therefore seeing how much it is flowing to that particular IP. See as well airodump and others.
Shaping by user can be interesting for small home networks. It allows you to give every user a fair share of available bandwidth which they can then use for whatever they like, removing the case where one user takes all bandwidth away from other users altogether.
The various approaches can also be combined using a classful scheduler like HTB. It allows you to first shape by user and then prioritize by traffic type for every user.
I'd recommend you install ntop, gives you easy to digest information, instantly tells you what your roommate is doing without having to make sense out of captures.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.