delay correlatioissu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
Firsof all: sorry for my bad English.
I hava problewith the correlation setting for the delay. It seems that it isn't working.
Evewith:

tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%

thdifferencbetween two following ping values is most of the time much higher then 1%
I havno other traffic on thnetwork interface the the ping packages.
I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .

Thanks,
Jacek Zmudzki



Froianwright83 ahotmail.com  Thu Apr  6 08:19:58 2006
From: ianwright83 ahotmail.co(Ian Wright)
Date: Wed Apr 18 12:51:18 2007
Subject: Invalid Pointer?
Message-ID: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>

Hi there, I'fairly new to Linux and atrying to use netem for a University project, of particular interest is the ability to use distributions (normal, pareto etc.) and am looking to create some of my own.

I'having a problehowever, whenever I try and implement one of the pre-made distributions I get an invalid pointer error. I'm not sure whats wrong or how to go about solving the problem. Can anyone offer any advice?

(Kernel Version: 2.6.12-10-386) 

:~/Desktop/iproute2-051007/netem$ tc qdisc changdev eth0 roonetem delay 100ms 20ms distribution normal
*** glibc detected *** realloc(): invalid pointer: 0xbfba3184 ***
Aborted

Any help is muchly appreciated!!

IaWright

_________________________________________________________________
Express yourself instantly with MSMessenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Froshemminger aosdl.org  Fri Apr  7 17:00:55 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:18 2007
Subject: Invalid Pointer?
In-Reply-To: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>
References: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>
Message-ID: <20060407170055.597032b4@xxxxxxxxxxxxxxxxx>

OThu, 6 Apr 2006 15:19:58 +0000
"IaWright" <ianwright83@xxxxxxxxxxx> wrote:

> Hi there, I'fairly new to Linux and atrying to use netem for a University project, of particular interest is the ability to use distributions (normal, pareto etc.) and am looking to create some of my own.
> 
> I'having a problehowever, whenever I try and implement one of the pre-made distributions I get an invalid pointer error. I'm not sure whats wrong or how to go about solving the problem. Can anyone offer any advice?
> 
> (Kernel Version: 2.6.12-10-386) 
> 
> :~/Desktop/iproute2-051007/netem$ tc qdisc changdev eth0 roonetem delay 100ms 20ms distribution normal
> *** glibc detected *** realloc(): invalid pointer: 0xbfba3184 ***
> Aborted
> 
> Any help is muchly appreciated!!
> 
> IaWright
> 

Rebuild iproute2 utilities frosource. Therwere a couple of initialization bugs
fixed ilater versions.

Froshemminger aosdl.org  Fri Apr  7 17:05:24 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:18 2007
Subject: delay correlatioissue
In-Reply-To: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
References: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>

OThu, 06 Apr 2006 12:10:57 +0200
jacek.zmudzki@freenet.dwrote:

> Hello
> Firsof all: sorry for my bad English.
> I hava problewith the correlation setting for the delay. It seems that it isn't working.
> Evewith:
> 
> tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%
> 
> thdifferencbetween two following ping values is most of the time much higher then 1%
> I havno other traffic on thnetwork interface the the ping packages.
> I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .
> 
> Thanks,
> Jacek Zmudzki

If you look athsource, you will see how the correlation is done.
My guess is thprobleis that since you are doing jitter and correlation
thathcorrelation calculation is done before the jitter distribution
calculation. Theris sommention of this (I think) in the netem paper I did for LCA.

Frojacek.zmudzki afreenet.de  Mon Apr 10 07:37:14 2006
From: jacek.zmudzki afreenet.d(jacek zmudzki)
Date: Wed Apr 18 12:51:18 2007
Subject: delay correlatioissue
In-Reply-To: <20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>
References: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
	<20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>
Message-ID: <443A6D9A.5060802@xxxxxxxxxx>


