2004-12-05 16:24:10 +03:00
|
|
|
.\" $NetBSD: strip.4,v 1.13 2004/12/05 13:24:10 peter Exp $
|
1996-10-09 21:21:27 +04:00
|
|
|
.\"
|
1996-06-27 01:13:37 +04:00
|
|
|
.\" Copyright 1996 The Board of Trustees of The Leland Stanford
|
|
|
|
.\" Junior University. All Rights Reserved.
|
|
|
|
.\"
|
|
|
|
.\" Author: Jonathan Stone
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this
|
|
|
|
.\" software and its documentation for any purpose and without
|
|
|
|
.\" fee is hereby granted, provided that the above copyright
|
|
|
|
.\" notice and the above authorship notice appear in all copies.
|
|
|
|
.\" Stanford University makes no representations about the suitability
|
|
|
|
.\" of this software for any purpose. It is provided "as is" without
|
|
|
|
.\" express or implied warranty.
|
2004-12-05 16:24:10 +03:00
|
|
|
.Dd December 5, 2004
|
1996-06-27 01:13:37 +04:00
|
|
|
.Dt STRIP 4
|
1999-03-16 04:19:14 +03:00
|
|
|
.Os
|
1996-06-27 01:13:37 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm strip
|
1999-12-16 01:07:30 +03:00
|
|
|
.Nd Metricom Ricochet packet radio wireless network device
|
1996-06-27 01:13:37 +04:00
|
|
|
.Sh SYNOPSIS
|
2004-12-05 16:24:10 +03:00
|
|
|
.Cd pseudo-device strip
|
1996-06-27 01:13:37 +04:00
|
|
|
.Sh DESCRIPTION
|
1997-11-18 02:50:46 +03:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver takes outbound network packets, encapsulates them using the
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn Metricom
|
|
|
|
.Qq star mode
|
|
|
|
framing, and sends the packets out an
|
|
|
|
.Tn RS-232
|
|
|
|
interface to a
|
|
|
|
.Tn Metricom
|
1996-06-27 01:13:37 +04:00
|
|
|
.Em Ricochet
|
1998-04-30 12:50:03 +04:00
|
|
|
packet radio.
|
|
|
|
Packets arriving from the packet radio via the serial link are decapsulated
|
|
|
|
and then passed up to the local host's networking stack.
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
is an acronym for
|
1998-04-30 12:50:03 +04:00
|
|
|
.Sy ST Ns armode
|
1997-11-18 02:50:46 +03:00
|
|
|
.Sy R Ns adio
|
2001-06-11 05:13:28 +04:00
|
|
|
.Sy IP .
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
2004-12-05 16:24:10 +03:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
interfaces can be created by using the
|
|
|
|
.Xr ifconfig 8
|
|
|
|
.Cm create
|
|
|
|
command.
|
|
|
|
Each
|
|
|
|
.Nm
|
|
|
|
interface is a pseudo-device driver for the
|
|
|
|
.Tn Metricom
|
|
|
|
.Em Ricochet
|
|
|
|
packet radio, operating in peer-to-peer packet mode.
|
|
|
|
.Pp
|
1996-06-27 01:13:37 +04:00
|
|
|
In many ways,
|
|
|
|
the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
driver is very much like the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Xr sl 4
|
1998-04-30 12:50:03 +04:00
|
|
|
SLIP pseudo-device driver.
|
|
|
|
A
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
device is attached to a tty line with
|
|
|
|
.Xr slattach 8 .
|
|
|
|
Once attached, the interface is configured via
|
|
|
|
.Xr ifconfig 8 .
|
|
|
|
The major difference between the
|
|
|
|
.Xr sl 4
|
|
|
|
SLIP pseudo-device driver and the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
driver is that SLIP works only between two hosts over
|
1998-04-30 12:50:03 +04:00
|
|
|
a dedicated point-to-point connection.
|
|
|
|
.Pp
|
|
|
|
In contrast,
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
sends packets to a frequency-hopping packet radio, which can address
|
|
|
|
packets to any peer
|
|
|
|
.Tn Metricom
|
|
|
|
.Em Ricochet
|
|
|
|
packet radio, rather than just to a single host at the other end
|
|
|
|
of a point-to-point line.
|
|
|
|
Thus, one
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
pseudo-device is usually sufficient for any kernel.
|
|
|
|
.Pp
|
|
|
|
In other respects, a
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
interface is rather like an
|
|
|
|
.Tn Ethernet
|
|
|
|
interface.
|
1997-11-18 02:50:46 +03:00
|
|
|
Packets are individually addressed, and subsequent packets can
|
1998-04-30 12:50:03 +04:00
|
|
|
be sent independently to different MAC addresses.
|
|
|
|
However, the
|
|
|
|
.Qq star mode
|
|
|
|
framing and MAC addressing are not in any way compatible with
|
|
|
|
.Tn Ethernet .
|
|
|
|
Broadcast or multicast to more than one packet radio is not possible,
|
|
|
|
due to the independent frequency-hopping operation of the packet radios.
|
|
|
|
The interface flags
|
1996-06-27 01:13:37 +04:00
|
|
|
.Dv IFF_POINTOPOINT
|
|
|
|
and
|
|
|
|
.Dv IFF_BROADCAST
|
1998-04-30 12:50:03 +04:00
|
|
|
are not supported on the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
interface.
|
|
|
|
.Pp
|
|
|
|
In other words,
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1996-06-27 01:13:37 +04:00
|
|
|
implements a multiple-access, non-broadcast device, accessed via
|
1998-04-30 12:50:03 +04:00
|
|
|
an RS-232 serial line, using a proprietary packet framing scheme.
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
1998-04-30 12:50:03 +04:00
|
|
|
This version of the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
driver maps
|
|
|
|
.Tn IP
|
|
|
|
addresses to
|
|
|
|
.Tn Metricom
|
|
|
|
.Em Ricochet
|
|
|
|
packet radio addresses using statically configured entries in the
|
|
|
|
normal routing table.
|
|
|
|
These entries map
|
|
|
|
.Tn IP
|
|
|
|
addresses of peer packet radios to the MAC-level addresses.
|
1996-06-27 01:13:37 +04:00
|
|
|
The exact syntax of this mapping and an example are discussed below.
|
1998-04-30 12:50:03 +04:00
|
|
|
The Internet Assigned Numbers Authority
|
|
|
|
.Pq Tn IANA
|
|
|
|
has allocated an
|
|
|
|
.Tn ARP
|
|
|
|
type code for use with STRIP.
|
|
|
|
A future version of this driver will support
|
1996-06-27 01:13:37 +04:00
|
|
|
.Xr arp 4
|
1998-04-30 12:50:03 +04:00
|
|
|
to obtain the
|
|
|
|
.Tn IP
|
|
|
|
address of reachable peer packet radios dynamically.
|
1997-11-18 02:50:46 +03:00
|
|
|
.Sh ADDRESS CONFIGURATION
|
1996-06-27 01:13:37 +04:00
|
|
|
This version of the STRIP driver requires static pre-configuration of
|
1998-04-30 12:50:03 +04:00
|
|
|
the mapping from
|
|
|
|
.Tn IP
|
|
|
|
addresses to packet radio MAC addresses.
|
|
|
|
The
|
1996-06-27 01:13:37 +04:00
|
|
|
.Xr route 8
|
1998-04-30 12:50:03 +04:00
|
|
|
command should be used to bind a peer STRIP host's packet radio
|
|
|
|
.Tn IP
|
|
|
|
address to the peer's link-level packet radio address.
|
|
|
|
.Pp
|
|
|
|
Radio addresses are encoded using the hex equivalent of the packet
|
|
|
|
radio's decimal
|
|
|
|
.Tn ASCII
|
|
|
|
address.
|
|
|
|
For example, the following route command will configure a routing
|
|
|
|
entry to a packet radio with a MAC address of 1234-5678, and an
|
|
|
|
.Tn IP
|
|
|
|
address 10.11.12.13, reachable via the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Em strip0
|
|
|
|
interface:
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
|
|
|
.br
|
|
|
|
.in 10
|
1997-11-18 02:50:46 +03:00
|
|
|
route add -host 10.11.12.13 -link strip0:1:2:3:4:5:6:7:8
|
1996-06-27 01:13:37 +04:00
|
|
|
.br
|
|
|
|
.in 5
|
|
|
|
.Pp
|
1998-04-30 12:50:03 +04:00
|
|
|
Generalising from this example to other
|
|
|
|
.Tn IP
|
2001-06-11 05:13:28 +04:00
|
|
|
addresses and to other 8-digit MAC addresses should be clear.
|
1997-11-18 02:50:46 +03:00
|
|
|
.Sh RADIO CONFIGURATION
|
1998-04-30 12:50:03 +04:00
|
|
|
The
|
|
|
|
.Tn Metricom
|
|
|
|
.Em Ricochet
|
|
|
|
packet radios can auto-baud at speeds up to 38.4K baud.
|
|
|
|
At higher speeds -- 57600 or 115200 -- the packet radio cannot autobaud.
|
|
|
|
When running at high speeds, the packet radio's serial port should be
|
1996-06-27 01:13:37 +04:00
|
|
|
manually configured to permanently run at the desired speed.
|
|
|
|
Use a terminal emulator and the Hayes command
|
1998-04-30 12:50:03 +04:00
|
|
|
.Ic ATS304=115200
|
1997-11-18 02:50:46 +03:00
|
|
|
to set the serial baudrate to the specified number (or 0 for autobaud).
|
|
|
|
The command
|
2002-02-13 11:17:26 +03:00
|
|
|
.Ic AT\*[Am]W
|
1998-04-30 12:50:03 +04:00
|
|
|
will then save the current packet radio state in non-volatile memory.
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
1998-04-30 12:50:03 +04:00
|
|
|
.Tn Metricom
|
|
|
|
.Em Ricochet
|
|
|
|
packet radios can operate in either
|
1997-11-18 02:50:46 +03:00
|
|
|
.Dq modem-emulation
|
1998-04-30 12:50:03 +04:00
|
|
|
mode or in packet mode (i.e.
|
|
|
|
.Qq star mode ) .
|
|
|
|
The
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
driver automatically detects if the packet radio has fallen out of
|
|
|
|
.Qq star mode ,
|
|
|
|
and resets it back into
|
|
|
|
.Qq star mode ,
|
|
|
|
if the baud rate was set correctly by
|
1996-06-27 01:13:37 +04:00
|
|
|
.Xr slattach 8 .
|
|
|
|
.\" .Sh DIAGNOSTICS
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr arp 4 ,
|
2001-09-22 20:21:42 +04:00
|
|
|
.Xr inet 4 ,
|
1997-11-18 02:50:46 +03:00
|
|
|
.Xr sl 4 ,
|
1998-04-30 12:50:03 +04:00
|
|
|
.Xr ifconfig 8 ,
|
2001-09-22 20:21:42 +04:00
|
|
|
.Xr route 8 ,
|
|
|
|
.Xr slattach 8
|
|
|
|
.Sh HISTORY
|
|
|
|
.Nm
|
|
|
|
was originally developed for the
|
|
|
|
.Tn Linux
|
|
|
|
kernel by Stuart Cheshire of Stanford's Operating Systems and
|
|
|
|
Networking group, as part of Mary Baker's MosquitoNet
|
|
|
|
.Sy http://mosquitonet.stanford.edu/mosquitonet.html
|
|
|
|
project.
|
|
|
|
.Pp
|
|
|
|
This
|
|
|
|
.Nm
|
|
|
|
driver was ported to
|
|
|
|
.Nx
|
|
|
|
by Jonathan Stone at Stanford's Distributed Systems Group and first
|
|
|
|
distributed with
|
|
|
|
.Nx 1.2 .
|
1996-06-27 01:13:37 +04:00
|
|
|
.Sh BUGS
|
1998-04-30 12:50:03 +04:00
|
|
|
Currently,
|
|
|
|
.Nm
|
|
|
|
is IP-only.
|
|
|
|
Encapsulations for
|
|
|
|
.Tn AppleTalk
|
|
|
|
and
|
|
|
|
.Tn ARP
|
|
|
|
have been defined, but are not yet implemented in this driver.
|
1996-06-27 01:13:37 +04:00
|
|
|
.Pp
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
has not been widely tested on a variety of lower-level serial drivers.
|
1997-11-18 02:50:46 +03:00
|
|
|
.Pp
|
1998-04-30 12:50:03 +04:00
|
|
|
The detection and resetting of packet radios that crash out of
|
|
|
|
.Qq star mode
|
|
|
|
does not always work in this version of the driver.
|
|
|
|
One workaround is to kill the
|
|
|
|
.Xr slattach 8
|
|
|
|
process,
|
|
|
|
.Xr ifconfig 8
|
|
|
|
the
|
1997-11-18 02:50:46 +03:00
|
|
|
.Nm
|
1998-04-30 12:50:03 +04:00
|
|
|
interface down, and then start a new slattach and rerun ifconfig
|
|
|
|
to enable the interface again.
|