Skip to content
Surf Wiki
Save to docs
technology/networking

From Surf Wiki (app.surf) — the open knowledge base

Serial Line Internet Protocol

Internet Protocol encapsulation for serial ports and router connections


Internet Protocol encapsulation for serial ports and router connections

The Serial Line Internet Protocol (SLIP){{cite news |newspaper=The New York Times

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 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:

  • 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.

CSLIP

A version of SLIP with header compression is called Compressed SLIP (CSLIP).{{cite book

History

RFC 1055, a "non-standard" for SLIP, traces its origins to the 3COM UNET TCP/IP implementation from the 1980s. Rick Adams added SLIP to the popular 4.2BSD in 1984 and it "quickly caught on". By the time of the RFC (1988), it is described as "commonly used on dedicated serial links and sometimes for dialup purposes".

The last version of FreeBSD to include "slattach" (a command for connecting to slip) in the manual database is FreeBSD 7.4, released 2011. The manual claims that auto-negotiation exists for CSLIP. The FreeBSD version is inherited from 4.3BSD.

Linux formerly used the same code base for SLIP and KISS (TNC). The split occurred before the start of kernel git history (Linux-2.6.12-rc2, 2005). The SLIP driver offers a special "6-bit" escaped mode to accommodate modems incapable of handling non-ASCII characters. The Linux slattach command (written independently) also has the ability to auto-detect CSLIP support.

References

References

  1. {{IETF RFC. 1547: "Requirements for an Internet Standard Point-to-Point Protocol"
  2. Jacobson, V.. (February 1990). "Compressing TCP/IP Headers for Low-Speed Serial Links".
  3. (1 June 1988). "RFC 1055: Nonstandard for transmission of IP datagrams over serial lines: SLIP".
  4. "slattach(8)".
  5. (13 May 2023). "History for mkiss.c".
  6. (13 May 2023). "drivers/net/slip/Kconfig".
  7. {{man. 8. slattach. Linux "Other possible values are slip (normal SLIP), adaptive (adaptive CSLIP/SLIP)...
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about Serial Line Internet Protocol — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report