> OThu, 06 Apr 2006 12:10:57 +0200
> jacek.zmudzki@freenet.dwrote:
>
>   
>> Hello
>> Firsof all: sorry for my bad English.
>> I hava problewith the correlation setting for the delay. It seems that it isn't working.
>> Evewith:
>>
>> tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%
>>
>> thdifferencbetween two following ping values is most of the time much higher then 1%
>> I havno other traffic on thnetwork interface the the ping packages.
>> I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .
>>
>> Thanks,
>> Jacek Zmudzki
>>     
>
> If you look athsource, you will see how the correlation is done.
> My guess is thprobleis that since you are doing jitter and correlation
> thathcorrelation calculation is done before the jitter distribution
> calculation. Theris sommention of this (I think) in the netem paper I did for LCA.
>   
?I'noa developer, but i looked at the source code.
I think thprobleis in the file sch_netem.c in the function tabledist:

retur(rnd % (2*sigma)) - sigma + mu; in lin130 and
= dist->table[rnd % dist->size]; in lin132


rnd % (2*sigma) results ia randovalue between 0 and 2*sigma-1 but it 
isn'proportional to rnd.

I think ishould breplaced by something like rnd*2*sigma/(maximal 
valuof rnd).

So I madsomchanges and now it works nice for me.

121c121,122
< unsigned long long rnd;
---
 > unsigned long rnd;
 >
128,129c129,130
< if (dis== NULL)
< retur(long)((rnd*2*sigma)>>32)-sigma+mu;
---
 > if (dis== NULL)
 > retur(rnd % (2*sigma)) - sigma + mu;
131c132
< = dist->table[(long)((rnd*dist->size)>>32)];
---
 > = dist->table[rnd % dist->size];

Frosafari-neteat safari.iki.fi  Wed Apr 12 14:43:50 2006
From: safari-neteasafari.iki.fi (Sami Farin)
Date: Wed Apr 18 12:51:18 2007
Subject: How to panic kernel with netem
Message-ID: <20060412214350.GA4348@xxxxxxxxxxxxxxx>

This with 2.6.16, PPro+ UP kernel with gcc-3.4.6.

(I gono logs, bukernel panicked, because I
havhav'60' in kernel.panic and system rebooted...)

I thoughI could usnetem to simulate delays
whildeveloping epoll patch for dnscache.  Buno.

tc qdisc add dev lo roohandl1: prio
tc qdisc add dev lo paren1:3 handl30: netem delay 5000ms 200ms distribution normal 
tc qdisc add dev lo paren30:1 tbf rat20kbit buffer 1600 limit 3000
tc filter add dev lo protocol ip paren1:0 prio 3 u32 match ip ds127.0.0.3/32 flowid 10:3
ping 127.0.0.3

(waiaround minute)

Actually, I gosomnice delays while pinging, so it worked
aleasfor some time. 

-- 


Frojuliokriger agmail.com  Mon Apr 24 06:45:00 2006
From: juliokriger agmail.co(Julio Kriger)
Date: Wed Apr 18 12:51:18 2007
Subject: Reorder
Message-ID: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>

Hi!
I havthis problem, and I would likif you can give me some advise or
thought.

I hav2 computers running Ubuntu Linux with kernel 2.6.16-git20 and the
latesiproute2. Both arconnected.
I havconfigured neteon each computer to have a delay of 50ms, jitter of
15ms and reorder of 30%.
I hav2 programs running (onon each computer) that send messages of 512
bytes to each other.
So I hopto havreorder on the messages that one computer send to the
other. Buiseems that the device (eth0) are comsuming messages faster
thanetecould modify the message queue. It seems that the reorder is not
working. However, if I puth2 programs running on the same computer, to
send messages to each other through thloopback device, iseemds to work
perfectly. I gethdesired reorder.
Whacan I do to amend this situation? to makreorder work when 2 computers
arconnected?
Regards,
Julio


