Showing posts with label ping. Show all posts
Showing posts with label ping. Show all posts

Monday, June 13, 2011

Ping time from Cuba to the US

Ping is a simple utility program that comes with every Mac or Windows computer. Ping records the time it takes to send a data packet across the Internet and to receive an acknowledgement of receipt from the remote computer. A colleague in Cuba recently ran a ping test from his computer, which was on a dial-up link, to Google in California. The results were:
Pinging www.l.google.com [74.125.93.104] with 32 bytes of data:
Reply from 74.125.93.104: bytes=32 time=701ms
Reply from 74.125.93.104: bytes=32 time=751ms
Reply from 74.125.93.104: bytes=32 time=707ms
Reply from 74.125.93.104: bytes=32 time=683ms
His computer sent four 32-byte packets to the Google computer with the Internet protocol address 74.125.93.104. When the computer at Google received each packet, it sent back an acknowledgment, and the computer in Cuba recorded the time it took from sending the packet to receipt of the acknowledgement.

In this case, the first packet took 701 milliseconds, and the other three 751, 707, and 683 milliseconds respectively. The average of the four was 710 milliseconds.

Well, 710 milliseconds is only 7/10s of a second, which sounds pretty fast for a 5,100 mile round trip, but it is too slow to support many applications. For example, you would not be able to carry on a conversation using Skype. The length of the ping times and their variability (from 683 to 751 milliseconds) would make conversation impossible. Web surfing would also be very slow because modern Web pages do not come all at once -- they require many separate connections to get all the words, pictures, audio and video as well as behind-the-scenes links to computers that track your actions and insert ads.

The majority of the Ping time was due to the slow satellite connection between Cuba and the outside world. What about the time to reach another computer within Cuba? My Cuban colleague pinged a computer that was on the same ISP local area network as his:
Pinging ved-as-2.enet.cu [192.168.254.69] with 32 bytes of data:
Reply from 192.168.254.69: bytes=32 time=112ms
Reply from 192.168.254.69: bytes=32 time=126ms
Reply from 192.168.254.69: bytes=32 time=101ms
Reply from 192.168.254.69: bytes=32 time=103ms
The average time has been reduced to 110 milliseconds, but the variability remains high. This speed would support a Skype call and, since Cuban Web pages are on the average much simpler than elsewhere, Web surfing within Cuba would be much less frustrating than international surfing. However, the dial-up link to the ISP, coupled with relatively slow equipment in the ISP network, leaves speeds far short of those in many nations.

For example, I pinged Google from my home in Los Angeles:
Pinging www.l.google.com [74.125.224.84] with 32 data bytes:
Reply from 74.125.224.84: bytes=32 time=18ms
Reply from 74.125.224.84: bytes=32 time=17ms
Reply from 74.125.224.84: bytes=32 time=19ms
Reply from 74.125.224.84: bytes=32 time=17ms
The average time is 17 milliseconds and there is only 2 millisecond difference between the slowest and fastest transmission. This connection is fast enough for viewing complex Web pages and phone chats.

