+

Cookies on the Business Insider India website

Business Insider India has updated its Privacy and Cookie policy. We use cookies to ensure that we give you the better experience on our website. If you continue without changing your settings, we\'ll assume that you are happy to receive all cookies on the Business Insider India website. However, you can change your cookie setting at any time by clicking on our Cookie Policy at any time. You can also see our Privacy Policy.

Close
HomeQuizzoneWhatsappShare Flash Reads
 

Facebook has a clever way to make sure its apps work on crummy Internet connections

Mar 24, 2015, 00:19 IST

Facebook has made it a major priority to make sure people in the developing world can get online, as Mark Zuckerberg told a bored crowd recently.

Advertisement

But from Facebook's posh offices in Northern California, smack-dab in the center of Silicon Valley, it's easy to forget that not everybody has access to their kinds of high-speed, high-availability Internet connections.

Which is why at one of its latest world-famous hackathons, Facebook engineers built a system called the Augmented Traffic Control (ATC), a tool to help them figure out how their apps will work under the worst of network conditions and make them better for everybody, everywhere, whether or not they have access to 4G LTE or WiFi.

"We specifically simulated the most common network connectivities in countries such as Brazil, India, Indonesia, Kenya, Nigeria, and the Philippines," writes the Facebook team in a blog post.

In practice, it lets Facebook engineers see how the app performs in low-connection areas. For instance, if you've ever tried to send a Facebook message from a subway tunnel, you may have noticed how the app gives up on trying to deliver the message after a few tries.

Advertisement

Facebook engineers work hard to optimize exactly long the app tries before giving up - in some countries, a signal may not be reliable enough the first time. The same principle goes for other stuff, too, like the maximum size of a picture file and the precise speed at which a slow connection makes an app unusable.

It's just stuff that's good to know if you want your app to be used by a broad range of people.

The inspiration for the ATC, writes the Facebook engineering team, came from a hacker convention in 2013 where some enterprising attendees used outdated phone hardware to make a totally private cellular network that only existed for as long as the event lasted.

So inspired, Facebook engineers decided to make private networks for testing that could be sped up or slowed down to test in a variety of conditions - the ATC.

The first step was building a private 2G data network that would let users make voice calls and send text messages, but it was hard for the Facebook team to find phones that would work with the cobbled-together network they were building.

Advertisement

Instead, the team built a software simulator into a WiFi network so that any Facebook engineer on the company's campus could purposely throttle their connection to pretend that they're accessing the network from 2G, Edge, 3G, and LTE networks.

The other cool part is that Facebook has released the ATC under open source as of today, which means anybody can use and build on its tools for measuring app performance under worse network conditions. It's another arrow in the quiver for those trying to get the rest of the world online.

NOW WATCH: Zuckerberg: Why I Stayed Facebook CEO Even Though Many Thought I Should Quit

Please enable Javascript to watch this video
You are subscribed to notifications!
Looks like you've blocked notifications!
Next Article