Slashdot Mirror


Facebook Engineering Tool Mimics Dodgy Network Connectivity

itwbennett writes: Facebook has released an open source application called Augmented Traffic Control that can simulate the connectivity of a cell phone accessing an app over a 2G, Edge, 3G, or LTE network. It can also simulate weak and erratic WiFi connections. The simulations can give engineers an estimate of how long it would take a user to download a file, for instance, given varying network connections. It can help engineers re-create problems that crop up only on very slow networks.

60 comments

  1. They should make a tool by easyTree · · Score: 4, Funny

    Which mimics massive and creepy privacy invasion - for profit.

    1. Re:They should make a tool by Anonymous Coward · · Score: 0

      They do, it's just not open source.

    2. Re:They should make a tool by Anonymous Coward · · Score: 0

      They should make a tool, which mimics massive and creepy privacy invasion - for profit.

      That tool already exists, and is funding this project and paying their bills.

      Are you looking for more openness?

    3. Re:They should make a tool by Anonymous Coward · · Score: 0

      They already did that. They outsourced it to Google. It failed. Badly.

    4. Re:They should make a tool by Anonymous Coward · · Score: 0

      its not exactly invasion when you open the door yourself and invite them in.

    5. Re: They should make a tool by Anonymous Coward · · Score: 0

      But it's not really a choice. Too many people use Facebook that it's such an inconvenience to not use it.

      Facebook has a monopoly on social networking. To encourage competition, they should be forced to be compatible with other social networks, so people could truly choose a social network based on its features and privacy, not just forced to use whatever their friends are using.

    6. Re: They should make a tool by thedonger · · Score: 3, Insightful

      But it's not really a choice. Too many people use Facebook that it's such an inconvenience to not use it.

      That may, in fact, be the dumbest thing written on the internet. At least so far today.

      --
      Help fight poverty: Punch a poor person.
    7. Re:They should make a tool by easyTree · · Score: 1

      More openness ("Here's more detail on all the immoral stuff we do") ? Nope.

    8. Re:They should make a tool by Anonymous Coward · · Score: 0

      Are you afraid of opening the box?

      Myself am i wondering what the cat is doing in its box, and how it eventually will look...

      en.wikipedia.org/wiki/Schrödinger's_cat (this cat)

    9. Re: They should make a tool by Anonymous Coward · · Score: 0

      Deciding to not have to explain to several friends on a daily basis why they can't use Facebook to get a hold of you is "dumb?"

    10. Re: They should make a tool by Anonymous Coward · · Score: 0

      But at least it's just the introductory sentence for a reasonable point, whereas your smug asshole comment is all we got.

    11. Re: They should make a tool by cmseagle · · Score: 1

      No, but it's dumb to say that you don't have a choice to do so.

    12. Re: They should make a tool by thedonger · · Score: 1

      But at least it's just the introductory sentence for a reasonable point, whereas your smug asshole comment is all we got.

      Except that "reasonable point" hinges upon the notion that Facebook isn't a choice.

      --
      Help fight poverty: Punch a poor person.
  2. ipfw/dummynet by cdrudge · · Score: 3, Insightful

    So they reinvented what was already available and much more flexible with ipfw/dummynet?

    1. Re:ipfw/dummynet by Anonymous Coward · · Score: 0

      OSX has developer tools which can do this at least for wi-fi too. Way to go with the fresh idea.

    2. Re:ipfw/dummynet by Willuz · · Score: 1

      This was also my first thought. However, a simpler tool is beneficial for phone app developers since many of them don't understand the technical differences between 3g/4g/satellite internet/cable/oversubscribed cable/etc. Each of these situations provides unique combinations of bandwidth, latency, and packet loss that require manual tuning from the command line in dummy net to simulate. The great majority of people, even many developers, just think in terms of "speed" and not the basic networking conditions that result in the end product of "speed". Being able to click a button for "over subscribed cable connection" is much easier for the average (below average maybe) phone app developer.

    3. Re:ipfw/dummynet by bill_mcgonigle · · Score: 3, Insightful

      So they reinvented what was already available and much more flexible with ipfw [freebsd.org]/dummynet [freebsd.org]?

      So they made a linux version of dummynet and released it as Open Source with deployment and configuration tools?

      Assholes.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    4. Re:ipfw/dummynet by Anonymous Coward · · Score: 0

      the point, imho, is not so much that they are assholes, but that this is not really that interesting and certainly not novel, as the description makes it sound.
      Plus, f**k facebook.

    5. Re:ipfw/dummynet by Anonymous Coward · · Score: 0

      It's a UI on top of the same netem tools we've all been using since 2.6-series Linux kernels came out. If you don't know netem and you're trying to understand how distributed apps perform over a WAN, then you should learn it and start building out your tests with it.

      http://www.linuxfoundation.org/collaborate/workgroups/networking/netem

      https://github.com/facebook/augmented-traffic-control/tree/master/atc/atcd

    6. Re:ipfw/dummynet by Anonymous Coward · · Score: 1

      While not novel, I literally was going to roll my own implementation of this sort of tool for the project I'm on, which doesn't have access to ipfw/dummynet so, yeah, I'd say this was helpful. But hey, pitchforks or whatever.

    7. Re:ipfw/dummynet by swb · · Score: 1

      This was my thinking.

      It's been ages since I've used ipfw as a WAN simulator, but my memory of it is normally around a fairly static kind of configuration of latencies and bandwidth.

      Simulating a cellular link that might hop between LTE and 1x kinds of data might be tough to do without some kind of engine which dynamically reprograms dummynets for vastly different bandwidth/latency scenarios to better simulate a node moving between 1x and LTE speeds. When I built a WAN simulator, I did to actually simulate known WAN link performance parameters.such as bandwidth and latency. I didn't have to worry about my link switching from multilink T1s to 512K frame relay to 56k dynamically.

      They could have also provided a ton of statistical profile data so that the simulations closely mirrored real-world throughput associated with various media, especially common variability patterns.

      A nice GUI front-end would be useful too, with actual throughput measured.

    8. Re: ipfw/dummynet by Anonymous Coward · · Score: 0

      There's the tc command on Linux, which, if I am not mistaken, leverages functionality that's been present on the Linux kernel for a while now.

    9. Re: ipfw/dummynet by pacman+on+prozac · · Score: 1

      It does yes, there is a live CD running it in knoppix on an ethernet bridge: WANbridge.

      Used it a few times, stick it on a dual-NIC PC in the middle of a link and it's great for simulating WAN links with minimal effort required.

  3. Simulation? by danbert8 · · Score: 4, Funny

    Just try it out using Comcast/Time Warner/AT&T/Verizon internet access! Pick your provider... They all suck.

    --
    Yes it's an anecdote! Were you expecting original research in a Slashdot comment?
    1. Re: Simulation? by Anonymous Coward · · Score: 0

      At least you can use facebook in your country. In mine it is blocked without vpn. So think of others before you complqin about "first world problem".

    2. Re: Simulation? by richy+freeway · · Score: 2

      You're not missing out on anything.

    3. Re: Simulation? by Anonymous Coward · · Score: 0

      no access to facebook?
      I think he was bragging.

    4. Re:Simulation? by mattventura · · Score: 1

      There's even an aptly-named tool for it!

    5. Re: Simulation? by Anonymous Coward · · Score: 0

      At least you can use facebook in your country. In mine it is blocked without vpn.

      ... one of the few good points of censorship.

  4. Just saying... by Anonymous Coward · · Score: 2, Funny

    Where I come from, we don't need to SIMULATE such connections................

  5. This is part of tc by Anonymous Coward · · Score: 0

    How is this news? This is a feature of the Linux tc program/package.

  6. Pages that get stuck by jones_supa · · Score: 2

    Web pages have always been a bit unreliable technology. Who doesn't occasionally meet a page that is almost loaded, but hangs there waiting for one element to be downloaded? At I meet a few times a week a page that gets "stuck". Then you refresh the page and it's fine. Why does this problem still exist? Can't the browser at least quickly try reloading that element?

    Imagine if desktop GUI apps were like that. That some GUI element would just randomly not show up. That would be unacceptable.

    1. Re:Pages that get stuck by Anonymous Coward · · Score: 0

      How many times have you met a page that loads all the third-party content before anything from the actual site you're trying to see?

    2. Re:Pages that get stuck by Anonymous Coward · · Score: 0

      Can't the browser at least quickly try reloading that element?

      At that point it already has try reloading. The only thing further it could do would be to wait some longer interval, say a minute or more, and try again. But by then most users has already moved on to something else...

  7. Facebook should have Tor built-in for China users by lazyBob · · Score: 1

    Big profits for circumventing shitty Great Firewall.

  8. Network Link Conditioner for OSX by JonTurner · · Score: 1

    For OSX, Apple provides a superb tool for simulating "bad" networks -- slow, dropped packets, high latency, or all the above -- called Network Link Conditioner
    more info at --> http://nshipster.com/network-l...

    1. Re:Network Link Conditioner for OSX by Anonymous Coward · · Score: 0

      Oh, is that what Apple's calling their flakey wifi adapters that randomly disconnect and drop packets? It's a "development feature!" Of course!

    2. Re:Network Link Conditioner for OSX by gnasher719 · · Score: 1

      Now if they could simulate the behaviour of a BT Infinity router... which will from time to time disconnect from the internet, and then for any http or https request, you get a "helpful" website that tells you what buttons to press on your router.

      It's not a big problem if you are for example expecting an xml or JSON response, because what you get is quite obviously not xml or JSON, but for requests that actually expect normal html, this is really awful. It means that whatever request you send, you must assume that you might receive a completely unrelated response.

  9. tc qdisc netem by Anonymous Coward · · Score: 0

    Linux has had this ability for ages.

  10. dial-up by Anonymous Coward · · Score: 0

    i routinely test sites over a dial-up connection. That reveals all sorts of issues.

  11. They are using ... by CaptainDork · · Score: 1

    ... Comcast as their beta carrier.

    --
    It little behooves the best of us to comment on the rest of us.
  12. Wait, there's already a tool for this by Anonymous Coward · · Score: 1

    There's already a tool for this, with a funny name: https://github.com/tylertreat/...

  13. So like netem? by drinkypoo · · Score: 1

    netem provides Network Emulation functionality for testing protocols by emulating the properties of wide area networks. The current version emulates variable delay, loss, duplication and re-ordering.

    Nice work, Facebook. NIH assholes.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    1. Re:So like netem? by Anonymous Coward · · Score: 0

      It's a idio....app developer friendly front-end for netem (latency, corruption, loss, reordering) + htb (bandwidth).

      Way to show your ignorance, fuckwad.

    2. Re:So like netem? by drinkypoo · · Score: 1

      Way to show your ignorance, fuckwad.

      OK, so I'm ignorant, and the summary is shit. And don't ask me to RTFA, because if it's about Facebook, I'm not going to.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  14. GenyMotion, Routers by jtara · · Score: 1

    GenyMotion (Android simulator) has this built-in, as does the iOS simulator. This could be done on an open-source router, as well, instead of using a computer behind the router. And, ironically - doesn't Facebook have some powerful Cisco routers that probably have this sort of thing built-in (or optional?)

  15. there have been network impairment tools forever by swschrad · · Score: 1

    at least in Internet years. we don't need one more that lays advertisements and not-friends on top of the test data.

    --
    if this is supposed to be a new economy, how come they still want my old fashioned money?
  16. This is what's aktually quite amazing about Facebo by Anonymous Coward · · Score: 0

    This is what's aktually quite amazing about Facebook. They may actually building a stupidly trivial think as a commercial web-centric service, but the effort they put into making their service available for their billions of users around the planet is quite amazing. For instance, most useres actually access FB over a feature phone and not a modern smartphone. In fact, the interfaces and apps for FB most people use are from around 2005. There's a huge effort that goes into UX and testing for 2nd-world and emerging markets, and this is actually where the magic happens - or has to happen - for companies like Facebook.

  17. Re:How much money are YOU making? by MachineShedFred · · Score: 2

    And that means what, exactly?

    Salary has no direct link with competence or usefulness.

    --
    Slashdot still doesnâ(TM)t support Unicode after it was added to the HTML standard in 1997.
  18. Reinventing the wheel by Anonymous Coward · · Score: 0

    I've used netem a lot in the past: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem

    It's trivial to use, the linked page has all the examples you can just cut and paste to get all common scenarios covered:
    - adding massive and/or random lag
    - reordering packets, or queuing and sending in bunches
    - packet loss
    - even packet corruption (even though I wouldn't call that common, but Facebook's tool has that too)

    The difference? Netem is available in every Linux system you've used in the last 15 years. This tool's install instructions are longer than the code and it needs at least 3 frameworks I haven't heard of before reading their readme.md. Wow!

    1. Re:Reinventing the wheel by Lamieur · · Score: 0

      Hmm, is there a way to take over ownership of a comment? I posted as AC by mistake.

  19. the tool has multiple bufferbloat-related issues by mtaht · · Score: 2

    I just gave up and filed a bug: https://github.com/facebook/au...

  20. Waste of time/money... by Anonymous Coward · · Score: 0

    All they needed to do was buy a Sprint phone...

  21. Already Done by Cola+Junkee · · Score: 1
    --

    f u cn rd ths, u r prbbly a lsy spllr.

  22. I hope they give this to google... by nomel · · Score: 1

    The play store is unusable with an erratic connection. Goes to blank screens if you're trying to open a link to an app from an external source, jumps back to unrelated screens if a problem happens when you're trying to access an apps page, has non-fucking-modal popups that you have to access in your notifications before you can continue using the app if there's a problem during download...ffs.

    The *only* app that i've seen handle crappy connections is iheart radio. It'll actually sit there and retry as the buffer depletes, and seamlessly continue. Most others seem to range from strange behavior to crash.

    1. Re:I hope they give this to google... by nomel · · Score: 1

      Oh, and google maps *is the best* with crappy internet. It'll just silently continue on, using some inertia based guidance that you can see plowing through stoplights, with no indication whatsoever, including it *not giving directions* or extremely delayed directions. No warning or tone or something, just silence. Maybe they fixed this in the last 6 months or so...I was tired of u-turns so switched to Waze.

  23. That's a waste of time by WebCowboy · · Score: 1

    Why explain anything? Anyone worth my time has my phone number and/or email. The only response required to queries about me and facebook can be "phone me" or "email me" or "text me".

    If anything, using facebook is more trouble than picking up a phone or tapping out an email or sms, and NSA dragnets notwithstanding less intrusive as well. So after signing up years ago and getting poked and having sheep thrown at me for a couple months my account has been virtually dormant since.