Lably
Skip to content

Serial Line Internet Protocol

Internet Protocol encapsulation for serial ports and router connections

  • 2 min read
  • 3 chapters

Related on Lably

Through Router (computing), Internet protocol suite and Data

Some people refer to the successful and widely used RFC 1055 Serial Line Internet Protocol as "Rick Adams' SLIP", to avoid confusion with other proposed protocols named "SLIP". Those other protocols include the much more complicated RFC 914 appendix D Serial Line Interface Protocol.

Description

SLIP modifies a standard TCP/IP datagram by:

  • appending a special "END" byte to it, which distinguishes datagram boundaries in the byte stream,
  • if the END byte occurs in the data to be sent, the two byte sequence ESC, ESC_END is sent instead,
  • if the ESC byte occurs in the data, the two byte sequence ESC, ESC_ESC is sent.
  • variants of the protocol may begin, as well as end, packets with END.

SLIP requires a serial port configuration of 8 data bits, no parity, and either EIA hardware flow control, or CLOCAL mode (3-wire null-modem) UART operation settings.

SLIP does not provide error detection, being reliant on upper layer protocols for this. Therefore, SLIP on its own is not satisfactory over a link which is error-prone, such as a poor quality dial-up connection.

SLIP escape characters were also required on some modem connections to escape Hayes command set, allowing therefore to pass binary data through those modems that would recognize some characters as commands.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication