[LARTC] Help:how to generate different packets?souce code explanation?

2004-06-17 Thread swcims
Hi,All I setup traffic control configuration with HTB this way: 1: root HTB qdisc | 1:1 HTB class rate 1024kbit |

Re: [LARTC] How to limit per tcp session ?

2004-06-17 Thread Bill Denney
On Fri, 18 Jun 2004, Andy Furniss wrote: > How many concurrent tcp connections per page depends on the browser and > server settings - both tweakable, so you would get different speeds > depending on site/browser combination. > > Why do you need to do per tcp? There may be a better way to solve yo

Re: [LARTC] Linux vs. Windows XP routing latency

2004-06-17 Thread Andy Furniss
[EMAIL PROTECTED] wrote: Hello, I have a problem with the latency of the packets passing a Linux router, and I thought perhaps you could put some light on it. It's quite simple. I have one ADSL connection, and a LAN. The gateway is the Linux machine or a Windows XP machine. When the wXP is routin

Re: [LARTC] How to limit per tcp session ?

2004-06-17 Thread Andy Furniss
Ed Wildgoose wrote: Okay, then let me describe whats on my mind to help develope this project (if someone dare to start make a project) The idea perhaps like this: Let say i'm goin to download some graphics from www.lartc.org. The first session i opened my browser, created connection localhost:

Re: [LARTC] How to limit per tcp session ?

2004-06-17 Thread Andy Furniss
Rio Martin wrote: I'm so surprised with all reply from the list. I thought someone has figured it out how :)) Okay, then let me describe whats on my mind to help develope this project (if someone dare to start make a project) The idea perhaps like this: Let say i'm goin to download some graphic

[LARTC] [RFT] netif_queue_stopped in TBF scheduler

2004-06-17 Thread Stephen Hemminger
There is a race between the device and scheduler if the scheduler looks at netif_queue_stopped. What can happen is that the device decides it is ready, just after the stopped check, and the scheduler decides it is throttled. The simple way is to just have the scheduler always dequeue and leave th

[LARTC] [PATCH] (2/4) delay scheduler - retry if requeue fails

2004-06-17 Thread Stephen Hemminger
If delay scheduler decides not to send the packet right away, it requeues it. If the requeue fails, it should go and look again rather than waking up prematurely. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> diff -Nru a/net/sched/sch_delay.c b

[LARTC] [PATCH] (1/4) delay scheduler enqueue always succeeds.

2004-06-17 Thread Stephen Hemminger
If underlying fifo enqueue fails, return the status not 0. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c --- a/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00 +++ b/net/sched/sch_dela

[LARTC] [PATCH] (3/4) delay scheduler race with device stopped

2004-06-17 Thread Stephen Hemminger
The delay scheduler dequeue routine has some code cut&pasted from the TBF scheduler that caused a race with E1000 when ring got full. It looks like net schedulers should never be calling netif_queue_stopped because the queue may get unstopped by interrrupt or receive soft irq (NAPI) which races wi

[LARTC] [PATCH] (4/4) add loss option to network delay scheduler

2004-06-17 Thread Stephen Hemminger
This enhances the network simulation scheduler to do simple random loss. The loss parameter is a simple 32 bit value such that 0 means no loss, and 0x is always drop. I have a new version of the tc command which takes care of conversion from percent to this value. Same patch for 2.4 and

[LARTC] [PATCH] (1/4) delay scheduler enqueue always succeeds.

2004-06-17 Thread Stephen Hemminger
If underlying fifo enqueue fails, return the status not 0. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c --- a/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00 +++ b/net/sched/sch_dela

[LARTC] HTB is nor fair when 'borrowing? Can someone correct me or maybe Devik's HTB has a bug?

2004-06-17 Thread pljosh
Hello there! Yesterday I started my experiments with HTB. I configured it this way: 1: root HTB qdisc | 1:1 HTB class rate 1000kbit | /---+--\ 1:40 1:50 1:60 user1 user2 user3 rate 333 & ceil 1000 for everyone. User2 is disconnected and user1 and user3 are downloading. For

Re: [LARTC] QOS Script difficulty on bridge

2004-06-17 Thread Ed Wildgoose
Jason Boxman wrote: On Thursday 17 June 2004 03:29, Ed Wildgoose wrote: Consider: Internet -> Router -> Eth1 -> br0 -> Eth0 -> local net Now by applying QOS to eth1 I control outgoing traffic from everywhere. By applying QOS to eth0 I control incoming to the localnet (great), but NOT to the loc

RE: [LARTC] ntop performance

2004-06-17 Thread Adam Towarnyckyj
*smacks forehead* RTFM I found a few things that might improve performance but the problem is I lose a lot of logging options. I guess I'm open to suggestions for what you all think is a good program to use for such tasks. Thanks! Adam Towarnyckyj __

[LARTC] ntop performance

2004-06-17 Thread Adam Towarnyckyj
Hey all, I wanted to let you all know the hex thing worked out for me. Thanks again. I had another question though that was sparked by Ionut Gogu's question on monitoring. I setup and installed ntop for this purpose and noticed that we have so much traffic it is killing the machine.

Re: [LARTC] QOS Script difficulty on bridge

2004-06-17 Thread Jason Boxman
On Thursday 17 June 2004 03:29, Ed Wildgoose wrote: > Consider: > > Internet -> Router -> Eth1 -> br0 -> Eth0 -> local net > > Now by applying QOS to eth1 I control outgoing traffic from everywhere. > By applying QOS to eth0 I control incoming to the localnet (great), but > NOT to the local bridge

[LARTC] Bypassing Loopback

2004-06-17 Thread Larry Stilwell
Is it possible to setup a route that will place the packet 'on the wire' even if the destination is a local IP? I have been through the iproute2 docs and nothing jumps out at me. I am working on a project measuring network latency/jitter/etc and am currently using a GRE tunnel as the test path for

RE: [LARTC] Class ID limits

2004-06-17 Thread Adam Towarnyckyj
Thank you very much for your help. I couldn't seem to find that anywhere in the documentation. Maybe I wasn't looking in the right place. Anyways, thanks again. Adam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nikolay Datchev Sent: Thursday, June 17,

Re: [LARTC] Trafic monitor

2004-06-17 Thread Thilo Schulz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 17 June 2004 13:51, Thilo Schulz wrote: > At the moment, I have my traffic accounter daemon, say: the one logging the > traffic, linked against electricfence, which should have very negative > effects on performance. I will run a transfer f

Re: [LARTC] Trafic monitor

2004-06-17 Thread Thilo Schulz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 17 June 2004 09:59, Morten Nilsen wrote: > > - How will your solution scale? can it handle 200Mb traffic full duplex > on a Xeon 2.8GHz without choking? what about 100Mb on an AMD 800MHz? This is a very good question. I think, the kernel

Re: [LARTC] Trafic monitor

2004-06-17 Thread Ronny Aasen
On Thu, 2004-06-17 at 12:18, Ed Wildgoose wrote: > > I search for a tool show-me on real time the trafic made by all/one > > IPon the interface eth1, somethings simple ; EX: > > 192.168.1.10 ... x kbit/s > > 192.168.1.11 ... y kbit/s > > 192.168.1.12 ... z kbit/s > > 192.1

Re: [LARTC] Trafic monitor

2004-06-17 Thread Ed Wildgoose
I search for a tool show-me on real time the trafic made by all/one IPon the interface eth1, somethings simple ; EX: 192.168.1.10 ... x kbit/s 192.168.1.11 ... y kbit/s 192.168.1.12 ... z kbit/s 192.168.1.13 ... x kbit/s 192.168.1.14 ... x kbit/s 192.168.1

Re: [LARTC] Trafic monitor

2004-06-17 Thread Morten Nilsen
Thilo Schulz wrote: > On Wednesday 16 June 2004 09:51, Ionut Gogu wrote: >> I search for a tool show-me on real time the trafic made by all/one IPon >> the interface eth1 > > I'm working on one _RIGHT_NOW_ and expect it to be usable today. > It will be configurable over a webinterface, and will ma

Re: [LARTC] Class ID limits

2004-06-17 Thread Nikolay Datchev
> > I actually have a few questions. First, am I right in assuming this or > > is the reason something totally different? And, if I'm right, is there > > any way around the limit other than creating a new qdisc? I'm trying to > > use a number we have set up in our database and sometimes it goes int

Re: [LARTC] Class ID limits

2004-06-17 Thread Nikolay Datchev
> And note that you must supply the classid in hex. Try searching google for > a small tool like dec2hex, which converts decimal numbers to hex. > http://improv.sapp.org/doc/examples/improv/tohex/tohex.html This works perfect for me. > > ___ LARTC mai

Re: [LARTC] Class ID limits

2004-06-17 Thread Catalin BOIE
tc class add dev eth1 parent 10: classid 10:$variable cbq bandwidth 200Mbit rate 512Kbit allot 1514 prio 5 maxburst 20 avpkt 1000 bounded That's just an example. My problem is I'm guessing the $variable is not allowed to be anything over . I'm getting an error when I run that command with anyth

Re: [LARTC] QOS Script difficulty on bridge

2004-06-17 Thread Ed Wildgoose
S Mohan wrote: If eth0 is your interface connected to the Internet, shape outgoing traffic on eth1. This will simulate the effect of limiting download coming thro' eth0 and also shape traffic from the local machine going out to the LAN on eth1. In case you want to limit download from the local mach

Re: [LARTC] How to limit per tcp session ?

2004-06-17 Thread Ed Wildgoose
Okay, then let me describe whats on my mind to help develope this project (if someone dare to start make a project) The idea perhaps like this: Let say i'm goin to download some graphics from www.lartc.org. The first session i opened my browser, created connection localhost:3101 --> www.lartc.