RFC 1459: IRC: Open real-time communication

Summary

In May 1993, Jarkko Oikarinen and Darren Reed described the Internet Relay Chat Protocol in RFC 1459, with which servers are linked into a network and users exchange text messages in channels or directly. The document recorded what had developed in operation since 1988 and openly named the protocol’s limits in a chapter of its own. Many conventions from RFC 1459 still shape chat services today, from channel names with a hash sign to commands with a slash.

A tree of servers

An IRC network consists of servers connected as a spanning tree; messages travel along exactly one path through the tree. Users log in with a nickname of at most nine characters and join channels whose names begin with # for network-wide or & for server-local channels. A message may be at most 512 characters long including the line ending.

The simplicity is visible: IRC is a text protocol over TCP that can be operated with telnet if need be. Precisely because of this, countless clients, bots and server implementations emerged.

Limits, openly named

Section 9 admits that the protocol does not scale well on a large scale, because every server has to know all other servers, users and channels and learn about changes immediately. Name collisions for nicknames, channels and servers are also unsolved; if two people want the same nick, one fails or both are removed by KILL.

Network splits, so-called netsplits, were the visible consequence: if a link in the tree fails, the network breaks into parts that later have to join up again. RFC 2810 to 2813 revised IRC in April 2000, and RFC 7194 assigned port 6697 for IRC over TLS in 2014.

Ideas

  • Servers form a spanning tree without loops.
  • Channels with # are network-wide, channels with & only on one server.
  • Nicknames are at most nine characters long.
  • A message is limited to 512 characters.
  • Every server knows the entire state of the network.
  • Name collisions are resolved by KILL if necessary.

Insights

  • A protocol that openly documents its own limits builds trust and invites improvement.
  • Global state knowledge in every node is simple to build but expensive to scale; modern federated chats solve this differently.

Facts

  • RFC 1459 appeared in May 1993 with the status Experimental.
  • Nicknames may have at most nine characters.
  • RFC 2810 to 2813 from April 2000 update IRC.
  • RFC 7194 from August 2014 assigns TCP port 6697 for IRC over TLS.

References

Remarks

  • Jarkko Oikarinen wrote the first IRC server in 1988 at the University of Oulu in Finland.

Recommendations

  • Connect to IRC only over TLS on port 6697.
  • Register nicknames with services such as NickServ to avoid collisions and impersonation.
  • For your own project chats, choose between IRC and federated alternatives such as Matrix deliberately according to operating effort.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.