LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2005, 06:16 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
TOS in IP Header set to Minimize-Dealay - no difference


Hi I have a 1024/128 ADSL connection.
I wanted to test the TOS field in IP Header.

So I started aMule and let it use the whole upstream (16KB).

Then I did: #iptables -A OUTPUT -t mangle -p tcp --dport 22 -j TOS --set-tos Minimize-Dellay (like here: http://lartc.org/howto/lartc.cookboo...tive-prio.html)


Then I ssh to one of my server on the Internet. The delay was awful. I could use it...

So, It seams that the tos field of the iP header has no influence in prioritizing of my outgoing traffic !! Why? Did I miss something?


Thanks,
ddaas
 
Old 07-23-2005, 07:58 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

using tos to handle priority works fine... when your router is configured to use tos! You just marked the packets, but then you've got to set rules on the switches/routers etc to use the tos fields. The machines on which to enable the use of tos will depend on your network architecture...
 
Old 07-25-2005, 09:22 AM   #3
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
The standard pfifo_fast scheduler in Linux has 3 different bands. traffic in band 0 is transmitted first.

Doesn't linux put packets with ToS set to Minimum Delay in band 0?

That is how I understand from "LARTC 15.4 - Prioritizing interactive traffic". At least they only mark the packets.

Am I right?
 
Old 07-25-2005, 08:26 PM   #4
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
Setting the ToS bit only affects the immediate router. The upstream routers, such as the ones at your ISP, probably ignore it. A better plan would be to use an HTB qdisc, or a script like cbq.init to give a service such as SSH priority.

If that script doesn't help, I can give you an HTB setup that should help. Let me know if you need it.
 
Old 07-26-2005, 01:59 AM   #5
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
mpeg4codec, thanks !
I've learn something about QoS, HTB etc and I would make myself a htb script.

Do I have any reason to use CBQ instead of HTB? Or does CBQ have any advantage over HTB?
 
Old 07-26-2005, 07:32 PM   #6
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
CBQ allows for a more fine-grained access control mechanism than HTB, but most people wouldn't use that. It almost certainly won't give you much benefit. You should stick with HTB if you're going to write your own traffic shaping scripts, as it is worlds less complex.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
set the tos alaios Linux - Networking 4 02-08-2005 06:04 AM
Setting TOS field in IP header malik_mca Programming 1 10-13-2004 01:42 PM
Difference between including a header file and 'class' declaration in C++ scoTtkIm Programming 1 09-09-2004 04:23 AM
[makefile] Do header files need to be set targets? chuanyung Programming 2 03-11-2004 09:22 PM
How to set TOS bits on LINUX ethernet interface markraem Linux - Networking 3 02-26-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration