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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, what can be used for P2P traffic shaping on kernel 3.6.4? Something like IPP2P? My aim is to to give high priority to ICMP, SSH, VOIP, etc. then to HTTP and the lowest priority to P2P networks and torrents. Thank you
I've only used tc with the Vyatta software router (based on Linux) to simulate WANs with high-latency and packet losses for UDP packets, but tc will allow you to shape/police the traffic level based on the policy you define for different classifications of network traffic. The learning curve was a little steep, but it's certainly an option.
Yes, I know but the question is what to use to determine torrents and other P2P networks because It seems that ipp2p or layer-7 doesnt work with kernel 3.6
Yeah, it's hard when people switch port numbers and encrypt their torrent payoads.
One way to go about it is prioritize the non-torrent traffic, then put the torrent and 'other' trivial traffic in a low queue.
OK, one more question. I am trying to do the traffic shaping on a router with wwan (3G modem) and wlan as local network. Can you refer me to some good example howto do it? Because the connection speed on the wwan network is variable (from few KB/s to MB/s) so howto write that rules? I have been searching on google and tried several examples but nothing seems to be working good here. I need to setup priority for ICMP packets so the ping to 8.8.8.8 remain still the same when pinging from the router. (I am using ping to check internet connection and set services on the router accordingly). But each time when the network signal is low and I am downloading some file via http/ftp the ping is going from 200ms to 4000ms. The next step will be to set to all of the P2P and unknown services (ports) the lowest priority. Any idea howto correctly shape the wlan traffic in order to keep the ping response time at least under 500ms? The internet connection speed is different every time. Thank You in advance.
I suppose your problem with classification of bittorrent remains, but in my bt client setup (deluged) I have my source/destination layer-4 port ranges defined, so explicit packet classification is possible in the egress direction. Not sure if you can do that with your bt client, but otherwise you can define a high priority class based queue for traffic which you can classify, and a low priority queue for everything else.
Hello, I have read the Linux Advanced Routing & Traffic Control HOWTO and also checked the wonder traffic shaping script but in both I need to know the connection speed (upload and download) as I wrote its a 3g modem and the connection speed is very variable. Is there some way howto measure the connection speed in realtime with a small amount of data send/receive? Or a better way howto do this? Thank You
It'll be hard measuring the fluctuating bandwidth of a WWAN connection in realtime.
How about using tc's prio qdisc which doesn't use the underlying bandwidth for its dequeuing algorithm but uses traffic priority only?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.