Jump to content

Serial Line Internet Protocol

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 32RB17 (talk | contribs) at 16:41, 4 May 2014 (→‎See also: KISS (TNC)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Serial Line Internet Protocol (also Serial Line Interface Protocol; SLIP) is an encapsulation of the Internet Protocol designed to work over serial ports and modem connections. It is documented in RFC 1055. On personal computers, SLIP has been largely replaced by the Point-to-Point Protocol (PPP), 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.

Description

Hex value Abbreviation Description
0xC0 END Frame End
0xDB ESC Frame Escape
0xDC ESC_END Transposed Frame End
0xDD ESC_ESC Transposed Frame Escape

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 an error-prone dial-up connection. It is however still useful for testing operating systems' response capabilities under load (by looking at flood-ping statistics).

SLIP is also currently used in the BlueCore Serial Protocol for communication between Bluetooth modules and host computers.[1]

CSLIP

A version of SLIP with header compression is called Compressed SLIP (CSLIP). 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 (TCP) header from 20 bytes to seven bytes. CSLIP has no effect on User Datagram Protocol (UDP) datagrams.

See also

References

External links

  • RFC1055: Romkey, J. (June l988). "A Nonstandard for transmission of IP datagrams over serial lines: SLIP". {{cite web}}: Check date values in: |date= (help)
  • RFC1144: Jacobson, V. (February 1990). "Compressing TCP/IP Headers for Low-Speed Serial Links". — introduced the Van Jacobson TCP/IP Header Compression used by CSLIP