Packet Generator

##

##

###

###

###

##

###

###

###

##

###

###

###

###

###

###

###

###

##

###

     Packet Generator Tools
        IGMP Packet Generator
        DVMRP Packet Generator
        PIM Packet Generator
        Multicast Packet Generator

    IGMP Packet Generator

     Sending Query Message

       query [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-g <grp_addr>] [-t <resp_time>]
          [-C count] [-n]

       -i <interface> : Specify interface name to send IGMP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of IGMP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of IGMP packet.
                        Default: 224.0.0.1(General Query).
                        If specified option 'g', setting the address.(Specific Query)
                        Option d is prior to option g.
       -g <grp_addr>  : Specify IGMP Group Address.
                        Default: 0(Sending General Query).
       -t <resp_time> : Specify IGMP Max Resp Time.
                        Default: 100(10s).
       -C <count>     : Specify number of sending packet.
                        Interval is 125s(Query Interval).
       -n : Specify sending without IP Router Alert option.

     Sending Membership-Report Message

       join [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-v <1|2>] -g <grp_addr> [-n]

       -i <interface> : Specify interface name to send IGMP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of IGMP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of IGMP packet.
                        Default: Specified address by 'g' options.
       -v <1 | 2>     : Specify IGMP Version. Default 2.
       -g <grp_addr>  : Specify IGMP Group Address.(MUST)
       -n : Specify sending without IP Router Alert option.

     Sending Membershp-Leave Message

       leave [-i <interface>] [-s <src_addr>] [-d <dst_addr>] -g <grp_addr> [-n]

       -i <interface> : Specify interface name to send IGMP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of IGMP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of IGMP packet.
                        Default: 224.0.0.2.
       -g <grp_addr>  : Specify IGMP Group Address.(MUST)
       -n : Specify sending without IP Router Alert option.

    DVMRP Packet Generator

     Sending Probe Message

       probe [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-c <capability>]
          [-g <generation id>] [-C <count>] [-n <nbr1 nbr2 ...> ]

       -i <interface> : Specify interface name to send DVMRP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source  IP address of DVMRP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of DVMRP packet.
                        Default: 224.0.0.4.
       -c <capability> : Specify Capability filed(hex without '0x').
                        Default: (0x)0e.
       -g <generation id> : Specify Generation ID filed(hex without '0x').
                            Default: run time.
       -C <count>     : Specify number of sending packet.
                        Interval is 10s(Probe Interval).
       -n <nbr1 nbr2 ...> : Specify DVMRP neighbors(IP address).
                                You must specify this option last of all.
                                If omitted, send Probe without neighbor list.

     Sending Report Message

       report [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-f <file>] -p <prefix> -n <num>

       -i <interface> : Specify interface name to send DVMRP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of DVMRP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of DVMRP packet.
                        Default: 224.0.0.4.
       -f <file>      : Specify advertising network list file.
                         Format:
                                 network_addr/masklen metric
                                             :
       -p <prefix>    : Specify advertising prefix list file.
                        prefix - <network>/<masklen>.
                        If following 'n'options is specified, generate prefix automatically
                        (metric is 1).
       -n <num>       : Specify number of generating prefix.
                         ex)  % report -p 192.168.10.0/24 -n 3
                                advertise 192.168.10.0/24,192.168.11.0/24,192.168.12.0/24
       -C <count>     : Specify number of sending packet.
                        Interval is 60s(Report Interval).

     Sending Prune/Graft/Graft Ack Message

       prune [-i <interface>] [-s <src_addr>] [-l <time>] -d <dst_addr> -e <src>/<grp>
       graft [-i <interface>] [-s <src_addr>] -d <dest_addr> -e <src>/<grp>
       gack  [-i <interface>] [-s <src_addr>] -d <dest_addr> -e <src>/<grp>

       -i <interface> : Specify interface name to send DVMRP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of DVMRP packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of DVMRP packet.(MUST)
       -l <time>      : Specify prune lifetime.
                        Default: 180s.
       -e <src>/<grp> : Specify (S,G) entry.(MUST)

     PIM Packet Generator

     Sending Hello Message

       hello [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-t <type>] [-l <len>] [-v <value>] [-C <count>]

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of PIM packet.
                        Default: 224.0.0.13.
       -t <type> : Specify Option type.
                        Default: 1 (Holdtime).
       -l <len> : Specify Option length.
                       Default: 2.
       -v <value>: Specify Option value.
                        Default: 210s
       -C <count>     : Specify number of sending packet.
                        Interval is 35s(PIM Hello Interval).

     Sending Register Message

       reg [-i <interface>] [-s <src_addr>] [-n] [-b] [-p <src>/<dst>] -d <dst_addr>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -n  :  Set Null bit.
       -b  :  Set Border bit.
       -p <src>/<dst> : Specify source/destination address of encapsulation IP packet. If not specify, sending Null Register message. Encapsulation IP packet length is 64 byte(Fix).
       -d <dst_addr>  : Specify destination IP address of PIM packet.

     Sending Register-stop Message

       reg_stop [-i <interface>] [-s <src_addr>] -g <group/masklen> -e <address> -d <dst_addr>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -g <group>/<masklen> : Specify Encoded-Group address.
       -e <address>: Specify Encode-Unicast-Source address.
       -d <dst_addr>  : Specify destination IP address of Register-stop packet.

     Sending Join/Prune Message

       jp [-i <interface>] [-s <src_addr>] [-h <holdtime>] [-f <list>] [-d <dst_addr>] [-C <count>] -n <nbr address>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -h <holdtime> : Specify Holdtime
       -f <file> : Specify file describing Join/Prune list. The format is:
                           g <group>/<masklen>
                           j <src_addr>/<masklen> <s|r|w>
                                     :
                           p <src_addr>/<masklen> <s|r|w>
                                     :
                       s set S-bit, r set RP-bit, w set WC-bit.
                         ex)
                              g 224.1.1.1/32
                              j 192.168.1.1/32 s w
                              p 192.168.2.1/32 s r
                              g 224.2.2.2/32
                              j 192.168.10.10/32 s r

       -d <dst_addr>  : Specify destination IP address of PIM packet.
                             Default: 224.0.0.13
       -n <nbr addr>: Specify Upstream neighbor's address.
       -C <count>     : Specify number of sending packet.
                        Interval is 60s.

     Sending Bootstrap Message

       bstrap [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-p <priority>] [-f <file>] [-C <count>] -b <bsr_addr>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of PIM packet.
                        Default: 224.0.0.13.
       -p <priority> : Specify priority.
       -l <list> : Specify file describing RP-set information. The format is:
                          <group>/<masklen> <rp_address> <holdtime>
    					:
       -C <count> : Specify number of sending packet.
                        Interval is 60s.
       -b <bsr_addr>: Specify BSR's address.

     Sending C-RP Adv Message

       crpadv [-i <interface>] [-s <src_addr>] [-p <priority>] [-f <file>] [-h <holdtime>] [-C <count>]
                      -r <address> -d <dst_addr>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -p <priority> : Specify priority.
       -f <list> : Specify file describing RP-set information. The format is:
                          <group>/<masklen>
    				:
                        ex)
                               224.1.1.1/32
                               224.2.2.2/32
                               224.10.1.1/32

       -h <holdtime>: Specify holdtime.
                           Default: 150s
       -C <count> : Specify number of sending packet.
                         Interval is 60s.
       -r <address>: Specify RP's address.
       -d <dst_addr>  : Specify destination IP address of PIM packet.

     Sending Assert Message

       assert [-i <interface>] [-s <src_addr>] [-d <dst_addr>] [-r] [-p <preference>] [-m <metric>] -g <group>/<masklen> -e <address>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of PIM packet.
                        Default: Outgoing interface address.
       -d <dst_addr>  : Specify destination IP address of PIM packet.
                        Default: 224.0.0.13
       -r : Set RPT-bit.
       -p <preference> : Specify preference.
       -m <metric> : Specify metric.
       -g <group>/<masklen>: Specify group address.
       -e <address>: Specify Encode-Unicast-Address.

     Sending Graft/Graft-Ack Message

       pim_graft [-i <interface>] [-s <src_addr>] [-h <holdtime>] [-f <list>] [-d <dst_addr>] -n <nbr address>
       pim_gack [-i <interface>] [-s <src_addr>] [-h <holdtime>] [-f <list>] [-d <dst_addr>] -n <nbr address>

       -i <interface> : Specify interface name to send PIM packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify destination IP address of PIM packet.
                        Default: Outgoing interface address.
       -h <holdtime> : Specify Holdtime
       -f <file> : Specify file describing Join/Prune list. The format is:
                           g <group>/<masklen>
                           j <src_addr>/<masklen> <s|r|w>
                                     :
                           p <src_addr>/<masklen> <s|r|w>
                                     :
                       s set S-bit, r set RP-bit, w set WC-bit.
                         ex)
                              g 224.1.1.1/32
                              j 192.168.1.1/32 s w
                              p 192.168.2.1/32 s r
                              g 224.2.2.2/32
                              j 192.168.10.10/32 s r

       -d <dst_addr>  : Specify destination IP address of PIM packet.
                             Default: 224.0.0.13
       -n <nbr addr>: Specify Upstream neighbor address.

     Multicast Packet Generator

     Sending ICMP(simple ping)

       sping [-i <interface>] [-s <src_addr>] [-t <ttl>] <dst_addr>

       -i <interface> : Specify interface name to send ICMP packet.
                        Default: packet send according to routing table.
       -s <src_addr>  : Specify source IP address of ICMP packet.
                        Default: Outgoing interface address.
       -t <ttl>       : Specify IP TTL. Default is 16.
       <dst_addr>  : Specify destination IP address of ICMP packet.(MUST)