Before sunrise in December 1983, Mike Muuss had a program that finally ran. The night before, it had compiled and then refused to work, because the operating system's kernel had no support for raw ICMP sockets, the hook a program needs to send its own network control messages. So Muuss wrote that support himself, and by first light everything worked well. He was at the Ballistic Research Laboratory, now the US Army Research Laboratory.
He had started the job because the IP network at the lab was behaving oddly, and he wanted something that could show him where the trouble lay. Now he was ready to send his first test packet across the link. He never got to use it on the fault. Chuck Kennedy, known to colleagues as Kermit, had already found and fixed the broken network hardware.
Muuss describes the result as "a little thousand-line hack" that he wrote in an evening. Yet this program went on to become the first thing people reach for when they want to know whether a network is alive.

A remark in Norway, a night in Maryland
Then a half-forgotten remark came back to him, one he had heard months earlier on the other side of the Atlantic.
In July 1983, at a DARPA meeting in Norway, Dave Mills had said something in passing. Dr. Mills was describing his Fuzzball LSI-11 systems, small machines he used to measure how long a path through a network took. His method was to send timed ICMP Echo packets, the Internet Control Message Protocol's way of asking a distant machine to answer. Mills did not make a speech of it, and nobody at the meeting treated the remark as the start of anything.
No finished tool waited for him to copy, only a description and a design that worked halfway at best. He could have waited for someone else to turn the idea into a program. He decided to write it himself.
He coded fast. The program rested on a Berkeley-style socket() call of the SOCK_RAW kind, in the AF_INET family, which let a user program build its own ICMP packets instead of leaving them to the system.
The logic was simple enough to hold in his head. The program sends an ICMP echo request, stamps the time, and waits for the echo reply. The gap between the two says how far away the target machine sits, and silence says something too.
By the time the code compiled, one question had nothing to do with networks. A program that asks a machine whether it is there needed a name, and Muuss had one ready. Other people would soon try to claim it.
Named for sonar, claimed by an acronym
Muuss named the program by ear. In his telling, the name came from the sound a sonar makes, and the idea of echo-location lay behind it. Active sonar works the way his program did: a ship sends out a pulse of sound and then listens for the echo that comes back from whatever lies ahead. His program sent a pulse of its own across the wire and waited for the reply.
In college he had done a lot of modeling of sonar and radar systems, and that work made the analogy seem apt when he applied it to cyberspace. To Muuss, PING was a sonar analogy, and he never saw an acronym in it.
Other people saw one anyway. A second expansion attached itself to the name, Packet InterNet Groper, and it stuck so well that the backronym, an acronym invented after the word, has been repeated for more than thirty years. Muuss had heard, second-hand, that Mills was the one who offered it. That gave him a way to leave the argument open. "Perhaps both are right," he said.

