ipcop support

community support forum
It is currently Thu May 23, 2013 5:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
Unread postPosted: Thu Apr 22, 2010 3:57 am 
New User

Joined: Thu Jul 10, 2008 8:28 am
Posts: 57
Location: California Central Valley, USA
I am running IPCop 1.4.21 with Cop+ 3.02. I have a 4-channel nic setup. Our TV signal comes over the Internet on the ORANGE channel, but whenever someone is watching videos or downloading on BLUE channel (probably GREEN as well but less of an issue) the TV starts buffering like crazy. How can I limit BLUE so that ORANGE isn't effected and can run smoothly.

Thank you.


Top
 Profile  
 
Unread postPosted: Thu Apr 22, 2010 12:10 pm 
Site Moderator
User avatar

Joined: Thu Jul 24, 2003 8:21 am
Posts: 2353
Weizen has a neat script that simply works.
STF for "physical separation".
HTH
You're welcome.


Top
 Profile  
 
Unread postPosted: Sat Apr 24, 2010 4:35 am 
Site Moderator

Joined: Wed Apr 28, 2004 1:27 am
Posts: 6778
Location: Beaumont, TX, USA
Also covered on the mod wiki page.


Top
 Profile  
 
Unread postPosted: Fri Apr 30, 2010 11:52 pm 
Site Moderator
User avatar

Joined: Thu Jul 24, 2003 8:21 am
Posts: 2353
A while ago (circa 2007 ?) weizen wrote a neat script called Trafficlimit.
(I've been using it for years. Just keeps silently working without any bother.)
Trafficlimit is an uber simple and lightweight method for limiting traffic on different subnets, or managing the sharing of traffic between subnets.
Sure there's more complicated solutions for this, but many of us like to keep our IpCoppers lean 'n mean.
Pleases :
1. Could weizen point again to the link for this great tool. (My google couldn't find it, and my german is zilch.)
2. Could this tool and link be included on the wiki mods page.
TIA's


Top
 Profile  
 
Unread postPosted: Sat May 01, 2010 6:45 am 
Expert

Joined: Sat Sep 23, 2006 11:23 am
Posts: 2321
Location: LDK | Hessen | Germany
The wiki has a link: SimpleQoS.

Your German is not that important, the script itself is in 'English' :lol:

_________________
Image

-=[ If you want answers: provide lots of information, including tiny details! ]=-


Top
 Profile  
 
Unread postPosted: Sat May 01, 2010 7:08 am 
Site Moderator
User avatar

Joined: Thu Jul 24, 2003 8:21 am
Posts: 2353
weizen_42 wrote:
The wiki has a link: SimpleQoS.


I had no idea your tool had been re-badged.
Personally, I just remember it as /etc/rc.d/rc.trafficlimit

Much cheers
BG


Top
 Profile  
 
Unread postPosted: Wed May 05, 2010 3:19 am 
New User

Joined: Thu Feb 19, 2004 10:31 pm
Posts: 40
I am using the below commands without understanding what they do yet... It seems to work. Is it better than SimpleQos? I am wanting all incoming and outgoing VoIP traffic to get first priority.


http://www.howtoforge.com/voip_qos_traf ... 2_asterisk
Code:
tc qdisc add dev eth1 root handle 1: prio priomap 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 0
tc qdisc add dev eth1 parent 1:1 handle 10: sfq
tc qdisc add dev eth1 parent 1:2 handle 20: sfq
tc qdisc add dev eth1 parent 1:3 handle 30: sfq
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip dport 5060 0xffff flowid 1:1
tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip sport 5060 0xffff flowid 1:1


The stat command to watch your traffic go to different ques:
Code:
tc -s qdisc ls dev eth1


Top
 Profile  
 
Unread postPosted: Wed May 05, 2010 6:57 pm 
New User

Joined: Thu Feb 19, 2004 10:31 pm
Posts: 40
Update, the above did not work as well as I thought:

This works much better:
http://lartc.org/howto/lartc.cookbook.ultimate-tc.html

Code:
#Clear old settings
tc qdisc  del dev eth1 root
tc qdisc  del dev eth1 ingress

# Upload
tc qdisc  add dev eth1 root handle 1: htb default 20
tc class  add dev eth1 parent 1:   classid 1:1 htb rate 950kbit burst 6k
tc class  add dev eth1 parent 1:1  classid 1:10 htb rate 950kbit burst 6k prio 1
tc class  add dev eth1 parent 1:1  classid 1:20 htb rate 900kbit burst 6k prio 2
tc qdisc  add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc  add dev eth1 parent 1:20 handle 20: sfq perturb 10
tc filter add dev eth1 parent 1:0  protocol ip prio 10 u32 match ip protocol 1 0xff flowid 1:10
tc filter add dev eth1 parent 1:   protocol ip prio 10 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

# TOS Minimum Delay voip traffic to and from provider 1:10:
tc filter add dev eth1 parent 1:0  protocol ip prio 10 u32 match ip dst x.x.x.x flowid 1:10
tc filter add dev eth1 parent 1:0  protocol ip prio 10 u32 match ip src x.x.x.x flowid 1:10

#down
tc qdisc  add dev eth1 handle ffff: ingress
tc filter add dev eth1 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 20000kbit burst 30k drop flowid :1


Top
 Profile  
 
Unread postPosted: Thu May 06, 2010 1:01 am 
New User

Joined: Thu Feb 19, 2004 10:31 pm
Posts: 40
See this posts for updates:
viewtopic.php?f=7&t=14003


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group