The bottom line is that since the Internet in Cuba is slower than the US, Cuban applications are less varied and sophisticated. (Don't let that go to your head if you are in the US because other nations have still higher speeds, enabling them to develop and deploy more sophisticated applications than we do. For more along those lines see these posts).

Will the situation change when the undersea cable between Cuba and Venezuela is operational? If your ISP or organization network is not connected to the cable nothing will change. Whether or not you can connect, is both a political and an economic question.

If you are allowed to connect through the cable, expect about 600 milliseconds to be cut out of that Ping time to Google. That will be good news, but, if you are connected using the current dial-up, ISDN or slow DSL infrastructure, you will still be significantly worse off than I am in Los Angeles.

Saturday, June 4, 2011

A conversation with a Cuban telecommunication engineer

I asked for input and test runs from people in Cuba in a recent post, and I've had an interesting email conversation with a telecommunication engineer who says he has never worked in that field. He asked me not to share his name or email address.

We talked about Internet access. He says only foreign people with permanent resident visas, foreign students, and business with foreign capital can get Internet accounts, and that those dial up accounts have all ports open.

Enterprises throughout the country can get DSL connections, but they are limited to Web (HTTP) applications. He has also heard rumors that pro-government bloggers get DSL connections.

He told me that Cubans are not allowed to connect to the Internet from their homes so they pay an illegal fee of 1.50 to 2.00 CUC per hour to buy time from foreign students and others who have dial-up accounts. (One CUC = US$1.08 and the average wage is 20 CUC per month).

It is legal to buy a WiFi card (if you can find one in stock) and connect at one of a few hotels in Havana or Varadero with WiFi connectivity. They charge 8 CUC per hour for access to a 128 kb/s link that is shared by all of the hotel users at the time. The second legal option is to go to a Cyber-Café or hotel which charges 2 CUC for 15 minutes of access to PC with "veeery slow" connectivity.

Education centers like universities and medical schools are connected by fiber. Within the organizations they have 100 mb/s LANs behind NATs. He recalls a time when the university he attended (I won't say which one) had only 512 kb/s connectivity for approximately 1,000 PCs. That was eventually stepped up to 2 mb/s.

He is on point-to-point Ethernet connection to enet.cu, and is able to trace the route from his dial-up connection to Google via a Newcom International satellite link. Average ping time to Google was 683 ms. Ping times to other machines at enet.cu averaged 110 ms.

He did not want to run many tests, because he feared surveillance by CuCERT. Like their counterparts in other nations, CuCERT is charged with responding to network security incidents, but he characterizes them as being like "cyber-cops, who can enter your house, pick up your HDs and walk away without previous notification."

(I tried to reach cucert.cu, but could not from the US -- not sure if it is blocked or down or both).

He gave me the IP address of a university server that was running network monitoring software. I could see graphs of traffic on the links to the university, the internal Ethernet LAN, temperature, and disk utilization on several servers. I could also reach the help desk, but resisted the urge to submit a help desk ticket request :-). You see a sample traffic graph above (click on it to enlarge it). The green line is incoming traffic and the blue outgoing. As you see, the 2 mb/s link is pretty well saturated -- surfing must be slow.

It feels cool to see the graphs, and I bet they would be upset to know that they were visible, but they are not of much practical value except to the network administrators at that university. If one could get similar statistics from all Cuban universities, one could begin to stitch together a picture of the backbone networks.

He also confirmed that bootleg satellite TV from the US is common and found in almost all parts of the country. People buy a satellite receiver from a local supplier who gets an account from the US. Some of those people sell service to their neighbors using coaxial cable, although he thinks that activity is decreasing after several antenna seizures. The service costs around 10 CUC per month, and the viewers cannot change channels themselves.

There are "muyyyy" few people with HughesNet Internet links, and they are heavily prosecuted and can go to jail if caught. He said WiFi is everywhere, and is mainly used to share music and videos and play games. He said the government is concerned about that, but I don't understand why since WiFi is local, and I doubt that they are concerned with copyright violation on the music and video :-).

We talked a bit about the Alan Gross case. He thinks the trial and sentence were for political reasons, and the government hopes to do a prisoner exchange. Gross got a long sentence, but a Cuban could get 3-5 years for having a satellite link to the Internet. He said there are some people with satellite connection who provide service to others using WiFi access points and repeaters and homemade antennae, but, as mentioned above, that is risky business.

If you are in Cuba, how does your experience compare to what I've just described?

Sunday, May 8, 2011

Network performance testing

I've been busy with teaching and a curriculum development project, and have neglected this blog. Sorry.

About a month ago, I tried a data gathering experiment. I created a simple survey on underground TV viewing in Cuba, hoping that Cubans would reply. Well, the experiment did not work -- a number of people started the survey, but only a couple completed and submitted it. I don't know if there was some sort of mistrust or they just had nothing to say.

I would still like to find ways of getting grass roots data on the Internet in Cuba from Cubans. For example, it would be interesting to get data on international network performance before and after the undersea cable is up and running. That could be done if people at different locations could run timing tests -- from simple pings and traceroutes to more elaborate tests like the Network Diagnostic Tool, which is available on many Internet servers (for example, this one at MIT).

In the mean time, here are a few ping tests run during the evening from the US to three Cuban servers:
  Mean Minimum Maximum St. dev.
www.jovenclub.cu 634 632 642 2.2
osri.gov.cu 856 707 995 89.9
scu.sld.cu 667 638 885 59.9

If we assume that 250 or 300 milliseconds are due to satellite link latency, these times are still slow. At these speeds, low-bandwidth, asynchronous applications like email would be slow and something like browsing a modern Web site nearly impossible.

Running tests like these from within Cuba would require Web access with the ability to run Java applets. Would anyone be willing to run some tests?
Real Time Analytics