1 '\" te
   2 .\" Copyright (c) 1998, Sun Microsystems,
   3 .\" Inc.  All Rights Reserved
   4 .\"  Copyright 1989 AT&T  Copyright (c)
   5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   8 .TH SPRAY 1M "Nov 6, 2000"
   9 .SH NAME
  10 spray \- spray packets
  11 .SH SYNOPSIS
  12 .LP
  13 .nf
  14 \fB/usr/sbin/spray\fR [\fB-c\fR \fIcount\fR] [\fB-d\fR \fIdelay\fR] [\fB-l\fR \fIlength\fR]
  15      [\fB-t\fR \fInettype\fR] \fIhost\fR
  16 .fi
  17 
  18 .SH DESCRIPTION
  19 .sp
  20 .LP
  21 \fBspray\fR sends a one-way stream of packets to \fIhost\fR using RPC, and
  22 reports how many were received, as well as the transfer rate. The \fIhost\fR
  23 argument can be either a name or an Internet address.
  24 .sp
  25 .LP
  26 \fBspray\fR is not useful as a networking benchmark, as it uses unreliable
  27 connectionless transports, UDP for example. \fBspray\fR can report a large
  28 number of packets dropped when the drops were caused by \fBspray\fR sending
  29 packets faster than they can be buffered locally, that is, before the packets
  30 get to the network medium.
  31 .SH OPTIONS
  32 .sp
  33 .ne 2
  34 .na
  35 \fB\fB-c\fR \fIcount\fR\fR
  36 .ad
  37 .RS 14n
  38 Specify how many packets to send. The default value of \fIcount\fR is the
  39 number of packets required to make the total stream size 100000 bytes.
  40 .RE
  41 
  42 .sp
  43 .ne 2
  44 .na
  45 \fB\fB-d\fR \fIdelay\fR\fR
  46 .ad
  47 .RS 14n
  48 Specify how many microseconds to pause between sending each packet. The default
  49 is \fB0\fR.
  50 .RE
  51 
  52 .sp
  53 .ne 2
  54 .na
  55 \fB\fB-l\fR \fIlength\fR\fR
  56 .ad
  57 .RS 14n
  58 The \fIlength\fR parameter is the numbers of bytes in the Ethernet packet that
  59 holds the RPC call message. Since the data is encoded using XDR, and XDR only
  60 deals with 32 bit quantities, not all values of \fIlength\fR are possible, and
  61 \fBspray\fR rounds up to the nearest possible value. When \fIlength\fR is
  62 greater than 1514, then the RPC call can no longer be encapsulated in one
  63 Ethernet packet, so the \fIlength\fR field no longer has a simple
  64 correspondence to Ethernet packet size. The default value of \fIlength\fR is
  65 \fB86 bytes\fR, the size of the RPC and UDP headers.
  66 .RE
  67 
  68 .sp
  69 .ne 2
  70 .na
  71 \fB\fB-t\fR \fInettype\fR\fR
  72 .ad
  73 .RS 14n
  74 Specify class of transports. Defaults to  \fBnetpath\fR. See \fBrpc\fR(3NSL)
  75 for a description of supported classes.
  76 .RE
  77 
  78 .SH SEE ALSO
  79 .sp
  80 .LP
  81 \fBrpc\fR(3NSL), \fBattributes\fR(5)