TCP Vegas makes QoS unnecessary?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, ... 13, 14, 15  Next
Author Message
colinnwn
DD-WRT User


Joined: 22 Feb 2008
Posts: 114
Location: Dallas, TX

PostPosted: Thu Apr 17, 2008 3:26    Post subject: Reply with quote
I *think* TCP congestion avoidance algorithms will only be enforced on packets routed across the LAN-WAN link. So this should apply to client only configurations but not client bridged. It would apply to repeater only, but not repeater bridged.
_________________
The Fleet
WRT-54GL v1.1 DD-WRT v24 sp1 serving multi SSID WLAN, WRT-54G v6 DD-WRT v24 sp1 Micro wireless bridged
WRT-54G v5 DD-WRT v24 sp1 Micro, WRT-54G v6 DD-WRT v24 sp1 Micro
Sponsor
SEA
DD-WRT Novice


Joined: 22 Sep 2007
Posts: 20

PostPosted: Fri Apr 18, 2008 17:35    Post subject: Reply with quote
Did anybody figure out if this algorith works file along with qos enabled?
Or if it enough for voip without qos? I mean if somebody else tryed it?
yorugua
DD-WRT User


Joined: 01 Nov 2007
Posts: 114

PostPosted: Sat Apr 19, 2008 2:12    Post subject: Re: TCP Vegas makes QoS unnecessary? Reply with quote
p00nka wrote:
I have been struggling with my Cable Modem internet connection to minimize packet loss & packet delay when uploading at full, uncapped speed.

Up until now, I had been using QoS to cap my upload, as the docs say, to 90% or so of my maximum upload. This requires me to accurately determine what my maximum upload rate is, and thanks to comcast & speedboost, this varies quite a lot.

Then I discovered TCP Vegas congestion control. According to wikipedia, TCP Vegas tunes the network performance based on packet delay instead of packet loss. Sweet! So I disabled QoS, enabled tcp_vegas, and played with it a bit. These options in the firewall commands have made all of my packet delay problems disappear! I see ~50ms pings while uploading even after speedboost has worn off.

Code:
echo 0 > /proc/sys/net/ipv4/tcp_westwood
echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha
echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta


Anyone else wanna give it a try and see if it works for you as well? From what I can tell, it plays very well with cable modems & speedboost.


Hi there!

this is on V23SP1:

proc/sys/net/ipv4 # cat tcp_westwood
1
/proc/sys/net/ipv4 # cat tcp_vegas_alpha
2
/proc/sys/net/ipv4 # cat tcp_vegas_beta
6
/proc/sys/net/ipv4 # cat tcp_vegas_cong_avoid
0
/proc/sys/net/ipv4 # cat tcp_vegas_gamma
2
/proc/sys/net/ipv4 #

so, maybe it works there too! I'll try now. I have to do an update of my PS3.
yorugua
DD-WRT User


Joined: 01 Nov 2007
Posts: 114

PostPosted: Sat Apr 19, 2008 12:36    Post subject: Re: TCP Vegas makes QoS unnecessary? Reply with quote
yorugua wrote:
p00nka wrote:
I have been struggling with my Cable Modem internet connection to minimize packet loss & packet delay when uploading at full, uncapped speed.

Up until now, I had been using QoS to cap my upload, as the docs say, to 90% or so of my maximum upload. This requires me to accurately determine what my maximum upload rate is, and thanks to comcast & speedboost, this varies quite a lot.

Then I discovered TCP Vegas congestion control. According to wikipedia, TCP Vegas tunes the network performance based on packet delay instead of packet loss. Sweet! So I disabled QoS, enabled tcp_vegas, and played with it a bit. These options in the firewall commands have made all of my packet delay problems disappear! I see ~50ms pings while uploading even after speedboost has worn off.

Code:
echo 0 > /proc/sys/net/ipv4/tcp_westwood
echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha
echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta


Anyone else wanna give it a try and see if it works for you as well? From what I can tell, it plays very well with cable modems & speedboost.


Hi there!

this is on V23SP1:

proc/sys/net/ipv4 # cat tcp_westwood
1
/proc/sys/net/ipv4 # cat tcp_vegas_alpha
2
/proc/sys/net/ipv4 # cat tcp_vegas_beta
6
/proc/sys/net/ipv4 # cat tcp_vegas_cong_avoid
0
/proc/sys/net/ipv4 # cat tcp_vegas_gamma
2
/proc/sys/net/ipv4 #

so, maybe it works there too! I'll try now. I have to do an update of my PS3.


ok, the update went smooth. I have a very small bandwidth to the Internet (ADSL 1.5mbit/128k, costs about U$S 60 a month here in Montevideo, Uruguay...). I also started azureus while updating the PS3, and azureus took its own update in the meantime. Browsing the net was smooth. I tried doing a ping to a nearest site, and it did not have much delays I have seen other times. So, nothing very "conclusive", but let's leave it on just in case Smile maybe I just imagined the whole thing Smile Technically, I don't know if the vegas stuff is present in that v23sp1 release
Christopher
DD-WRT Novice


Joined: 29 Jan 2007
Posts: 18
Location: Birmingham, UK

PostPosted: Mon Apr 21, 2008 1:54    Post subject: Reply with quote
Using RC6, implemented this and it *seems* like it might be making a difference - internet connection feels slightly snappier, pings slightly lower when saturating the upload... Again though, this might be snake oil. Enabling/disabling QoS has a somewhat unpredictable effect - sometimes lagging the whole router out requiring a failover, sometimes apparently speeding up the connection... Too unpredictable though, so it's disabled for the moment.

(Incidentally, I'm using HFSC but I hear arguments for and against HTB, and I have my own opinions) - which is best to use in conjunction with TCP Vegas if prioritisation of time-sensitive traffic is the goal without undue deterioration in quality of other bulk traffic?)


Thanks to the OP for pointing this out though, I would've never even have dreamed of trying something like this out if I hadn't been made aware of it!

_________________
yum, opensource routing
olmari
DD-WRT Guru


Joined: 24 Oct 2006
Posts: 1447
Location: Finland

PostPosted: Sun May 11, 2008 1:57    Post subject: Reply with quote
Hmm... Just noticed that there are no Vegas in DD-WRT x86 but there are in broadcom build.. :-/
fredmorton
DD-WRT Novice


Joined: 13 May 2008
Posts: 2

PostPosted: Tue May 13, 2008 3:25    Post subject: Reply with quote
Can anyone explain some of the details of these settings?

For example:

Code:

echo 0 > /proc/sys/net/ipv4/tcp_westwood
echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha
echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta


What is the purpose of the values? From what I have been able to gather so far, they appear to be weightings for the methods. Is this correct?

I haven't found any relevant documentation or information that explains this, short of reading through the papers on the technique. Thanks.
FlyingHorse
DD-WRT Novice


Joined: 18 Jul 2006
Posts: 5
Location: 33° 59' 42.8" N, 84° 09' 03.5" W @ 1100ft

PostPosted: Tue May 13, 2008 3:40    Post subject: Reply with quote
fredmorton wrote:
Can anyone explain some of the details of these settings?


Google is your friend.
try "tcp vegas linux" first link:
http://neal.nu/uw/linux-vegas/

HTH

_________________
Best regards,
FlyingHorse
fredmorton
DD-WRT Novice


Joined: 13 May 2008
Posts: 2

PostPosted: Tue May 13, 2008 5:07    Post subject: Reply with quote
Ah, "linux" was the magic word. Thanks for the help, thats what I was looking for.
Deben_69
DD-WRT User


Joined: 12 Jan 2008
Posts: 56

PostPosted: Tue May 13, 2008 14:35    Post subject: ... Reply with quote
Is TCP_Vegas included in the micro version of DD-WRT for broadcom ?
Smile

_________________
WRT54G-TM 1.0 = wl0_corerev=9 >> w/ DD-WRT v24-SP2 MEGA ! (latest-svn) as Main AP &

WRT54G v8.0 = wl0_corerev=13 >> w/ DD-WRT v24-SP2 Micro-Plus (latest-svn) as R.B.
_________________________________
ǝǝdıʎ uʍop ǝpısdn ɯı
cyberde
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1488
Location: the Netherlands

PostPosted: Tue May 13, 2008 14:47    Post subject: Reply with quote
Once enabled, does it still use the settings chosen in the QoS Gui?
_________________
Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N

Donater
Deben_69
DD-WRT User


Joined: 12 Jan 2008
Posts: 56

PostPosted: Wed May 14, 2008 14:29    Post subject: Re: ... Reply with quote
Deben_69 wrote:
Is TCP_Vegas included in the micro version of DD-WRT for broadcom ?
Smile


I tried inserting in firewall command (with and without using QoS):
echo 0 > /proc/sys/net/ipv4/tcp_westwood
echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha
echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta

but apparently TCP_Vegas is Not included in the micro version of DD-WRT !
Sad

_________________
WRT54G-TM 1.0 = wl0_corerev=9 >> w/ DD-WRT v24-SP2 MEGA ! (latest-svn) as Main AP &

WRT54G v8.0 = wl0_corerev=13 >> w/ DD-WRT v24-SP2 Micro-Plus (latest-svn) as R.B.
_________________________________
ǝǝdıʎ uʍop ǝpısdn ɯı
ro-maniak
DD-WRT User


Joined: 07 Jun 2006
Posts: 367

PostPosted: Thu May 15, 2008 21:25    Post subject: Reply with quote
Hmm...... Eko said "interesting"... any more comments yet, Eko??? Very Happy

Also, could anyone comment on how we may see whether the algorhythm is actually in use by the router? Will there be a new process runing? Any other "hard" way to check other than the "soft" feeling of your connection?

Any news on whether or not this goed on micro?

_________________
If you use DD-WRT, you HAVE to make a donation! See this topic too: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=228
cyberde
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1488
Location: the Netherlands

PostPosted: Mon Jun 02, 2008 9:41    Post subject: Reply with quote
cyberde wrote:
Once enabled, does it still use the settings chosen in the QoS Gui?

_________________
Firmware: DD-WRT v24-sp2 (latest available) mega
WRT320N

Donater
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11564
Location: Wherever the wind blows- North America

PostPosted: Mon Jun 02, 2008 11:10    Post subject: Reply with quote
Yes.

redhawk

_________________
The only stupid question....is the unasked one.
Goto page Previous  1, 2, 3, ... 13, 14, 15  Next Display posts from previous:    Page 2 of 15
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum