Slashdot Mirror


Using Linux To Make a Slow, Awful WAN Connection

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."

22 of 110 comments (clear)

  1. Lol. by Anonymous Coward · · Score: 2, Funny

    Linux: Because sometimes you want slow and awful.

    1. Re:Lol. by ushering05401 · · Score: 5, Funny

      Linux, 'cause even Windows techs need real tools sometimes.

    2. Re:Lol. by im_thatoneguy · · Score: 4, 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

  2. so.... by Anonymous Coward · · 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?

    1. Re:so.... by Anonymous Coward · · 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

    2. Re:so.... by Anonymous Coward · · Score: 3, Interesting

      I think the still haven't fixed the thing where Vista is limited to 100mbps if you are also playing audio.

      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.

    3. Re:so.... by BattleApple · · Score: 5, Funny

      well at least it hit the submit button for you before crashing

    4. Re:so.... by digitalunity · · Score: 2, 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.

      --
      You can't legislate goodness. Let each to his own destiny, by will of his freely made choices.
  3. Seems like a lot of work by seebs · · Score: 4, Funny

    Why not just use a Vista box and play an MP3?

    --
    My blog: http://www.seebs.net/log/ --- My iPhone/iPad app: http://www.seebs.net/seebsfrac/
    1. Re:Seems like a lot of work by Tubal-Cain · · Score: 4, 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.

  4. Goal? by zombietangelo · · Score: 2, Insightful

    What is the point of doing this? Is this even of remote interest to anyone other than the author of the article? If there's a genuine reason for this to be important or at least intriguing, someone please speak...

    1. Re:Goal? by umeboshi · · Score: 4, 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.

    2. Re:Goal? by Orion · · 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...

  5. so by Idimmu+Xul · · Score: 3, 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 .... ?

    --
    The problem with slashdot is that most of its users were bullied and stuffed into lockers as kids!
  6. Excellent tool for testing by hwyhobo · · Score: 4, 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.

    --
    End anonymous moderation and posting on /.
  7. Re:Shit wifi performace is a standard Linux 'featu by KillerBob · · Score: 4, 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.

    --
    If you believe everything you read, you'd better not read. - Japanese proverb
  8. Re:That's nothing... by mazarin5 · · Score: 2, 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.

    --
    Fnord.
  9. Re:Shit wifi performace is a standard Linux 'featu by Jah-Wren+Ryel · · Score: 2, 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.

    --
    When information is power, privacy is freedom.
  10. Re:That's nothing... by mazarin5 · · Score: 3, 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

    --
    Fnord.
  11. Re:Shit wifi performace is a standard Linux 'featu by DarkProphet · · Score: 2, 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 seems a little speedier than Windows... I dunno if that is really the case, but I like to think so :-)

    --
    What could possibly hurt the security of the American people more than giving our own government the ability to hide its
  12. However, he is a *spoiled* Windows fanboy by K.+S.+Kyosuke · · Score: 2, Funny

    ...as demonstrated by "VIM rocks" in his text.

    --
    Ezekiel 23:20
  13. Followup coming... by rkhalloran · · Score: 2, 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!!