Networking Forums

Networking Forums > Computer Networking > Linux Networking > Distinguish nntp download from upload

Reply
Thread Tools Display Modes

Distinguish nntp download from upload

 
 
* Tong *
Guest
Posts: n/a

 
      03-06-2005, 09:16 PM
Hi,

Is there any way to distinguish nntp download from upload?

I'm using WonderShaper[1] to do traffic shaping. But apparently it is not
good enough to distinguish nntp download from upload. When I'm posting, my
nntp download speed will drop to around half of full speed.

Basically I'm using the following two rules to control nntp download &
upload:

iptables -t mangle -A MYSHAPER-OUT -p tcp --dport nntp -j MARK --set-mark 25 # newsgroup download, low prio
iptables -t mangle -A MYSHAPER-OUT -p tcp -m length --length :64 -j MARK --set-mark 21 # small packets (probably just ACKs)

I.e., I hope the nntp download request should be small enough to fall into
the class 21 category. But apparently it is not. Anybody knows a fix?

Thanks a lot!

PS,

[1] about Wonder Shaper:

The Wonder Shaper
http://lartc.org/wondershaper/

Wonder Shaper How To
http://ccfaq.valar.co.uk/modules.php...rticle&sid=209

Wonder Shaper QOS-init scripts
http://dolly.czi.cz/coyote/qos_init.asp?id=wonder


--
Tong (remove underscore(s) to reply)
*niX Power Tools Project: http://xpt.sourceforge.net/
- All free contribution & collection
 
Reply With Quote
 
 
 
 
Andrei Ivanov
Guest
Posts: n/a

 
      03-07-2005, 07:42 PM
* Tong * <(E-Mail Removed)> wrote:
> I.e., I hope the nntp download request should be small enough to fall into
> the class 21 category.


It is not safe to assume that all the packets sent from client to
NNTP server will be less than 64 bytes in size. One [client] can
retrieve USENET article from the server using

ARTICLE <message-id>

command, and the <message-id> alone may be longer than 64 characters.

--
andrei
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Utility to limit upload/download per IP morten Windows Networking 1 12-17-2007 12:41 AM
FTP upload goes down when download is using Tobias Manthei Linux Networking 1 12-26-2006 09:00 AM
Upload and Download Speeds Geoff Lane Home Networking 4 03-22-2005 11:13 PM
MN-820 slow download/upload BD Broadband Hardware 1 07-13-2004 04:01 AM
Wi-Fi Software Download upload The Wi-Fi Technology Forum Wireless Internet 0 09-05-2003 05:53 AM



1 2 3 4 5 6 7 8 9 10 11