from small one page howto to huge articles all in one place
 

search text in:





Poll
Which filesystem do you use?






poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

103624

userrating:

average rating: 1.7 (85 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

218287

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

98884

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





PG3

Section: System Manager's Manual: iputils (8)
Updated: 24 January 2013
Index Return to Main Contents
 

NAME

pg3, ipg, pgset - send stream of UDP packets  

SYNOPSIS

source ipg

pg

pgset COMMAND

 

DESCRIPTION

ipg is not a program, it is script which should be sourced to bash. When sourced it loads module pg3 and exports a few of functions accessible from parent shell. These macros are pg to start packet injection and to get the results of run; and pgset to setup packet generator.

pgset can send the following commands to module pg3:  

COMMAND

odev DEVICE
Name of Ethernet device to test. See warning below.
pkt_size BYTES
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.
frags NUMBER
Each packet will contain NUMBER of fragments. Maximal amount for linux-2.4 is 6. Far not all the devices support fragmented buffers.
count NUMBER
Send stream of NUMBER of packets and stop after this.
ipg TIME
Introduce artificial delay between packets of TIME microseconds.
dst IP_ADDRESS
Select IP destination where the stream is sent to. Beware, never set this address at random. pg3 is not a toy, it creates really tough stream. Default value is 0.0.0.0.
dst MAC_ADDRESS
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.
stop
Abort packet injection.
 

WARNING

When output device is set to some random device different of hardware Ethernet device, pg3 will crash kernel.

Do not use it on VLAN, ethertap, VTUN and other devices, which emulate Ethernet not being real Ethernet in fact.  

AUTHOR

pg3 was written by Robert Olsson <robert.olsson@its.uu.se>.  

SECURITY

This can be used only by superuser.

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.  

AVAILABILITY

pg3 is part of iputils package and the latest versions are available in source form at http://www.skbuff.net/iputils/iputils-current.tar.bz2.


 

Index

NAME
SYNOPSIS
DESCRIPTION
COMMAND
WARNING
AUTHOR
SECURITY
AVAILABILITY


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 4.0 ms