Serial Line Internet Protocol


The Serial Line Internet Protocol is an encapsulation of the Internet Protocol designed to work over serial ports and router connections. It is documented in. On personal computers, SLIP has largely been replaced by the Point-to-Point Protocol, which is better engineered, has more features, and does not require its IP address configuration to be set before it is established. On microcontrollers, however, SLIP is still the preferred way of encapsulating IP packets, due to its very small overhead.
Some people refer to the successful and widely used 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 appendix D Serial Line Interface Protocol.

Description

Hex valueDec ValueOct ValueAbbreviationDescription
0xC0192300ENDFrame End
0xDB219333ESCFrame Escape
0xDC220334ESC_ENDTransposed Frame End
0xDD221335ESC_ESCTransposed Frame Escape

SLIP modifies a standard TCP/IP datagram by
SLIP requires a serial port configuration of 8 data bits, no parity, and either EIA hardware flow control, or CLOCAL mode 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 an error-prone dial-up connection. It is however still useful for testing operating systems' response capabilities under load.
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.

CSLIP

A version of SLIP with header compression is called Compressed SLIP. The compression algorithm used in CSLIP is known as Van Jacobson TCP/IP Header Compression. CSLIP has no effect on the data payload of a packet and is independent of any compression by the serial line modem used for transmission. It reduces the Transmission Control Protocol header from twenty bytes to seven bytes. CSLIP has no effect on User Datagram Protocol datagrams.