Re[2]: dummynet throughput problem



Sveiki,

Yep, it was a problem at the upstream which was seeing the packets
twice and adding them into the pipe twice because of that. There were
no skipto rules at the upstream.

-------------------
HG> Timofej Dod wrote:
Hi,

I got a firewall with ipfw + dummynet.
system is:
FreeBSD 6.1-RELEASE-p10

table 1 contains 211 IP addresses.

00502 pipe 11 ip from any to table(1) out via rl0
00502 skipto 2000 ip from any to table(1)

and with pipe configured
ipfw -q pipe 11 config mask dst-ip 0xffffffff bw 256Kbit/s

however everybody only getting half of it i.e. 128 Kbits.
also net.inet.ip.fw.one_pass: 1 doesn't seem to work properly since
counters show that skipto rule is being triggered and it should not with
the one_pass activated.
Any clues how to make it give the speed it is supposed to?

HG> I'm absolutely no expert on this matter, but I think you have to define
HG> where the packets are going. It's got something to do with DUMMYNET or
HG> IPFW seeing the packet twice. You're probably looking for:

HG> 00502 pipe 11 ip from any to table(1) out xmit rl0

HG> A similar rule for incoming would be:

HG> pipe 12 ip from table(1) to any in recv rl0

HG> --
HG> Håkon Granlund

--
Timofej Dod
Interneto programuotojas / Web Developer
UAB "Eilorita" , 4you.ltT
Tel./Faks:+370 52 349 379
Mob. +375 29 7783581
ICQ 136621403

http://www.4you.lt

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • IPFW traffic shaping questions
    ... I have few questions for ipfw gurus.. ... I'm using "ipfw pipe show" for example but there is always only one host so if I'm testing some rules I can't tell if they work or not (maybe there is some ... I have tried to add rule for ACK packets - no effect. ...
    (freebsd-questions)
  • Re: Thoughts for the beech
    ... but supplying amps That Continue To Flow ... "TRAFFIC SHAPER CONFIGURATION ... The shaper operates by dividing packets into flows according to ... A pipe emulates a link with given bandwidth, propagation delay, queue ...
    (alt.sysadmin.recovery)
  • Re: FreeBSD Traffic Shaping?
    ... 10.0.0.224/28" (or whatever the appropriate mask is). ... >> acknowledgment packets that downloading apps need to send back to the ... reserve bandwidth for them unless you tell it to. ... pipe, ack packets go to the other one. ...
    (freebsd-questions)
  • pipe dropping lots of packets
    ... My queues drops lots of packets. ... make sure we'll catch packets out of pipe ... last pid: 11209; load averages: 0.52, 0.36, ...
    (freebsd-net)
  • Re: Same pipe twice in one day
    ... welcome to our fellowship of pipe smoking. ... around and post your thoughts and opinions. ... I think twice a day works very well. ...
    (alt.smokers.pipes)