ipfw bandwidth shaping

From: Bikrant Neupane (bikrant_ml_at_wlink.com.np)
Date: 07/15/04

  • Next message: Mikolaj Rydzewski: "Re: php accelerators"
    To: freebsd-isp@freebsd.org
    Date: Thu, 15 Jul 2004 10:36:29 +0545
    
    

    Hi I am using freebsd 4.9 with ipfw to shape b/w for my broadband clients.
    I have created a 64Kbit pipe and I have configured few ips to use the pipe. ie
    more than one client share the same 64Kbit pipe.

    I have been montoring the b/w utilization by using the command:
    ipfw pipe show $inpipe | tail -1 | awk '{ print $6 }
    ipfw pipe show $outpipe | tail -1 | awk '{ print $6 }

    This is the output of ipfw pipe show $pipe_no
    BKT Prot _Source IP/port_ __Dest. IP/port___ Tot_pkt/bytes Pkt/Byte Drp
      0 tcp 24.76.245.191/62165 202.79.50.55/4347 2826105 864936484 42 11232
    150386
    I assumed the 6th field gives the total bytes going though the pipe.
    These two commands give the bytes going through the pipe and I am using the
    values to plot the mrtg graph.
    But I see b/w utilization exceeding 64Kbit. At one point it reached 93Kbit!!
    Am I using wrong countres to obtain b/w utilization?? please aadvice.

    with regards,
    Bikrant

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


  • Next message: Mikolaj Rydzewski: "Re: php accelerators"

    Relevant Pages

    • Re: dummynet traffic shaping
      ... traffic coming down the ADSL line toward you. ... then one pipe on the outbound set to the ... Note that even the lowest priority will get full b/w if there ...
      (comp.unix.bsd.freebsd.misc)
    • ipfw bandwidth shaping
      ... Hi I am using freebsd 4.9 with ipfw to shape b/w for my broadband clients. ... I have created a 64Kbit pipe and I have configured few ips to use the pipe. ...
      (freebsd-questions)
    • Re: Packet loss with traffic shaper and routing
      ... ${fwcmd} pipe 1 config bw 512Kbit/s ... ipfw add 1012 skipto 1021 ip from any to 1.1.1.4./30 ...
      (freebsd-net)
    • Re: Packet loss with traffic shaper and routing
      ... ${fwcmd} pipe 1 config bw 512Kbit/s ... ipfw add 1012 skipto 1021 ip from any to 1.1.1.4./30 ...
      (freebsd-net)
    • Re: Packet loss with traffic shaper and routing
      ... ${fwcmd} pipe 1 config bw 512Kbit/s ... what I am saying is that even if we use skipto rules to create ... ipfw add 1000 skipto 1110 ip from any to 1.1.1.16/28 ...
      (freebsd-net)