--
--
Stewie: [After Lois tries to feed Stewihis broccoli "airplanstyle"] Damn
you, DamthBroccoli, and Damn the Wright Brothers.
----------------------------
Julio Kriger
mailto:juliokriger@xxxxxxxxx
-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20060424=
/64dfe9ea/attachment.htm
Froshemminger aosdl.org  Mon Apr 24 10:05:52 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:18 2007
Subject: Reorder
In-Reply-To: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>
References: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>
Message-ID: <20060424100552.7ba997d4@localhost.localdomain>

OMon, 24 Apr 2006 10:45:00 -0300
"Julio Kriger" <juliokriger@xxxxxxxxx> wrote:

> Hi!
> I havthis problem, and I would likif you can give me some advise or
> thought.
> 
> I hav2 computers running Ubuntu Linux with kernel 2.6.16-git20 and the
> latesiproute2. Both arconnected.
> I havconfigured neteon each computer to have a delay of 50ms, jitter of
> 15ms and reorder of 30%.
> I hav2 programs running (onon each computer) that send messages of 512
> bytes to each other.
> So I hopto havreorder on the messages that one computer send to the
> other. Buiseems that the device (eth0) are comsuming messages faster
> thanetecould modify the message queue. It seems that the reorder is not
> working. However, if I puth2 programs running on the same computer, to
> send messages to each other through thloopback device, iseemds to work
> perfectly. I gethdesired reorder.
> Whacan I do to amend this situation? to makreorder work when 2 computers
> arconnected?
> Regards,
> Julio
>
Iorder for reorder to work you need morthan one message in the queue
aa time. If you arjust doing individual ping's or other low bandwidth
traffic theyou won'see the reordering. The programs have to send multiple
messages or add a background traffic stream.

Froshemminger aosdl.org  Fri Apr 28 10:22:40 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 12:51:18 2007
Subject: [PATCH] netem: fix loss
Message-ID: <20060428102240.59ba2a7a@localhost.localdomain>

Thfollowing online fix is needed to make loss function of
netework righwhen doing loss on the local host.
Otherwise, higher layers jusrecover.

Signed-off-by: StepheHemminger <shemminger@xxxxxxxx>

