Using Linux To Make a Slow, Awful WAN Connection 110
Julie188 writes "This is a brilliant little Linux trick from Windows fanboy Tyson Kopczynski. He wanted to test a new Windows 7 feature called Branch Cache, which caches remote data on the local machine to reduce traffic on a stressed out WAN connection. But how to fake a crappy WAN? Linux. 'The command that I executed (tc) made use of Linux Traffic Control (a kernel thing) which allows me to easily interject 100ms latency on eth1. Boff, Bonk, Pow, Plop, Kapow, swa-a-p, whamm, zzzzzwap, bam ... instant WAN crappiness,' he writes."
Lol. (Score:2, Funny)
Re:Lol. (Score:5, Funny)
Linux, 'cause even Windows techs need real tools sometimes.
Re:Lol. (Score:5, Funny)
Dear lord if you're going to troll... at least get the grammar right:
Linux, 'cause even Windows techs can be real tools sometimes
Re: (Score:2)
You realize that was probably the real troll hidden within the more obvious Wintroll.
Re: (Score:2)
You realize that was probably the real troll hidden within the more obvious Wintroll.
You realize he's still a moron.
Re: (Score:1, Informative)
Let just say its if you follow the networking security setting from MS, you will not have this problem
Re: (Score:1, Informative)
Obviously the moderator who gave this an offtopic rating didn't read the fucking article. Its a direct quote.
What a maroon!
Re: (Score:2)
Windows has tools to do that. We used one when I was testing Xbox 360 Live games for MS that ran on Windows 2000 over ICS, and could inject any amount of latency or packet-loss you wanted.
This is just some guy going with "what he knows" instead of bothering to look for another solution. To suggest it's some kind of deficiency with Windows is stupid.
Re: (Score:2)
This windows tool is free and the source is available?
ICS is not free last I checked.
Re: (Score:2)
I really don't know, I only used it when I worked at Microsoft, and obviously when you work for them the licensing isn't that big a deal. I'm nearly 100% sure it was, at the very least, part of the Xbox 360 development kits, which means it could also be a standard component of Visual Studio. But I really don't know.
Also, who cares if the source is available as long as it works?
Re: (Score:2)
For when it does not work, so you can fix it.
Or for when MS or whoever stops supporting it.
Re: (Score:1)
Re: (Score:2)
You could always hang out at http://www.neowin.net/ [neowin.net] if you don't like it. ;)
so.... (Score:5, Funny)
Linux has to be forced to degrade network performance. Windows does it automatically.
Did MS ever fix that 10 TCP/IP connection limit?
Re:so.... (Score:5, Funny)
Did MS ever fix that 10 TCP/IP connection limit?
What? So if I open a tenth browser tab I won't be abl
Re:so.... (Score:5, Funny)
Re: (Score:3, Interesting)
I think the still haven't fixed the thing where Vista is limited [technet.com] to 100mbps if you are also playing audio [slashdot.org].
They should have stuck with the BSD network stack. As many bugs as they inserted into it to make it vulnerable, it still would pass traffic at the full data rate.
Re: (Score:3, Interesting)
I've found when transferring files across my local network, if I have any audio applications open I can't get more than 28-30 Mbps out of my wireless. If I close the audio application, I can often get over 40 Mbps.
Re: (Score:2, Informative)
No, XP, Vista, Win7 all have the limit, but I'm not so sure about Server versions.
They don't consider it a "flaw", as they boast it as malware limiting, and under most situations, it's irrelevant because 10 new connections a second is about 5 times more than most applications need. Excluding P2P, and a few Games.
Event ID: 4226 [microsoft.com]
However, they haven't made it any harder to bypass, Hex editing, or one of a few automated versions out there for XP, Vista and Win7 [google.com].
Re: (Score:2)
they boast it as malware limiting
That's like a car's windows not being able to close fully and the manufacturer saying "it's a good thing too, because the air conditioning sucks!"
Re: (Score:2)
First off, how many incomplete outbound TCP-IP connections do you really need to have open inside of one second?
Windows XP, Vista, and Windows 7 are all DESKTOP OS, and the stated goal is to limit the spread of certain types of malware...
If you read the article referred to, the excessive outbound connection attempts are not dropped, they are delayed to maintain a manageable flow of information.
If I were to run a port scanner against a /24 subnet, that would mean it would take at least 2.6 seconds, since it
Re: (Score:2)
First off, how many incomplete outbound TCP-IP connections do you really need to have open inside of one second?
Eleven? Maybe twelve? I don't know, and I'm pretty sure Microsoft doesn't know either, so why are they deciding for me?
Windows XP, Vista, and Windows 7 are all DESKTOP OS
Oh, so that's a good reason to limit their networking potential? Every other "DESKTOP OS" can do more than 10.
and the stated goal is to limit the spread of certain types of malware...
Wow, security through....what, sloth? That's a new one on me.
Must it be able to spew all 256 connection requests instantly?
If that's what I want it to do, why shouldn't it?
A little research leads me to the conclusion that this is a meaningful effort to have a positive impact on the spread of malware on Windows XP, Vista, and Windows 7 desktops.
Perhaps a little more research is in order then. Not only does it not seem to be effective as stopping the spread of Windows malware, but not having this limit hasn't s
Seems like a lot of work (Score:5, Funny)
Why not just use a Vista box and play an MP3?
Re: (Score:1, Funny)
Because that would take a good 4 or 5 hours to install.
But I guess MS would call that a strength of Vista: It takes hours to setup before it can fail while you can make Linux fail right away!
Re: (Score:2, Informative)
Re: (Score:2)
I believe the skipping is a limitation with X windows and not the Linux kernel. When you click to drag, the process that spawned the window is "paused" until you let go of it. This prevents X windows from going crazy trying to redraw the windows while moving which could cause problems. At least that what I read somewhere.
Re: (Score:2)
Re: (Score:2)
I've seen this behaviour too, on a board with a craptastic Via Unichrome Pro IGP.
I suspect something locks down the CPU while screen redrawing is occuring.
Dude.. Is anybody here whining about W98? (Score:1, Insightful)
Re: (Score:1)
You wanted BeOS . . .
Re:Seems like a lot of work (Score:5, Funny)
my Windows NT 4.0 workstation box running on a Pentium 166Mhz machine would never skip playing an MP3 no matter what I threw at it.
Try throwing bricks.
Re: (Score:1)
my Windows NT 4.0 workstation box running on a Pentium 166Mhz machine would never skip playing an MP3 no matter what I threw at it.
Try out the windows...
Re: (Score:2)
Yeah, winamp really didn't stop for anything back in those days. On my win9x-system it would happily play through some bluescreens as well.
Re: (Score:1)
Re: (Score:2)
Winamp runs in the "high" priority class, which meant that few things could interupt it. Despite this being something that many people would frown upon, it actually worked pretty well. You should be able to do basically the same thing in Linux on older hardware.
Goal? (Score:2, Insightful)
Re:Goal? (Score:5, Informative)
This seems to be valuable in situations where you are developing an application that will be accessing a database behind a dsl firewall. It would be nice to be able to profile the performance on your local network, instead of having it run too slowly to be used in the field. This happened to me once, and I fixed the problem by using a subselect, instead of multiple sql commands, but this wasn't readily obvious as the library was hiding the details of the process, and the speed of the local network compensated for the ineffiency(sp) of the code.
"inefficiency" (Score:2)
compensated for the ineffiency(sp)
inefficiency, I believe. HTH.
Re: (Score:2)
Thanks! :) I was too busy to look for the correct spelling. :)
Re: (Score:1)
What is the point of doing this?
Actually, I was thinking of adding bandwidth throttling to certain parts of a subnet. This info is exacly what you need when you don't know where to start (for me at least).
Shit wifi performace is a standard Linux 'feature'
Com on now, switch distro's. How long did you research? Oh wait, your friend said "here, this is the distro for you..."? Try http://www.pclinuxos.com/ [pclinuxos.com], or you could just accept that the US government has outlawed the OEM's of wi-fi from open sourcing the drivers. (some clueless dumbshit thought it would keep hackers from destroyi
Re: (Score:1)
Sure it is interesting. Lots of times you can't adequately simulate 'real world conditions' in an office LAN or even with consumer grade connectivity.
Example: At my job we operate a work-at-home business that transmits essentially a voip phone call from various locations of a certain restaurant chain to the worker's home over two dsl lines, but without the luxury of being able to 'redial'. The only DSL we can actually get in our office is too close to our datacenter (under 5 hops) to adequately simulate
Re: (Score:2)
Re: (Score:1)
Re: (Score:2, Interesting)
I just went through a similiar exercise at work, to determine if TCP was a good enough protocol for a slow point to point wireless connection with a high bit error rate.
We ended up using DummyNet on FreeBSD, mostly because we happened to have a high-end FreeBSD box handy...
Re: (Score:1)
This really is a something that has been around for a long time. One of the most interesting uses I have found for it is; simulating the effects of satellite Wan connections. Most of these links have about 600ms of end-to-end latency and without something like this simple tc command it is difficult to simulate this without actually hooking up to a real satellite connection.
Other uses; I once bandwidth limited one of my old roommates. Every week I would shave a little bit more bandwidth off of his connect
Re: (Score:1)
Re: (Score:2)
I tried playing an online linux game called Daimonin. It is kind of like a multiplayer of the old Ultima's. AFAIK, it still suffers from a serious problem, in that it doesn't do any client side prediction, and so there is severe latency between every move and every action (about half a second, which makes the game too painful to play). I tried to fix it, and started by attempting to introduce some lag on my local connection, but didn't find a way to do it.
I have since discovered several methods of making a
Re: (Score:2)
``What is the point of doing this?''
What is the point of simulating a slow, lossy network? Why, figuring out how your setup would behave if it were in a real slow, lossy network, of course!
I use tricks like this quite frequently when developing network software and network protocols. Especially when I'm working on my forward error correction protocol, because that is _intended_ for slow, lossy networks. Alas, my Ethernet is very fast and very reliable. ;-)
Re: (Score:2)
Re: (Score:2)
At my wife's company, most employees have Windows XP laptops and can connect to the file server at work using openVPN. Even though latency is only 40 ms, Windows XP is incredibly slow at accessing the file server. Even simple operations such as getting a directory listing can take several seconds. Opening a small Word document takes over 30 seconds.
If Windows 7 has a feature that speeds up this access, it's going to be of great interest to many people. Of course, if Microsoft fixed the poor performance of C
The truth is.. (Score:1)
that Linux is awesome for research!
so (Score:4, Insightful)
how did that windows caching stuff he was testing out perform? or is this article just a synopsis of the man page for a common command .... ?
Followup coming... (Score:3, Informative)
Author of TFA said his original intent was to highlight using Linux to simulate network crapfulness, but enough folks have asked your question that he's planning a followup with the actual caching results.
SCOX(Q) DELENDA EST!!
Are they trying to say something about GPRS? (Score:1)
I love how the previous story was this one:
http://mobile.slashdot.org/article.pl?sid=09/04/09/220244 [slashdot.org]
Re: (Score:2)
WANem would have been better (Score:2)
Re: (Score:2)
WANem is a FANTASTIC product.
I use it heavily at work for generating latency into our net applications to see how they might behave across really shitty links.
It's great injecting out of sequence and randomly ordered packets at the click of a button =)
-- Dave
Excellent tool for testing (Score:5, Insightful)
Such capability is very useful to network folks to predict application behavior and best management approaches in various environments. We used FreeBSD for that purpose, but the effect was the same. We injected 350ms latency in each direction, and presto - satellite communication. That is enough to cripple TCP connectivity through a sizable pipe (latency will preclude the flow from taking entire pipe). By testing various acceleration methodologies, you can see first hand which one will allow you to fully utilize the bandwidth you are paying for, all in the comfort of your lab.
Re: (Score:1)
Re: (Score:1)
Such capability is very useful to network folks to predict application behavior and best management approaches in various environments. We used FreeBSD for that purpose, but the effect was the same. We injected 350ms latency in each direction, and presto - satellite communication. That is enough to cripple TCP connectivity through a sizable pipe (latency will preclude the flow from taking entire pipe). By testing various acceleration methodologies, you can see first hand which one will allow you to fully utilize the bandwidth you are paying for, all in the comfort of your lab.
Even better, with dummynet on FreeBSD, you can add loss to the equation (http://www.cs.unc.edu/~jeffay/dirt/FAQ/comp249-001-F99/dummynet.html [unc.edu]) to simulate a dirty satellite link (such as one in need of a re-peak). Good times...
Re: (Score:2)
Please read my original post again. I quote: "in each direction".
That's nothing... (Score:2)
Re: (Score:2)
Re: (Score:3, Funny)
I like how you felt the need to provide a wikipedia link, just in case we wouldn't know what that was.
Now if you'll excuse me, I think I hear some kids on my lawn.
Re: (Score:2)
Besides, when was the last time you saw an acoustic modem?
Re:That's nothing... (Score:4, Funny)
They were shocked when I introduced them to another tester who tested board games in the 1970's.
Oh wow, so before video games people used to play with pieces of lumber? :D
Re: (Score:2)
Maybe do a google search... (Score:1)
... and you might find out about NISTnet, which has been around for YEARS... NISTnet does the same thing as this, on Linux, and also includes a statistical latency delay model which simulates real world conditions.
Re: (Score:1)
Wish I knew about this earlier (Score:2)
At work we deal with satellite links in northern offices (100ms crappy? try 800ms... ), testing network apps and such it would be handy to have had this feature back when I did this sorta thing.
Good to file away in the back of my head for future reference.
used it (Score:1)
Wanem... (Score:2)
Try using Wanem http://wanem.sourceforge.net/ [sourceforge.net] You can even download it as a vmware virtual appliance.
Quality reporting (Score:1, Flamebait)
this is the kind of quality stories i've come to expect from kdawson/timothy.
and you wonder why we all choke with laughter when you expect to be considered journalists.
Re: (Score:2)
and you wonder why we all choke with laughter when you expect to be considered journalists.
Have you ever looked at the quality of regular journalists? If kdawson/timothy make an error, it is quickly pointed out by the readers. Traditional journalists? Same or worse error rate, no corrections.
Lanforge (Score:2)
Though not free (there is a trial), I played around with an appliance with a program called Lanforge installed. It's pretty sophisticated. You can setup a number of different "errors" (packet loss, jitter, delay, etc) and it can cycle between them - never constantly the same. It runs on Linux and Windows for sure, but I'm unsure about other OS's. It will also "learn" link statistics between two particular nodes and save that configuration for testing.
Kind of neat, but I'm unsure about how much license costs
However, he is a *spoiled* Windows fanboy (Score:3, Funny)
Is there nothing Linux can't do ... (Score:1)
There is also dummynet for the BSD based systems (Score:1)
http://www.linux.com/feature/46616 [linux.com]
BSD systems of course include OS X http://www.afp548.com/article.php?story=20060214081244545 [afp548.com]
Netem and HTB (Score:1)
There are however few gotchas:
Can be used as a bridge too (Score:1)
Re: (Score:1)
I know this is a troll, but I remember hearing someone say their wireless card works better on a linux driver than a windows driver. Unfortunately, I can't remember where, so no link. Will post again if I remember.
Re:Shit wifi performace is a standard Linux 'featu (Score:5, Interesting)
*raises hand*
Intel 8945J integrated wireless on my laptop. Dual boot, Zenwalk Linux and XP MCE 2005. Until the most recent driver from Intel, the wireless card was *significantly* stabler under Linux. It's now just as stable under Windows (though I replaced by router with a new D-Link 802.11n router recently too), but the throughput at long range is still better in Linux.
As an example of the latter under Windows the useable range on my wlan caps out at about 25m. that's enough to cover my house, and much of the front lawn. Under Linux, I was able to connect to my network from the picnic table at the park across the street, about 100m. I was only getting 1mbit of throughput, probably less, but it was definitely getting better error correction and a more useable connection at that range than under Windows.
Re: (Score:2)
Re: (Score:3, Informative)
Intel 8945J integrated wireless on my laptop. Dual boot, Zenwalk Linux and XP MCE 2005. Until the most recent driver from Intel, the wireless card was *significantly* stabler under Linux.
Who needs wireless - I've got an Atherlos L1 gigabit ethernet controller on the motherboard - despite it being years old, all vista drivers for it are dogshit slow AND crash under any significant load. Under linux it works just fine. For the one vista system I must run I had to waste as slot on a PCIe gig-e card and use that instead.
Re: (Score:3, Interesting)
You know, I have noticed this with my laptop in my house. Under windows xp I get one bar of connection and its flaky at best. Granted this is on the other side of the house from the router and also on a different floor, so I am not surprised by that. But in the same location on the same laptop running an Ubuntu liveCD gets better signal and a much more reliable connection.
My guess is that the linux driver allows for a higher power setting, though over the years I've come to think that the Linux TCP/IP stack
Re: (Score:1)
Re: (Score:2)