1spray(1M)               System Administration Commands               spray(1M)
2
3
4

NAME

6       spray - spray packets
7

SYNOPSIS

9       /usr/sbin/spray [-c count] [-d delay] [-l length]
10            [-t nettype] host
11
12

DESCRIPTION

14       spray  sends a one-way stream of packets to host using RPC, and reports
15       how many were received, as well as the transfer rate. The host argument
16       can be either a name or an Internet address.
17
18
19       spray  is  not  useful as a networking benchmark, as it uses unreliable
20       connectionless transports, UDP for example. spray can  report  a  large
21       number  of  packets dropped when the drops were caused by spray sending
22       packets faster than they can be buffered locally, that is,  before  the
23       packets get to the network medium.
24

OPTIONS

26       -c count      Specify  how  many  packets to send. The default value of
27                     count is the number of packets required to make the total
28                     stream size 100000 bytes.
29
30
31       -d delay      Specify  how  many  microseconds to pause between sending
32                     each packet. The default is 0.
33
34
35       -l length     The length parameter is the numbers of bytes in the  Eth‐
36                     ernet  packet  that holds the RPC call message. Since the
37                     data is encoded using XDR, and XDR only deals with 32 bit
38                     quantities,  not  all  values of length are possible, and
39                     spray rounds up  to  the  nearest  possible  value.  When
40                     length  is  greater  than  1514, then the RPC call can no
41                     longer be encapsulated in one  Ethernet  packet,  so  the
42                     length  field  no  longer  has a simple correspondence to
43                     Ethernet packet size. The default value of length  is  86
44                     bytes, the size of the RPC and UDP headers.
45
46
47       -t nettype    Specify  class  of  transports. Defaults to  netpath. See
48                     rpc(3NSL) for a description of supported classes.
49
50

ATTRIBUTES

52       See attributes(5) for descriptions of the following attributes:
53
54
55
56
57       ┌─────────────────────────────┬─────────────────────────────┐
58       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │Availability                 │SUNWrcmdc                    │
61       └─────────────────────────────┴─────────────────────────────┘
62

SEE ALSO

64       rpc(3NSL), attributes(5)
65
66
67
68SunOS 5.11                        6 Nov 2000                         spray(1M)
Impressum