The written record gave the expansion more weight than a passing rumor would. RFC 889, an Internet standards memo, mentions an original PING program, spelled out as Packet InterNet Groper, that had been in use over the previous six years. Mills's tool therefore predates Muuss's. Muuss had not built his program as an acronym, and he kept saying so. Yet he acknowledged Mills's expansion and let it stand next to his own account.
Giving the code away
Muuss let the program go. The first version he released was public domain, with no license attached and no owner's name that anyone had to honor. Whoever wanted the code could copy it, change it and carry it off, and Muuss would have no say in where it went. The question that had followed him since the night at the lab, what the program was for, now belonged to everyone who picked it up.
The first to pick it up was Berkeley. The university took back the kernel modifications Muuss had been forced to write, along with the PING source, and ping first appeared in 4.3BSD, Berkeley's next release. The program has been a standard part of Berkeley UNIX ever since. The versions that followed were no longer public domain. Each later one carried the BSD license, the terms Berkeley used for its own software.
Other people took it too, and the terms changed again with each taker. Because ping was free, programmers ported it to system after system, Windows 95 and Windows NT among them. Erick Engelke developed the FreeDOS version, which he licensed under the GPL, the General Public License. Tim Crawford developed the ReactOS version and chose the MIT License.
Ten years after that December night, the recognition arrived. In 1993 Muuss received a USENIX scroll as a joint recipient of the Lifetime Achievement Award given to the CSRG, Berkeley's Computer Systems Research Group. He shared the honor with the very group that had taken his code and made it part of its system.
Another programmer was about to find one.
The tool that made Muuss jealous
Phil Dykstra had an idea for making ping show more than a yes or a no. He added support for ICMP Record Route, an option that asks each router to write its address into the packet as it passes, so a single ping could report the road it took. The idea ran into the routers themselves. Few of the early ones processed the option, and a feature that most of the network ignored was almost useless.
The header gave Dykstra a second wall. The IP header has room for only a handful of addresses, nine in all, so Record Route could never measure a long path even where every router cooperated. Traceroute was usually the better choice.
Then Van Jacobson of LBL, the Lawrence Berkeley Laboratory, picked up the kernel ICMP support Muuss had been forced to write and went a different way. Jacobson realized that if he varied the IP time-to-live field while pinging, each router along the path would eventually elicit an ICMP Time-to-Live Exceeded message. Every message came back from one more hop, and together they spelled out the route. He called the program traceroute.
Muuss, who had written the plumbing that made it possible, did not take the news calmly. He was insanely jealous. A tool built on his own kernel work did the one thing his program could not, and it did it without the limits that had crippled Record Route.
The version people use today has one more twist. The real traceroute sends UDP datagrams, not ICMP echo requests, because routers are not supposed to generate ICMP error messages in response to ICMP messages. The very rule that makes the trick work would have silenced it if Jacobson had copied ping's packets exactly.
Ping could say whether a host answered. Traceroute could show where the path stopped.
The duck that was not a program
In 1999, Melissa Rondeau ordered a book she expected to teach her about a UNIX command. The title was *The Story About Ping*. When the book arrived, it held no networks, no packets and no commands. A coworker had played a prank on her.
Marjorie Flack wrote the book, and Kurt Wiese drew its pictures. Its hero is a little duck, alone on the Yangtze River.
Rondeau turned the mix-up into a joke. She described ping as a UNIX command whose usefulness transcends its simplicity. Then she reviewed the duck's story as if it belonged to the same family, an allegory for the utility, written from a very early beta in 1933. The date made the joke work. A children's book from the 1930s could not have known anything about a program that did not exist until 1983.
Muuss kept the book on his own page, where the duck sits among the history of his program. A stranger could order a picture book about a duck and half expect to find the program inside.

The program could.
Five packets, none lost
The engineer's network looks dead. Nothing loads, nothing answers, and the only thing left to do is what the manual says. Start at home: run ping on the local host first, and see whether the machine can even hear itself. Then ping a host a little farther away, then a gateway, then hosts and gateways farther still, until the answers stop. Every host on the network must process an ICMP echo request and send a reply, so silence at one step marks the place to look. Replies that do come back mangled tell their own story, because damaged packets often mean broken hardware somewhere in the path.
Muuss's own page shows what the good case looks like. The sample output opens with a ping to vapor.arl.army.mil, at 128.63.240.80, carrying 56 bytes of data. Each line is one small packet going out and coming back, and an engineer who has stared at a dead screen at 3 a.m. would read those lines like a pulse.
Five packets sent, five received, 0% lost, with round trips of 8, 10 and 16 milliseconds at the minimum, average and maximum. Muuss, looking back at the program that carries his name around the world, says that had he known it would be his most famous accomplishment, he might have added more options. Yet the sample run answers the question he left open that December before sunrise: a program built for one broken link, finished after Kennedy had already repaired it, became the first thing anyone types because it asks the simplest question and gets an answer. On that night nothing was left to fix, and the echo came back anyway.
Editorial graphic and headline text by Signal Titans.
Source: Written in a Night: Mike Muuss and the Little Program That Pinged the Internet · The Story of the PING Program · RFC 889: Internet Delay Experiments | RFC Editor · man page ping section 8 · GitHub – reactos/reactos: A free Windows-compatible Operating System · GitHub · RFC 1122: Requirements for Internet Hosts – Communication Layers | RFC Editor · What is a Ping Flood | ICMP Flood DDoS Attack | Imperva · ping(8) – FreeBSD 15.1-RELEASE and Ports.quarterly Manual Pages · ping – manned.org

Leave a Reply