.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PG3" "8" "27 September 2002" "iputils-020927" "System Manager's Manual: iputils" .SH NAME pg3, ipg, pgset \- send stream of UDP packets .SH SYNOPSIS \fBsource ipg\fR \fBpg\fR \fBpgset\fR \fB\fICOMMAND\fB\fR .SH "DESCRIPTION" .PP \fBipg\fR is not a program, it is script which should be sourced to \fBbash\fR. When sourced it loads module \fIpg3\fR and exports a few of functions accessible from parent shell. These macros are \fBpg\fR to start packet injection and to get the results of run; and \fBpgset\fR to setup packet generator. .PP \fBpgset\fR can send the following commands to module \fIpg3\fR: .SH "COMMAND" .TP \fBodev \fIDEVICE\fB\fR Name of Ethernet device to test. See warning below. .TP \fBpkt_size \fIBYTES\fB\fR Size of packet to generate. The size includes all the headers: UDP, IP, MAC, but does not account for overhead internal to medium, i.e. FCS and various paddings. .TP \fBfrags \fINUMBER\fB\fR Each packet will contain \fINUMBER\fR of fragments. Maximal amount for linux-2.4 is 6. Far not all the devices support fragmented buffers. .TP \fBcount \fINUMBER\fB\fR Send stream of \fINUMBER\fR of packets and stop after this. .TP \fBipg \fITIME\fB\fR Introduce artificial delay between packets of \fITIME\fR microseconds. .TP \fBdst \fIIP_ADDRESS\fB\fR Select IP destination where the stream is sent to. Beware, never set this address at random. \fBpg3\fR is not a toy, it creates really tough stream. Default value is 0.0.0.0. .TP \fBdst \fIMAC_ADDRESS\fB\fR Select MAC destination where the stream is sent to. Default value is 00:00:00:00:00:00 in hope that this will not be received by any node on LAN. .TP \fBstop\fR Abort packet injection. .SH "WARNING" .PP When output device is set to some random device different of hardware Ethernet device, \fBpg3\fR will crash kernel. .PP Do not use it on VLAN, ethertap, VTUN and other devices, which emulate Ethernet not being real Ethernet in fact. .SH "AUTHOR" .PP \fBpg3\fR was written by Robert Olsson . .SH "SECURITY" .PP This can be used only by superuser. .PP This tool creates floods of packets which is unlikely to be handled even by high-end machines. For example, it saturates gigabit link with 60 byte packets when used with Intel's e1000. In face of such stream switches, routers and end hosts may deadlock, crash, explode. Use only in test lab environment. .SH "AVAILABILITY" .PP \fBpg3\fR is part of \fIiputils\fR package and the latest versions are available in source form for anonymous ftp ftp://ftp.inr.ac.ru/ip-routing/iputils-current.tar.gz.