News: This forum is now permanently frozen.
Pages: [1]
Topic: New to traffic shaping...  (Read 3961 times)
« on: June 11, 2007, 02:32:38 »
the_jaymz *
Posts: 5

Hi,
My connection delivers 8Mb/s down and 2 Mb/s up. My incoming bittorrent traffic is on port 5560, and outgoing is bound to port 9000. Can I use traffic shaping to allow bittorrent to use all available bandwidth, but give my wife's laptop priority (I'm trying to improve the Wife Approval Factor)?
Thanks!
« Reply #1 on: June 14, 2007, 21:22:14 »
the_jaymz *
Posts: 5

Ok, so no one wants to tell me how to do it...
Will someone at least tell me if what I have is right?
Code:
Pipes
No.  Bandwidth  Delay  PLR  Queue  Mask  Description 
1 8000 Kbit/s         Total Download
2 1500 Kbit/s         Total Upload

Queues
No.  Pipe  Weight  Mask  Description 
1 Total Download 99   Web Traffic
2 Total Download 1   Bittorrent
3 Total Upload 99   Web Traffic
4 Total Upload 1   Bittorrent
5 Total Download 80   SSH & SFTP
6 Total Upload 80   SSH & SFTP


Rules
If  Proto  Source  Destination Target Description 
WAN * * * Port: 80 (HTTP) Web Traffic
WAN * * * Port: 443 (HTTPS) Web Traffic
WAN * * * Port: 5560 Bittorrent
WAN * * * Port: 22 (SSH) SSH & SFTP

« Reply #2 on: June 14, 2007, 21:30:22 »
wideLoad *
Posts: 7

First off, make sure those pipes (the 8000 and the 1500) are legit.  You need to enter the "real" throughput of those, and not what your DSL/cable company says they are.  Use a speed test that is close to you on the internet ... it should be something like 7000 1800 or something prbly.

2nd, why don't u start with the magic shaper and tweak rules to your satisfaction instead of trying to write all the ones you need.  The magic shaper was built to do exactly what you're requesting ... keep p2p traffic at bay if they're higher priority traffic.

The magic shaper also gets way more hi tech than what you're doing because it gives priorities to small packets (your ssh stuff) as well as for tcp acks and what not which are obviously vital to speedy http and telnet style stuff.

One last note ... if u do go w/ the traffic shaper, it will ask you for your up/down pipe capacity.  You actually WILL want to enter the full #'s there, because it automatcially will deduct the "overhead" and put in legit #'s.  You still may want to tweak those once the magic shaper has installed the rules however, in accordance w/ whatever u found on the speed test.

Good luck

« Reply #3 on: June 18, 2007, 01:27:25 »
Dr-D *
Posts: 14

all is right except the rules (and you should change the queues description)
the rules will work on packages, not on connections, so you have to set a rule to catch upload traffic and another to catch download traffic for each port
Code:
Queues
No.  Pipe  Weight  Mask  Description 
1 Total Download 80   WebT down
2 Total Download 1   Bittorrent down
3 Total Upload 80   WebT up
4 Total Upload 1   Bittorrent up
5 Total Download 19   SSH & SFTP down
6 Total Upload 19   SSH & SFTP up

Rules
If  Proto  Source  Destination Target Description 
WAN * lan * Port: 80 (HTTP) WebT up
WAN * Port: 80 (HTTP) * lan WebT down
WAN * lan * Port: 443 (HTTPS) WebT up
WAN * Port: 443(HTTPS)* lan WebT down

WAN * lan * Port: 5560 Bittorrent up
WAN * Port: 5560 * lan Bittorrent down
WAN * lan + Port:9000 * * Bittorrent up
WAN * * * lan + Port: 9000 Bittorrent down


WAN * lan * Port: 22 (SSH) SSH & SFTP up
WAN * Port: 22 (SSH) * lan SSH & SFTP down




 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines