Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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 22.214.171.124 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?