Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Serial Line Internet Protocol

From Wikipedia, the free encyclopedia
Internet Protocol encapsulation for serial ports and router connections
Internet protocol suite
Application layer
Transport layer
Internet layer
Link layer

TheSerial Line Internet Protocol (SLIP)[1][2] is anencapsulation of theInternet Protocol[a] designed to work overserial ports androuter connections. It is documented inRFC 1055. On personal computers, SLIP has largely been replaced by thePoint-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. Onmicrocontrollers, however, SLIP is still the preferred way of encapsulatingIP packets, due to its very small overhead.

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

Description

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

SLIP modifies a standardTCP/IPdatagram 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 portconfiguration of 8databits, noparity, and eitherEIA hardwareflow control, or CLOCAL mode (3-wirenull-modem)UART operation settings.

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

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

CSLIP

[edit]

A version of SLIP withheadercompression is calledCompressed SLIP (CSLIP).[4] The compression algorithm used in CSLIP is known asVan Jacobson TCP/IP Header Compression.[5] 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 theTransmission Control Protocol (TCP) header from twentybytes to seven bytes. CSLIP has no effect onUser Datagram Protocol (UDP) datagrams.

History

[edit]
See also:History of the Internet

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 popular4.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".[6]

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.[7]

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

See also

[edit]

References

[edit]
  1. ^SLIP does not actually care about the internal structures of IP: anynetwork layer protocols can be sent over the wire.
  1. ^"Internet Q&A".The New York Times. May 31, 1996.
  2. ^"The Executive Computer; For Befuddled Newcomers, Easier Access".The New York Times. May 8, 1994.
  3. ^abRFC 1547: "Requirements for an Internet Standard Point-to-Point Protocol"
  4. ^Understanding TCP/IP (Chapter 4.2 Compressed SLIP).
  5. ^Jacobson, V. (February 1990)."Compressing TCP/IP Headers for Low-Speed Serial Links". — introduced theVan Jacobson TCP/IP Header Compression used by CSLIP
  6. ^"RFC 1055: Nonstandard for transmission of IP datagrams over serial lines: SLIP".IETF Datatracker. 1 June 1988.
  7. ^"slattach(8)".man.freebsd.org.
  8. ^Torvalds, Linus (13 May 2023)."History for mkiss.c".GitHub. Retrieved13 May 2023.
  9. ^Torvalds, Linus (13 May 2023)."drivers/net/slip/Kconfig".GitHub.
  10. ^slattach(8) – Linux Programmer'sManual – Administration and Privileged Commands from Manned.org "Other possible values are slip (normal SLIP), adaptive (adaptive CSLIP/SLIP)...
Authority control databasesEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Serial_Line_Internet_Protocol&oldid=1283890348"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp