search for: slb_ok

Displaying 7 results from an estimated 7 matches for "slb_ok".

2004 May 06
3
tcng ingress policing question
...s ); $police_mirror = SLB( cbs 20kB, cir 2000 kbps ); $police_other = SLB( cbs 10kB, cir 1000 kbps ); class(<>) if (ip_src == XXX.XXX.XXX.XXX || /* external host */ ip_src == YYY.YYY.YYY.YYY ) && /* backup traffic */ SLB_ok($police_isp); class(<>) if ( ip_src == host("host.mirror.one") || ip_src == host("host.mirror.two") ) && SLB_ok($police_mirror); class(<>) if SLB_ok($police_other); } egress { cl...
2007 Feb 19
0
Absolute Maximal Bandwidth
...might have 200MBit/sec "agreed" bandwidth, and the ability to go up to 500MBit/sec if I wish. Anything past 200MBit/sec invokes a huge cost. Example tcc script (might contain typos): dev eth0 { ingress { $inpolicer = SLB ( cbs 100kB, cir 200Mbps ); class (<$whatever>) if SLB_ok ($policer); drop if 1; /* Drop the traffic exceeding the 200mbit rate */ } egress { $egpolicer = SLB (cbs 100kB, cir 200Mbps ); class (<$ftp>) if (ip_dst == 10.1.1.1 && tcp_dport == 21 && SLB_ok ($egpolicer)); class (<$web>) if (tcp_dport == 80 && SLB_...
2004 May 07
0
Re: LARTC digest, Vol 1 #1714 - 5 msgs
...= SLB( cbs 20kB, cir 2000 kbps ); > $police_other = SLB( cbs 10kB, cir 1000 kbps ); > > class(<>) if (ip_src == XXX.XXX.XXX.XXX || /* external host */ > ip_src == YYY.YYY.YYY.YYY ) && /* backup traffic */ > SLB_ok($police_isp); > class(<>) if ( ip_src == host("host.mirror.one") || > ip_src == host("host.mirror.two") ) && > SLB_ok($police_mirror); > class(<>) if SLB_ok($police_other); >...
2002 Dec 31
3
[tcng] More complex example?
...t; has no classes near "prio"" when run through tcc. dev eth1 { egress { tbf (rate 128kbps, burst 64kb, limit 64kb, mtu 1510B) { prio (bands 2) { $ssh_fast = SLB(cir 32kbps, cbs 3kB); class if ((tcp_sport == 22 || tcp_dport == 22) && SLB_ok($ssh_fast)); class if 1; } } } } Are there any examples of tcng scripts that do something slightly more complex than those in the tcng tarball? don _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc...
2004 May 05
3
Simple HTB setup with tcng
Hello all, I am trying to set up a simple htb based system, where packets with source ip 10.0.0.1 should have their own class. I plan to use tcng to set it up easier. Is there something wrong in my tcng file ? ~/tcng$ cat htb /* */ #include "fields.tc" #include "ports.tc" dev eth0 { htb ( ) { class ( rate 600kbps, ceil 600kbps ) {
2004 Sep 17
4
Guaranteed rate per class and maximum ceiling per element in class???
Hi all, It is my understanding that with HTB, the rate and the ceiling are divided over the elements of the class. E.g. using a rate of 100 kb and a ceiling of 2000 kb for a class with 10 elements on a 100Mb NIC, the effect of the ceiling will be that if all elements are generating their maximimum possible trafic they will be effectively limited to ~ ceiling / number of elements, in this case
2004 May 05
1
Re: [Fwd: Re: Simple HTB setup with tcng]
...N "eth0" > > > #define LAN_INGRESS 700000 > > > #define LAN_EGRESS 700000 > > > > > > dev LAN { > > > > > > # ingress { > > > # $policer = SLB( cir LAN_INGRESS kbps ); > > > # class ( <> ) if SLB_ok( $policer ); > > > # drop if 1; > > > # } > > > > > > egress { > > > class ( <$ppp> ) if meta_nfmark == 0x7; > > > > > > class ( <$high> ) if ip_proto == IPPROTO_ICMP || > > >...