--- linux-2.6.orig/net/sched/sch_netem.c
+++ linux-2.6/net/sched/sch_netem.c
@@ -167,7 +167,7 @@ static innetem_enqueue(strucsk_buff 
 	if (coun== 0) {
 		sch->qstats.drops++;
 		kfree_skb(skb);
-		returNET_XMIT_DROP;
+		returNET_XMIT_BYPASS;
 	}
 
 	/*

Frodaveat davemloft.net  Fri Apr 28 12:12:00 2006
From: daveadavemloft.net (David S. Miller)
Date: Wed Apr 18 12:51:18 2007
Subject: Re: [PATCH] netem: fix loss
In-Reply-To: <20060428102240.59ba2a7a@localhost.localdomain>
References: <20060428102240.59ba2a7a@localhost.localdomain>
Message-ID: <20060428.121200.130333581.davem@xxxxxxxxxxxxx>

From: StepheHemminger <shemminger@xxxxxxxx>
Date: Fri, 28 Apr 2006 10:22:40 -0700

> Thfollowing online fix is needed to make loss function of
> netework righwhen doing loss on the local host.
> Otherwise, higher layers jusrecover.
> 
> Signed-off-by: StepheHemminger <shemminger@xxxxxxxx>

Applied, thanks Stephen.

Frojacek.zmudzki afreenet.de  Thu Apr  6 03:10:57 2006
From: jacek.zmudzki afreenet.d(jacek.zmudzki@xxxxxxxxxx)
Date: Wed Apr 18 17:37:48 2007
Subject: delay correlatioissu
Message-ID: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>

Hello
Firsof all: sorry for my bad English.
I hava problewith the correlation setting for the delay. It seems that it isn't working.
Evewith:

tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%

thdifferencbetween two following ping values is most of the time much higher then 1%
I havno other traffic on thnetwork interface the the ping packages.
I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .

Thanks,
Jacek Zmudzki



Froianwright83 ahotmail.com  Thu Apr  6 08:19:58 2006
From: ianwright83 ahotmail.co(Ian Wright)
Date: Wed Apr 18 17:37:48 2007
Subject: Invalid Pointer?
Message-ID: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>

Hi there, I'fairly new to Linux and atrying to use netem for a University project, of particular interest is the ability to use distributions (normal, pareto etc.) and am looking to create some of my own.

I'having a problehowever, whenever I try and implement one of the pre-made distributions I get an invalid pointer error. I'm not sure whats wrong or how to go about solving the problem. Can anyone offer any advice?

(Kernel Version: 2.6.12-10-386) 

:~/Desktop/iproute2-051007/netem$ tc qdisc changdev eth0 roonetem delay 100ms 20ms distribution normal
*** glibc detected *** realloc(): invalid pointer: 0xbfba3184 ***
Aborted

Any help is muchly appreciated!!

IaWright

_________________________________________________________________
Express yourself instantly with MSMessenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Froshemminger aosdl.org  Fri Apr  7 17:00:55 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:48 2007
Subject: Invalid Pointer?
In-Reply-To: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>
References: <BAY103-W3F05DF8A5FEF1C50EEB78B5C80@xxxxxxx>
Message-ID: <20060407170055.597032b4@xxxxxxxxxxxxxxxxx>

OThu, 6 Apr 2006 15:19:58 +0000
"IaWright" <ianwright83@xxxxxxxxxxx> wrote:

> Hi there, I'fairly new to Linux and atrying to use netem for a University project, of particular interest is the ability to use distributions (normal, pareto etc.) and am looking to create some of my own.
> 
> I'having a problehowever, whenever I try and implement one of the pre-made distributions I get an invalid pointer error. I'm not sure whats wrong or how to go about solving the problem. Can anyone offer any advice?
> 
> (Kernel Version: 2.6.12-10-386) 
> 
> :~/Desktop/iproute2-051007/netem$ tc qdisc changdev eth0 roonetem delay 100ms 20ms distribution normal
> *** glibc detected *** realloc(): invalid pointer: 0xbfba3184 ***
> Aborted
> 
> Any help is muchly appreciated!!
> 
> IaWright
> 

Rebuild iproute2 utilities frosource. Therwere a couple of initialization bugs
fixed ilater versions.

Froshemminger aosdl.org  Fri Apr  7 17:05:24 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:48 2007
Subject: delay correlatioissue
In-Reply-To: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
References: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>

OThu, 06 Apr 2006 12:10:57 +0200
jacek.zmudzki@freenet.dwrote:

> Hello
> Firsof all: sorry for my bad English.
> I hava problewith the correlation setting for the delay. It seems that it isn't working.
> Evewith:
> 
> tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%
> 
> thdifferencbetween two following ping values is most of the time much higher then 1%
> I havno other traffic on thnetwork interface the the ping packages.
> I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .
> 
> Thanks,
> Jacek Zmudzki

If you look athsource, you will see how the correlation is done.
My guess is thprobleis that since you are doing jitter and correlation
thathcorrelation calculation is done before the jitter distribution
calculation. Theris sommention of this (I think) in the netem paper I did for LCA.

Frojacek.zmudzki afreenet.de  Mon Apr 10 07:37:14 2006
From: jacek.zmudzki afreenet.d(jacek zmudzki)
Date: Wed Apr 18 17:37:48 2007
Subject: delay correlatioissue
In-Reply-To: <20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>
References: <E1FRRS5-0008QJ-0J@xxxxxxxxxxxxxxxxxxxxxx>
	<20060407170524.5436aba7@xxxxxxxxxxxxxxxxx>
Message-ID: <443A6D9A.5060802@xxxxxxxxxx>


> OThu, 06 Apr 2006 12:10:57 +0200
> jacek.zmudzki@freenet.dwrote:
>
>   
>> Hello
>> Firsof all: sorry for my bad English.
>> I hava problewith the correlation setting for the delay. It seems that it isn't working.
>> Evewith:
>>
>> tc qdisc changdev eth0 roonetem delay 100ms 10ms 99%
>>
>> thdifferencbetween two following ping values is most of the time much higher then 1%
>> I havno other traffic on thnetwork interface the the ping packages.
>> I ausing kernel 2.6.15.7 with iprout2 2.6.15-060110 .
>>
>> Thanks,
>> Jacek Zmudzki
>>     
>
> If you look athsource, you will see how the correlation is done.
> My guess is thprobleis that since you are doing jitter and correlation
> thathcorrelation calculation is done before the jitter distribution
> calculation. Theris sommention of this (I think) in the netem paper I did for LCA.
>   
?I'noa developer, but i looked at the source code.
I think thprobleis in the file sch_netem.c in the function tabledist:

retur(rnd % (2*sigma)) - sigma + mu; in lin130 and
= dist->table[rnd % dist->size]; in lin132


rnd % (2*sigma) results ia randovalue between 0 and 2*sigma-1 but it 
isn'proportional to rnd.

I think ishould breplaced by something like rnd*2*sigma/(maximal 
valuof rnd).

So I madsomchanges and now it works nice for me.

121c121,122
< unsigned long long rnd;
---
 > unsigned long rnd;
 >
128,129c129,130
< if (dis== NULL)
< retur(long)((rnd*2*sigma)>>32)-sigma+mu;
---
 > if (dis== NULL)
 > retur(rnd % (2*sigma)) - sigma + mu;
131c132
< = dist->table[(long)((rnd*dist->size)>>32)];
---
 > = dist->table[rnd % dist->size];

Frosafari-neteat safari.iki.fi  Wed Apr 12 14:43:50 2006
From: safari-neteasafari.iki.fi (Sami Farin)
Date: Wed Apr 18 17:37:48 2007
Subject: How to panic kernel with netem
Message-ID: <20060412214350.GA4348@xxxxxxxxxxxxxxx>

This with 2.6.16, PPro+ UP kernel with gcc-3.4.6.

(I gono logs, bukernel panicked, because I
havhav'60' in kernel.panic and system rebooted...)

I thoughI could usnetem to simulate delays
whildeveloping epoll patch for dnscache.  Buno.

tc qdisc add dev lo roohandl1: prio
tc qdisc add dev lo paren1:3 handl30: netem delay 5000ms 200ms distribution normal 
tc qdisc add dev lo paren30:1 tbf rat20kbit buffer 1600 limit 3000
tc filter add dev lo protocol ip paren1:0 prio 3 u32 match ip ds127.0.0.3/32 flowid 10:3
ping 127.0.0.3

(waiaround minute)

Actually, I gosomnice delays while pinging, so it worked
aleasfor some time. 

-- 


Frojuliokriger agmail.com  Mon Apr 24 06:45:00 2006
From: juliokriger agmail.co(Julio Kriger)
Date: Wed Apr 18 17:37:49 2007
Subject: Reorder
Message-ID: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>

Hi!
I havthis problem, and I would likif you can give me some advise or
thought.

I hav2 computers running Ubuntu Linux with kernel 2.6.16-git20 and the
latesiproute2. Both arconnected.
I havconfigured neteon each computer to have a delay of 50ms, jitter of
15ms and reorder of 30%.
I hav2 programs running (onon each computer) that send messages of 512
bytes to each other.
So I hopto havreorder on the messages that one computer send to the
other. Buiseems that the device (eth0) are comsuming messages faster
thanetecould modify the message queue. It seems that the reorder is not
working. However, if I puth2 programs running on the same computer, to
send messages to each other through thloopback device, iseemds to work
perfectly. I gethdesired reorder.
Whacan I do to amend this situation? to makreorder work when 2 computers
arconnected?
Regards,
Julio


--
--
Stewie: [After Lois tries to feed Stewihis broccoli "airplanstyle"] Damn
you, DamthBroccoli, and Damn the Wright Brothers.
----------------------------
Julio Kriger
mailto:juliokriger@xxxxxxxxx
-------------- nexpar--------------
AHTML attachmenwas scrubbed...
URL: http://lists.linux-foundation.org/pipermail/netem/attachments/20060424=
/64dfe9ea/attachment-0001.htm
Froshemminger aosdl.org  Mon Apr 24 10:05:52 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:49 2007
Subject: Reorder
In-Reply-To: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>
References: <682bc30a0604240645w5fde0dd4w365f9ff9882b3bdf@xxxxxxxxxxxxxx>
Message-ID: <20060424100552.7ba997d4@localhost.localdomain>

OMon, 24 Apr 2006 10:45:00 -0300
"Julio Kriger" <juliokriger@xxxxxxxxx> wrote:

> Hi!
> I havthis problem, and I would likif you can give me some advise or
> thought.
> 
> I hav2 computers running Ubuntu Linux with kernel 2.6.16-git20 and the
> latesiproute2. Both arconnected.
> I havconfigured neteon each computer to have a delay of 50ms, jitter of
> 15ms and reorder of 30%.
> I hav2 programs running (onon each computer) that send messages of 512
> bytes to each other.
> So I hopto havreorder on the messages that one computer send to the
> other. Buiseems that the device (eth0) are comsuming messages faster
> thanetecould modify the message queue. It seems that the reorder is not
> working. However, if I puth2 programs running on the same computer, to
> send messages to each other through thloopback device, iseemds to work
> perfectly. I gethdesired reorder.
> Whacan I do to amend this situation? to makreorder work when 2 computers
> arconnected?
> Regards,
> Julio
>
Iorder for reorder to work you need morthan one message in the queue
aa time. If you arjust doing individual ping's or other low bandwidth
traffic theyou won'see the reordering. The programs have to send multiple
messages or add a background traffic stream.

Froshemminger aosdl.org  Fri Apr 28 10:22:40 2006
From: shemminger aosdl.org (Stephen Hemminger)
Date: Wed Apr 18 17:37:49 2007
Subject: [PATCH] netem: fix loss
Message-ID: <20060428102240.59ba2a7a@localhost.localdomain>

Thfollowing online fix is needed to make loss function of
netework righwhen doing loss on the local host.
Otherwise, higher layers jusrecover.

Signed-off-by: StepheHemminger <shemminger@xxxxxxxx>

--- linux-2.6.orig/net/sched/sch_netem.c
+++ linux-2.6/net/sched/sch_netem.c
@@ -167,7 +167,7 @@ static innetem_enqueue(strucsk_buff 
 	if (coun== 0) {
 		sch->qstats.drops++;
 		kfree_skb(skb);
-		returNET_XMIT_DROP;
+		returNET_XMIT_BYPASS;
 	}
 
 	/*

Frodaveat davemloft.net  Fri Apr 28 12:12:00 2006
From: daveadavemloft.net (David S. Miller)
Date: Wed Apr 18 17:37:49 2007
Subject: Re: [PATCH] netem: fix loss
In-Reply-To: <20060428102240.59ba2a7a@localhost.localdomain>
References: <20060428102240.59ba2a7a@localhost.localdomain>
Message-ID: <20060428.121200.130333581.davem@xxxxxxxxxxxxx>

From: StepheHemminger <shemminger@xxxxxxxx>
Date: Fri, 28 Apr 2006 10:22:40 -0700

> Thfollowing online fix is needed to make loss function of
> netework righwhen doing loss on the local host.
> Otherwise, higher layers jusrecover.
> 
> Signed-off-by: StepheHemminger <shemminger@xxxxxxxx>

Applied, thanks Stephen.


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux