Displaying 20 results from an estimated 2000 matches similar to: "tc script stopped working"
2004 Mar 22
2
tcng TCP ACK match
Hello.
I have been trying to duplicate these u32 matching rules using TCNG, but
without much success:
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32\
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u16 0x0000 0xffc0 at 2 \
match u8 0x10 0xff at 33 \
flowid 1:10
Wondershaper 1.1a implements this and if I run it things seem to be shaped as
expected. But this TCNG
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 )
{
2002 Oct 10
2
tcng version 8z
... is on SourceForge, http://tcng.sourceforge.net/#src
Besides a bunch of bug fixes, this release also contains a
greatly improved version of the comtc utility that copies
comments from the tcng source to tcc''s "tc" output.
There are a few infrastructure changes to make comtc work
smoothly:
- tcc''s -E option is now called -Wexperror or -Wexppostopt,
respectively
2002 Oct 21
0
tcng version 9b
... is on SourceForge, http://tcng.sourceforge.net/#src
This one fixes a really stupid typo causing tcsim''s tc to pick up
HZ from the environment where it''s being run, not the simulation
environment, which confused most rate calculations.
And if_u32.c now only emits hashes that will actually be used,
which should make tcc''s tc output a little less ugly.
Complete list
2002 Sep 13
0
tcng version 8w
... is on SourceForge, http://tcng.sourceforge.net/#src
This one has the first steps towards getting non-IPv4 classification
right:
- I''ve added fields for skb meta-data (meta_protocol, etc.)
- if USE_META_PROTOCOL is #defined (tcc -D... or tcsim -Xc,-D...),
ip_hdr and ip6_hdr check the protocol number
- if_u32 generates distinct classifier branches for each protocol
- f_fw,
2004 May 09
0
tcng version 9m
... is on SourceForge:
http://tcng.sourceforge.net/dist/tcng-9m.tar.gz
md5sum 636d382f6db917b385e7a6f158136ca2
See also http://tcng.sourceforge.net/
This release contains the upgrade to 2.4.26, plus a few compatibility
changes.
There''s also a major bug that strangely went undetected until
recently, when Laurent Moutel reported that his classifiers behaved
unexpectedly: if testing
2004 Oct 23
0
error making htb example
Newbie here...
tcng version 10b
I''m just learning about htb and using tcng. I am trying to make the
example in
Martin A. Brown''s Traffic Control with tcng and HTB HOWTO v0.5
example 2
/*
* Simply commented example of a tcng traffic control file.
*
* Martin A. Brown <mabrown@securepipe.com>
*
* Example: Using class selection path.
*
* (If you are reading the
2004 Jan 26
2
I can''t get TCNG to compile!!!
Help! I can''t get TCNG to compile!!! It did this on 2 different machines!
Here are the errors:
--------------------------------------------
Kernel: 2.4.22
[root@localhost tcng]# uname -a
Linux localhost.localdomain 2.4.22-1.2149.nptl #1 Wed Jan 7 13:08:26 EST
#if KFULLVERSIONNUM >= 0x20416 /* gratuitous interface change in 2.4.22 :-(
*/
ERROR:
ake -f Makefile.unclean tcsim
make[2]:
2004 Apr 24
9
newbie: TC[NG] with (256kbit/s down and 768kbit/s up) on a router
Hi all,
this is really not really very easy to understand, or, to get in.
Well, I''ve the following configuration on the router box:
LAN
- interface: eth0
- network: 192.168.2.5/24
- bandwidth: 100Mbit/s
INET interface
- interface: ppp0
- network: .dynamic.ip./0
- bandwidth: DOWN=1536kbit/s and UP=256kbit/s
the LAN interface is to serve 6 other clients with internet and
2007 May 16
1
tcng + esfq
FYI,
i''ve just created a quick patch adding esfq (Enhanced Stochastic
Fairness queueing discipline) for tcng (Traffic Control Next
Generation).
Patch is located at http://devel.dob.sk/tcng+esfq.
Enjoy.
Sam
2006 Jan 04
0
tcng questions: TCP_ACK, ebtables
Hi all,
I have a couple of questions regarding tcng behavior.
First - I want to mark TCP_ACK packets as high priority, a common case. I
figured the tcp_ACK rule in fields4.tc would be enough but I''ve come
across Jason Boxman''s tutorial and he recommends using:
class( <$ack> )
if ip_len < 64 &&
ip_hl == 0x5 &&
(raw[33].b >> 4)
2002 Dec 31
3
[tcng] More complex example?
Hi
I''m completely stuck with the tcng language - I assume there must be
some way to arrange queues hierachically like
eth1
|
TBF
|
PRIO
/ \
class class
but my attempt (below) produces a "inferno.tc:8: qdisc "tbf" has no
classes near "prio"" when run through tcc.
dev eth1 {
egress {
tbf (rate 128kbps, burst 64kb,
2004 Jul 14
1
tcng/tc setup
Hi all,
Can someone please help with a tcng setup? I have played with tc and tcng in
the past, and now would like to get some serious rules in place. However, I
have a difficulty in setting them up.
My setup is as follows:
One machine working as a firewall:
eth0 is the interface connected to a 512K DSL line
eth1 is connected to a LAN
eth2 is connected to another LAN, a bit like a DMZ
eth1 and
2004 Aug 05
6
TC-ng questions/problems
Hi all,
We have 2 class C networks that are connected by a Linux router with the internet. We want to apply traffic control (bandwidth control). For that we wrote the tcc script below. We have 2 problems:
1. To establish a 2 megagit download we must actually set the value to 2500kbps. Is there a possible reason for that?
2. If we enable the WAN device we get very hight ping times (they change
2004 Apr 16
1
tcng and ip_len
I can''t seem to match packets less than 512 bytes:
class( <$bulk> )
if tcp_dport == 81 && !( ip_len & 0xfe00 )
;
or
if tcp_dport == 81 && ip_len < 512
Both rules match any packet I send to port 81, even when the total IP length
is much greater than 512 bytes:
class htb 2:4 parent 2:1 leaf 5: prio 1 rate 8000bps ceil 24000bps burst 6Kb
cburst 1839b
Sent
2004 Mar 24
1
is dynamic traffic shaping possible by tcng?
I am working on traffic shaping using the nextenso proxy platform(a product of
alcatel)on linux platform, I wish to do dynamic traffic shaping means on a
fly,
is that possible with TCNG??
With Warm Regards,
Aruna Baghel
"Gratitude can transform common days into thanksgivings, turn routine jobs
into
joy, and change ordinary opportunities into blessings."
2004 May 05
1
Re: [Fwd: Re: Simple HTB setup with tcng]
Thank you for your help.
It generates this script :
tc qdisc add dev eth0 handle 1:0 root htb default 2
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 75000bps ceil \
75000bps
tc class add dev eth0 parent 1:0 classid 1:2 htb rate 125000bps
tc filter add dev eth0 parent 1:0 protocol all prio 1 u32 match u32 \
0xa000001 0xffffffff at 12 classid 1:1
But I thought it was necessary to
2006 Jun 16
1
slackware 10.2 compilation
hello people and nice to meet you.
tasoss@starla:~/tcng$ ./configure
Reading configuration defaults from ./config
building tcsim: yes
Kernel source: /home/tasoss/linux-2.6.16.20
Kernel version: 2.6.16
iproute2 source: /home/tasoss/iproute2-2.6.16-060323
iproute2 version: 060323
Host byte order: little endian
tcng command: /home/tasoss/tcng/bin/tcng
YACC is:
2004 Jan 27
3
tncg and bandwidth limiting
I''m trying to do some very simple rate-shaping on an interface. I want to
limit my 100baseT interface to 7 megs both ingress and egress of the
interface. I''ve been hacking my way through the documentation and some
examples and I''ve come up with the following configuration for tcng that
seems to do what I want.
I''m curious if some of the other experts out
2005 Jul 07
1
HELP PLEASE BITTORRENT SHAPING (HTB)
Ok, earlier I post a message explaining my problem with HTB and layer7 (or
ipp2p), about not being able to shape the traffic. Well, actually this is
what''s happening, I''m marking the packets (right now, I''m using ipp2p as
Klaus adviced me to) with iptables, and my queue rules are made using tcng,
I''m using the HTB qdisc, and traffic is going to the HTB class