HLTAPICommand Guide
HLTAPICommand Guide
HLTAPICommand Guide
Release 2.80
Part No. 913-0008-06 Rev. B
September 2006
Copyright © 2006 Ixia. All rights reserved.
This publication may not be copied, in whole or in part, without Ixia’s consent.
RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the U.S. Government is subject to the restrictions set forth in
subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-
19.
Ixia, the Ixia logo, and all Ixia brand names and product names in this document are either trademarks or registered trademarks of
Ixia in the United States and/or other countries. All other trademarks belong to their respective owners.
The information herein is furnished for informational use only, is subject to change by Ixia without notice, and should not be con-
strued as a commitment by Ixia. Ixia assumes no responsibility or liability for any errors or inaccuracies contained in this publica-
tion.
Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xv
::ixia::interface_config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
::ixia::cleanup_session . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
::ixia::interface_stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
::ixia::traffic_control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-45
::ixia::traffic_stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-47
::ixia::get_packet_content . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
::ixia::emulation_bgp_route_config . . . . . . . . . . . . . . . . . . . 4-7
::ixia::emulation_bgp_control . . . . . . . . . . . . . . . . . . . . . . . 4-14
::ixia::emulation_bgp_info . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
::ixia::emulation_dhcp_group_config . . . . . . . . . . . . . . . . . . 5-4
::ixia::emulation_dhcp_control . . . . . . . . . . . . . . . . . . . . . . . 5-8
::ixia::emulation_dhcp_stats. . . . . . . . . . . . . . . . . . . . . . . . 5-10
::ixia::emulation_ftp_traffic_config . . . . . . . . . . . . . . . . . . . 6-10
::ixia::emulation_ftp_control . . . . . . . . . . . . . . . . . . . . . . . . 6-14
::ixia::emulation_ftp_control_config . . . . . . . . . . . . . . . . . . . 6-16
::ixia::emulation_ftp_stats . . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
::ixia::emulation_http_traffic_config . . . . . . . . . . . . . . . . . . . 7-10
::ixia::emulation_http_traffic_type_config . . . . . . . . . . . . . . 7-18
::ixia::emulation_http_control. . . . . . . . . . . . . . . . . . . . . . . . 7-26
::ixia::emulation_http_stats . . . . . . . . . . . . . . . . . . . . . . . . . 7-28
::ixia::emulation_http_control_config . . . . . . . . . . . . . . . . . . 7-35
::ixia::emulation_igmp_control. . . . . . . . . . . . . . . . . . . . . . . . 8-5
::ixia::emulation_igmp_group_config. . . . . . . . . . . . . . . . . . . 8-6
::ixia::emulation_igmp_info . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
::ixia::emulation_isis_topology_route_config. . . . . . . . . . . . 9-10
::ixia::emulation_isis_control . . . . . . . . . . . . . . . . . . . . . . . . 9-18
::ixia::l2tp_control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-11
::ixia::l2tp_stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-12
::ixia::l2tpv3_session_config . . . . . . . . . . . . . . . . . . . . . . . 11-8
::ixia::l2tpv3_control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-14
::ixia::l2tpv3_stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-15
::ixia::emulation_ldp_route_config . . . . . . . . . . . . . . . . . . . 13-7
::ixia::emulation_ldp_control . . . . . . . . . . . . . . . . . . . . . . 13-12
::ixia::emulation_ldp_info . . . . . . . . . . . . . . . . . . . . . . . . . 13-14
::ixia::emulation_mld_group_config. . . . . . . . . . . . . . . . . . . 14-6
::ixia::emulation_mld_control. . . . . . . . . . . . . . . . . . . . . . . . 14-7
::ixia::emulation_multicast_source_config. . . . . . . . . . . . . . 15-4
::ixia::emulation_ospf_topology_route_config . . . . . . . . . . . 16-8
::ixia::emulation_ospf_control . . . . . . . . . . . . . . . . . . . . . . 16-16
::ixia::emulation_ospf_lsa_config . . . . . . . . . . . . . . . . . . . 16-18
::ixia::emulation_pim_group_config. . . . . . . . . . . . . . . . . . . 17-9
::ixia::emulation_pim_control. . . . . . . . . . . . . . . . . . . . . . . 17-13
::ixia::pppox_control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-13
::ixia::pppox_stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-14
::ixia::emulation_rip_route_config . . . . . . . . . . . . . . . . . . . 19-6
::ixia::emulation_rip_control . . . . . . . . . . . . . . . . . . . . . . . . 19-8
::ixia::emulation_rsvp_tunnel_config . . . . . . . . . . . . . . . . . 20-7
::ixia::emulation_rsvp_control . . . . . . . . . . . . . . . . . . . . . 20-14
::ixia::emulation_rsvp_info . . . . . . . . . . . . . . . . . . . . . . . . 20-15
::ixia::emulation_rsvp_tunnel_info . . . . . . . . . . . . . . . . . . 20-18
::ixia::emulation_telnet_traffic_config. . . . . . . . . . . . . . . . 21-10
::ixia::emulation_telnet_stats . . . . . . . . . . . . . . . . . . . . . . 21-14
::ixia::emulation_telnet_control_config. . . . . . . . . . . . . . . 21-23
::ixia::emulation_telnet_control . . . . . . . . . . . . . . . . . . . . 21-29
This guide describes the Ixia implementation of the Cisco High Level Tcl API.
The intended audience consists of Cisco test technicians who configure Ixia test
equipment and software.
The intent of the HLTAPI is to make the use of the test equipment easier to auto-
mate. The HLTAPI hides Ixia’s lower level API, greatly reducing test script
changes when Ixia’s lower level API changes in newer releases. Any differences
will be hidden under the HLTAPI, making them completely transparent to the
end user, and thus requiring no changes to the test scripts themselves.
• Notes on page xv
HLTAPI Commands xi
Preface
Installing HLTAPI
Windows The HLTAPI package is provided in two forms, either a ZIP file or a TAR file.
They are named, respectively:
ixia_hlt_api_package_<release>.zip
ixia_hlt_api_package_<release>.tar
These file contains all the libraries and utilities required to call the Ixia package.
Program Riles/ixia/tclscripts/lib
2. Extract and copy all directories and files from the ZIP or TAR file into your
TclScripts/lib directory.
3. Verify that the installed environment has a pointer to the location of the pack-
age files.
NOTE: pkgIndex.tcl files are now provided for IxOS 3.65, 3.70, and 3.80 and
need to be put in place by the user. Future versions of the released IxOS code
for 3.70 and forward will contain the changes in these files, but this allows users
to move forward without having to wait. These files are named
pkgIndex.tcl.install but need to be renamed to pkgIndex.tcl when the user
places them in the proper directories.
2. Extract and copy all directories and files from the ZIP or TAR file into the lib
directory of the IxOS client installation. For example, if the IxOS client is
installed in /home/ixia/ixos4.0, the HLTAPI should be extracted to /home/ixia/
ixos4.0/lib.
Alternatively, create a HLTAPI only and directly extract the files there. In this
case, set the TCLLIBPATH to point to both IXIA client installation and the
HLTAPI installation.
• TCLLIBPATH – path to the TCL code where the package can be found
If this or a similar error message appears in IxOS 4.00 (or later), install the
IxRouter or IxNetwork package on both the IxOS chassis and IxOS client.
HLTSET12 2.80 4.10 SP6 4.10 SP1 N/A 2.20 SP2 3.00 SP1
Patch 2 Patch 2
Determine what version of the product to be tested is used, then use the value in
the far left column as the value for IXIA_VERSION. If multiple products are
used, be sure to use a value that incorporates the appropriate version of all Ixia
products in the test.
Notes
Command Conventions.
• All the commands in this guide are in the following format:
-command_name_example
• Some commands in this manual are in colored text. Red commands are
Ixia specific commands, while blue commands are Cisco specific com-
mands. For example:
-ipv6_mpls_nlri
HLTAPI Commands xv
Preface
HLTAPI
• In the traffic_config call, ICMP options are valid for IPv4 only; ICMP
options are not currently supported for IPv6 streams.
IGMPoPPP support IGMPoPPP is now supported. See Chapter 8, IGMPvX APIs for
more information
IxAccess DHCP The DHCP options for IxAccess are now See Chapter 5, DHCP APIs for
related API options available. more information
Per port aggregate Per port aggregated Type of Service statistics See Chapter 2, Traffic APIs for
TOS statistics are now available. more information
Per session traffic Per session traffic statistics are now available. See Chapter 2, Traffic APIs for
statistics more information
NAME — ::ixia::connect
DESCRIPTION This command connects to the Ixia Chassis, takes ownership of selected ports,
and optionally loads a configuration on the chassis or resets the targeted ports to
factory defaults.
SYNOPSIS ::ixia::connect
-device ip address or chassis name
-port_list interface list
[-reset]
[-config_file chassis configuration file]
[-username username]
[-break_locks CHOICES 0 1]
[-sync CHOICES 0 1]
[-tcl_server tcl server ip address]
[-timeout]
[-nobios]
[-forceload]
ARGUMENTS
-config_file Name of a file containing Ixia configuration information. Must be a .chs file of
an exported chassis from IxExplorer.
-port_list List of Ixia ports of which to take ownership. If multiple devices are specified,
then this is a list of lists. A single item is of the form card number / port number.
So card 2, port 4 would look like 2/4.
Value Usage
-sync If enabled, the ixClearTimeStamps routine is called for the reserved port list.
-tcl_server IP address or name of the ixTclServer. Default is the first item in option "device"
list.
-timeout
-nobios
-forceload
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::interface_config
DESCRIPTION This command configures an interface on an Ixia Load Module. It provides the
means for managing the Ixia Chassis Test Interface options. Depending on
whether the port is a SONET, Ethernet or ATM type, you have access to the
appropriate protocol properties.
This command accommodates addressing schemes such as like IPv4, IPv6, MAC
and VLAN. You also have access to the SONET properties for a PoS port, and if
the port is configured for PPP, you have access to the PPP configuration options.
SYNOPSIS ::ixia::interface_config
-port_handle interface list
[-intf_mode CHOICES atm pos_hdlc pos_ppp
ethernet frame_relay1490 frame_relay2427
frame_relay_cisco srp srp_cisco rpr gfp]
[-mode CHOICES config modify
destroy]
[-speed CHOICES ether10 ether100
ether1000 oc3 oc12 oc48 oc192 ether10000wan
ether10000lan]
[-phy_mode CHOICES copper fiber]
[-clocksource CHOICES internal loop
external]
[-op_mode CHOICES loopback normal
monitor sim_disconnect]
[-framing CHOICES sonet sdh]
[-rx_fcs CHOICES 16 32]
[-tx_fcs CHOICES 16 32]
[-rx_scrambling CHOICES 0 1]
[-tx_scrambling CHOICES 0 1]
[-rx_c2]
[-tx_c2]
[-duplex CHOICES half full]
[-autonegotiation CHOICES 0 1]
[-vlan CHOICES 0 1]
[-src_mac_addr]
[-intf_ip_addr IP]
[-ipv6_intf_addr IP]
[-netmask IP]
[-ipv6_prefix_length]
[-gateway IPV4]
[-arp_send_req CHOICES 0 1]
[-arp_req_retries]
[-arp_req_timer RANGE 1-100]
[-vpi RANGE 0-255]
[-vci RANGE 32-65535]
[-atm_encapsulation CHOICES VccMuxIPV4Routed
VccMuxBridgedEthernetFCS VccMuxBridgedEthernetNoFCS
VccMuxIPV6Routed VccMuxMPLSRouted LLCRoutedCLIP
LLCBridgedEthernetFCS LLCBridgedEthernetNoFCS
LLCPPPoA VccMuxPPPoA LLCNLPIDRouted]
[-atm_enable_coset CHOICES 0 1]
[-atm_enable_pattern_matching CHOICES 0 1]
[-atm_filler_cell CHOICES idle unassigned]
[-atm_interface_type CHOICES uni nni]
ARGUMENTS
Value Usage
atm N/A
pos_hdlc N/A
pos_ppp N/A
ethernet N/A
frame_relay1490 N/A
frame_relay2427 N/A
frame_relay_cisco N/A
srp N/A
srp_cisco N/A
rpr N/A
gfp N/A
Value Usage
config N/A
destroy N/A
modify N/A
Value Usage
ether10 N/A
ether100 N/A
ether1000 N/A
oc3 N/A
oc12 N/A
oc48 N/A
oc192 N/A
ether10000wan N/A
ether10000lan N/A
-phy_mode For dual mode ethernet interfaces only. Valid choices are:
Value Usage
copper N/A
fiber N/A
-clocksource Clock source for SONET interfaces at which each interface is configured. Valid
choices are:
Value Usage
Value Usage
loopback N/A
normal N/A
monitor N/A
sim_disconnect N/A
Value Usage
sonet N/A
sdh N/A
-rx_fcs FCS value (16 or 32) for the receiving side of each interfaces. Valid choices are:
Value Usage
16 N/A
32 N/A
-tx_fcs FCS value (16 or 32) for the transmitting side of each interfaces. Valid choices
are:
Value Usage
16 N/A
32 N/A
-rx_scrambling Whether to enable data scrambling in the SONET framer of the Ixia interface.
(SPE Scrambling = X^43+1). Valid choices are:
Value Usage
0 Disable.
1 (default) Enable.
Value Usage
0 Disable.
1 (default) Enable.
Value Usage
full N/A
half N/A
Value Usage
0 Disable.
1 (default) Enable.
-vlan Whether to enable VLAN on the traffic generation tool interfaces. Valid choices
are:
Value Usage
1 Enable.
0 (default) Disable.
-intf_ip_addr List of IP addresses that configure each of the traffic generation tool interfaces.
-ipv6_intf_addr List of IPv6 addresses that configure each of the traffic generation tool interfaces.
-netmask Network mask used for IP address configuration of the traffic generation tool
interfaces.
-ipv6_prefix_length
-gateway List of IP addresses that configure the addresses of the gateway (that is, the DUT
interface IP addresses).
-arp_send_req Whether sending an ARP request to the DUT is enabled. You can use this basic
function to ensure correct addressing of the interfaces. By default, the ARP is
sent on the Ethernet port. Valid choices are:
Value Usage
0 (default) Disable.
1 Enable.
-arp_req_retries
-arp_req_timer (depracated) The value has no effect on the code. It was left in so as not to break
existing scripts that attempt to use it.
-atm_encapsulation Sets atm encapsulation type for ports that support ATM feature
-atm_enable_coset If 1, enables the Coset algorithm to be used with the Header Error Control (HEC)
byte.
(DEFAULT = 1)
-atm_enable_pattern_ If 1, then the use of capture and filter based on ATM patterns is enabled and the
matching maximum number of VCCs is reduced to 12,288.
(DEFAULT = 1)
-atm_filler_cell SONET frame transmission is continuous even when data or control messages
are not being transmitted. This option allows the cell type that is transmitted dur-
ing these intervals. Valid choices are:
Value Usage
Value Usage
-atm_packet_decode_ This setting controls the interpretation of received packets when they are
mode decoded. Valid choices are:
Value Usage
(DEFAULT = 10)
-data_integrity Whether to enable the data integrity checking capability on the port. Valid
choices are:
Value Usage
0 (default) Disable.
1 Enable.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-pgid_128k_bin_enable Enables the 128k bin mode so that the wide packet group receive mode will be
larger.
-pgid_mask The mask value to use when the -port_rx_mode is set to wide_packet_group.
Value is by default a two byte value, in hex form, without any spaces (e.g.,
AAAA).
-port_rx_mode Configure the Receive Engine of the Ixia port. Valid choices are:
Value Usage
-ppp_ipv4_address IPv4 address for which to enable or disable PPP IPv4 negotiation.
-ppp_ipv4_negotiation Whether to enable PPP IPv4 negotiation on this port. Valid choices are:
Value Usage
0 Disable.
1 (default) Enable.
-ppp_ipv6_negotiation Whether to enable PPP IPv6 negotiation on this port. Valid choices are:
Value Usage
0 Disable.
1 (default) Enable.
-ppp_mpls_negotiation Whether to enable PPP MPLS negotiation on this port. Valid choices are:
Value Usage
0 Disable.
1 (default) Enable.
-ppp_osi_negotiation Whether to enable OSI Network Control protocol on the Ixia PoS port. Valid
choices are:
Value Usage
0 Disable.
1 (default) Enable.
-qos_stats Whether to have access to the QOS (IP TOS PRECEDENCE) statistics on this
port. Valid choices are:
Value Usage
0 Disable.
1 (default) Enable.
-qos_byte_offset The byte offset from the beginning of the packet for the byte which contains the
QoS level for the packet.
(DEFAULT = 14)
-qos_pattern_offset The byte offset from the beginning of the packet for the byte(s) that contains a
value to be matched. If the pattern is matched, then the packet is deemed to con-
tain a QoS level.
(DEFAULT = 12)
-qos_pattern_match The value to be matched for at the Pattern Match Offset, subject to the Pattern
Match Mask. The value is in hex.
(DEFAULT = 8100)
-qos_pattern_mask The mask to be applied to the pattern match. Value of 1 indicate that the corre-
sponding bit is not to be matched.
(DEFAULT = 0000)
(DEFAULT = vlan)
-sequence_checking Whether to enable the frame sequence capability on this port. Valid choices are:
Value Usage
0 (default) Disable.
1 Enable.
-rpr_hec_seed The initial setting of the CRC for the 16 byte header. This option is used only
when intf_mode is set to rpr. Valid choices are:
Value Usage
0 (default) 0x0000
1 0xFFFF
(DEFAULT = 44)
-signature Signature used in the packet for Packet Group Statistics when packet groups or
wide packet groups are enable. This signature will be searched into the received
packets at offset represented by -signature_offset.
-signature_offset The offset of the signature in the packet. You can configure a fully customized
signature in the packet for advanced testing. The signature of the packet is a 4-
byte value, "DE AD BE EF". This signature is used for ease of readability when
capturing packets. If -port_rx_mode is set to auto_detect_instrumentation then
this offset will be ignored.
(DEFAULT = 48 bytes)
(DEFAULT = 0 bytes)
-integrity_signature Signature used in the packet for data integrity checking. When the Receive Mode
for a port is configured to check for data integrity, received packets are matched
for the data integrity signature value. This signature is a 4-byte value.
-integrity_signature_offset The offset of the data integrity signature in the packet. If -port_rx_mode is set to
auto_detect_instrumentation then this offset will be ignored, only the -integrity_
signature is needed.
(DEFAULT = 40 bytes)
Value Usage
-vlan_id VLAN ID of each interface where VLAN is enabled. Valid choices are between
0 and 4095, inclusive.
(DEFAULT = 0)
-vlan_user_priority If VLAN is enabled on the interface, the priority of the VLAN. Valid choices are
between 0 and 7, inclusive.
(DEFAULT = 0)
-rx_hec
-long_lof_wait
-crlf_path_trace
-tx_enhanced_prdi
-rx_enhanced_prdi
-ss_bits_pointer_interp
-output_enable
-tx_k2
-tx_s1
-signal_fail_ber
-auto_line_rdi
-auto_line_rei
-auto_path_rei
-section_unequip
-aps
-aps_channel
-aps_switch_mode
-aps_arch
-pause_length
-ignore_pause_frames
-interpacket_gap
-dst_mac_addr
-aps_request_1_1
-aps_request_1_n
-ipv6_gateway
-control_plane_mtu
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::cleanup_session
DESCRIPTION This command disconnects, resets to factory defaults, and removes ownership
from a list of ports. This command can be used after a script is run.
SYNOPSIS ::ixia::cleanup_session
[-maintain_lock CHOICES 1 0]
[-port_handle interface list]
[-reset]
[-handle]
ARGUMENTS
Value Usage
0 Unlock test ports. Use this value at end of
tests.
1 Do not unlock test ports. Use this value at
beginning of tests.
-handle
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::interface_stats
DESCRIPTION Retrieves interface statistics and counter information for the specified test port.
SYNOPSIS ::ixia::interface_stats
-port_handle
ARGUMENTS
RETURN VALUES
Key Value
EXAMPLES
SAMPLE INPUT
SAMPLE OUTPUT
All keys that are not listed in this documentation are not supported in the current
implementation of this command.
SEE ALSO
NAME — ::ixia::traffic_config
DESCRIPTION This command configures traffic streams on the specified port with the specified
options.
SYNOPSIS ::ixia::traffic_config
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
-mode CHOICES create modify remove
reset enable
[-port_handle2 REGEXP ^[0-9]+/[0-9]+/[0-9]+$
[-emulation_src_handle]
[-emulation_dst_handle]
[-bidirectional FLAG]
[-stream_id RANGE 1-255]
[-length_mode CHOICES fixed increment
random auto imix gaussian quad]
[-l3_length RANGE 1-64000]
[-l3_length_min RANGE 1-64000]
[-l3_length_max RANGE 1-64000]
[-l3_imix1_size RANGE 32-1518]
[-l3_imix1_ratio]
[-l3_imix2_size RANGE 32-1518]
[-l3_imix2_ratio]
[-l3_imix3_size RANGE 32-1518]
[-l3_imix3_ratio]
[-l3_imix4_size RANGE 32-1518]
[-l3_imix4_ratio]
[-l3_gaus1_avg DECIMAL]
[-l3_gaus1_halfbw DECIMAL]
[-l3_gaus1_weight NUMERIC]
[-l3_gaus2_avg DECIMAL]
[-l3_gaus2_halfbw DECIMAL]
[-l3_gaus2_weight NUMERIC]
[-l3_gaus3_avg DECIMAL]
[-l3_gaus3_halfbw DECIMAL]
[-l3_gaus3_weight NUMERIC]
[-l3_gaus4_avg DECIMAL]
[-l3_gaus4_halfbw DECIMAL]
[-l3_gaus4_weight NUMERIC]
[-rate_pps]
[-rate_bps]
[-rate_percent RANGE 0-100]
[-transmit_mode CHOICES continuous
random_spaced single_pkt single_burst multi_burst
continuous_burst return_to_id return_to_id_for_count
advance]
[-pkts_per_burst INTEGER]
[-burst_loop_count INTEGER]
[-inter_burst_gap INTEGER]
[-inter_stream_gap INTEGER]
[-vlan_id RANGE 0-4095]
[-vlan_id_count RANGE 0-4095]
[-vlan_id_step NUMERIC]
[-vlan_user_priority RANGE 0-7]
[-vlan_id_mode CHOICES fixed increment
decrement random]
[-vlan_cfi CHOICES 0 1]
[-fcs CHOICES 0 1]
[-mpls_labels]
[-l2_encap CHOICES atm_vc_mux
atm_vc_mux_ethernet_ii atm_vc_mux_802.3snap
atm_vc_mux_802.3snap_nofcs atm_vc_mux_ppp
atm_vc_mux_pppoe atm_snap atm_snap_ethernet_ii
atm_snap_802.3snap atm_snap_802.3snap_nofcs
atm_snap_ppp atm_snap_pppoe hdlc_unicast
hdlc_broadcast hdlc_unicast_mpls hdlc_multicast_mpls
ethernet_ii ethernet_ii_unicast_mpls
ethernet_ii_multicast_mpls ethernet_ii_vlan
ethernet_ii_vlan_unicast_mpls
ethernet_ii_vlan_multicast_mpls ethernet_ii_pppoe
ethernet_ii_vlan_pppoe ppp_link ietf_framerelay
cisco_framerelay]
[-mac_src MAC]
[-mac_src_mode CHOICES fixed increment
decrement random emulation]
[-mac_src_step MAC]
[-mac_src_count INTEGER]
[-mac_dst MAC]
[-mac_dst_mode CHOICES fixed increment
decrement discovery random]
[-mac_dst_step MAC]
[-mac_dst_count INTEGER]
[-mac_src2 MAC]
[-mac_dst2 MAC]
[-l3_protocol CHOICES ipv4 ipv6 arp
pause_control ipx]
[-ip_src_addr IP]
[-ip_src_mode CHOICES fixed increment
decrement random emulation]
[-ip_src_count 1-1000000]
[-ip_src_step IP]
[-ip_dst_addr IP]
[-ip_dst_mode CHOICES fixed increment
decrement random emulation]
[-ip_dst_count 1-1000000]
[-ip_dst_step IP]
[-ip_fragment_offset RANGE 0-8191]
[-ip_fragment CHOICES 0 1]
[-ip_fragment_last CHOICES 0 1]
[-ip_ttl RANGE 0-255]
[-ip_protocol RANGE 0-255]
[-ip_id RANGE 0-65535]
[-ip_precedence RANGE 0-7]
[-ip_dscp RANGE 0-63]
[-ipv6_src_addr IPV6]
[-ipv6_src_mode CHOICES fixed increment
decrement random]
[-ipv6_src_count 1-1000000]
[-ipv6_src_step IPV6]
[-ipv6_dst_addr IPV6]
[-ipv6_dst_mode CHOICES fixed increment
decrement random]
[-ipv6_dst_count RANGE 1-1000000]
[-ipv6_routing_node_list IPV6]
[-ipv6_routing_res REGEXP ^([0-9a-fA-
F]{2}[.:]{1}){3}[0-9a-fA-F]{2}$ DEFAULT 00:00:00:00]
[-ipv6_frag_res_2bit RANGE 0-3 DEFAULT 3]
[-ipv6_frag_res_8bit RANGE 0-127 DEFAULT 30]
[-ipv6_auth_string REGEXP ^([0-9a-fA-
F]{2}[.:]{1})+[0-9a-fA-F]{2}$ DEFAULT 00:00:00:00]
[-ipv6_auth_payload_len RANGE 0-4294967295
DEFAULT 2]
[-ipv6_auth_spi RANGE 0-4294967295 DEFAULT 0]
[-ipv6_auth_seq_num RANGE 0-4294967295 DEFAULT 0]
[-l3_length_step RANGE 1-64000]
[-mpls CHOICES enable disable]
[-mpls_bottom_stack_bit CHOICES 0 1]
[-mpls_exp_bit]
[-mpls_ttl]
[-mpls_type CHOICES unicast multicast]
[-name]
[-no_write]
[-pause_control_time RANGE 0-65535]
[-qos_byte RANGE 0-127 DEFAULT 0]
[-qos_rate_mode CHOICES percent pps bps
DEFAULT bps]
[-qos_rate NUMERIC]
[-qos_atm_clp CHOICES 0 1 DEFAULT 0]
[-qos_atm_efci CHOICES 0 1 DEFAULT 0]
[-qos_atm_cr CHOICES 0 1 DEFAULT 0]
[-qos_fr_cr CHOICES 0 1 DEFAULT 0]
[-qos_fr_de CHOICES 0 1 DEFAULT 0]
[-qos_fr_becn CHOICES 0 1 DEFAULT 0]
[-qos_fr_fecn CHOICES 0 1 DEFAULT 0]
[-qos_ipv6_flow_label RANGE 0-1048575 DEFAULT 0]
[-qos_ipv6_traffic_class RANGE 0-255 DEFAULT 0]
[-enable_voice CHOICES 0 1 DEFAULT 0]
[-enable_data CHOICES 0 1 DEFAULT 0]
[-voice_tos RANGE 0-127]
[-data_tos RANGE 0-127]
[-rip_command CHOICES request response
trace_ontrace_off reserved]
[-rip_version CHOICES 1 2]
[-enable_time_stamp]
[-vlan CHOICES enable disable]
[-vlan_protocol_tag_id CHOICES 8100 9100 9200]
[-number_of_packets_per_stream]
[-table_udf_column_name]
[-table_udf_column_type CHOICES hex ascii binary
decimal macipv4 ipv6 REGEXP ^([0-9]+[a|b|d|x],)*[0-
9]+[a|b|d|x]$]
[-table_udf_column_offset]
[-table_udf_column_size]
[-table_udf_rows]
[-enable_udf1]
[-udf1_mode]
[-udf1_offset]
[-udf1_counter_type]
[-udf1_counter_up_down]
[-udf1_counter_init_value]
[-udf4_counter_repeat_count]
[-udf4_counter_step]
[-udf4_value_list]
[-udf4_counter_mode]
[-udf4_inner_repeat_value]
[-udf4_inner_repeat_count]
[-udf4_inner_step]
[-udf4_enable_cascade]
[-udf4_cascade_type]
[-udf4_skip_zeros_and_ones]
[-udf4_mask_select]
[-udf4_mask_val]
[-udf4_skip_mask_bits]
[-enable_udf5]
[-udf5_mode]
[-udf5_offset]
[-udf5_counter_type]
[-udf5_counter_up_down]
[-udf5_counter_init_value]
[-udf5_counter_repeat_count]
[-udf5_counter_step]
[-udf5_value_list]
[-udf5_counter_mode]
[-udf5_inner_repeat_value]
[-udf5_inner_repeat_count]
[-udf5_inner_step]
[-udf5_enable_cascade]
[-udf5_cascade_type]
[-udf5_skip_zeros_and_ones]
[-udf5_mask_select]
[-udf5_mask_val]
[-udf5_skip_mask_bits]
[-signature REGEXP ^([0-9a-fA-F]{2}[.:
]{0,1}){0,11}[0-9a-fA-F]{2}$]
[-signature_offset]
[-enable_pgid]
[-pgid_value REGEXP ^([0-9a-fA-F]{2}[.:
]{0,1}){0,3}[0-9a-fA-F]{2}$ NUMERIC ]
[-number_of_packets_tx]
[-loop_count]
[-return_to_id]
[-adjust_rate]
[-variable_user_rate CHOICES 0 1 DEFAULT 0]
[-l7_traffic CHOICES 0 1 DEFAULT 0]
[-duration NUMERIC DEFAULT 10]
[-pppoe_unique_acmac CHOICES 0 1 DEFAULT 0]
[-session_repeat_count RANGE 1-8000 DEFAULT 1]
[-session_traffic_stats CHOICES 0 1 DEFAULT 0]
[-ppp_session_id]
[-mac_src2_mode]
[-mac_src2_step]
[-mac_src2_count]
[-mac_dst2_mode]
[-mac_dst2_step]
[-mac_dst2_count]
[-ip_src_skip_multicast]
[-ip_src_skip_broadcast]
ARGUMENTS
-port_handle2 A second port for which to configure traffic configuration when option "bidirec-
tional" is enabled.
-bidirectional Whether traffic is setup to transmit in both directions. The two ports receiving
and transmitting are specified by options port_handle and port_handle2. Option
"l3_protocol" source and destination addresses are swapped to get the traffic
flowing in both directions.
The parameters are based on the port associated with port_handle and are
swapped for the port associated with port_handle2.
MAC addresses can be handled in two ways. First, if the MAC destination
addresses are not provided, ARP is used to get the next hop MAC address based
on the gateway IP address set in the command interface_config. Second, use
option "mac_dst" and "mac_dst2" addresses provided by this command. Option
"mac_dst2" applies to the port associated with option "port_handle2". Option
"stream_id" is the same for both directions.
As for the Source MAC, you can use option "mac_src2" to configure the MAC
on the second port, and option "mac_dst2" to configure the destination MAC on
the second port if you are not using L2 next hop. Valid choices are:
Value Usage
0 Disabled.
1 Enabled.
Value Usage
-stream_id Required for -mode modify and remove calls. Stream ID is not required for con-
figuring a stream for the first time. In this case, the stream ID is returned from the
call.
-length_mode Behavior of the packet size for a particular stream. Valid choices are:
Value Usage
fixed N/A
increment N/A
random N/A
auto N/A
imix Mix of packet sizes are specified using
options l3_imix1_size etc
gaussian, quad Packet sizes are specified as gaussian/quad
curves using options l3_gaus1_avg, l3_
gaus1_halfbw, l3_gaus1_weight etc.
-l3_length Packet size in bytes. Use this option in conjunction with option "length_mode"
set to fixed. Valid choices are between 1 and 64000, inclusive.
-l3_length_min Minimum packet size for the specified stream in bytes. Use this option in con-
junction with option "length_mode" set to increment.
-l3_length_max Maximum packet size for the specified stream in bytes. Use this option in con-
junction with option "length_mode" set to increment.
-l3_gaus1_avg The center of the first curve. Used if length_mode is set to gaussian or quad.
-l3_gaus1_weight The weigth of the first curve. Used if length_mode is set to gaussian or quad.
-l3_gaus2_avg The center of the second curve. Used if length_mode is set to gaussian or quad.
-l3_gaus2_halfbw The width at half of the second curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus2_weight The weigth of the second curve. Used if length_mode is set to gaussian or quad.
-l3_gaus3_avg The center of the third curve. Used if length_mode is set to gaussian or quad.
-l3_gaus3_halfbw The width at half of the third curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus3_weight The weigth of the third curve. Used if length_mode is set to gaussian or quad.
-l3_gaus4_avg The center of the fourth curve. Used if length_mode is set to gaussian or quad.
-l3_gaus4_halfbw The width at half of the fourth curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus4_weight The weigth of the fourth curve. Used if length_mode is set to gaussian or quad.
-rate_percent Traffic rate in percent of line rate for the specified stream. Valid choices are
between 0.00 and 100.00, inclusive.
(DEFAULT = 100.00)
-transmit_mode Type of transmit mode to use. Note that all transmit modes need to have one
value set in either rate_pps, rate_bps, or rate_percent. Also, not all choices may
be available for a stream, depending on the ::ixia::interface_config -transmit_
mode argument.
Value Usage
advance after all the frames are sent from the current
stream, the frames from the next stream on
the port are transmitted.
continuous continuously transmit the frames on this
stream.
continuous_burst continuously transmit bursts of frames on this
stream.
multi_burst transmit multiple bursts and then stop all
transmission from the port where this stream
resides regardless of existence of other
streams on this port.
Value Usage
-vlan_id VLAN tag for a particular stream. Valid choices are between 0 and 4095, inclu-
sive.
-vlan_id_step The step value for a VLAN ID when the mode is increment or decrement
-vlan_user_priority VLAN user priority for the stream. Valid choices are between 0 and 7, inclusive.
-vlan_id_mode Behavior of the VLAN tag in packets for a particular stream. Valid choices are:
Value Usage
Value Usage
0 Unset.
1 Set.
-fcs Whether to insert an fcs error in the frame. Valid choices are:
Value Usage
0 Disable.
1 Enable.
-mpls_labels MPLS labels in the packets for each stream. Ixia supports multiple MPLS labels
in a single packet. For example, to stack three labels in one packet, use -mpls_
labels {14 18 78}, where 14, 18 and 78 are the label IDs in the packet.
Value Usage
atm_vc_mux N/A
atm_vc_mux_ethernet_ii N/A
atm_vc_mux_802.3snap N/A
atm_vc_mux_802.3snap_nofcs N/A
atm_vc_mux_ppp N/A
atm_vc_mux_pppoe N/A
atm_snap N/A
atm_snap_ethernet_ii N/A
atm_snap_802.3snap N/A
atm_snap_802.3snap_nofcs N/A
atm_snap_ppp N/A
atm_snap_pppoe N/A
hdlc_unicast N/A
hdlc_broadcast N/A
hdlc_unicast_mpls N/A
hdlc_multicast_mpls N/A
ethernet_ii N/A
ethernet_ii_unicast_mpls N/A
ethernet_ii_multicast_mpls N/A
ethernet_ii_vlan N/A
ethernet_ii_vlan_unicast_mpls N/A
ethernet_ii_vlan_multicast_mpls N/A
ethernet_ii_pppoe N/A
ethernet_ii_vlan_pppoe N/A
ppp_link N/A
ietf_framerelay N/A
cisco_framerelay N/A
-mac_src Source MAC address for a particular stream. Valid formats are:
11:11:11:11:11:11
2222.2222.2222
{33 33 33 33 33 33}
-mac_src_mode Behavior of the source MAC address for a particular stream. Valid choices are:
Value Usage
(DEFAULT = 1)
-mac_dst Destination MAC address for a particular stream. Valid formats are:
11:11:11:11:11:11
2222.2222.2222
{33 33 33 33 33 33}
-mac_dst_mode Behavior of the destination MAC address for a particular stream. Valid choices
are:
Value Usage
(DEFAULT = 1)
11:11:11:11:11:11
2222.2222.2222
{33 33 33 33 33 33 }
-mac_dst2 Value of the destination MAC address for port_handle2. This option applies to
bidirectional only. Valid MAC formats are:
11:11:11:11:11:11
2222.2222.2222
{33 33 33 33 33 33 }
-l3_protocol Configures a layer 3 protocol header. This option specifies whether to setup an
ARP, Pause Control, IPX, IPv4, or IPv6 packet. Configure the specifics using the
related options. Valid choices are:
Value Usage
ipv4 N/A
ipv6 N/A
arp N/A
pause_control N/A
ipx N/A
-arp_src_hw_addr Value of the source MAC address for arp packets from a particular stream.
-arp_src_hw_mode Behavior of the source MAC address for ARP packets from a particular stream.
Valid choices are:
Value Usage
fixed default
increment N/A
decrement N/A
-arp_src_hw_count Number of source MAC addresses used in ARP packets in a particular stream.
-arp_dst_hw_addr Value of the destination MAC address for arp packets from a particular stream.
-arp_dst_hw_mode Behavior of the destination MAC address for ARP packets from a particular
stream. Valid choices are:
Value Usage
fixed default
increment N/A
decrement N/A
-arp_operation Type of ARP operation given to a particular ARP pachet from a particular
stream. Valid choices are:
Value Usage
arpRequest default
arpReply N/A
rarpRequest N/A
rarpReply N/A
Value Usage
-ip_src_step The modifier for the increment and decrement choices of -ip_src_mode which
requires that only one field contain a non-zero value.
Value Usage
fixed The destination IP address is the same for all
packets.
increment The destination IP address increments.
decrement The destination IP address decrements.
random The destination IP address is random.
emulation Destination IP derived from the emulation
handle
-ip_dst_step The modifier for the increment and decrement choices of "-ip_dst_mode" which
requires that only one field contain a non-zero value.
-ip_fragment_offset Where in the datagram this fragment belongs. The offset is measured in units of 8
octets (64 bits). Valid choices are between 0 and 8191, inclusive.
Value Usage
-ip_fragment_last Controls whether there are additional fragments used to assemble this datagram.
Valid choices are:
Value Usage
-ip_ttl Time-to-Live, measured in units of seconds. Valid choices are between 0 and
255.
(DEFAULT = 64)
-ip_protocol L4 protocol in the IP header. Valid choices are between 0 and 255.
(DEFAULT = 255)
-ip_id Identifying value assigned by the sender to aid in assembling the fragments of a
datagram. Valid choices are between 0 and 65535.
(DEFAULT = 0)
-ip_precedence Part of the Type of Service byte of the IP header datagram that establishes prece-
dence of delivery. Valid choices are between 0 and 7, inclusive.
-ip_dscp DSCP prcedence for a particular stream. Valid choices are between 0 and 63,
inclusive.
(DEFAULT = 0)
Value Usage
-ipv6_src_step Step size of the source IP address when option "ipv6_src_mode" is set to incre-
ment or decrement.
Value Usage
-ipv6_dst_step Step size of the IPv6 addresses when option "ipv6_dst_mode" is set to increment
or decrement.
(DEFAULT = 100)
(DEFAULT = 0)
(DEFAULT = 286335522)
Value Usage
-icmp_type ICMP message type. Valid choices are between 0 and 255, inclusive.
(DEFAULT = 0)
-icmp_code Code for each ICMP message type. Valid choices are between 0 and 255, inclu-
sive.
(DEFAULT = 0)
-icmp_id ID for each ping command, i.e. echoRequest. Valid choices are between 0 and
65535, inclusive.
(DEFAULT = 0)
-icmp_seq Sequence number for each ping command, i.e. EchoRequest. Valid choices are
between 0 and 65535, inclusive.
(DEFAULT = 0)
-udp_src_port UDP source port for this particular stream. Valid choices are between 0 and
65535, inclusive.
-udp_dst_port UDP destination port for this particular stream. Valid choices are between 0 and
65535, inclusive.
-tcp_src_port TCP source port for this particular stream. Valid choices are between 0 and
65535, inclusive.
-tcp_dst_port TCP destination port for this particular stream. Valid choices are between 0 and
65535, inclusive.
-tcp_seq_num TCP sequence number for this particular stream. Valid choices are between 0 and
65535, inclusive.
-tcp_ack_num TCP tcp_window size field for this particular stream. Valid choices are between
0 and 65535, inclusive.
-tcp_window TCP tcp_window size field for this particular stream. Valid choices are between
0 and 65535, inclusive.
-tcp_urgent_ptr TCP Urgent Pointer value for this particular stream. Valid choices are between 0
and 65535, inclusive.
-tcp_urg_flag Whether the "urgent flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-tcp_psh_flag Whether the "psh flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-tcp_syn_flag Whether the "synchronize flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-tcp_ack_flag Whether the "acknowledge flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-tcp_rst_flag Whether the "reset flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-tcp_fin_flag Whether the "finished flag" in the TCP header is enabled. Valid choices are:
Value Usage
0 (default) Disabled.
1 Enabled.
-igmp_group_mode How the Group Address varies when the repeat count is greater than 1. Valid
choices are:
Value Usage
(DEFAULT = 100)
(DEFAULT = 1)
Value Usage
(DEFAULT = 2)
the VPI value before repeating from the start value (default 1).
the VCI value before repeating from the start value (default 1).
-atm_header_cell_loss_ Sets the Cell Loss Priority (CLP) used to set the discard priority level of the cell.
priority It indicates whether the cell should be discarded if it encounters extreme conges-
tion as it moves through the network. Value 0 has a higher priority than 1 (default
0).
-atm_header_enable_ If set to 1, the vpi/vci values are forced to 0 and 32 (default 0).
auto_vpi_vci
-atm_header_generic_ The generic flow control for use in UNI mode device control signalling.
flow_ctrl
Uncontrolled equipment uses a setting of 0000 (default 0).
-atm_header_hec_errors Indicates the number of HEC errors to insert into the HEC byte (default 0).
-atm_counter_vpi_data_ If the -atm_counter_vpi_type option is set to table, this list is used used for the set
item_list of values (default "").
-atm_counter_vci_data_ If the -atm_counter_vci_type option is set to table, this list is used used for the set
item_list of values (default "").
-atm_counter_vpi_mask_ If the -atm_counter_vpi_type option is set to random, this 16-bit mask indicates
select which bits are held constant The constant values are indicated in the -atm_
counter_vpi_mask_value option (default "00 00").
-atm_counter_vci_mask_ If the -atm_counter_vci_type option is set to random, this 16-bit mask indicates
select which bits are held constant The constant values are indicated in the -atm_
counter_vci_mask_value option (default "00 00").
-atm_counter_vpi_mask_ If the -atm_counter_vpi_type option is set to random, this 16-bit value indicates
value the values that the bits indicated in the atm_counter_vpi_mask_select option
should have (default "00 00").
-atm_counter_vci_mask_ If the -atm_counter_vci_type option is set to random, this 16-bit value indicates
value the values that the bits indicated in the atm_counter_vci_mask_select option
should have (default "00 00").
-atm_counter_vpi_mode If the -atm_counter_vci_type option is set to counter, this indicates what counter
mode should be used (default incr). Currently only the incr and decr mode are
supported.
-atm_counter_vci_mode If the -atm_counter_vpi_type option is set to counter, this indicates what counter
mode should be used (default incr). Currently only the incr and decr mode are
supported.
-atm_counter_vpi_type The type of counter to use on the vpi (default fixed). Currently only fixed,
counter, and table are supported.
-atm_counter_vci_type The type of counter to use on the vci (default fixed). Currently only fixed,
counter, and table are supported.
-data_pattern Payload value in bytes. For example, you can specify a custom payload pattern
like the following using option "data_pattern":
00 44 00 44
Value Usage
-dhcp_boot_filename Boot file name, null terminated string; "generic" name or null in DHCPDIS-
COVER, fully qualified directory-path name DHCPOFFER.
(DEFAULT = "")
-dhcp_client_hw_addr Client hardware address. Must be in the form of a string of hex data.
(DEFAULT = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00)
(DEFAULT = 0)
(DEFAULT = 1).
(DEFAULT = 6).
(DEFAULT = boot_request).
-dhcp_seconds Seconds elapsed since client began address acquisition or renewal process.
(DEFAULT = 0).
(DEFAULT = "").
(DEFAULT = 0.0.0.0).
-dhcp_transaction_id Random number chosen by client and used by the client and server to associate
messages and responses between a client and a server.
(DEFAULT = 0).
(DEFAULT = 0.0.0.0).
With this option enabled the packet size will be increased as follows:
4 bytes - sequencing(optional)
6 bytes - timestamp(mandatory)
This is a total of 28 bytes if data integrity and sequence checking are enabled.
Value Usage
0 Disabled.
1 Enabled.
-ethernet_type For ethernet ports only, the ethernet encapsulation type. Valid choices are:
Value Usage
-ethernet_value For ethernet ports with the ethernet encapsulation type ethernetII, a hex value can
be specified as the Ethernet Type value.
Value Usage
-frame_sequencing_offset The offset within the packet of the sequnce number. This is valid only when
sequence checking is enabled. If -enable_auto_detect_instrumentation is 1, will
be ignored.
-frame_size Actual total frame size coming out of the interface on the wire in bytes. Valid
choices are between 20 and 13312, inclusive.
(DEFAULT = 64)
-frame_size_max Actual maximum total frame size coming out of the interface on the wire in bytes
when option "length_mode" is set to random. Valid choices are between 20 and
13312.
(DEFAULT = 64)
-frame_size_min Actual minimal total frame size coming out of the interface on the wire in bytes
when option "length_mode" is set to random. Valid choices are between 20 and
13312.
(DEFAULT = 64)
-frame_size_step Actual increment by which the actual total frame size in bytes coming out of the
interface on the wire will be incremented. Valid choices are between 20 and
13292.
(DEFAULT = 64)
-gre_checksum_enable Enable checksum for the GRE header (only if -l4_protocol is gre).
-gre_checksum Specify checksum for the GRE header (only if -l4_protocol is gre).
-gre_valid_checksum_ Enable valid checksum for the GRE header (only if -l4_protocol is gre).
enable
-gre_key_enable Enable key for the the GRE header (only if -l4_protocol is gre).
-gre_key Specify the key for the GRE header (only if -l4_protocol is gre).
-inner_protocol Configures a layer 3 protocol header. This option specifies whether to setup an
IPv4 or IPv6 header (only used when l4_protocol is gre).
Value Usage
ipv4 N/A
ipv6 N/A
<hex value> N/A
-inner_ip_src_addr Source IP address for inner GRE IPv4 header (only used when -l4_protocol is
gre).
-inner_ip_src_mode Source IP address mode for inner GRE IPv4 header. Valid choices are:
Value Usage
-inner_ip_src_step The modifier for the increment and decrement choices of inner_ip_src_mode
which requires that only one field contain a non-zero value.
-inner_ip_dst_addr Destination IP address for inner GRE IPv4 header. This option is only used when
-l4_protocol is gre.
Value Usage
-inner_ip_dst_step The modifier for the increment and decrement choices of "-inner_ip_dst_mode"
which requires that only one field contain a non-zero value. This option is only
used when -l4_protocol is gre.
-inner_ipv6_src_addr Source IP address for inner GRE IPv6 header. This option is only used when -l4_
protocol is gre.
-inner_ipv6_src_mode Source IP address mode for inner GRE IPv6 header. This option is only used
when -l4_protocol is gre. Valid choices are:
Value Usage
fixed The source IP address is idle, the same for all
packets.
increment The source IP address (host part) increments.
decrement The source IP address (host part) decre-
ments.
random The source IP address is random.
-inner_ipv6_src_step Step size of the source IP address when option "inner_ipv6_src_mode" is set to
increment or decrement. This option is only used when -l4_protocol is gre.
-inner_ipv6_dst_addr Destination IP address for inner GRE IPv6 header. This option is only used when
-l4_protocol is gre.
-inner_ipv6_dst_mode Destination IPv6 address mode. This option is only used when -l4_protocol is
gre. Valid choices are:
Value Usage
-inner_ipv6_dst_step Step size of the IPv6 addresses when option "inner_ipv6_dst_mode" is set to
increment or decrement. This option is only used when -l4_protocol is gre.
-inner_ipv6_traffic_class Traffic class value of the IPv6 inner header. This option is only used when -l4_
protocol is gre.
-inner_ipv6_flow_label Flow label value of the IPv6 inner header. This option is only used when -l4_pro-
tocol is gre.
-inner_ipv6_hop_limit Hop limit value of the IPv6 inner header. This option is only used when -l4_pro-
tocol is gre.
-inner_ipv6_frag_offset Fragment offset in the fragment extension header of an IPv6 header. This option
is only used when -l4_protocol is gre.
-inner_ipv6_frag_more_ Whether the M Flag in the fragment extension header of an IPv6 header is set.
flag This option is only used when -l4_protocol is gre.
-inner_ipv6_frag_id Identification field in the fragment extension header of an IPv6 header. This
option is only used when -l4_protocol is gre.
-ip_total_length Total Length is the length of the datagram, measured in octets, including internet
header and data.
-ip_cost Part of the Type of Service byte of the IP header datagram (bit 6). Valid choices
are:
Value Usage
0 (default) Normal cost.
1 Low cost.
-ip_delay Part of the Type of Service byte of the IP header datagram (bit 3). Valid choices
are:
Value Usage
-ip_opt_security Will add an IP option for security. Must be given with a nine byte option argu-
ment that contains the information, 2 bytes Security, 2 bytes Compartments, 2
bytes Handling Restrictions, and 3 bytes Transmission Control Code.
-ip_opt_loose_routing Will add an IP option for Loose Source and Record Route. This option is fol-
lowed by an arbitrary length list of IP addresses.
-ip_reliability Part of the Type of Service byte of the IP header datagram (bit 5). Valid choices
are:
Value Usage
-ip_reserved Part of the Type of Service byte of the IP header datagram (bit 7). Valid choices
are:
Value Usage
0 (default)
1 N/A
-ip_throughput Part of the Type of Service byte of the IP header datagram (bit 4). Valid choices
are:
Value Usage
0 (default) Normal throughput.
1 High throughput.
-isl Whether to enable ISL on the stream. You can then configure ISL with options
"isl_frame_type", "isl_vlan_id", "isl_user_priority", "isl_bpdu", and "isl_index".
Valid choices are:
Value Usage
0 Disable ISL.
1 Enable ISL.
-isl_bpdu Whether to enable encapsulation of all Bridge Protocol Data Units by the ISL
packet. Valid choices are:
Value Usage
0 (default) Disable.
1 Enable.
Value Usage
ethernet (default)
atm N/A
fddi N/A
token_ring N/A
(DEFAULT = 0)
-isl_user_priority Low order two bits of this value specify the priority of the packet as it passes
through the switch. Valid choices are between 0 and 7, inclusive.
(DEFAULT = 0)
-isl_vlan_id Virtual LAN identification. Valid choices are between 1 and 4096, inclusive.
(DEFAULT = 1)
-ipv6_extension_header The type of the next extension header. Valid choices are:
Value Usage
-ipv6_hop_by_hop_options This is only for "-ipv6_extension_header hop_by_hop". This option will repre-
sent a list of keyed values. Valid choices are:
Value Usage
Value Usage
Value Usage
(DEFAULT = 3)
(DEFAULT = 30)
(DEFAULT = 00:00:00:00)
(DEFAULT = 2)
(DEFAULT = 0)
(DEFAULT = 0)
-l3_length_step Step size by which the packet size will be incremented. Use this option in con-
junction with option "length_mode" set to increment.
-mpls Whether to enable MPLS on a particular stream. When enabled, configure the
MPLS parameters by usgin the options "mpls_labels", "mpls_ttl", "mpls_exp_
bit", "mpls_bottom_of_stack", and "mpls_type". Refer to Section "Scripts Sam-
ples" for an example.
-mpls_bottom_stack_bit Whether to enable the bottom of the stack bit. This bit is set to true for the last
entry in the label stack (for the bottom of the stack) and false for all other label
stack entries.
(DEFAULT = 1)
(DEFAULT = 0)
-mpls_ttl Time-to-live value for a particular tag in a stream. Valid choices are between 0
and 255, inclusive.
(DEFAULT = 64)
Value Usage
Unicast (default)
Multicast N/A
-pause_control_time Pause control time. Valid choices are betwee 0 and 65535, inclusive.
-qos_byte The combined value for the precedence, delay, throughput,reliability, reserved
and cost bits. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_rate_mode The means by which line rates will be specified. This is only for PPP, L2TP and
L2TPv3 traffic. Valid choices are:
Value Usage
-qos_atm_clp The setting of the congestion loss priority bit. Valid only if -encap is a kind of
atm encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_atm_efci The setting of the explicit forward congestion indication bit. Valid only if -encap
is a kind of atm encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_atm_cr The setting of the command response bit. Valid only if -encap is a kind of atm
encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_fr_cr The setting of the frame relay command response bit. Valid only if -encap is a
kind of framerelay encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_fr_de The setting of the frame relay discard eligibility bit. Valid only if -encap is a kind
of framerelay encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_fr_becn The setting of the frame relay backward congestion notification bit. Valid only if
-encap is a kind of framerelay encapsulation. This is only for PPP, L2TP and
L2TPv3 traffic.
(DEFAULT = 0)
-qos_fr_fecn The setting of the frame relay forward congestion notification bit. Valid only if -
encap is a kind of framerelay encapsulation. This is only for PPP, L2TP and
L2TPv3 traffic.
(DEFAULT = 0)
-qos_ipv6_flow_label The IPv6 flow label, from 0 through 1,048,575. Valid only if -encap is an ether-
net encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-qos_ipv6_traffic_class The IPv6 traffic class, from 0 through 255. Valid only if -encap is an ethernet
encapsulation. This is only for PPP, L2TP and L2TPv3 traffic.
(DEFAULT = 0)
-enable_voice When this option is enabled, another unicast voice stream will be created along
with the multicast stream. The ToS value for this stream must be specified by –
voice_tos option.
-enable_data When this option is enabled, another unicast data stream will be created along
with the multicast stream. The tos value for this stream must be specified by –
data_tos option.
Value Usage
request N/A
response N/A
trace_on N/A
trace_off N/A
reserved N/A
-rip_version For option "l4_protocol" set to "rip", this option defines the RIP version for a
particular stream. Valid choices are:
Value Usage
1 Version 1.
2 Version 2.
Value Usage
-vlan This option will enable/disable VLAN on the interface to be configured. If vlan is
disable and vlan_id or other vlan options are provided then these options will be
ignored.
-vlan_protocol_tag_id The protocol ID field of the VLAN tag. The choices can be 8100, 9100, 9200.
(DEFAULT = 8100).
-table_udf_column_type List of column types: hex ascii binary decimal mac ipv4 ipv6 and also a custom
type. The custom type can be a combination of numbers and a,b,d, and x (eg:
"8b,3d,16x").
-table_udf_column_offset List of column offsets in bytes from the beginning of the packet.
-table_udf_rows A keyed list of rows that need to be added to the table UDF. The rows must
respect column order, size and type. The keyed list should the format below for n
columns annd m rows:
...........................................
-enable_udf1 If this option is set to true (1), then the UDF 1 counter will be inserted into the
frame.
(DEFAULT = 0)
Value Usage
counter (default) Normal up-down counter as con-
trolled by counter_mode, counter_type,
counter_init_value, mask_select, mask_val,
random, counter_repeat_count, counter_
step, counter_up_down and cascade_type
options.
random Generates random values, based on the val-
ues in counter_type, mask_select and mask_
val.
value_list A list of distinct values, based on the values of
counter_type, value_list and cascade_type.
nested Two nested counters may be used to build
complex sequences, based on the values of
counter_type, counter_init_value, inner_
repeat_count, inner_repeat_value, inner_
step, counter_repeat_count, counter_step,
and cascade_type options.
range_list A list of value ranges, based on counter_type,
cascade_type and ranges. Ranges are speci-
fied with counter_init_value, counter_
repeat_count, and counter_step.
ipv4 A counter which facilitates generation of IPv4
addresses, based on counter_init_value,
counter_repeat_count, counter_type, inner_
repeat_value, inner_step, skip_zeros_and_
ones, and skip_mask_bits options.
-udf1_offset The absolute offset to insert this UDF into the frame. Note that DA and SA use
the fixed offsets at 0 and 6, respectively. This option applies to all UDF modes.
(DEFAULT = 12)
-udf1_counter_type Describes the size of the UDF field in bits. The choices are: 8 16 24 32
-udf1_counter_up_down This option describes whether the UDF counters are to be incremented or decre-
mented. Choices are: up, down.
(DEFAULT = 0x0800)
-udf1_counter_repeat_ The counter is incremented or decremented the number of times based on this
count option. If counter_mode is continuous, then this value is ignored.
(DEFAULT = 1)
(DEFAULT = 1)
-udf1_value_list A list of hex numbers which holds the values to be used when mode is set to
value_list.
-udf1_counter_mode The counter will increment or decrement the bytes continuously or a number of
repeat counts. The choices are: continuous or count.
(DEFAULT = count)
-udf1_inner_repeat_value The number of times each value in the inner loop is repeated. Used when UDF
mode is set to nested.
(DEFAULT = 1)
-udf1_inner_repeat_count The number of times the inner loop is repeated. Used when UDF mode is set to
nested.
(DEFAULT = 1)
-udf1_inner_step The steps size between inner loop values. Used when UDF mode is set to nested.
(DEFAULT = 1)
-udf1_enable_cascade If this option is set to true (1), then the UDF counter will not be reset with the
start of each stream, but will rather continue counting from the ending value of
the previous stream.
(DEFAULT = 0)
-udf1_cascade_type Indicates the source of the initial value for the counter. The initial value for the
first enabled stream always comes from the UDF counter_init_value option.
Valid choices are:
Value Usage
-udf1_skip_zeros_and_ If UDF mode is ipv4 and this option is set to true (1), then values of all 0s and all
ones 1s as masked by skip_mask_bits will be skipped when generating values. This
normally corresponds to network broadcast addresses.
(DEFAULT = 1)
-udf1_mask_select This is a 32-bit mask that enables, on a bit-by-bit basis, use of the absolute
counter value bits as defined by mask_val option.
-udf1_mask_val A 32-bit mask of absolute values for this UDF counter. It is used in association
with the mask_select; bits must be set 'on' or the bits in mask_select will be
ignored.
-udf1_skip_mask_bits If UDF mode is ipv4 and skip_zeros_and_ones is set to true (1), this is the num-
ber of low order bits to check when looking for all 0s and all 1s. This normally
corresponds to network broadcast addresses.
(DEFAULT = 8)
-enable_udf2
-udf2_mode
-udf2_offset
-udf2_counter_type
-udf2_counter_up_down
-udf2_counter_init_value
-udf2_counter_repeat_
count
-udf2_counter_step
-udf2_value_list
-udf2_counter_mode
-udf2_inner_repeat_value
-udf2_inner_repeat_count
-udf2_inner_step
-udf2_enable_cascade
-udf2_cascade_type
-udf2_skip_zeros_and_
ones
-udf2_mask_select
-udf2_skip_mask_bits
-enable_udf3
-udf3_mode
-udf3_offset
-udf3_counter_type
-udf3_counter_up_down
-udf3_counter_init_value
-udf3_counter_repeat_
count
-udf3_counter_step
-udf3_value_list
-udf3_counter_mode
-udf3_inner_repeat_value
-udf3_inner_repeat_count
-udf3_inner_step
-udf3_enable_cascade
-udf3_cascade_type
-udf3_skip_zeros_and_
ones
-udf3_mask_select
-udf3_mask_val
-udf3_skip_mask_bits
-enable_udf4
-udf4_mode
-udf4_offset
-udf4_counter_type
-udf4_counter_up_down
-udf4_counter_init_value
-udf4_counter_repeat_
count
-udf4_counter_step
-udf4_value_list
-udf4_counter_mode
-udf4_inner_repeat_value
-udf4_inner_repeat_count
-udf4_inner_step
-udf4_enable_cascade
-udf4_cascade_type
-udf4_skip_zeros_and_
ones
-udf4_mask_select
-udf4_mask_val
-udf4_skip_mask_bits
-enable_udf5
-udf5_mode
-udf5_offset
-udf5_counter_type
-udf5_counter_up_down
-udf5_counter_init_value
-udf5_counter_repeat_
count
-udf5_counter_step
-udf5_value_list
-udf5_counter_mode
-udf5_inner_repeat_value
-udf5_inner_repeat_count
-udf5_inner_step
-udf5_enable_cascade
-udf5_cascade_type
-udf5_skip_zeros_and_
ones
-udf5_mask_val
-udf5_skip_mask_bits
-enable_pgid
-signature In the transmitted packet, the signature uniquely signs the transmitted packet as
one destined for packet group filtering on the receive port. On the receive port,
the signature is used to filter only those packets that have a matching signature
and the minimum, maximum and average latencies are obtained for those pack-
ets.
-signature_offset The offset, within the packet, of the packet group signature. If -enable_auto_
detect_instrumentation is 1, will be ignored.
-pgid_value Unique value used to identify one packet group for another. Up to 57344 differ-
ent packet groups may be defined.
-number_of_packets_tx
-loop_count
-return_to_id
-adjust_rate Specialty code meant for limited use. Some hardware (because of the nature of
the input data) will not set the stream rate at the exact rate specified, and could be
off slightly due to gaps, etc. This will compensate for that by creating two
streams in the advanced stream mode that total the exact value required.
This is a very focused feature, not meant to be used widely. It will be removed
when the new hardware support this capability.
-variable_user_rate For l2tp, ppp and l2tpv3, when 1, this option specifies that each user group trans-
mits at a different data rate. For each session there will be a different group.
(DEFAULT = 0)
-duration The duration, in seconds, to run each frame size or mix of frame sizes.
(DEFAULT = 10)
-pppoe_unique_acmac If true, then the MAC address used for each access concentrator is
unique.Streams will be configured using a separate UDF for the ACís MAC
address.
(DEFAULT 0)
-session_repeat_count The number of times that the traffic will be repeated. Since this is a value to rep-
licate the number of sessions in the test, the value entered is multiplied by the
number of sessions in the test. Legal values are between 1 and 8000.
(DEFAULT = 1)
-session_traffic_stats In order to retrieve per session traffic stats for PPP or L2TP, then this option
should be 1. Values are 0 or 1.
(DEFAULT = 0)
-public_port_ip The IP address of the client as received from the PPPoE/L2TP server. This
address is used only for an IPv4 Access port to match the traffic to a particular
PPPoE/L2TP session.
-ppp_session_id
-mac_src2_mode
-mac_src2_step
-mac_src2_count
-mac_dst2_mode
-mac_dst2_step
-mac_dst2_count
-ip_src_skip_multicast
-ip_src_skip_broadcast
-ip_dst_skip_multicast
-ip_dst_skip_broadcast
-ip_hdr_length
-ip_bit_flags
-ip_mbz
-ip_cu
-ip_tos_field
-ip_precedence_step
-ip_precedence_count
-ip_dscp_step
-ipv6_length
-ipv6_next_header
-igmp_group_step
-igmp_msg_type
-igmp_multicast_src
-igmp_s_flag
-igmp_qrv
-igmp_qqic
-igmp_record_type
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log On status of failure, gives detailed informa-
tion. On status of success, gives possible
warnings.
stream_id Stream identifier when not bidirectional.
stream_id.$port_handle Stream identifier for traffic sent out the port
associated with "port_handle".
stream_id.$port_handle2 Stream identifier for traffic sent out the port
associated with "port_handle2".
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::traffic_control
SYNOPSIS ::ixia::traffic_control
-port_handle interface_list
-action CHOICES sync_run run manual_trigger
stop poll reset destroy clear_stats
[-latency_bins NUMERIC]
[-latency_values]
[-duration NUMERIC]
[-jitter_bins NUMERIC]
[-jitter_values]
[-latency_control CHOICES cut_through
store_and_forwardstore_and_forward_preamble]
ARGUMENTS
Value Usage
-latency_values The splitting values for the bins. 0 and Max will be the absolute end points. A
list of {1.5 3 6.8} would create these four bins {0 - 1.5} {1.5 3} {3 6.8} {6.8
MAX}. It is always greater than the lower value and equal to or less than the
upper value.
-jitter_values Same as latency bins but, if jitter bins are provided then jitter measurements will
be retrieved with ::ixia::traffic_stats.
Value Usage
cut_through the time interval between the first data bit out
of the Ixia transmit port and the first data bit
received by the Ixia receive port is measured.
store_and_forward the time interval between the last data bit out
of the Ixia transmit port and the first data bit
received by the Ixia receive port is measured.
store_and_forward_preamble (for Ethernet modules only) As with store and
forward, but measured with respect to the
preamble to the Ethernet frame. In this case,
the time interval between the last data bit out
of the Ixia transmit port and the first preamble
data bit received by the Ixia receive port is
measured.
-tx_ports_list The TX ports list. Valid only for IxAccess usage. -port_handle option will be
ignored.
-rx_ports_list The RX ports list. Valid only for IxAccess usage. -port_handle option will be
ignored.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::traffic_stats
SYNOPSIS ::ixia::traffic_stats
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
[-streams RANGE 0-57344]
[-stream RANGE 0-57344]
[-mode CHOICES aggregate out_of_filter
stream streams faststream add_atm_stats_rx
add_atm_stats_tx add_atm_stats all]
[-atm_counter_vpi_data_item_list ANY]
[-atm_counter_vci_data_item_list ANY]
[-atm_counter_vpi_mode CHOICES incr cont_incr
decr cont_decr]
[-atm_counter_vci_mode CHOICES incr cont_incr
decr cont_decr]
[-atm_counter_vpi_type CHOICES fixed counter
random table]
[-atm_counter_vci_type CHOICES fixed counter
random table]
[-atm_reassembly_enable_iptcpudp_checksum CHOICES 0 1]
[-atm_reassembly_enable_ip_qos CHOICES 0 1]
[-atm_reassembly_encapsulation CHOICES vcc_mux_ipv4_
routed vcc_mux_bridged_eth_fcs
vcc_mux_bridged_eth_no_fcs
vcc_mux_ipv6_routed vcc_mux_mpls_routed
llc_routed_clip llc_bridged_eth_fcs
llc_bridged_eth_no_fcs llc_pppoa vcc_mux_ppoa
llc_nlpid_routed]
[-qos_stats]
[-packet_group_id]
[-vpi RANGE 0-4096]
[-vci RANGE 0-65535]
[-vpi_step RANGE 0-4095]
[-vci_step RANGE 0-65534]
[-vpi_count RANGE 0-4096]
[-vci_count RANGE 0-65535]
ARGUMENTS
Value Usage
aggregate N/A
out_of_filter N/A
stream N/A
streams deprecated
Value Usage
faststream N/A
add_atm_stats N/A
add_atm_stats_rx adds the vpi/vci pair to gather rx statistics.
The number of tx stats that can be tracked is
less than the number of rx stats that can be
tracked.
add_atm_stats_tx adds the vpi/vci pair to gather tx statistics.
The number of tx stats that can be tracked is
less than the number of rx stats that can be
tracked.
all N/A
-atm_counter_vci_data_ If the -atm_counter_vci_type option is set to table, this list is used used for the set
item_list of values (default "").
-atm_counter_vpi_mode If the -atm_counter_vci_type option is set to counter, this indicates what counter
mode should be used (default incr). Currently only the incr and decr mode are
supported.
-atm_counter_vci_mode If the -atm_counter_vpi_type option is set to counter, this indicates what counter
mode should be used (default incr).
-atm_counter_vpi_type The type of counter to use on the vpi (default fixed). Currently only fixed,
counter, and table are supported.
-atm_counter_vci_type The type of counter to use on the vci (default fixed). Currently only fixed,
counter, and table are supported.
-atm_reassembly_enable_ Enables the collection of TCP and UDP checksum statistics for packets
iptcpudp_checksum
that match this vpi/vci (default 1).
-atm_reassembly_enable_ Enables the collection of QoS statistics for packets that match this vpi/vci
ip_qos (default 1).
-atm_reassembly_encap- The decode encapsulation to be used on received data when the port is in packet
sulation group mode. This is the only means by which the encapsulation may be set
(default llc_routed_clip).
-qos_stats IP TOS statistics to gather. Valid choices are between 0 and 7 Rate and Count,
inclusive.
-packet_group_id Given a packet group ID, return the statistics for this value.
RETURN VALUES
Key Value
Key Value
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.last_tstamp
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.max
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.min
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.total_pkts
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.start_time
<port_handle>.stream.<id>.rx.latency_
bin.<bin number>.stop_time
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.pkt_bit_rate
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.pkt_byte_rate
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.pkt_frame_rate
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.first_tstamp
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.last_tstamp
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.max
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.min
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.total_pkts
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.start_time
<port_handle>.stream.<id>.rx.jitter_ Ixia only
bin.<bin number>.stop_time
<port_handle>.aggregate.<tx|rx>.raw_ Ixia only
pkt_count
<port_handle>.aggregate.<tx|rx>.raw_ Ixia only
pkt_rate
<port_handle>.aggregate.<tx|rx>.pkt_ Ixia only
bit_count
<port_handle>.aggregate.rx.collisions_ Ixia only
count
<port_handle>.aggregate.rx.crc_ Ixia only
errors_count
<port_handle>.aggregate.rx.dribble_ Ixia only
errors_count
<port_handle>.aggregate.rx.oversize_ Ixia only
count
<port_handle>.aggre- Ixia only
gate.rx.undersize_count
<port_handle>.aggregate.rx.vlan_pkts_ Ixia only
count
Key Value
Key Value
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
2) When using -mode stream the for a port TX stats are returned for all streams
that exist on that port and RX stats are available only if the packets with the
stream id are received on the port.
If -streams option is used along with -mode stream, then TX and RX stats are
returned for all streams in the list with 0 values if stats are not available for a spe-
cific stream.
3) ATM interfaces will not produce statistics on a per stream basis. 4) Deprecated
options are:
-mode streams
-stream
SEE ALSO
NAME — ::ixia::capture_packets
DESCRIPTION This command configures the capture filter and trigger, starting and stopping
packet capture on Ixia interfaces.
SYNOPSIS ::ixia::capture_packets
-port_handle interface list
[-start FLAG]
[-stop FLAG]
[-filter CHOICES source_ipv4_address
source_ipv6_address packet_size]
[-get_all_packets FLAG]
[-get_packets RANGE 0-1000000]
[-packet_size RANGE 40-64000]
[-source_ipv4_address IP]
[-source_ipv6_address IP]
[-source_offset NUMERIC]
ARGUMENTS
-filter Before starting the packet capture, you can configure the capture buffer to filter
packets based on their source IP address or packet size. This prevents other pack-
ets like protocol hellos or keepalives from being captured. Valid choices are:
Value Usage
source_ipv4_address N/A
source_ipv6_address N/A
packet_size N/A
-get_all_packets
-get_packets When capture is done (that is, capture started and stopped), you can use this
option to grab packets from the capture buffer. You must specify a number of
packets to get from the buffer.
-packet_size For option "filter" set to packet_size, this option specifies the size of the packets
to filter.
-source_ipv4_address For option "filter" set to source_ipv4_address, this option specifies the value of
the IPv4 source IP address.
-source_ipv6_address For option "filter" set to source_ipv6_address, this option specifies the value of
the IPv6 source IP address.
-source_offset For option "filter" set to either source address, the offset of this address in the
packet must be supplied, so the filters can be set up correctly.
RETURN VALUES
Key Value
EXAMPLES
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::get_packet_content
DESCRIPTION This command gets a certain packet slice from the content of a packet. From a list
of packets passed by the user, the procedure extracts slices from the packets and
returns a list. The offset and slice_size are decimal values that define the number
of bytes.
SYNOPSIS ::ixia::get_packet_content
-offset NUMERIC
-slice_size NUMERIC
-packet_list
[-enable_hex2dec]
ARGUMENTS
-offset Decimal, number of bytes. Specifes where to start slicing the packets. Valid
choices start with 0.
-slice_size Decimal, number of bytes to extract. Specifies the number of bytes to extract
from packet and return.
-enable_hex2dec
RETURN VALUES
Key Value
EXAMPLES
SAMPLE OUTPUT
NOTES
NAME — ::ixia::emulation_bgp_config
DESCRIPTION This procedure configures BGP neighbors, internal and/or external. You can
configure multiple BGP peers per interface by calling this procedure multiple
times.
SYNOPSIS ::ixia::emulation_bgp_config
-port_handle ANY
-handle ANY
-mode CHOICES enable disable
modify reset
-ip_version CHOICES 4 6
-local_ip_addr IPv4
-remote_ip_addr IPv4
-local_ipv6_addr IPv6
-remote_ipv6_addr IPv6
-local_addr_step IP
-remote_addr_step IP
-next_hop_enable CHOICES 0 1FLAG
-next_hop_ip IP
-local_as NUMERIC
-local_as_step RANGE:0-65535
-update_interval RANGE:0-4294967295
-count
-local_router_id IPV4
-vlan_id RANGE 0-4095
-vlan_id_mode CHOICES fixed increment
-vlan_id_step RANGE 0-4096
-retry_time NUMERIC
-hold_time NUMERIC
-neighbor_type CHOICES internal external
-graceful_restart_enable FLAG
-restart_time RANGE 0-10000000
-stale_time RANGE 0-10000000
-tcp_window_size RANGE 0-10000000
-staggered_start_enable FLAG
-staggered_start_time RANGE 0-10000000
-retries RANGE 0-10000000
-local_router_id_enable FLAG
-active_connect_enable FLAG
-netmask RANGE 1-128
-mac_address_start MAC
-ipv4_unicast_nlri FLAG
-ipv4_multicast_nlri FLAG
-ipv4_mpls_nlri FLAG
-ipv4_mpls_vpn_nlri FLAG
-ipv6_unicast_nlri FLAG
-ipv6_multicast_nlri FLAG
-ipv6_mpls_nlri FLAG
-ipv6_mpls_vpn_nlri FLAG
-local_as_mode CHOICES fixed increment
-local_loopback_ip_addr IP
-local_loopback_ip_addr_step IP
-local_router_id_step IPV4
-no_write FLAG
-remote_loopback_ip_addr IP
-remote_loopback_ip_addr_step IP
-updates_per_iteration RANGE 0-10000000
-vlan_user_priority RANGE 0-7
-remote_as
-vpi
-vci
-vpi_step
-vci_step
-advertise_host_route
-routes_per_msg
-timeout
ARGUMENTS
-mode This option defines the action to be taken on the BGP server. Valid choices are:
Value Usage
-ip_version This option defines the IP version of the BGP4 neighbor to be configured on the
Ixia interface. Valid choices are:
Value Usage
4 IPv4
6 IPv6
-local_ip_addr The IPv4 address of the Ixia simulated BGP node to be emulated.
-remote_ip_addr The IPv4 address of the DUTs interface connected to the emulated BGP port.
-local_ipv6_addr The IPv6 address of the BGP node to be emulated by the test port.
-remote_ipv6_addr The IPv6 address of the DUT interface connected to emulated BGP node.
-local_addr_step Defines the mask and increment step for the next -local_ip_addr or
-local_ipv6_addr.
-remote_addr_step Defines the mask and increment step for the next -remote_ip_addr or
-remote_ipv6_addr.
-next_hop_ip Defines the IP of the next hop. This option is used if the flag -next_hop_enable is
set.
-local_as The AS number of the BGP node to be emulated by the test port.
-local_as_step If you configure more then 1 eBGP neighbor on the Ixia interface, and if you
select the option local_as_mode to increment, the option local_as_step defines
the step by which the AS number is incremented.
-update_interval The time intervals at which UPDATE messages are sent to the DUT, expressed
in the number of milliseconds between UPDATE messages.
-vlan_id_mode For multiple neighbor configuration, configurest the VLAN ID mode. Valid
choices are:
Value Usage
fixed N/A
increment N/A
-vlan_id_step Defines the step for every VLAN When -vlan_id_mode is set to increment.
-retry_time For External BGP neighbor. When retries are necessary, the delay in seconds
between retries.
-hold_time Configures the hold time for BGP sessions for this Neighbor. Keepalives are sent
out every one-third of this interval. If the default value is 90, KeepAlive mes-
sages are sent every 30 seconds.
Value Usage
external eBGP
internal iBGP
-stale_time If -graceful_restart_enable is set, sets the amount of time after which an End-Of-
RIB marker is sent in an Update message to the peer to allow time for routing
convergence via IGP and BGP selection, in seconds. Stale routing information
for that address family is then deleted by the receiving peer.
-tcp_window_size For External BGP neighbor only. The TCP window used for communications
from the neighbor.
-staggered_start_time When the -staggered_start_enable flag is used, this is the duration of the start
process in seconds.
-retries For External BGP neighbor. The number of times to attempt an OPEN connec-
tion with the DUT routers before giving up.
-active_connect_enable For External BGP neighbor. If set, a HELLO message is actively sent when BGP
testing starts. Otherwise, the port waits for the DUT to send its HELLO message.
-mac_address_start Initial MAC address of the interfaces created for the BGP4 neighbor.
-ipv4_unicast_nlri If used, support for IPv4 Unicast is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-ipv4_multicast_nlri If used, support for IPv4 Multicast is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-ipv4_mpls_nlri If used, support for IPv4 MPLS is advertised in the Capabilities Optional Param-
eter / Multiprotocol Extensions parameter in the OPEN message.
-ipv4_mpls_vpn_nlri If used, support for IPv4 MPLS VPN is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-ipv6_unicast_nlri If used, support for IPv6 Unicast is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-ipv6_multicast_nlri If used, support for IPv6 Multicast is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-ipv6_mpls_nlri If used, support for IPv6 MPLS is advertised in the Capabilities Optional Param-
eter / Multiprotocol Extensions parameter in the OPEN message.
-ipv6_mpls_vpn_nlri If used, support for IPv6 MPLS VPN is advertised in the Capabilities Optional
Parameter / Multiprotocol Extensions parameter in the OPEN message.
-local_as_mode For External BGP type only. This option controls the AS number (local_as)
assigned to additional routers. Valid choices are:
Value Usage
fixed (default) the local_as remains fixed
increment increments the local_as
-local_router_id_step BGP4 router ID step of the emulated node, must be in IPv4 format.
-updates_per_iteration When the protocol server operates on older ports that do not possess a local pro-
cessor, this tuning parameter controls how many UPDATE messages are sent at a
time. When many routers are being simulated on such a port, changing this value
may help to increase or decrease performance.
-remote_as
-vpi
-vci
-vpi_step
-vci_step
-advertise_host_route
-routes_per_msg
-timeout
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is $::FAILURE, contains more
information
handles list of BGP node names/ids/handles
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_bgp_route_config
DESCRIPTION This command creates a route range that is associated with a BGP4 neighbor.
This command defines a set of routes and associated attributes.
SYNOPSIS ::ixia::emulation_bgp_route_config
-mode CHOICES add remove
-handle
[-route_handle]
[-l3_site_handle]
[-ip_version CHOICES 4 6]
[-prefix IP | CHOICES all]
[-netmask IP]
[-ipv6_prefix_length RANGE 1-128]
[-num_routes NUMERIC]
[-num_sites NUMERIC]
[-max_route_ranges NUMERIC]
[-prefix_step NUMERIC]
[-packing_from RANGE 0-65535]
[-packing_to RANGE 0-65535]
[-route_ip_addr_step IP]
[-origin_route_enable FLAG]
[-origin CHOICES igp egp
incomplete]
[-as_path]
[-next_hop IP]
[-next_hop_enable FLAG | CHOICES 0 1
DEFAULT 1]
[-next_hop_set_mode CHOICES same manual
(DEFAULT same)]
[-next_hop_ip_version CHOICES 4 6]
[-multi_exit_disc NUMERIC]
[-local_pref NUMERIC (DEFAULT 0)]
[-atomic_aggregate FLAG]
[-aggregator]
[-communities_enable FLAG]
[-communities NUMERIC]
[-originator_id_enable FLAG]
[-originator_id IP]
[-cluster_list_enable FLAG]
[-cluster_list]
[-ext_communities]
[-label_value NUMERIC]
[-rd_admin_value IP | NUMERIC]
[-rd_assign_value NUMERIC]
[-label_incr_mode CHOICES fixed rd prefix]
[-label_step NUMERIC]
[-rd_type FLAG]
[-rd_admin_step IP | NUMERIC]
[-rd_assign_step NUMERIC]
[-target_type CHOICES as ip]
[-target IP | NUMERIC]
[-target_assign NUMERIC]
[-import_target_type CHOICES as ip]
[-import_target IP | NUMERIC]
[-import_target_assign NUMERIC]
ARGUMENTS
-mode Specifies either addition or removal of routes from emulated nodes BGP table.
-ip_version The IP version of the BGP route to be created. Valid choices are:
Value Usage
4 IPv4
6 IPv6
-num_routes Number of routes to advertise, using the prefix as the starting prefix and incre-
menting based upon the -prefix_step and the -netmask arguments.
-max_route_ranges The number of route ranges to create under the BGP neighbor.
-prefix_step If -num_routes is greater than one, the step interval for the next incremented pre-
fix.
-packing_from The minimum number of routes to pack into an UPDATE message. Random
numbers are chosen from the range -packing_from to -packing_to.
-packing_to The maximum number of routes to pack into an UPDATE message. Random
numbers are chosen from the range -packing_from to -packing_to.
-route_ip_addr_step IP address increment step between the multiple route ranges created under the
BGP neighbor, based on -max_route_ranges
-origin Selects the value for the ORIGIN path attribute. Note that specifying a path
attribute forces the advertised route to be a node route as opposed to a global
route. Valid choices are:
Value Usage
igp N/A
egp N/A
incomplete N/A
-as_path Specifies the AS_PATH path attribute, which is a mandatory attribute composed
of a sequence of AS path segments. Format: <as path type>:<comma separated
segment list> {as_set|as_seq|as_confed_set|as_confed_seq}:<x,x,x,x>
Example:
as_set:1,2,3,4
-next_hop Specifies a mandatory path attribute that defines the IP address of the border
router that should be used as the next hop to the destinations listed in the Net-
work Layer Reachability field of the UPDATE message.
-next_hop_enable A flag to enable the generation of a NEXT HOP attribute. Can be used as a flag
of a choice of 0 or 1.
(DEFAULT = 1)
Value Usage
Value Usage
4 IPv4
6 IPv6
(DEFAULT = 0)
-aggregator For the AGGREGATOR path attribute, specifies the last AS number that formed
the aggregate route, and the IP address of the BGP speaker that formed the aggre-
gate route. Format: <asn>:<a.b.c.d>
The first number is the value of the low-order type byte. Possible values:
0 (default)
Possible values:
128 IANA bit: This bit may be oríd with any other values. 0 indicates that this is
an IANA assignable type using First Come First Serve policy. 1 indicates that
this is an IANA assignable type using the IETF Consensus policy.
64 Transitive bit: This bit may be oríd with any other values. 0 indicates that the
community is transitive across ASes and 1 indicates that it is non-transitive.
The third number is the value associated with the extended community. (default
= {00 00 00 00 00 00})
-label_value Starting value for the MPLS label of the IPv4 MPLS-VPN route.
-label_incr_mode Method in which the MPLS label of an IPv4 MPLS-VPN route will be incre-
mented. Valid choices are:
Value Usage
-rd_assign_value Starting value of the assigned number field of the route distinguisher.
-rd_admin_step Increment value to step the base route distinguisher administrator field.
-rd_assign_step Increment value to step the base route distinguisher assigned number field.
-target_assign The assigned number subfield of the value field of the target. It is a number from
a numbering space which is maintained by the enterprise administers for a given
IP address or ASN space. It is the local part of the target.
-import_target_assign The assigned number subfield of the value field of the import target. It is a num-
ber from a numbering space which is maintained by the enterprise administers for
a given IP address or ASN space. It is the local part of the import target.
-enable_generate_unique_ FLAG - When set to 1, each router generates a different IP address range. When
routes set to 0, each router advertises the route range as is. When enabled, the first
router advertises numRoutes routes starting at networkAddress, the next router
advertises numRoutes routes starting at (networkAddress + numRoutes), and so
on.
-enable_partial_route_flap
-enable_traditional_nlri If checked, use the traditional NLRI in the UPDATE message, instead of using
the MP_REACH_NLRI Multi-protocol extension to advertise the routes. (Not
applicable for MPLS and MPLS VPN Route Ranges.) Values: 0 1
(DEFAULT = 1)
-flap_down_time During flapping operation, the period expressed in seconds during which the
route is withdrawn from its neighbors.
(DEFAULT = 0)
-flap_up_time During flapping operation, the time between flap cycles, expressed in seconds.
During this period, the route range will be up.
(DEFAULT = 0)
-partial_route_flap_from_
route_index
-partial_route_flap_to_
route_index
-prefix_from The first prefix length to generate based on the -prefix. num_routes.
-prefix_to The last prefix length to generate based on the -prefix. -num_routes.
-target_assign_step Increment value to step the base target assigned number field.
-import_target_assign_ Increment value to step the base import target assigned number field.
step
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is failure, contains more informa-
tion.
bgp_routes The route range handles.
bgp_sites A keyed list of sites with route ranges for
SAMPLE INPUT
SAMPLE OUTPUT
1) You can configure multiple BGP route range on each Ixia interface.
SEE ALSO
NAME — ::ixia::emulation_bgp_control
SYNOPSIS ::ixia::emulation_bgp_control
-mode CHOICES stop start restart
link_flap
[-handle]
[-link_flap_up_time RANGE 0-10000000]
[-link_flap_down_time RANGE 0-10000000]
ARGUMENTS
Value Usage
stop stop the protocol
start start the protocol
restart restart the protocol
link_flap turns on and sets the link flapping
-link_flap_down_time When mode is link_flap, the amount of time in seconds that the link is discon-
nected.
-link_flap_up_time When mode is link_flap, the amount of time in seconds that the link is connected.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_bgp_info
SYNOPSIS ::ixia::emulation_bgp_info
-mode CHOICES stats clear_stats settings neighbors
labels
-handle
ARGUMENTS
Value Usage
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log On status of failure, gives detailed informa-
tion.
ip_address tester IP address
peers BGP peer IP address (a.b.c.e)
update_tx number of updates sent
update_rx number of updates received
keepalive_tx number of keepalive messages sent
keepalive_rx number of keepalive messages received
open_tx number of open messages sent
open_rx number of open messages received
notify_tx number of notify messages sent
notify_rx number of notify messages received
num_node_routes number of routes in session
routing_protocol BGP session type
ip_address a.b.c.d
asn integer
peers List of bgp peers (a.b.c.e)
<number>.distinguisher only for MPLS VPN
<number>.label integer
Key Value
<number>.neighbor ip address (v4 or v6)
<number>.network ip address (v4 or v6)
<number>.next_hop ip address (v4 or v6)
<number>.prefix_len integer
<number>.type mpls|mplsVpn
<number>.version ipV4|ipV6
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_dhcp_config
DESCRIPTION Configures DHCP emulation for the specified test port or handle. Calling this
procedure repeatedly will create more interfaces on that port. (go to
::ixia::emulation_dhcp_group_config description for more details).
SYNOPSIS ::ixia::emulation_dhcp_config
[-port_handle ^\[0-9\]+/\[0-9\]+/\[0-
9\]+$]
-mode CHOICES create modify reset
[-handle]
[-lease_time RANGE 0-65535]
[-max_dhcp_msg_size RANGE 0-65535]
[-reset FLAG]
[-version CHOICES ixtclhal ixaccess
DEFAULT ixtclhal]
[-no_write FLAG]
[-msg_timeout NUMERIC]
[-outstanding_sessions_count NUMERIC]
[-release_rate RANGE 0-2000]
[-request_rate RANGE 0-2000]
[-response_wait NUMERIC]
[-retry_count NUMERIC]
[-retry_timer NUMERIC]
ARGUMENTS
-port_handle This parameter specifies the port upon which emulation is configured. Manda-
tory for the modes -create and -reset.
-mode This option defines the action to be taken on the port specified by the port_handle
argument. Valid choices are:
Value Usage
create Creates an DHCP session, requires the use
of -port_handle.
modify Modifies an DHCP session, requires the use
of -handle.
reset Stops the emulation locally without attempting
to clear the bound address from the DHCP
server.
-handle Specifies the handle of the port upon which emulation is configured. Mandatory
for the mode -modify only.
-lease_time Specify the lease time in seconds suggested by the emulated client that is sent in
the discover message. The default value of this parameter is "8640".
-max_dhcp_msg_size Sets the maximum size of the dhcp message. This option is not supported with
IxAccess. It will be accepted as a parameter without any warning whatsoever, but
it will have no effect on the configuration.
-reset Clears the hardware. If mode is "create" and the reset parameter is present, all the
configurations will be erased from memory and the new config is created using
the new given parameters.
If mode is “create" and the reset parameter is not present, a new session is added
in the local array.
-version Permits the selection of the API used (ixtclhal or ixaccess). This option must be
set to ixaccess so that IxAccess API is used.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware. Writing the configurations to hardware can be done only once in the
::ixia::emulation_dhcp_group_config, if you want to modify you have to redo the
configurations and write them again.
-msg_timeout Specifies the maximum time to wait in milliseconds for receipt of an offer or ack
message after the sending of a corresponding discover or request message.
-response_wait
-retry_timer Limits the number of seconds the emulation will wait between attempting to
reestablish a failed session.
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log Error message if command returns {status 0}
port_handle Port handle on which DHCP emulation was
configured
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_dhcp_group_config
DESCRIPTION Configures and modifies a group of DHCP subscribers where each group share a
set of common characteristics.
This proc can be invoked multiple times to create multiple groups of subscribers
on a port with characteristics different from other groups or for independent con-
trol purposes.
This command allows the user to configure a specified number of DHCP client
sessions which belong to a subscriber group with specific Layer 2 network set-
tings. Once the subscriber group has been configured a handle is created, which
can be used to modify the parameters or reset sessions for the subscriber.
Creating several groups for one session is no longer supported. Trying to do this
will overwrite the previous created group. This is an IxAccess limitation.
SYNOPSIS ::ixia::emulation_dhcp_group_config
-mode CHOICES create modify reset
-mac_addr MAC
-mac_addr_step MAC
[-num_sessions RANGE 1-65536]
[-handle]
[-encap CHOICES ethernet_ii
ethernet_ii_vlan vc_mux llcsnap
[-vlan_id RANGE 0-4095]
[-vlan_id_step RANGE 0-4095]
[-vlan_id_count RANGE 0-4095]
[-vci RANGE 0-65535]
[-vpi RANGE 0-255]
[-vci_count RANGE 0-65535]
[-vci_step NUMERIC]
[-vpi_count RANGE 0-255]
[-vpi_step NUMERIC]
[-sessions_per_vc RANGE 1-65535]
[-pvc_incr_mode CHOICES vci vpi]
[-version CHOICES ixtclhal ixaccess
DEFAULT ixtclhal]
[-target_subport RANGE 0-3 DEFAULT 0]
[-server_id IP]
[-vendor_id]
[-no_write FLAG]
[-vlan_priority RANGE 0-7]
[-qinq_incr_mode CHOICES inner outer]
[-release_rate_sps RANGE 0-2000]
[-request_rate_sps RANGE 0-2000]
[-vlan_id_outer RANGE 0-4095]
[-vlan_id_outer_count RANGE 0-4095]
[-vlan_id_outer_step RANGE 0-4095]
ARGUMENTS
-mode Action to take on the port specified the handle argument. Create starts emulation
on the port. Modify applies the parameters specified in subsequent arguments.
Reset stops the emulation locally without attempting to clear the bound addresses
from the DHCP server.
-handle Specifies the port and group upon which emulation is configured. If the -mode is
"modify", -handle specifies the group upon which emulation is configured, other-
wise it specifies the session upon which emulation is configured.
Value Usage
ethernet Ethernet II
ethernet_ii_vlan Ethernet II with a single vlan tag
vc_mux ATM encapsulation
llcsnap ATM encapsulation
-mac_addr Specifies the base (first) MAC address to use when emulating multiple clients.
This parameter is mandatory when -mode is “create”.
-mac_addr_step Specifies the step value applied to the base MAC address for each subsequent
emulated client. It must be provided in the integer format (unlike ixTclHal where
it is provided in MAC address format).The step MAC address is arithmetically
added to the base MAC address with any overflow beyond 48 bits silently dis-
carded. The default value is 1.
-vci Specifies the base (first) VCI (virtual circuit) value applied used when emulating
multiple DHCP clients over ATM interfaces.
-vpi Specifies the base (first) VPI (virtual path) value applied used when emulating
multiple DHCP clients over ATM interfaces.
-vlan_id_step Specifies the increment for the vlan id for ethernet_ii_vlan encapsulation.
Applies to Ethernet interfaces only.
-vlan_id_count Specifies the number of vlan id for ethernet_ii_vlan encapsulation. Only applies
to Ethernet interfaces. The increment is applied via addition modulo 4096.
-sessions_per_vc Specifies the the number of VPI's or VCI's sessions used for emulation of clients
over ATM interfaces. Used in conjuction with the -pvc_incr_mode to allow mul-
tiple sessions per VCC. Valid for ATM interfaces only.
-vci_count Specifies the the number of VCI's used for the emulation of clients over ATM
interfaces. Valid for ATM interfaces only.
-vci_step Specifies the increment to be used when selecting the next VCI value to be used
for emulation of clients over ATM interfaces. Valid for ATM interfaces only.
VCI values are incremented by addition modulo 65536.
-vpi_count Specifies the the number of VPI's used for the emulation of clients over ATM
interfaces. Valid for ATM interfaces only.
-vpi_step Specifies the increment to be used when selecting the next VPI value to be used
for emulation of clients over ATM interfaces. Valid for ATM interfaces only.
VCI values are incremented by addition modulo 256.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware. Writing the configurations to hardware can be done only once. If you
want to modify you have to redo the configurations and write them again, so we
recommand using this parameter until all the configurations are complete and
then writing them (without -no_write).
-server_id An IP address (default 1.1.1.1) - DHCP negotiation will only occur with a partic-
ular server.
(DEFAULT 0)
-version Permits the selection of the API used (ixtclhal or ixaccess). This option must be
set to ixaccess so that IxAccess API is used.
-target_subport Defines which IxAccess subport is to be utilized. There are four and they are
defined from 0 to 3.
-qinq_incr_mode
-release_rate_sps
-request_rate_sps
-vlan_id_outer
-vlan_id_outer_count
-vlan_id_outer_step
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is failure, contains more info
port_handle Port handle on which DHCP emulation was
configured
group Handle of the group that was configured or
modified
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_dhcp_control
DESCRIPTION Controls DHCP sessions. This procedure is not available for IxAccess.
SYNOPSIS ::ixia::emulation_dhcp_control
-port_handle
-action CHOICES bind release renew
[-handle]
[-no_write FLAG]
ARGUMENTS
-port_handle Specifies the handle upon which emulation id configured. This parameter is
returned from emulation_dhcp_config proc.
Emulation must have been previously enabled on the specified port via a call to
emulation_dhcp_group_config proc.
-action Action to take on the port specified by the port_handle argument. The parameters
specified in the emulation_dhcp_group_config proc are used to control the bind/
renew/release rates.
Value Usage
-handle Allows the user to optionally select the groups to which the specified action is to
be applied. If this parameter is not specified, then the specified action is applied
to all groups configured on the port specified by the -port_handle command. The
handle is obtained from the keyed list returned in the call to emulation_dhcp_
group_config proc. The port handle parameter must have been initialized and
dhcp group emulation must have been configured prior to calling this function.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_dhcp_stats
DESCRIPTION Controls DHCP subscriber group activity. This procedure returns only the aggre-
gate statistics per port/subport. This is a limitation of IxAccess regarding the
dhcp statistics.
The subport from which the statistics are collected is extracted from the handle.
SYNOPSIS ::ixia::emulation_dhcp_stats
-port_handle
[-action CHOICES clear]
[-handle]
[-version CHOICES ixtclhal ixaccess
DEFAULT ixtclhal]
[-no_write FLAG]
ARGUMENTS
-port_handle Specifies the port upon which emulation id configured. This parameter is
returned from emulation_dhcp_config proc. Emulation must have been previ-
ously enabled on the specified port via a call to emulation_dhcp_group_config
proc.
-action Clear - reset the statistics for the specified port/subscriber group to 0. This option
is not supported with IxAccess. This parameter will be ignored if it is used.
-handle Allows the user to optionally select the groups to which the specified action is to
be applied. If this parameter is not specified, then the specified action is applied
to all groups configured on the port specified by the -port_handle command. The
handle is obtained from the keyed list returned in the call to emulation_dhcp_
group_config proc.
The port handle parameter must have been initialized and dhcp group emulation
must have been configured prior to calling this function.
This option is not supported with IxAccess. This parameter will be ignored if it is
used.
-version Defines whether the target program is IxTclHal or IxAccess. The default is IxT-
clHal. This option must be set to IxAccess so that ixAccess API is used.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
This option is not supported with IxAccess. This parameter will be ignored if it is
used.
RETURN VALUES
Key Value
Key Value
aggregate.currently_bound Total no of addresses learned
aggregate.success_percentage Percent rate of addresses learned
aggregate.discover_tx_count Total no of discovered messages sent
aggregate.request_tx_count Total no of requests sent
aggregate.release_tx_count Total no of releases sent
aggregate.ack_rx_count Total no of acks received
aggregate.nak_rx_count Total no of nacks received
aggregate.offer_rx_count Total no of offers received
group.<group#>.currently_attempting No of enabled interfaces on that group
group.<group#>.currently_idle No of interfaces not bounded on that group
group.<group#>.currently_bound No of addresses learned on that group
aggregate.elapsed_time Cisco only
aggregate.total_attempted Cisco only
aggregate.total_retried Cisco only
aggregate.total_bound Cisco only
aggregate.bound_renewed Cisco only
aggregate.total_failed Cisco only
aggregate.bind_rate Cisco only
aggregate.attempted_rate Cisco only
aggregate.minimum_setup_time Cisco only
aggregate.maximum_setup_time Cisco only
aggregate.average_setup_time Cisco only
group.<group#>.elapsed_time Cisco only
group.<group#>.total_attempted Cisco only
group.<group#>.total_retried Cisco only
group.<group#>.bound_renewed Cisco only
group.<group#>.total_bound Cisco only
group.<group#>.total_failed Cisco only
group.<group#>.bind_rate Cisco only
group.<group#>.attempt_rate Cisco only
group.<group#>.request_rate Cisco only
group.<group#>.release_rate Cisco only
group.<group#>.discover_tx_count Cisco only
group.<group#>.request_tx_count Cisco only
group.<group#>.release_tx_count Cisco only
group.<group#>.ack_rx_count Cisco only
group.<group#>.nak_rx_count Cisco only
group.<group#>.offer_rx_count Cisco only
<port_handle>.<group#>.inform_tx_ Cisco only
count
<port_handle>.<group#>.decline_tx_ Cisco only
count
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_ftp_config
DESCRIPTION This command is used to construct the environment required for the FTP proto-
col to be used.
It sets for the client or server side of the emulation the configuration of TCP
parameters used for a FTP transaction, the presence or absence of an emulated
router, the range of ports where the process can open sockets, the buffers sizes.
To this environment it can add network ranges to define the FTP client or server
networks, or it can add DNS servers, or a pool of IP addresses to be used for an
emulated router between the network range and the testing port. Multiple net-
work ranges, DNS servers and suffixes or IP address pools can be added to a cli-
ent or server FTP configuration.
SYNOPSIS ::ixia::emulation_ftp_config
-mode CHOICES add remove
modify enable disable
[-property CHOICES ftp network
router_addr dns]
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-port_handle REGEXP ^[0-9]+/[0-9]+/
[0-9]+$]
[-mac_mapping_mode CHOICES macip macport
DEFAULT macip]
[-source_port_from RANGE 1024-65535
DEFAULT 1024]
[-source_port_to RANGE 1024-65535
DEFAULT 65535]
[-emulated_router_gateway IP DEFAULT 0.0.0.0]
[-emulated_router_subnet MASK
DEFAULT 255.255.255.0]
[-dns_cache_timeout NUMERIC DEFAULT 30000]
[-grat_arp_enable CHOICES 0 1 DEFAULT 0]
[-congestion_notification_enable CHOICES 0 1 DEFAULT 0]
[-time_stamp_enable CHOICES 0 1 DEFAULT 1]
[-rx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-tx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-fin_timeout NUMERIC DEFAULT 60]
[-keep_alive_interval NUMERIC DEFAULT 7200]
[-keep_alive_probes NUMERIC DEFAULT 9]
[-keep_alive_time NUMERIC DEFAULT 75]
[-receive_buffer_size NUMERIC DEFAULT 4096]
[-retransmit_retries NUMERIC DEFAULT 15]
[-rx_bandwidth_limit NUMERIC]
[-rx_bandwidth_limit_unit CHOICES kb mb
DEFAULT kb]
[-syn_ack_retries NUMERIC DEFAULT 5]
[-syn_retries NUMERIC DEFAULT 5]
[-transmit_buffer_size NUMERIC DEFAULT 4096]
[-tx_bandwidth_limit NUMERIC]
[-tx_bandwidth_limit_unit CHOICES kb mb
DEFAULT kb]
[-ip_address_start IP DEFAULT 198.18.0.1]
[-mac_address_start ANY
DEFAULT 00.C6.12.00.01.00]
[-gateway IP DEFAULT 0.0.0.0]
[-ip_count NUMERIC DEFAULT 100]
[-ip_increment_step IP DEFAULT 0.0.0.1]
[-mac_increment_step ANY
DEFAULT 00.00.00.00.00.01]
[-mss NUMERIC DEFAULT 1460]
[-mss_enable CHOICES 0 1 DEFAULT 0]
[-network_mask MASK DEFAULT 255.255.0.0]
[-vlan_enable CHOICES 0 1 DEFAULT 0]
[-vlan_id NUMERIC]
[-dns_server IP]
[-dns_suffix REGEXP ^\.[A-z]+\.[A-
z]+$]
[-pool_ip_address_start IP DEFAULT 194.18.0.1]
[-pool_ip_count NUMERIC DEFAULT 1]
[-pool_mac_address_start ANY DEFAULT
00.C2.12.00.01.00]
[-pool_vlan_enable CHOICES 0 1 DEFAULT 0]
[-pool_vlan_id NUMERIC
ARGUMENTS
-handle Handle of a FTP property , used when -property is network or router_addr or dns
and -mode is add. Also the handle of a FTP or network or router_addr or dns
property when "-property" is respectively ftp, network, router_addr, dns and "-
mode" is modify or remove, enable, disable. Dependencies:
-target Specifies where this network will be added: on the client side or on the server
side.
(DEFAULT = client)
-property Defines types of properties of the FTP configuration. Mandatory for -mode add.
Value Usage
Value Usage
-mode Defines types of actions to be taken on the "property" object. Values: add,
remove, modify, enable, disable.
-mac_mapping_mode Indicates whether one MAC address will be associated with each IP address or
with each port. The use of the latter option indicates that an emulated router is to
be used. Values are: macip, macport.
(DEFAULT = macip)
-source_port_from Defines the beginning of the range of ephemeral port numbers used to establish
connections to the server. The end of the range is specified by source_port_to.
Valid values are from 1024 to 65535.
(DEFAULT = 1024)
-source_port_to Defines the end of the range of ephemeral port numbers used to establish connec-
tions to the server. Valid values are from 1024 to 65535.
(DEFAULT = 65535)
(DEFAULT = 0.0.0.0)
(DEFAULT = 255.255.255.0)
-dns_cache_timeout The length of time, in milliseconds, the program should continue to refer to the
previously resolved host name stored in its cache before discarding the entry and
accessing the DNS server to re-resolve the host name.
(DEFAULT = 30000)
-grat_arp_enable Values: 0 or 1. If true, before beginning a test, the program will ARPs the gate-
ways so that the DUT can learn the MAC addresses used on the subnet. If a sub-
net is set to MAC per Port, the subnet sends one ARP request. If a subnet is set to
MAC per IP, each host on the subnet sends an ARP request.
(DEFAULT = 0)
-congestion_notification_ Values: 0 or 1. If true, the client or server uses bits from the Type of Service
enable (TOS) field and the TCP packet headerís Reserved field to support Explicit Con-
gestion Notification (ECN). ECN uses the bits as follows:
TOS bit 6 is the ECT (Explicit Congestion Transport) bit, which a recipient sets
to indicate that it supports ECN.
TOS bit 7 is the CE (Congestion Experienced) bit, which the recipient sets if its
average queue length exceeds a threshold.
TCP header Reserved field bit 5 the CWR (Congestion Window Reduced) bit.
A SYN packet with both ECN-Echo and CWR bits indicates the sender supports
ECN in both directions (as sender and receiver). A combined SYN+ACK packet
sets only ECN to indicate ECN capability. If you enable ECN, the sender sets the
ECT bit to indicate that it supports ECN. If the sender receives a packet with the
CE bit set, it returns an ACK with the ECN-Echo bit set. If a sender receives a
packet with ECN-Echo set, it should reduce its window size. The first packet it
sends after reducing its window size has the CWR bit set. The sender will repeat-
edly reduce its window size until it receives a packet in return with the CWR bit
from the recipient.
(DEFAULT = 0)
-time_stamp_enable Values: 0 or 1. If true, the client or server inserts a timestamp into each packet.
(DEFAULT = 1)
-fin_timeout The amount of time a TCP implementation will keep a TCP connection open that
it has closed itself, i.e., sent a FIN for (it has no more data to send).
(DEFAULT = 60)
-keep_alive_interval The interval, in seconds, between repeated keep alive probes sent.
(DEFAULT = 7200)
-keep_alive_probes The number of keep alive probes that the program sends out before determining
that a link is down.
(DEFAULT = 9)
-keep_alive_time If a link has no activity on it for the time specified, in seconds, the program
begins sending keep alive probes to determine if the link is still up.
(DEFAULT = 75)
(DEFAULT = 4096)
-retransmit_retries The number of times the program attempts to re-transmit a packet for which it
has not received an acknowledgement.
(DEFAULT = 15)
-rx_bandwidth_limit The maximum amount of receive bandwidth on each port allowed to the clients
or servers. You can use this parameter to simulate the bandwidth available from
different types of Internet access technologies such as dial-up, ISDN, cable
modem, or T1. If you do not configure this parameter, the program uses all the
bandwidth available on the test ports.
Dependencies: -rx_bandwidth_limit_enable 1.
-rx_bandwidth_limit_unit The units used in rx_bandwidth_limit: kilobytes per second or megabytes per
second. Values: kb | mb.
Dependencies: -rx_bandwidth_limit_enable 1.
(DEFAULT = kb)
(DEFAULT = 5)
-syn_retries The number of times IxLoad re-transmits an un-acknowledged SYN for an active
TCP connection.
(DEFAULT = 5)
-transmit_buffer_size The size of the transmit buffer. This affects the TCP transmit window size. If you
increase the size of the transmit buffer, IxLoad enlarges the transmit window. If
you are experiencing high latency on your test network, you can increase the size
of the transmit buffer to improve the throughput.
(DEFAULT = 4096)
-tx_bandwidth_limit The maximum amount of transmit bandwidth on each port allowed to the clients
or servers. You can use this parameter to simulate the bandwidth available from
different types of Internet access technologies such as dial-up, ISDN, cable
modem, or T1. If you do not configure this option, the program uses all the band-
width available on the test ports.
Dependencies: tx_bandwidth_limit_enable 1.
-tx_bandwidth_limit_unit The units used in tx_bandwidth_limit: kilobytes per second or megabytes per
second. Value: kb | mb.
(DEFAULT = kb)
Dependencies: tx_bandwidth_limit_enable 1.
(DEFAULT = 198.18.0.1)
-mac_address_start The first MAC address for the network range. This is not used if the value of
mac_mapping_mode is set to "macport".
(DEFAULT = 00.C6.12.00.01.00)
-gateway The gateway associated with all IP addresses in the network range.
(DEFAULT = 0.0.0.0)
(DEFAULT = 100)
-ip_increment_step Indicates the increment to be applied between generated IP addresses. The format
of this option is a dotted-quad IP address, in which only one of the octets may be
non-zero. For example: 0.0.0.1, 0.0.2.0, 0.22.0.0 and 4.0.0.0 are valid values
which will increment a different octet each time. Values which use more than one
octet, for example 0.0.1.1, are illegal.
(DEFAULT = 0.0.0.1)
-mac_increment_step Indicates the increment to be applied between generated MAC addresses. The
format of this option is a colon separated MAC address, in which only one of the
octets may be non-zero. For example: 00.00.00.00.00.01, 00.00.00.00.22.00,
00.00.00.33.00.00, 00.00.44.00.00.00, 00.AA.00.00.00.00 and C.00.00.00.00.00
are valid values which will increment a different octet each time. Values which
use more than one byte, for example 00.00.00.00.01.01, are illegal. This is not
used if the value of mac_mapping_mode is set to "macport".
(DEFAULT = 00.00.00.00.00.01)
-mss If mss_enable is true, this option specifies the TCP Maximum Segment Size in
the MSS (RX) field. Otherwise, clients or servers advertise their TCP Maximum
Segment Size as 1460 bytes.
(DEFAULT = 1460)
(DEFAULT = 0)
(DEFAULT = 255.255.0.0)
(DEFAULT = 0)
-dns_suffix Define suffixes to be appended to partial host names. Each is tried in order by the
DNS server(s).
(DEFAULT = 194.18.0.1)
(DEFAULT = 1)
(DEFAULT = 00.C2.12.00.01.00)
(DEFAULT = 255.255.0.0)
-pool_vlan_enable If true, VLAN tags are inserted into the IP frame. Value: 0 or 1.
(DEFAULT = 0)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_ftp_traffic_config
DESCRIPTION This command is used to construct the model for client or server traffic to be
applied, or respectively, handled during the test. This traffic is composed by
commands created by client FTP agents which are handled by server agents.
SYNOPSIS ::ixia::emulation_ftp_traffic_config
-mode CHOICES add remove modify
enable disable
[-property CHOICES traffic agent]
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-esm_enable CHOICES 0 1 DEFAULT 0]
[-esm NUMERIC DEFAULT 1460]
[-ftp_mode CHOICES active passive
DEFAULT active]
[-ftp_port RANGE 1-65535]
[-arguments ANY]
[-command CHOICES cd get login put quit
retrieve store think loop_begin loop_end DEFAULT get]
[-destination ANY]
[-user_name ANY]
[-password ANY]
[-agent_handler ANY]
ARGUMENTS
-handle Handle of a FTP configuration when -property traffic and -mode add. Or handle
of a traffic property , used when -property is agent and -mode is add. Also the
handle of a traffic or agent property when -property is respectively traffic, agent
and -mode is modify | remove | enable | disable.
-target Specifies where this traffic will be added: on the client side or on the server side.
Values: client or server. Dependencies: -property traffic with -mode add.
(DEFAULT = client)
-property Defines types of properties of the FTP traffic configuration. Valid choices are:
Value Usage
-mode Defines types of actions to be taken on the -property object. Values: add | remove
| modify | enable | disable.
-esm_enable If true, the use of the esm option is enabled. Dependencies: property agent with
mode add | modify
(DEFAULT = 0)
-esm If esm_enable is true, this option specifies the TCP Maximum Segment Size in
the MSS (RX) field. Otherwise, the TCP Maximum Segment Size is 1460 bytes.
(DEFAULT = 1460)
-ftp_mode The mode that the client will use to access the server: To establish an FTP con-
nection, the client connects from a random unprivileged port (port n, where n is
greater than 1024) to the FTP server's command port, normally port 21. What
happens next depends on whether the client is in active or passive mode.
Value Usage
-ftp_port The port number that the server will respond on.
-arguments This option contains an argument which is used by the various commands
defined in the command option. The type of the value depends on the command:
think = the number of milliseconds to pause before executing the next action
(DEFAULT = 0)
cd = Changes the current working directory to the value in the arguments option.
get = Retrieves the file specified in the arguments option. {Get} is not a standard
FTP command. It allows you to retrieve a file from a <vendor> server without
having to log in.
login = Logs in to the FTP server using the name and password in the userName
and password options
store = Copies the file specified in the arguments option from the client to the
server.
think = Adds a pause (think time) before the next command is executed. Specify
the duration of the pause in the arguments option.
loop_begin = An IxLoad command that you can add to the Command List to
cause the commands between it and the {Loop End} to be executed a specified
number of times.
loop_end = Ends the list of commands that will be executed by the preceding
{Loop Begin} command
(DEFAULT get)
-destination The IP address of a real FTP server. If the FTP server listens on a port other than
the standard (21), enter a colon after the IP address and then enter the port num-
ber. When using an FTP Server Agent this option will not be used, you must pro-
vide a FTP server agent handler to the agent_handler option instead. The port
number must agree with that defined by the Server Agent. For example:
192.168.0.1:21
-user_name The user name that the client will use to log in to the FTP server. The emulated
servers only accept a user name of root.
-agent_handler The handler of a FTP server agent if destination is a emulated FTP server.
-ip_preference If a mixture of IPv4 and IPv6 addresses are available on the client network, this
parameter configures which address types the agent uses. Dependencies: target
client ; property agent with mode add | modify
(DEFAULT = 0)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_ftp_control
DESCRIPTION This command defines a mapping between the FTP networks, the DUT and the
statistics used. It can start a test previously defined with the ::ixia::emulation_
ftp_control_config command.
SYNOPSIS ::ixia::emulation_ftp_control
-mode CHOICES add modify start
[-handle ANY]
[-map_handle ANY]
[-force_ownership_enable CHOICES 0 1 DEFAULT 0]
[-release_config_afterrun_enable CHOICES 0 1 DEFAULT 0]
[-reset_ports_enable CHOICES 0 1 DEFAULT 0]
[-results_dir_enable CHOICES 0 1 DEFAULT 0]
[-results_dir ANY]
[-stats_required CHOICES 0 1 DEFAULT 1]
ARGUMENTS
Value Usage
-map_handle List of handles of the maps between a client http config and a client traffic config
and between a server http config and a server traffic config created with
::ixia::emulation_http_control_config.
-force_ownership_enable If true, at the beginning of the test, any ports that are selected for the test but
owned by another user are rebooted and their previous ownership cleared.
(DEFAULT = 0)
-release_config_afterrun_ If true, purges the test configuration from the ports after a test completes, releases
enable ownership of them, and the ports will no longer respond to ARPs and PINGs
from the DUT.
(DEFAULT = 0)
-reset_ports_enable If true, the program reboots the ports before downloading the test configuration
to them. To ensure the integrity of your testing, it is always safest to reboot the
ports before running a test. However, rebooting the ports does increase the
amount of time required to prepare the ports for a test.
If you are developing a test and making incremental changes to it and then run-
ning it to see the effect of your changes, it may be safe to save time by not reboo-
ting the ports before each run.
If you do not want to reboot the ports for every test, you should at least reboot the
ports the first time you load a repository; this will ensure that any software struc-
tures remaining from a previous test or other application are properly removed.
(DEFAULT = 0)
(DEFAULT = 0)
-results_dir Specifies the location of where the execution results will be kept.
(DEFAULT = 1)
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is $::FAILURE, contains more
information
handles the handles of a FTP traffic configuration,list
of traffic, agent.
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_ftp_control_config
DESCRIPTION This command is used to construct the mapping between the agents that will gen-
erate the traffic and the set of networks which will carry the traffic. A number of
additional options control the manner in which the traffic is applied to the net-
works.
To the client side mappings , the command can specify the options used to allow
the test to achieve a particular objective, for example, connections per second, or
the options that determine the timeline for application of traffic or the options
that control the manner in which client traffic is sent to servers.
SYNOPSIS ::ixia::emulation_ftp_control_config
-mode CHOICES add remove modify
enable disable
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-property CHOICES map dut]
[-direct_server_return_enable CHOICES 0 1 DEFAULT 0]
[-ip_address IPV4 DEFAULT 1.1.1.1]
[-server_ftp_handle ANY]
[-type CHOICES external slb
firewall DEFAULT slb]
[-client_iterations NUMERIC DEFAULT 1]
[-client_ftp_handle ANY]
[-client_traffic_handle ANY]
[-objective_type CHOICES na users
connections crate trate tputmb tputkb sessions
DEFAULT na]
[-objective_value NUMERIC]
[-client_offline_time NUMERIC DEFAULT 0]
[-port_map_policy CHOICES pairs mesh
round_robin DEFAULT pairs]
[-ramp_down_time NUMERIC DEFAULT 20]
[-ramp_up_type CHOICES users_per_second
max_pending_users DEFAULT users_per_second]
[-ramp_up_value NUMERIC]
[-client_standby_time RANGE 0-3600000
DEFAULT 0]
[-client_sustain_time RANGE 0-3600000 DEFAULT 0]
[-client_total_time NUMERIC DEFAULT 60]
[-server_traffic_handle ANY]
[-match_client_totaltime CHOICES 0 1 DEFAULT 1]
[-server_iterations NUMERIC DEFAULT 1]
[-server_offline_time NUMERIC DEFAULT 0]
[-server_standby_time RANGE 0-3600000 DEFAULT 0]
[-server_sustain_time NUMERIC DEFAULT 20]
[-server_total_time NUMERIC DEFAULT 60]
ARGUMENTS
(DEFAULT = client)
-property Defines types of the FTP control configuration: Map handles operations required
for mapping a FTP configuration with a traffic configuration. Dut handles opera-
tions required for defining a Device Under Test parameters. Value: map | dut.
-mode Defines types of actions to be taken on the -property object. Enable and disable
are not valid values for -property dut. Value: add | remove | modify | enable | dis-
able.
-direct_server_return_ If type is "slb" and this option is true, Direct Server Return is enabled. In a basic
enable SLB topology, incoming requests from clients and outgoing responses from serv-
ers both go through the SLB. In a topology using Direct Server Return, the
responses are sent directly from the servers to the clients; they do not go through
the SLB. DSR reduces the amount of traffic going through the SLB, allowing it
to devote more resources to managing the incoming requests and monitoring the
status of the servers in its pool. Value: 0 | 1.
(DEFAULT = 0)
-ip_address The IPv4 address, virtual IPv4 address or host name used to access the DUT.
(DEFAULT = 1.1.1.1)
-server_ftp_handle If type is "slb" and the SLB is balancing emulated servers, set this option to the
handle of the server FTP network that is being balanced.
-type The type of DUT in use. Dependencies: property dut with mode add | modify.
Valid choices are:
Value Usage
-client_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
-client_ftp_handle This handle provides the networks from which the traffic will be generated.
-objective_type The objective to be achieve for this traffic to network mapping. Dependencies:
property map with mode add | modify. Valid choices are:
Value Usage
(DEFAULT = 0)
-port_map_policy This option controls the sequence in which the client ports connect to
the server ports. For large numbers of ports, the Port Pair sequence scales perfor-
mance better than the Port Mesh sequence. The operation of Port Pairs can be
described by three scenarios: If the number of client ports is equal to the number
of server agents, client ports will establish connections to server ports on a one-
to-one basis. If the number of client ports is less than the number of server ports,
the client ports will establish connections to the server ports on a one-to-one
basis until all client ports are paired with server ports. The remaining server ports
will not be used. If the number of client ports is greater than the number of server
ports, the client ports will establish connections to the server ports on a one-to-
one basis until all server ports are paired with client ports. Then, the remaining
client ports will return to the first server port and continue pairing themselves
with server ports.
Value Usage
-ramp_down_time The amount of time used for closing any TCP connections that are still open
after all transactions are complete. When the ramp down time expires, the pro-
gram terminates any users. If the program terminates any client users that are
still running after the ramp down time expires, statistics for servers and clients
that should match may not. This is an indication that the ramp down time may
be too short.
(DEFAULT = 20)
(DEFAULT = users_per_second)
Value Usage
(DEFAULT = 0)
-client_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP),
retrieving or serving pages (FTP), or sending or receiving files (FTP). The valid
range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-client_total_time The total time required to run the test, including Ramp Up, Ramp Down, Sustain,
and Offline times for all iterations.
(DEFAULT = 60)
-server_traffic_handle This handle provides the model of the server traffic to be generated.
-match_client_totaltime If true, the servers on this mapping will stay online for the same length of time as
the longest-running client agent. If you do not check this box and a server's dura-
tion is shorter than one of the clients connecting to it, the server will go offline
while the client is connected; if this is not what you intend to happen during test-
ing, the test results for that client may be misleading. If false, the program calcu-
lates agent run times independently for each server activity. server_offline_time,
server_standby_time, server_sustain_time, server_total_time options will be dis-
abled if -match_client_totaltime option is enabled. Value: 0 | 1.
(DEFAULT = 1)
-server_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
(DEFAULT = 0)
-server_standby_time The amount of time, expressed in seconds, that elapses between the time the test
is started and the time that the traffic-network pair become active. If you have
multiple traffic-network pairs in your test, you can use this parameter to stagger
their start times. A value of 0 causes the test to begin immediately. The valid
range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-server_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP),
retrieving or serving pages (FTP).
(DEFAULT = 20)
-server_total_time The total time required to run the test, including Standby, Sustain, and Offline
times for all iterations.
(DEFAULT = 60)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_ftp_stats
DESCRIPTION This command manages the statistics gathered during the test run. It can add mul-
tiple types of statistics, extract data, clear statistics from a previous run, or can
add specific filters to the way the statistics are gathered.
SYNOPSIS ::ixia::emulation_ftp_stats
-mode CHOICES add clear get
[-handle ANY]
[-aggregation_type CHOICES sum max min average rate
maxrate minrate averagerate DEFAULT sum]
[-stat_name ALPHANUM]
[-stat_type CHOICES client server
DEFAULT client]
[-filter_type CHOICES port card chassis traffic
map]
[-filter_value ANY]
ARGUMENTS
Value Usage
add adds a statistic.
clear clear all statistics previously added.
get get statistic data.
-aggregation_type Specifies how statistics for multiple ports are combined. Valid choices are:
Value Usage
sum (default) add all of the statistics together.
max determine the maximum value.
min determine the minimum value.
average determine the average value.
rate determine the rate of change of the sum of all
the statistics.
maxrate determine the maximum rate.
minrate determine the minimum rate.
averagerate determine the average rate.
Dependencies: -mode add. N/A
Value Usage
Value Usage
Value Usage
(DEFAULT = client)
-filter_type The type of the filter available. Dependencies: -mode add. Valid choices are:
Value Usage
-filter_value A value corresponding to the value of the type option. Dependencies: -mode add.
Valid choices are:
Value Usage
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_http_config
DESCRIPTION This command is used to construct the environment required for the HTTP proto-
col to be used.
It sets for the client or server side of the emulation the configuration of TCP
parameters used for a HTTP transaction, the presence or absence of an emulated
router, the range of ports where the process can open sockets, the buffers sizes.
To this environment it can add network ranges to define the HTTP client or
server networks, or it can add DNS servers, or a pool of IP addresses to be used
for an emulated router between the network range and the testing port. Multiple
network ranges, DNS servers and suffixes or IP address pools can be added to a
client or server HTTP configuration.
SYNOPSIS ::ixia::emulation_http_config
-mode CHOICES add remove
modify enabledisable
[-property CHOICES http network
router_addr dns]
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-port_handle REGEXP ^[0-9]+/[0-9]+/
[0-9]+$]
[-mac_mapping_mode CHOICES macip macport
DEFAULT macip]
[-source_port_from RANGE 1024-65535
DEFAULT 1024]
[-source_port_to RANGE 1024-65535
DEFAULT 65535]
[-emulated_router_gateway IP DEFAULT 0.0.0.0]
[-emulated_router_subnet MASK
DEFAULT 255.255.255.0]
[-dns_cache_timeout NUMERIC DEFAULT 30000]
[-grat_arp_enable CHOICES 0 1 DEFAULT 0]
[-congestion_notification_enable CHOICES 0 1 DEFAULT 0]
[-time_stamp_enable CHOICES 0 1 DEFAULT 1]
[-rx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-tx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-fin_timeout NUMERIC DEFAULT 60]
[-keep_alive_interval NUMERIC DEFAULT 7200]
[-keep_alive_probes NUMERIC DEFAULT 9]
[-keep_alive_time NUMERIC DEFAULT 75]
[-receive_buffer_size NUMERIC DEFAULT 4096]
[-retransmit_retries NUMERIC DEFAULT 15]
[-rx_bandwidth_limit NUMERIC]
[-rx_bandwidth_limit_unit CHOICES kb mb
DEFAULT kb]
[-syn_ack_retries NUMERIC DEFAULT 5]
[-syn_retries NUMERIC DEFAULT 5]
[-transmit_buffer_size NUMERIC DEFAULT 4096]
[-tx_bandwidth_limit NUMERIC]
[-tx_bandwidth_limit_unit CHOICES kb mb DEFAULT kb]
[-ip_address_start IP DEFAULT 198.18.0.1]
[-mac_address_start MAC
DEFAULT 00.C6.12.00.01.00]
[-gateway IP DEFAULT 0.0.0.0]
[-ip_count NUMERIC DEFAULT 100]
[-ip_increment_step IP DEFAULT 0.0.0.1]
[-mac_increment_step MAC
DEFAULT 00.00.00.00.00.01]
[-mss NUMERIC DEFAULT 1460]
[-mss_enable CHOICES 0 1 DEFAULT 0]
[-network_mask MASK DEFAULT 255.255.0.0]
[-vlan_enable CHOICES 0 1 DEFAULT 0]
[-vlan_id NUMERIC]
[-dns_server IP]
[-dns_suffix REGEXP ^\.[A-z]+\.[A-
z]+$]
[-pool_ip_address_start IP DEFAULT 194.18.0.1]
[-pool_ip_count NUMERIC DEFAULT 1]
[-pool_mac_address_start MAC DEFAULT
00.C2.12.00.01.00]
[-pool_vlan_enable CHOICES 0 1 DEFAULT 0]
[-pool_vlan_id NUMERIC
ARGUMENTS
Dependencies:
-target Specifies where this network will be added: on the client side or on the server
side. Values: client, server.
(DEFAULT = client)
-property Defines types of properties of the HTTP configuration. Mandatory for "mode"
add. Valid choices are:
Value Usage
Value Usage
-mode Defines types of actions to be taken on the "-property" object. Values: add,
remove, modify, enable, disable.
-mac_mapping_mode Indicates whether one MAC address will be associated with each IP address or
with each port. The use of the latter option indicates that an emulated router is to
be used. Values are: macip, macport.
(DEFAULT = macip)
-source_port_from Defines the beginning of the range of ephemeral port numbers used to establish
connections to the server. The end of the range is specified by source_port_to.
Valid values are from 1024 to 65535.
(DEFAULT = 1024)
-source_port_to Defines the end of the range of ephemeral port numbers used to establish connec-
tions to the server. Valid values are from 1024 to 65535.
(DEFAULT = 65535)
(DEFAULT = 0.0.0.0)
(DEFAULT = 255.255.255.0)
-dns_cache_timeout The length of time, in milliseconds, the program should continue to refer to the
previously resolved host name stored in its cache before discarding the entry and
accessing the DNS server to re-resolve the host name.
(DEFAULT = 30000)
-grat_arp_enable Values: 0 or 1.
If true, before beginning a test, the program will ARPs the gateways so that the
DUT can learn the MAC addresses used on the subnet. If a subnet is set to MAC
per Port, the subnet sends one ARP request. If a subnet is set to MAC per IP, each
host on the subnet sends an ARP request.
(DEFAULT = 0)
-congestion_notification_ Values: 0 or 1.
enable
If true, the client or server uses bits from the Type of Service (TOS) field and the
TCP packet header's Reserved field to support Explicit Congestion Notification
(ECN). ECN uses the bits as follows:
TOS bit 6 is the ECT (Explicit Congestion Transport) bit, which a recipient sets
to indicate that it supports ECN.
TOS bit 7 is the CE (Congestion Experienced) bit, which the recipient sets if its
average queue length exceeds a threshold.
TCP header Reserved field bit 5 the CWR (Congestion Window Reduced) bit.
A SYN packet with both ECN-Echo and CWR bits indicates the sender supports
ECN in both directions (as sender and receiver). A combined SYN+ACK packet
sets only ECN to indicate ECN capability. If you enable ECN, the sender sets the
ECT bit to indicate that it supports ECN. If the sender receives a packet with the
CE bit set, it returns an ACK with the ECN-Echo bit set. If a sender receives a
packet with ECN-Echo set, it should reduce its window size. The first packet it
sends after reducing its window size has the CWR bit set. The sender will repeat-
edly reduce its window size until it receives a packet in return with the CWR bit
from the recipient.
(DEFAULT = 0)
-time_stamp_enable Values: 0 or 1. If true, the client or server inserts a timestamp into each packet.
(DEFAULT = 1)
-fin_timeout The amount of time a TCP implementation will keep a TCP connection open that
it has closed itself, i.e., sent a FIN for (it has no more data to send).
(DEFAULT = 60)
-keep_alive_interval The interval, in seconds, between repeated keep alive probes sent.
(DEFAULT = 7200)
-keep_alive_probes The number of keep alive probes that the program sends out before determining
that a link is down.
(DEFAULT = 9)
-keep_alive_time If a link has no activity on it for the time specified, in seconds, the program
begins sending keep alive probes to determine if the link is still up.
(DEFAULT = 75)
(DEFAULT = 4096)
-retransmit_retries The number of times the program attempts to re-transmit a packet for which it
has not received an acknowledgement.
(DEFAULT = 15)
-rx_bandwidth_limit The maximum amount of receive bandwidth on each port allowed to the clients
or servers. You can use this parameter to simulate the bandwidth available from
different types of Internet access technologies such as dial-up, ISDN, cable
modem, or T1. If you do not configure this parameter, the program uses all the
bandwidth available on the test ports.
Dependencies: -rx_bandwidth_limit_enable 1.
-rx_bandwidth_limit_unit The units used in rx_bandwidth_limit: kilobytes per second or megabytes per
second. Values: kb | mb.
Dependencies: -rx_bandwidth_limit_enable 1.
(DEFAULT = kb)
(DEFAULT = 5)
-syn_retries The number of times IxLoad re-transmits an un-acknowledged SYN for an active
TCP connection.
(DEFAULT = 5)
-transmit_buffer_size The size of the transmit buffer. This affects the TCP transmit window size. If you
increase the size of the transmit buffer, IxLoad enlarges the transmit window. If
you are experiencing high latency on your test network, you can increase the size
of the transmit buffer to improve the throughput.
(DEFAULT = 4096)
-tx_bandwidth_limit The maximum amount of transmit bandwidth on each port allowed to the clients
or servers. You can use this parameter to simulate the bandwidth available from
different types of Internet access technologies such as dial-up, ISDN, cable
modem, or T1. If you do not configure this option, the program uses all the band-
width available on the test ports.
Dependencies: tx_bandwidth_limit_enable 1.
-tx_bandwidth_limit_unit The units used in tx_bandwidth_limit: kilobytes per second or megabytes per
second. Value: kb | mb.
(DEFAULT = kb)
Dependencies: tx_bandwidth_limit_enable 1.
-ip_address_start The first IP address for the network range. Dependencies: property network with
mode add | modify.
(DEFAULT = 198.18.0.1)
-mac_address_start The first MAC address for the network range. This is not used if the value of
mac_mapping_mode is set to "macport".
(DEFAULT = 00.C6.12.00.01.00)
-gateway The gateway associated with all IP addresses in the network range.
(DEFAULT = 0.0.0.0)
(DEFAULT = 100)
-ip_increment_step Indicates the increment to be applied between generated IP addresses. The format
of this option is a dotted-quad IP address, in which only one of the octets may be
non-zero. For example: 0.0.0.1, 0.0.2.0, 0.22.0.0 and 4.0.0.0 are valid values
which will increment a different octet each time. Values which use more than one
octet, for example 0.0.1.1, are illegal.
(DEFAULT = 0.0.0.1)
-mac_increment_step Indicates the increment to be applied between generated MAC addresses. The
format of this option is a colon separated MAC address, in which only one of the
octets may be non-zero. For example: 00.00.00.00.00.01, 00.00.00.00.22.00,
00.00.00.33.00.00, 00.00.44.00.00.00, 00.AA.00.00.00.00 and
0C.00.00.00.00.00 are valid values which will increment a different octet each
time. Values which use more than one byte, for example 00.00.00.00.01.01, are
illegal. This is not used if the value of mac_mapping_mode is set to "macport".
(DEFAULT = 00.00.00.00.00.01)
-mss If mss_enable is true, this option specifies the TCP Maximum Segment Size in
the MSS (RX) field. Otherwise, clients or servers advertise their TCP Maximum
Segment Size as 1460 bytes.
(DEFAULT = 1460)
(DEFAULT = 0)
(DEFAULT = 255.255.0.0)
(DEFAULT = 0)
-dns_suffix Define suffixes to be appended to partial host names. Each is tried in order by the
DNS server(s).
(DEFAULT = 194.18.0.1)
(DEFAULT = 1)
(DEFAULT = 00.C2.12.00.01.00)
(DEFAULT = 255.255.0.0)
-pool_vlan_enable If true, VLAN tags are inserted into the IP frame. Value: 0 or 1.
(DEFAULT = 0)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_http_traffic_config
DESCRIPTION The used to construct the model for client or server traffic to be applied, or
respectively, handled during the test. This traffic is composed by actions created
by client HTTP agents which are handled by server agents. Client agents can
emulate a specific browser, a specific HTTP protocol version, with or without
SSL support. Server agents emulate a HTTP WEB server. Multiple agents can be
added to form a HTTP traffic.
SYNOPSIS ::ixia::emulation_http_traffic_config
-mode CHOICES add remove modify
enable disable
[-property CHOICES traffic agent]
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-browser_emulation CHOICES custom ie5 ie6 mozilla
firefox DEFAULT ie6]
[-cookie_jar_size RANGE 1-300 DEFAULT 10]
[-cookie_reject_probability RANGE 0.0-1.0 DEFAULT 0.0]
[-cookie_support_enable CHOICES 0 1 DEFAULT 0]
[-esm_enable CHOICES 0 1 DEFAULT 0]
[-esm NUMERIC DEFAULT 1460]
[-http_proxy_enable CHOICES 0 1 DEFAULT 0]
[-https_proxy_enable CHOICES 0 1 DEFAULT 0]
[-follow_http_redirects CHOICES 0 1 DEFAULT 0]
[-http_proxy ANY]
[-https_proxy ANY]
[-http_version CHOICES 1.0 1.1 DEFAULT 1.0]
[-keep_alive CHOICES 0 1 DEFAULT 0]
[-max_persistent_requests NUMERIC DEFAULT 1]
[-max_sessions NUMERIC DEFAULT 3]
[-ssl_enable CHOICES 0 1 DEFAULT 0]
[-sequential_session_reuse NUMERIC DEFAULT 0]
[-ssl_version CHOICES ssl2 ssl3 tls1
DEFAULT tls1]
[-certificate ANY]
[-certificate_file ANY]
[-private_key ANY]
[-private_key_file ANY]
[-private_key_password ANY]
[-client_ciphers ANY]
[-accept_ssl_connections CHOICES 0 1 DEFAULT 0]
[-http_port RANGE 1-65535 DEFAULT 80]
[-https_port RANGE 1-65535 DEFAULT 443]
[-request_timeout RANGE 1-64000 DEFAULT 300]
ARGUMENTS
-handle Handle of a HTTP configuration when -property traffic and -mode add. Or han-
dle of a traffic property , used when -property is agent and -mode is add. Also the
handle of a traffic, agent or command property when -property is respectively
traffic, agent and -mode is modify | remove | enable | disable.
-target Specifies where this traffic will be added: on the client side or on the server side.
Values: client or server.
(DEFAULT = client)
-property Defines types of properties of the HTTP traffic configuration. Command handles
operations required for defining commands for the HTTP agents. Valid choices
are:
Value Usage
-mode Defines types of actions to be taken on the -property object. Values: add | remove
| modify | enable | disable. For -mode "add", -property "agent" and -target
"server" then some default objects will be available.
/1b.html
/4k.html
/8k.html
/16k.html
/32k.html
/64k.html
/128k.html
/256k.html
/512k.html
/1024k.html
200_OK
404_PageNotFound
(DEFAULT = ie6)
-cookie_jar_size If cookie_support_enable is true, this option indicates the number of cookies that
will be saved for each client.
(DEFAULT = 10)
-cookie_reject_probability If cookie_support_enable is true, then this option indicates the probability, from
0 to 1, that a client will reject a request for a cookie's contents from the server.
(DEFAULT = 0.0)
(DEFAULT = 0)
(DEFAULT = 0)
-esm If esm_enable is true, this option specifies the TCP Maximum Segment Size in
the MSS (RX) field. Otherwise, the TCP Maximum Segment Size is 1460 bytes.
(DEFAULT = 1460)
-http_proxy_enable If true, the client will retrieve pages from an HTTP proxy device defined in http_
proxy instead of the target specified in the URL.
(DEFAULT = 0)
-https_proxy_enable If true, the client will retrieve secure (SSL) pages from an HTTPS proxy device
defined in https_proxy instead of the target specified in the URL.
add | modify
(DEFAULT = 0)
-ip_preference If a mixture of IPv4 and IPv6 addresses are available on the client network, this
parameter configures which address types the agent uses.
(DEFAULT = 0)
-follow_http_redirects If true, the client follows HTTP Redirect commands from the server. An HTTP
Redirect is a response status code from the server in the range 300-399 which
defines the reason for redirection (for example, "301 Moved Permanently") and
supplies an alternative location (specified in the emulation_http_traffic_type_
config with -property header) from which the client can retrieve the page.
(DEFAULT = 0)
-http_proxy If http_proxy_enable is true, this option is the name of a HTTP proxy device
(typically, a caching device) that will be used instead of the target specified in the
URL. It should be of the form:
-https_proxy If https_proxy is true, this option is the name of a HTTPS proxy device (typi-
cally, a caching device) that will be used instead of the target specified in the
URL for secure (SSL) pages. It should be of the form:
-http_version Under HTTP 1.0 without Keep-Alive, when a user clicks on a link for a web
page, a TCP connection request is sent by the client to the server. When the
server accepts the connection, the client sends an HTTP GET request to down-
load the web page from the server. The client acknowledges receipt of the page
by sending an ACK to the server. After making a single HTTP request, the client
closes the TCP connection. After the server has sent the entire page, it will also
close the connection from its side.
(DEFAULT = 1.0)
Dependencies: http_version "1.0" ; target client ; property agent with mode add |
modify
(DEFAULT = 0)
-max_persistent_requests This option is only applicable if http_version is set to "1.1" or http_version is set
to "1.0" with keep_alive set to true. This option enables you to control the num-
ber of transactions that can occur during a single connection. A value of 0 indi-
cates the maximum possible, in which case the program will create as many
transactions as possible for each connection. If you enter a value to limit the
number of transactions, the program limits the number of transactions that can
occur during a single TCP connection. If a user reaches the maximum number of
transactions and needs to continue communicating with the server, it will close
the connection and open a new one.
(DEFAULT = 1)
-max_sessions This value determines the maximum number of connections that a single user can
have open at any given time. For example, clients may open multiple connections
when their command list contains URLs for multiple servers. The value for this
parameter has an effect on the total number of users that can be configured;
increasing the number of concurrent connections decreases the number of users
that can be configured. Setting this parameter to 1 allows the maximum numbers
of users to be created. The program enforces these limits for clients. For servers,
the limits are the same but not enforced.
(DEFAULT = 3)
-ssl_enable If true, then the client will support SSL interactions. The operation of SSL mode
is controlled by the certificate, client_ciphers, private_key, private_key_pass-
word, sequential_session_reuse (sic), and ssl_version options.
(DEFAULT = 0)
-sequential_session_reuse If ssl_enable is true, this option indicates the number of times that a set of keys
will be re-used after its initial usage. For example, if this value is set to 3, then the
keys will be used for four total sessions.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
(DEFAULT = 0)
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
(DEFAULT = tls1)
-certificate This is a certificate to be used by the client if requested by the server. The certifi-
cate must an X.509 certificate in binary format, fully decoded. The certificate_
file option can read and decode a certificate held in a disk file.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
-certificate_file Imports a certificate from a disk file, setting the certificate option with the result.
The program can import ASCII PEM (Privacy Enhanced Mail) or binary
(PKCS#12) certificates and keys; it converts binary certificates and keys into
ASCII PEM format. PEM uses Base64 encoding, and is optimized for sending
binary data in 7-bit transport environments like the Internet. PKCS #12 (Public
Key Cryptography Standard #12) is an industry standard format used to transfer
certificates and their corresponding private keys from one computer to another,
or from a computer to removable media. If this format is imported, the private_
key_password must be set.
Even though the certificate and key are stored in the same file, you must import
each one separately.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
-private_key This is a user's private key. The password must be in binary format, fully
decoded.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
-private_key_file Imports a private key from a disk file, setting the private_key_password option
with the result. The program can import ASCII PEM (Privacy Enhanced Mail) or
binary (PKCS#12) certificates and keys; it converts binary certificates and keys
into ASCII PEM format. PEM uses Base64 encoding, and is optimized for send-
ing binary data in 7-bit transport environments like the Internet. PKCS #12 (Pub-
lic Key Cryptography Standard #12) is an industry standard format used to
transfer certificates and their corresponding private keys from one computer to
another, or from a computer to removable media. If this format is imported, the
private_key_password must be set.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
-private_key_password The password used to decode a certificate and private key, when using the
certificate_file or private_key_file options.
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
Dependencies: ssl_enable 1 ; target client ; property agent with mode add | mod-
ify
(DEFAULT = 0)
-http_port The port number to which the HTTP server will respond to non SSL requests.
(DEFAULT = 80)
-https_port The port number to which the HTTP server will respond to SSL requests. Depen-
dencies: target server ; property agent with mode add | modify
(DEFAULT = 443)
-request_timeout The amount of time that the server will wait for input on an open connection
before closing the session with a '408' error.
(DEFAULT = 300)
-tos_enable Enables the setting of the TOS (Type of Service) bits in the header of the HTTP
packets. Use the tos option to specify the TOS bit setting.
(DEFAULT = 0)
-tos this option specifies the IP Precedence / TOS (Type of Service) bit setting and
Assured Forwarding classes. (Default="Best Effort 0x0"). If you want to specify
the standard choices that are in the GUI, you can use a string representation. To
specify any of the other 255 TOS values, specify the decimal value.
(DEFAULT = 0)
Value Usage
Best Effort (0x0) (Default) routine priority
Class 1 (0x20) Priority service, Assured Forwarding class 1
Class 2 (0x40) Immediate service, Assured Forwarding class
2
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_http_traffic_type_config
DESCRIPTION The command is used to construct the actions attached to the HTTP agents previ-
ously defined with the <vendor>::emulation_http_traffic_config command. Mul-
tiple actions can be added to the agents. For every agent this command can add
multiple cookies, specific headers or WEB pages to be transferred between a cli-
ent agent and a server agent. This command can also define new cookies, head-
ers, or pages.
SYNOPSIS ::ixia::emulation_http_traffic_type_config
-mode CHOICES add remove modify
enable disable
[-property CHOICES action cookielist
cookieheader page]
[-handle ANY]
[-abort CHOICES none before after
DEFAULT none]
[-command CHOICES get get_ssl delete
headhead_ssl put put_ssl postpost_ssl think
loop_beginloop_end DEFAULT get]
[-arguments ANY]
[-destination ANY]
[-page_handle ANY]
[-cookielist_mode CHOICES ignore normal
setcookie1 setcookie2 DEFAULT normal]
[-cookielist_description ANY]
[-type CHOICES setcookie1 setcookie2
DEFAULT setcookie2]
[-domain NUMERIC]
[-max_age NUMERIC]
[-path ANY]
[-cookie_name ANY]
[-cookie_value ANY]
[-code NUMERIC DEFAULT 200]
[-expiration_mode CHOICES never datetime
afterrequest afterlastmodified DEFAULT never]
[-expiration_datetime ANY DEFAULT 2009/12/31
23:59:59]
[-expiration_afterrequest NUMERIC DEFAULT 3600]
[-expiration_afterlastmodified NUMERIC DEFAULT 3600]
[-last_modified_mode CHOICES never datetime
DEFAULT never]
[-last_modified_datetime ANY DEFAULT "2004/12/31
23:59:59"]
[-last_modified_incr_enable CHOICES 0 1 DEFAULT 0]
[-last_modified_incr_by NUMERIC DEFAULT 5]
[-last_modified_incr_for NUMERIC DEFAULT 1]
[-mime_type ANY DEFAULT text/plain]
[-response_name ANY DEFAULT 200_OK]
[-response_description DEFAULT OK]
[-key ANY]
[-value ANY]
[-page ANY]
[-payload_type CHOICES range file
DEFAULT range]
[-payload_file ANY]
ARGUMENTS
-property
Defines types of properties of the HTTP traffic type configuration. Valid choices
are:
Value Usage
-abort This option allows you to abort an operation at one of two places during the inter-
change.
Value Usage
Value Usage
-arguments This option contains an argument which is used by the various commands
defined in command option. The type of the value depends on the command.
Dependencies: property action with mode add | modify ; command put | put_ssl |
post | post_ssl | think
Value Usage
-destination The IP address of a real HTTP server. If the HTTP server listens on a port other
than the standard (80), enter a colon after the IP address and then enter the port
number. If you are using a testing an SLB with a virtual IP address (VIP), enter
its address here. For example: 192.168.0.1:80.
-page_handle /#n identifies a target that contains n bytes of HTTP data. For example, /#1 is 1
byte of HTTP data. In addition to the default sizes listed, you can cause the
HTTP Server agent to generate a custom-size target by specifying the size using
the same convention used for the default sizes. For example, to specify a target of
16 bytes, use /#16. /nk.htm identifies a target that is an HTML page that is n kilo-
bytes in size. For example, /4k.htm is an 4096-byte HTML page. If you have
added customized pages with emulation_http_traffic_type_config with -property
page, type its handler here.
-cookielist_mode Determines how the cookies in the cookie group should be handled by the HTTP
server that receives them. Dependencies: property cookielist with mode add |
modify
Value Usage
Value Usage
-domain The domain for which the cookie is valid. If omitted, it applies to the entire
domain for the HTTP server.
-max_age The lifetime of the cookie, in seconds. After the time elapses, the client should
discard the cookie. A value of zero means the cookie should be discarded imme-
diately. If blank, the cookie is discarded at the end of the browser session.
-path The subset of URLs to which this cookie applies. If omitted, it applies to all
URLs for the server.
-cookie_name The name part of the name=value pair being defined. Dependencies: property
cookie with mode add | modify
-cookie_value The value part of the name=value pair being defined. Dependencies: property
cookie with mode add | modify
-code The number returned by response. HTTP response codes are defined in Section
10 of RFC 2616.
(DEFAULT 200)
-expiration_mode The means by which the page's expiration is published. Dependencies: property
header with mode add | modify
Value Usage
-expiration_datetime This is the date and time at which the page will expire. The format of this field is
"YYYY/MM/DD HH:MM:SS". For example, "2004/12/31 23:59:59".
-expiration_afterrequest This is the number of seconds after which the page will expire.
(DEFAULT 3600)
-expiration_ This is the number of seconds after the page's last modified value, at which time
afterlastmodified the page will expire. The last modified value is set in last_modified_datetime,
last_modified_incr_enable, last_modified_incr_by and last_modified_incr_for
options.
(DEFAULT 3600)
-last_modified_mode This option determines if and how the last modified field will be published for
the page.
Value Usage
-last_modified_datetime This is the value to be returned for the last modified date/time. This value may be
incremented for subsequent responses through use of the last_modified_incr_
enable, last_modified_incr_by and last_modified_incr_for options. last_
modified_mode datetime ; property header with mode add | modify
(DEFAULT 0)
(DEFAULT 5)
-last_modified_incr_for This is the number of times that the page is referenced before the last modified
date/time is incremented as specified in last_modified_incr_by.
(DEFAULT 1)
-mime_type The MIME type for the page. The types: text/plain, text/html and text/xml are
pre-defined, but any legal type may be set.
(DEFAULT text/plain)
(DEFAULT 200_OK)
(DEFAULT OK)
-url The URL of the HTML page that clients can retrieve from the HTTP Server
Agent. The path is relative to the root directory of the server port. You can enter
an asterisk (*) at any point on the path, and the server will treat it as a match for
any number of directories. For example, if you configure the page's URL as /
home/liesl/*/pup.html, a server would serve the page if it received any of the fol-
lowing GET requests:
/home/liesl/pics/pup.html
/home/liesl/0/temp/pup.html
/home/liesl/pup.html
-payload_type Indicates the type of payload that will be returned for this page reference. Depen-
dencies: property page with mode add | modify
Value Usage
-payload_file This field specifies the file that will be returned. Make sure to specify the entire
path to the file in this specification. Also note that the directory separator "\"
must be represented as "\\" within the string.
-payload_size This field specifies the amount of data returned. Specify the size of the data as a
minimum size and a maximum size. For example, to specify a minimum size of
1024 bytes and a maximum of 2048, specify 1024-2048.
(DEFAULT 4096)
-cookielist_handle This option links to an element of type cookielist of the enclosing HTTP Server
Agent.
-header_handle This option links to an element in the header list of the enclosing HTTP Server
Agent.
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_http_control
DESCRIPTION This command defines a mapping between the HTTP networks, the DUT and the
statistics used. It can start a test previously defined with the ::ixia::emulation_
http_control_config command.
SYNOPSIS ::ixia::emulation_http_control
-mode CHOICES add modify start
[-handle ANY]
[-map_handle ANY]
[-force_ownership_enable CHOICES 0 1 DEFAULT 0]
[-release_config_afterrun_enable CHOICES 0 1 DEFAULT 0]
[-reset_ports_enable CHOICES 0 1 DEFAULT 0]
[-results_dir_enable CHOICES 0 1 DEFAULT 0]
[-results_dir ANY]
[-stats_required CHOICES 0 1 DEFAULT 1]
ARGUMENTS
Value Usage
-map_handle List of handles of the maps between a client HTTP config and a client traffic con-
fig and between a server HTTP config and a server traffic config created with
::ixia::emulation_http_control_config.
-force_ownership_enable If true, at the beginning of the test, any ports that are selected for the test but
owned by another user are rebooted and their previous ownership cleared.
(DEFAULT = 0)
-release_config_afterrun_ If true, purges the test configuration from the ports after a test completes, releases
enable ownership of them, and the ports will no longer respond to ARPs and PINGs
from the DUT.
(DEFAULT = 0)
-reset_ports_enable If true, the program reboots the ports before downloading the test configuration
to them. To ensure the integrity of your testing, it is always safest to reboot the
ports before running a test. However, rebooting the ports does increase the
amount of time required to prepare the ports for a test.
If you are developing a test and making incremental changes to it and then run-
ning it to see the effect of your changes, it may be safe to save time by not reboo-
ting the ports before each run. If you do not want to reboot the ports for every
test, you should at least reboot the ports the first time you load a repository; this
will ensure that any software structures remaining from a previous test or other
application are properly removed.
(DEFAULT = 0)
(DEFAULT = 0)
-results_dir Specifies the location of where the execution results will be kept.
(DEFAULT = 1)
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is $::FAILURE, contains more
information
handles the handles of a HTTP traffic configuration,
list of traffic, agent.
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_http_stats
DESCRIPTION This command manages the statistics gathered during the test run. It can add mul-
tiple types of statistics, extract data, clear statistics from a previous run, or can
add specific filters to the way the statistics are gathered.
SYNOPSIS ::ixia::emulation_http_stats
-mode CHOICES add clear get
[-handle ANY]
[-aggregation_type CHOICES sum max min average rate
maxrate minrate averagerate DEFAULT sum]
[-stat_name ALPHANUM]
[-stat_type CHOICES client server
DEFAULT client]
[-filter_type CHOICES port card chassis traffic
map]
[-filter_value ANY]
ARGUMENTS
Value Usage
add adds a statistic.
clear clear all statistics previously added.
get get statistic data.
Value Usage
-stat_name A particular statistic name as listed in the statistics list. The list of statistics can
be found in the table below.
Value Usage
Value Usage
Value Usage
Value Usage
-stat_type The agent type that generates the statistics. Values: client or server. Dependen-
cies: -mode add.
(DEFAULT = client)
(DEFAULT = port)
Value Usage
Value Usage
If -type is "port" a port specification in the form chassis/card/
port.
If -type is "card" a card specification in the form chassis/card.
If -type is "chassis" a chassis specification in the form chassis
If -type is "traffic" a traffic handle created by emulation_http_
traffic_config.
If -type is "map" a map handle created by emulation_http_
control_config.
RETURN VALUES
Key Value
SEE ALSO
NAME — ::ixia::emulation_http_control_config
DESCRIPTION This command is used to construct the mapping between the agents that will gen-
erate the traffic and the set of networks which will carry the traffic. A number of
additional options control the manner in which the traffic is applied to the net-
works.
To the client side mappings , the command can specify the options used to allow
the test to achieve a particular objective, for example, connections per second, or
the options that determine the timeline for application of traffic or the options
that control the manner in which client traffic is sent to servers.
SYNOPSIS ::ixia::emulation_http_control_config
-mode CHOICES add remove modify
enable disable
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-property CHOICES map dut]
[-direct_server_return_enable CHOICES 0 1 DEFAULT 0]
[-ip_address IPV4 DEFAULT 1.1.1.1]
[-server_http_handle ANY]
[-type CHOICES external slb
firewall DEFAULT slb]
[-client_iterations NUMERIC DEFAULT 1]
[-client_http_handle ANY]
[-client_traffic_handle ANY]
[-objective_type CHOICES na users
connections crate trate tputmb tputkb sessions
DEFAULT na]
[-objective_value NUMERIC]
[-client_offline_time NUMERIC DEFAULT 0]
[-port_map_policy CHOICES pairs mesh
round_robin DEFAULT pairs]
[-ramp_down_time NUMERIC DEFAULT 20]
[-ramp_up_type CHOICES users_per_second
max_pending_users DEFAULT users_per_second]
[-ramp_up_value NUMERIC]
[-client_standby_time RANGE 0-3600000 DEFAULT 0]
[-client_sustain_time RANGE 0-3600000 DEFAULT 0]
[-client_total_time NUMERIC DEFAULT 60]
[-server_traffic_handle ANY]
[-match_client_totaltime CHOICES 0 1 DEFAULT 1]
[-server_iterations NUMERIC DEFAULT 1]
[-server_offline_time NUMERIC DEFAULT 0]
[-server_standby_time RANGE 0-3600000 DEFAULT 0]
[-server_sustain_time NUMERIC DEFAULT 20]
[-server_total_time NUMERIC DEFAULT 60]
(DEFAULT = client)
-property Defines types of the HTTP control configuration: Map handles operations
required for mapping a HTTP configuration
-mode Defines types of actions to be taken on the -property object. Enable and disable
are not valid values for -property dut. Value: add | remove | modify | enable | dis-
able.
-direct_server_return_ If type is "slb" and this option is true, Direct Server Return is enabled. In a basic
enable SLB topology, incoming requests from clients and outgoing responses from serv-
ers both go through the SLB. In a topology using Direct Server Return, the
responses are sent directly from the servers to the clients; they do not go through
the SLB. DSR reduces the amount of traffic going through the SLB, allowing it
to devote more resources to managing the incoming requests and monitoring the
status of the servers in its pool. Value: 0 | 1.
(DEFAULT = 0)
-ip_address The IPv4 address, virtual IPv4 address or host name used to access the DUT.
(DEFAULT = 1.1.1.1)
-server_http_handle If type is "slb" and the SLB is balancing emulated servers, set this option to the
handle of the server HTTP network that is being balanced.
Value Usage
-client_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
-client_http_handle This handle provides the networks from which the traffic will be generated.
-client_traffic_handle This handle provides the model of the client traffic to be generated.
(DEFAULT = na)
Value Usage
(DEFAULT = 0)
-port_map_policy This option controls the sequence in which the client ports connect to the server
ports. The operation of Port Pairs can be described by three scenarios: If the num-
ber of client ports is equal to the number of server agents, client ports will estab-
lish connections to server ports on a one-to-one basis; If the number of client
ports is less than the number of server ports, the client ports will establish con-
nections to the server ports on a one-to-one basis until all client ports are paired
with server ports. The remaining server ports will not be used; If the number of
client ports is greater than the number of server ports, the client ports will estab-
lish connections to the server ports on a one-to-one basis until all server ports are
paired with client ports. Then, the remaining client ports will return to the first
server port and continue pairing themselves with server ports.
(DEFAULT = pairs)
Value Usage
pairs Client agents connect to server agents on a
one-to-one basis.
mesh Agents on every client port connect to every
server port. For large numbers of ports, the
Port Pair sequence scales performance better
than the Port Mesh sequence.
-ramp_down_time The amount of time used for closing any TCP connections that are still open after
all transactions are complete. When the ramp down time expires, the program ter-
minates any users. If the program terminates any client users that are still running
after the ramp down time expires, statistics for servers and clients that should
match may not. This is an indication that the ramp down time may be too short.
(DEFAULT = 20)
-ramp_up_type The method used to apply the ramp_up_value. Dependencies: property map with
mode add | modify.
Value Usage
-client_standby_time The amount of time, expressed in seconds, that elapses between the time the test
is started and the time that the traffic-network pair become active. If you have
multiple traffic-network paris in your test, you can use this parameter to stagger
their start times. A value of 0 causes the test to begin immediately. The valid
range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-client_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP),
retrieving or serving pages (http), or sending or receiving files (http). The valid
range is from 0 to 1000 hours (3,600,000). (DEFAULT = 0)
-client_total_time The total time required to run the test, including Ramp Up, Ramp Down, Sustain,
and Offline times for all iterations. (DEFAULT = 60)
-server_traffic_handle This handle provides the model of the server traffic to be generated.
-match_client_totaltime If true, the servers on this mapping will stay online for the same length of time as
the longest-running client agent. If you do not check this box and a server's dura-
tion is shorter than one of the clients connecting to it, the server will go offline
while the client is connected; if this is not what you intend to happen during test-
ing, the test results for that client may be misleading. If false, the program calcu-
lates agent run times independently for each server activity. -server_offline_
time, server_standby_time, # server_sustain_time, server_total_time options
will be disabled if -match_client_totaltime option is enabled. Value: 0 | 1.
(DEFAULT = 1)
-server_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
(DEFAULT = 0)
(DEFAULT = 0)
-server_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP),
retrieving or serving pages (http).
(DEFAULT = 20)
-server_total_time The total time required to run the test, including Standby, Sustain, and Offline
times for all iterations.
(DEFAULT = 60)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_igmp_config
DESCRIPTION This procedure will configure IGMP Host(s). Note that IGMP is only supported
on ports with CPUs.
SYNOPSIS ::ixia::emulation_igmp_config
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-
9]+$
-mode CHOICES create delete
modify enable disable enable_all disable_all
[-handle]
[-interface_handle]
[-igmp_version CHOICES v1 v2 v3
(DEFAULT v2)]
[-count NUMERIC (DEFAULT 1)]
[-intf_ip_addr IP]
[-intf_ip_addr_step IP (DEFAULT 0.0.0.1)]
[-intf_prefix_len RANGE: 1-32 (DEFAULT 24)]
[-neighbor_intf_ip_addr IP]
[-neighbor_intf_ip_addr_step IP (DEFAULT 0.0.0.0)]
[-unsolicited_report_interval NUMERIC]
[-max_groups_per_pkts NUMERIC (DEFAULT 0)]
[-max_response_control CHOICES 0 1 (DEFAULT 0)]
[-max_response_time NUMERIC]
[-ip_router_alert CHOICES 0 1 (DEFAULT 1)]
[-general_query CHOICES 0 1 (DEFAULT 1)]
[-group_query CHOICES 0 1 (DEFAULT 1)]
[-suppress_report CHOICES 0 1 (DEFAULT 0)]
[-filter_mode CHOICES include exclude
(DEFAULT include)]
[-vlan_id RANGE 0-4095]
[-vlan_id_mode CHOICES fixed increment
(DEFAULT increment)]
[-vlan_id_step RANGE 0-4096 (DEFAULT 1)]
[-vlan_user_priority RANGE 0-7 (DEFAULT 0)]
[-mac_address_init MAC ]
[-msg_interval NUMERIC (DEFAULT 0)]
[-no_write FLAG ]
[-reset FLAG ]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
create N/A
delete N/A
modify N/A
disable N/A
enable N/A
enable_all N/A
disable_all N/A
-handle IGMP Host handle if the option -mode is delete, modify, disable, enable.
-interface_handle A handle or list of the handles that are returned from the interface_config call.
These provide a direct link to an already existing interface and supercede the use
of the intf_ip_addr value.
(DEFAULT = 1)
-intf_ip_addr_step The IP address step between each session. Only applicable in create mode.
(DEFAULT = 0.0.0.1)
-intf_prefix_len
-unsolicited_report_inter- The interval (in 1/10 seconds) to wait before re-sending the host's initial report of
val membership in a group. If 0, do not send unsolicited report.
The maximum number of group records that can go into one IGMPv3 member-
ship report packet. If the number of groups to be advertised exceeds this number
then the groups are split up into multiple membership report packets. If set to 0,
groups are packed into Membership Report packets until the MTU size is
reached.
(DEFAULT = 0)
-max_response_control If true (1), use ì-max_response_timeî to overwrite the value obtained from the
received Query message.
(DEFAULT = 0 - disable)
-max_response_time Set the maximum response time (in 1/10 seconds) on receipt of a query. If set to
0, immediately respond to received Query message.
(DEFAULT = 1)
(DEFAULT = 1)
(DEFAULT = 1)
-suppress_report If true (1), suppress the transmission of a listener report that duplicates one
received on the interface.
(DEFAULT = include)
-vlan_id_mode For multiple neighbor configuration, configures the VLAN ID mode to fixed or
increment.
-vlan_id_step When -vlan_id_mode is set to increment, this defines the step for every VLAN.
-msg_interval The interval in ms used for throttling updates. A value of 0 will cause sending the
messages as fast as possible.
(DEFAULT = 0)
-no_write If this option is present, the protocol configuration will not be written to the
server.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_igmp_control
DESCRIPTION Stop, start, or restart the protocol. Note that IGMP is only supported on ports
with CPUs.
SYNOPSIS ::ixia::emulation_igmp_control
-mode CHOICES stop start restart join leave
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
-handle
-group_member_handle
ARGUMENTS
Value Usage
stop Stop the protocol.
start Start the protocol.
restart Restart the protocol.
join Join the groups specified by handle, port_
handle or group_member_handle. This com-
mands only affects the status of the items, it
will not start the protocol, if it is not already
running.
leave Leave the groups specified by handle, port_
handle or group_member_handle. This com-
mands only affects the status of the items, it
will not start the protocol, if it is not already
running.
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log If status is failure, detailed information pro-
vided.
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_igmp_group_config
DESCRIPTION This procedure will configure multicast group ranges for a simulated IGMP Host.
Note that IGMP is only supported on ports with CPUs.
SYNOPSIS ::ixia::emulation_igmp_group_config
-mode CHOICES create modify delete clear_all
-session_handle
-group_pool_handle
-source_pool_handle
-handle
-no_write
-reset
ARGUMENTS
-session_handle IGMP Host handle on which to configure the IGMP group ranges.
-group_pool_handle Groups to be linked to the session in create mode. The group pool must be added
beforehand through procedure
-emulation_multicast_
group_config.
-source_pool_handle Associate source pool(s) with group(s). Specify one or more source pool han-
dle(s) for (S,G) entries. None for (*,G) entries. The source pool(s) must be added
beforehand through procedure
-emulation_multicast_
source_config.
-handle Group membership handle that associates group pools with an IGMP session. If
modify mode, membership handle must be used in conjunction with session han-
dle to identify the multicast group pools.
-mode This option defines the action to be taken. Valid choices are:
Value Usage
create N/A
delete N/A
modify N/A
clear_all N/A
-no_write If this option is present, the protocol configuration will not be written to the
server.
-reset If the -mode is create and this option exists, then any existing group ranges will
be deleted before creating new ones.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_igmp_info
SYNOPSIS ::ixia::emulation_igmp_info
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
[-type CHOICES igmp igmp_over_ppp
DEFAULT igmp_over_ppp]
[-mode CHOICES aggregate group all
DEFAULT aggregate]
ARGUMENTS
Value Usage
-mode The statistics that should be retrieved for igmp over ppp.
Value Usage
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is failure, contains more informa-
tion
<port_handle>.igmpoppp.aggre-
gate.tx.mc_groups_query
<port_handle>.igmpoppp.aggre-
gate.rx.mc_groups_query
<port_handle>.igmpoppp.aggre-
gate.tx.mc_groups_report
<port_handle>.igmpoppp.aggre-
gate.rx.mc_groups_report
<port_handle>.igmpoppp.aggre-
gate.tx.mc_groups_leave
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.min_
join_latency
Key Value
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.avg_
join_latency
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.max_
join_latency
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.min_
leave_latency
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.avg_
leave_latency
<port_handle>.igmpoppp.group.<mc_
group_id>.<mc_group_addr>.rx.max_
leave_latency
EXAMPLES
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_isis_config
DESCRIPTION This procedure configures ISIS routers on an Ixia interface. The user can create a
single or multiple ISIS routers. These routers can be either L1, L2, or L1L2.
SYNOPSIS ::ixia::emulation_isis_config
-mode CHOICES create modify
delete disable enable
-port_handle
[-handle]
[-ip_version CHOICES 4 6 4_6]
[-area_id]
[-system_id]
[-count]
[-intf_ip_addr IP]
[-intf_ip_prefix_length RANGE 1-32]
[-intf_ip_addr_step IP]
[-intf_ipv6_addr IP]
[-intf_ipv6_prefix_length RANGE 1-128]
[-intf_ipv6_addr_step IP]
[-intf_metric RANGE 0-16777215]
[-wide_metrics CHOICES 0 1]
[-routing_level CHOICES L1 L2 L1L2]
[-discard_lsp CHOICES 0 1]
[-l1_router_priority RANGE 0-255]
[-l2_router_priority RANGE 0-255]
[-attach_bit CHOICES 0 1]
[-partition_repair CHOICES 0 1]
[-overloaded CHOICES 0 1]
[-graceful_restart CHOICES 0 1]
[-graceful_restart_mode CHOICES normal
restarting starting helper]
[-graceful_restart_restart_time]
[-hello_password CHOICES 0 1]
[-area_authentication_mode CHOICES null text]
[-area_password]
[-domain_authentication_mode CHOICES null text]
[-domain_password]
[-te_enable CHOICES 0 1]
[-te_router_id IP]
[-te_metric RANGE 1-2147483647]
[-te_admin_group RANGE 1-2147483647]
[-te_max_bw NUMERIC]
[-te_max_resv_bw NUMERIC]
[-te_unresv_bw_priority0 NUMERIC]
[-te_unresv_bw_priority1 NUMERIC]
[-te_unresv_bw_priority2 NUMERIC]
[-te_unresv_bw_priority3 NUMERIC]
[-te_unresv_bw_priority4 NUMERIC]
[-te_unresv_bw_priority5 NUMERIC]
[-te_unresv_bw_priority6 NUMERIC]
[-te_unresv_bw_priority7 NUMERIC]
[-hello_interval RANGE 1-65535]
[-lsp_life_time RANGE 1-65535]
[-lsp_refresh_interval RANGE 1-65535]
[-max_packet_size RANGE 576-32832]
ARGUMENTS
Value Usage
-handle ISIS session handle for using the modes delete, modify, enable and disable
-ip_version Choices are 4, 6, and 4_6. When 4_6 is selected, wide_metrics is enabled auto-
matically.
(DEFAULT = 4)
-count The number of ISIS routers to configure on the targeted Ixia interface. The range
is 0-1000.
(DEFAULT = 1)
(DEFAULT = 178.0.0.1)
-intf_ip_prefix_length Defines the mask of the IP address used for the Ixia (-intf_ip_addr) and the DUT
interface. The range of the value is 1-32.
(DEFAULT = 24)
-intf_ip_addr_step This value will be used for incrementing the IP address of Simulated ISIS router
if -count is > 1.
(DEFAULT = 0.0.1.0)
-intf_ipv6_addr The IPv6 address of the Ixia Simulated ISIS router. If -count is > 1, this IPv6
address will increment by the value specified in -intf_ipv6_addr_step.
(DEFAULT = 4000::1)
-intf_ipv6_prefix_length Defines the mask of the IPv6 address used for the Ixia (-intf_ipv6_addr) and the
DUT interface. Valid range is 1-128.
(DEFAULT = 64)
-intf_ipv6_addr_step This value will be used for incrementing the IPV6 address of Simulated ISIS
router if -count is > 1.
(DEFAULT = 0:0:0:1::0)
-intf_metric The cost metric associated with the route. Valid range is 0-16777215.
Value Usage
L1 L1 only
L2 L2 only
L1L2 L1 and L2
-discard_lsp If 1, discards all LSPs coming from the neighbor which helps scalability.
-attach_bit For L2 only. If 1, indicates that the AttachedFlag is set. This indicates that this
ISIS router can use L2 routing to reach other areas.
-partition_repair If 1, enables the optional partition repair option specified in ISO/IEC 10589 and
RFC 1195 for Level 1 areas.
-overloaded If 1, the LSP database overload bit is set, indicating that the LSP database on this
router does not have enough memory to store a received LSP.
-graceful_restart If true (1), enable Graceful Restart (NSF) feature on the session router.
Value Usage
-graceful_restart_restart_ The amount of time that the router will wait for restart completion.
time
-hello_password If true (1), enable circuit authentication in hello pkts. L1 uses area password, L2
uses domain password.
-area_authentication_ Specifies the area authentication mode. Choices are null and text.
mode
-area_password The password used in simple text authentication mode. This is used by L1 rout-
ing.
-domain_authentication_ Specifies the domain authentication mode. Choices are null and text.
mode
-domain_password The password used in simple text authentication mode. This is used by L2 rout-
ing.
-te_router_id The ID of the TE router, usually the lowest IP address on the router.
-te_metric The traffic engineering metric, used for both L1 and L2 routes.
-max_packet_size The maximum IS-IS packet size that will be transmitted. Hello packets are also
padded to the size. Valid range is 576-32832.
-vlan_id If VLAN is enabled on the Ixia interface, this option will configure the VLAN
number.
(DEFAULT = 100)
-vlan_id_mode If the user configures more than one interface on the Ixia with VLAN, he can
choose to automatically increment the VLAN tag (increment)or leave it idle for
each interface (fixed).
(DEFAULT = increment)
-vlan_id_step If the -vlan_id_mode is increment, this will be the step value by which the VLAN
tags are incremented.
(DEFAULT = 1)
(DEFAULT = 0)
(DEFAULT = 1)
(DEFAULT = 10)
-vpi_step The step value used for incrementing the -vpi option.
(DEFAULT = 1)
-vci_step The step value used for incrementing the -vci option.
(DEFAULT = 1)
(DEFAULT = 0.0.0.0)
(DEFAULT = 0.0.1.0)
-intf_type Indicates the type of network attached to the interface: broadcast or ptop.
-mac_address_init This option defines the MAC address that will be configured on the Ixia inter-
face. If is -count > 1, this MAC address will increment by default by step of 1.
(DEFAULT = 0000.0000.0001)
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-reset If this option is selected, this will clear any OSPF router on the targeted interface.
(DEFAULT = 1)
(DEFAULT = 0)
-router_id
-multi_topology
-csnp_interval
-psnp_interval
-holding_time
-router_id_step
RETURN VALUES
Key Value
SAMPLE INPUT
NOTES This function does not support the following return values:
neighbor.<neighbor_handle>
. area_id
. system_id
. pseudonode_num
. intf_ip_addr
. intf_ipv6_addr
link_local_ipv6_addr
link_local_ipv6_prefix_length
pseudonode_num
The following fields are used in creating a protocol interface. They are applica-
ble only when mode = create.
ip_version
intf_ip_addr
intf_ip_prefix_length
intf_ip_addr_step
intf_ipv6_addr
intf_ipv6_prefix_length
intf_ipv6_addr_step
vlan
vlan_id
vlan_id_mode
vlan_idstep
vlan_user_priority
vpi
vci
vpi_step
vci_step
gateway_ip_addr IP
gateway_ip_addr_step IP
mac_address_init
SEE ALSO
NAME — ::ixia::emulation_isis_topology_route_config
SYNOPSIS ::ixia::emulation_isis_topology_route_config
-mode CHOICES create modify delete
-handle
[-elem_handle]
[-type CHOICES router grid stub
external]
[-ip_version CHOICES 4 6 4_6]
[-router_system_id]
[-router_id IP]
[-router_area_id]
[-router_te CHOICES 0 1]
[-router_connect]
[-link_narrow_metric RANGE 0-63]
[-link_wide_metric RANGE 0-16777215]
[-link_ip_addr IP]
[-link_ip_prefix_length RANGE 1-32]
[-link_ipv6_addr IP]
[-link_ipv6_prefix_length RANGE 1-128]
[-link_multi_topology CHOICES 1]
[-link_enable CHOICES 0 1]
[-link_te CHOICES 0 1]
[-link_te_max_bw NUMERIC]
[-link_te_max_resv_bw NUMERIC]
[-link_te_unresv_bw_priority0 NUMERIC]
[-link_te_unresv_bw_priority1 NUMERIC]
[-link_te_unresv_bw_priority2 NUMERIC]
[-link_te_unresv_bw_priority3 NUMERIC]
[-link_te_unresv_bw_priority4 NUMERIC]
[-link_te_unresv_bw_priority5 NUMERIC]
[-link_te_unresv_bw_priority6 NUMERIC]
[-link_te_unresv_bw_priority7 NUMERIC]
[-link_te_admin_group RANGE 1-2147483647]
[-grid_row NUMERIC]
[-grid_col NUMERIC]
[-grid_stub_per_router NUMERIC]
[-grid_router_id IP]
[-grid_router_id_step IP]
[-grid_link_type CHOICES broadcast ptop]
[-grid_ip_start IP]
[-grid_ip_pfx_len RANGE 1-32]
[-grid_ip_step IP]
[-grid_ipv6_start IP]
[-grid_ipv6_pfx_len RANGE 1-128]
[-grid_ipv6_step IP]
[-grid_start_te_ip IP]
[-grid_start_system_id REGEXP ^[0-9,a-f,A-F]+$]
[-grid_connect]
[-grid_te CHOICES 0 1]
[-stub_ip_start IP]
[-stub_ip_pfx_len RANGE 1-32]
[-stub_ipv6_start IP]
[-stub_ipv6_pfx_len RANGE 1-128]
[-stub_count NUMERIC]
[-stub_metric NUMERIC]
[-stub_up_down_bit CHOICES 0 1]
[-external_ip_start IP]
[-external_ip_pfx_len RANGE 1-32]
[-external_ip_step IP]
[-external_ipv6_start IP]
[-external_ipv6_pfx_len RANGE 1-128]
[-external_ipv6_step IP]
[-external_count NUMERIC]
[-external_metric NUMERIC]
[-external_up_down_bit CHOICES 0 1]
[-external_connect]
[-router_link_type CHOICES broadcast ptop]
[-grid_router_metric NUMERIC]
[-grid_router_ip_pfx_len RANGE 1-128]
[-grid_router_up_down_bit CHOICES 0 1]
[-grid_router_origin CHOICES stub external]
[-grid_te_metric NUMERIC]
[-grid_te_admin RANGE 1-2147483647]
[-grid_te_max_bw NUMERIC]
[-grid_te_unresv_bw_priority2 NUMERIC]
[-grid_te_unresv_bw_priority3 NUMERIC]
[-grid_te_unresv_bw_priority4 NUMERIC]
[-grid_te_unresv_bw_priority5 NUMERIC]
[-grid_te_unresv_bw_priority6 NUMERIC]
[-grid_te_unresv_bw_priority7 NUMERIC]
[-grid_system_id_step REGEXP ^[0-9,a-f,A-F]+$]
[-grid_interface_metric NUMERIC]
[-grid_te_ip_step IP]
[-link_te_metric RANGE 0-16777215]
[-no_write FLAG]
[-router_host_name]
[-router_pseudonode_num]
[-router_routing_level]
[-router_overload_bit]
[-router_attached_bit]
[-router_disconnect]
[-link_external]
[-link_up_down_bit]
[-link_te_remote_ip_addr]
[-link_te_remote_ipv6_addr]
[-grid_connect_session]
[-grid_disconnect]
[-stub_ip_step]
[-stub_ipv6_step]
[-stub_connect]
[-external_metric_type]
-mode Mode of the procedure call. Valid choices are: create modify delete.
-handle This option represents the handle the user *must* pass to the "emulation_isis_
topology_route_config" procedure. This option specifies on which ISIS router to
configure the ISIS topology. The ISIS router handle(s) are returned by the proce-
dure "emulation_isis_config" when configuring ISIS routers on the Ixia inter-
face.
-elem_handle This option specifies on which topology element to configure the route options.
The user must pass in this option if the -mode is modify or delete.
Value Usage
-ip_version The IP version fo the topology element. Valid choices are 4, 6, and 4_6. Note
that the IP version of topology element cannot be changed after it is created.
(DEFAULT 4_6)
-router_area_id The list of area addresses to use. An address is a hex string of up to 4 bytes. This
option cannot be modified with modify mode.
-link_narrow_metric This value is used for link metric if the wide metric is set to false in the router.
-link_wide_metric This value is used for link metric if the wide metric is set to true in the router.
-link_ip_addr IP address of the link between the session router and the topology router (router
behind the session router).
-link_ip_prefix_length IP prefix length of the link between the session router and the topology router
(router behind the session router).
-link_ipv6_addr IPV6 address of the link between the session router and the topology router
(router behind the session router).
-link_ipv6_prefix_length IPV6 prefix length of the link between the session router and the topology router
(router behind the session router).
-link_te_max_bw Maximum bandwidth that can be used on this link expressed as octets per second.
-link_te_max_resv_bw Maximum bandwidth that may be reserved on this link. This may be greater than
the actual max to allow a link to be oversubscribed. It is expressed as octets per
second.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority0 second, not yet reserved at the 0 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 0. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority1 second, not yet reserved at the 1 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 1. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority2 second, not yet reserved at the 2 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 2. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority3 second, not yet reserved at the 3 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 3. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority4 second, not yet reserved at the 4 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 4. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority5 second, not yet reserved at the 5 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 5. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority6 second, not yet reserved at the 6 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 6. The value must be less
than the linke_te_max_resv_bw option.
-link_te_unresv_bw_ If "-line_te" is 1, then this value indicates the amount of bandwidth, in bytes per
priority7 second, not yet reserved at the 7 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 7. The value must be less
than the linke_te_max_resv_bw option.
-link_te_admin_group The administrative group associated with the link, expressed as the decimal
equivalent of 32-bit number. in 4-byte hex format.
-grid_link_type Type of links connecting routers in a grid. Choices are: broadcast ptop.
-grid_ip_pfx_len The number of bits in the network mask of IP address used in a grid.
-grid_ipv6_pfx_len The number of bits in the network mask of IPV6 address used in a grid.
-grid_start_te_ip If grid_te is true, then this is the TE router ID of the first router in the grid (at
row=0, column=0), in IPv4 format. Routers are assigned individual TE router
IDs by adding the value of the grid_te_ip_step value to each element in the grid,
in a row first manner.
-grid_start_system_id This is the router ID of the first router in the grid (at row = 0, column = 0). It is
specified as a string of 12 hex characters. Range: 000000000000-
FFFFFFFFFFF. Routers are assigned individual router IDs by adding the value
of the grid_system_id_step each element in the grid, in a row first manner.
-grid_connect The session router is connected to a router in the grid at a particular row column
location. This option specifies the row column location.
-stub_ipv6_start The IPV6 address of the first stub network route to be advertised.
-stub_ipv6_pfx_len The number of bits in the prefixes to be advertised in a IPV6 stub network.
-stub_metric The cost metric associated with the stub network route.
-stub_up_down_bit If 1, the route will be distributed down. If 0, the route will be distributed up.
-external_ipv6_start The IPV6 address of the first external network route to be advertised.
-external_ipv6_pfx_len The number of bits in the prefixes to be advertised in a IPV6 external network.
-external_metric The cost metric associated with the external network route.
-external_up_down_bit If 1, the route will be distributed down. If 0, the route will be distributed up.
-router_link_type The type of link between the simulated router and the entry point node and
between all nodes in the grid. Choices are: broadcast and ptop.
-grid_router_metric The cost metric associated with the route advertised by the grid nodes.
-grid_router_ip_pfx_len The number of bits in the prefixes to be advertised by the grid nodes.
-grid_router_up_down_bit This is the up down bit associated with the routes advertised by the grid nodes.
If 1, the route will be distributed down. If 0, the route will be redistributed up.
-grid_router_origin The origin of the routes advertised by the grid nodes. Choices are stub and exter-
nal.
-grid_te_metric The metric associated with the interface that the TE data is advertised on.
-grid_te_admin The administrative group associated with the node in a grid, expressed as the dec-
imal equivalent of 32-bit number.
-grid_te_max_bw The maximum bandwidth to be advertised for all nodes in an ISIS grid.
-grid_te_max_resv_bw The maximum reservable bandwidth to be advertised for all nodes in an ISIS
grid.
-grid_te_unresv_bw_ The unreserved bandwidth for priority0 to be advertised for nodes in a ISIS grid.
priority0
-grid_te_unresv_bw_ The unreserved bandwidth for priority1 to be advertised for nodes in a ISIS grid.
priority1
-grid_te_unresv_bw_ The unreserved bandwidth for priority2 to be advertised for nodes in a ISIS grid.
priority2
-grid_te_unresv_bw_ The unreserved bandwidth for priority3 to be advertised for nodes in a ISIS grid.
priority3
-grid_te_unresv_bw_ The unreserved bandwidth for priority4 to be advertised for nodes in a ISIS grid.
priority4
-grid_te_unresv_bw_ The unreserved bandwidth for priority5 to be advertised for nodes in a ISIS grid.
priority5
-grid_te_unresv_bw_ The unreserved bandwidth for priority6 to be advertised for nodes in a ISIS grid.
priority6
-grid_te_unresv_bw_ The unreserved bandwidth for priority7 to be advertised for nodes in a ISIS grid.
priority7
-grid_te_ip_step The value used to increment teRouterId by as each router is assigned a unique TE
router ID.
-link_te_metric The metric associated with the interface that the TE data is advertised on.
-router_host_name
-router_pseudonode_num
-router_routing_level
-router_overload_bit
-router_attached_bit
-router_disconnect
-link_external
-link_up_down_bit
-link_te_remote_ip_addr
-link_te_remote_ipv6_addr
-grid_connect_session
-grid_disconnect
-stub_ip_step
-stub_ipv6_step
-stub_connect
-external_metric_type
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
1) The stub and external networks cannot be defined inside a grid. They can
added behind a session router.
2) In modfiy mode, if IP address related options are modified, such as, stub_ip_
start, stub_ip_pfx_len, stub_ip_step, then all the related options need to be speci-
fied; otherwise the default settings will be applied.
key:router.connected_handles <connected_elem_handles>
key:router.$row.$col <router_handle>
SEE ALSO
NAME — ::ixia::emulation_isis_control
SYNOPSIS ::ixia::emulation_isis_control
-mode CHOICES stop start restart
[-handle]
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-advertise]
[-withdraw]
[-flap_routes]
[-flap_count]
[-flap_interval_time]
[-flap_down_time]
ARGUMENTS
Value Usage
-handle ISIS session handle where the ISIS control action is applied.
-advertise
-withdraw
-flap_routes
-flap_count
-flap_interval_time
-flap_down_time
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::l2tp_config
DESCRIPTION Configures L2TPoE and L2TPoA sessions and tunnels for the specified test port.
Each port can have upto 32000 sessions and 32000 tunnels.
SYNOPSIS ::ixia::l2tp_config
-port_handle interface
-mode CHOICES lac lns
-l2_encap CHOICES atm_snap atm_vc_mux
atm_snap_ethernet_iiatm_vc_mux_ethernet_ii
ethernet_ii ethernet_ii_vlan
-num_tunnels RANGE 1-32000
-l2tp_src_addr IP
-l2tp_dst_addr IP
[-sessions_per_tunnel RANGE 1-32000]
[-l2tp_src_count RANGE 1-112]
[-l2tp_src_step IP]
[-l2tp_dst_step IP]
[-udp_src_port RANGE 1-65535]
[-udp_dst_port RANGE 1-65535]
[-bearer_capability CHOICES digital analog both]
[-bearer_type CHOICES digital analog]
[-proxy CHOICES 0 1 DEFAULT 1]
[-framing_capability CHOICES sync async both]
[-avp_rx_connect_speed NUMERIC]
[-tunnel_id_start RANGE 1-65535]
[-session_id_start RANGE 1-65535]
[-ppp_client_ip IP]
[-ppp_client_step IP]
[-ppp_server_ip IP]
[-ppp_server_step IPV6 DEFAULT 0::1]
[-vlan_id RANGE 1-4094]
[-vlan_count RANGE 1-4094]
[-vlan_id_step RANGE 1-4094]
[-vlan_user_priority RANGE 0-7]
[-vlan_user_priority_count RANGE 1-8]
[-vlan_user_priority_step RANGE 1-7]
[-vpi]
[-vpi_count RANGE 1-256]
[-vpi_step RANGE 1-256]
[-vci RANGE 32-65535]
[-vci_count RANGE 1-256]
[-vci_step RANGE 1-256]
[-pvc_incr_mode CHOICES vpi vci both]
[-sess_distribution CHOICES next fill]
[-tun_distribution CHOICES next_tunnelfill_
tunnel domain_group]
[-domain_group_map]
[-auth_mode CHOICES none pap chap
pap_or_chap]
[-username]
[-username_wc FLAG]
[-password]
[-password_wc FLAG]
[-wildcard_pound_start RANGE 0-65535]
[-wildcard_pound_end RANGE 0-65535]
-port_handle The port on which the L2TP sessions and tunnels are to be created.
-l2_encap Encapsulation type for the ATM and ethernet. Valid choices are:
Value Usage
atm_snap N/A
atm_vc_mux N/A
atm_snap_ethernet_ii N/A
atm_vc_mux_ethernet_ii N/A
ethernet_ii N/A
ethernet_ii_vlan N/A
-l2tp_src_addr Base IP address to be used for the local IP interface on the port.
-l2tp_src_step The modifier for the increment -l2tp_src_addr which requires that only one field
contain a non-zero value.
-l2tp_dst_step The modifier for the l2tp destination address for multiple destination address.
Only one field contain a non-zero value.
-bearer_capability Indicates to the DUT the bearer device types for which HLT can accept incoming
calls. One of:
both: Either analog or digital (the two enums are or’d together).
-bearer_type The device type requested by HLT for outgoing calls. One of:
-proxy If true, enables processing of the PROXY related AVPs for LNS operating mode.
One of:
0: false
1: true
DEFAULT 1
-framing_capability Indicates to the DUT the framing types for which HLT can accept incoming
calls. One of:
sync: Synchronous.
async: Asynchronous.
both: Either synchronous or asynchronous (the two enums are or’d together).
DEFAULT sync
-avp_rx_connect_speed The Rx Connect Speed AVP values sent in the ICCN message. Any integer value
may be used.
-ppp_client_ip Base IP address of the client IP pool allocated by the LNS. Only valid if the mode
option is set lns.
-ppp_client_step Step size to use for allocating client IP addresses. Only valid if the mode option is
set lns.
-ppp_server_ip Local IP address of the PPP server. Only valid if the mode is lns.
-ppp_server_step The value by which ppp_server_ip is incremented for each session. Only valid if
the mode option is set lns and when -ip_cp is ipv6.
-vlan_id Starting VLAN ID, applies to L2TPoE only and if VLAN set to 1.
-vlan_count Number of VLAN IDs, applies to L2TPoE only and if VLAN set to 1.
-vlan_id_step Step value applied to VLAN ID, applies to L2TPoE only and if VLAN = 1.
Value Usage
-sess_distribution Sessions are distributed by first filling one tunnel with sessions per tunnel (or one
session per tunnel), then with a round robin between the tunnels. Valid choices
are:
Value Usage
-tun_distribution Tunnel allocation algorithm. Tunnels can be allocated using two mechanisms at
this time (this may be extended in the future by adding new options, or vendors
can have their own allocation algorithms). Valid choices are:
Value Usage
-domain_group_map List of domain group to LNS IP mapping. Each domain group can have thou-
sands of domains. With the help of domain group it is very easy to map thou-
sands of domains to one or more LNS IP addresses. Each domain group is
defined as: { { domain_name } {lnsIP1 lnsIP2} }.
- wc_start <0-65535> : starting value for wildcard symbol for the name (%) sub-
stitution
- wc_end <0-65535> : ending value for wildcard symbol for the name (%) substi-
tution
e.g. Say you want to setup 20 domains. Out of which cisco1.com to cisco10.com
going to 192.1.1.1 & 192.1.1.2 and cisco11.com to cisco20.com going to
192.1.2.1. Also assume number of sessions per tunnel is 5. Your domain group
list will look like:
Value Usage
none N/A
pap N/A
chap N/A
pap_or_chap Accept both pap and chap offered by DUT.
-wildcard_pound_start Starting value for wildcard symbol 1 (\#) substitution. It is also valid to use # as
the substitution symbol.
-wildcard_pound_end Ending value for wildcard symbol 1 (\#) substitution. It is also valid to use # as
the substitution symbol.
-secret Secret to be used during the tunnel setup. Note that a range of secret can be setup
using the autoincrement feature. See option -secret_wc.
-attempt_rate Specifies the rate in attempts/second at which attempts are made to bring up ses-
sions.
-max_outstanding Specifies the maximum number of sessions in progress, which includes the ses-
sions in the process of either coming up or disconnecting, at one time.
-max_auth_req Specifies the maximum number of Authentication requests that can be sent with-
out getting an authentication response from the DUT.
-max_ipcp_req Specifies the maximum number of IPCP configure requests that can be sent with-
out getting an ack from the DUT.
-ipcp_req_timeout Specifies the timeout value in seconds for acknowledgement of an IPCP config-
ure request.
-max_terminate_req Specifies the maximum number of Terminate Requests that can be sent without
acknowledgement.
-echo_req When set to 1, enables Echo Requests, when set to 0, disables Echo Requests.
-echo_req_interval Specifies the time interval in seconds for sending LCP echo requests. Valid only
if -echo_req is set to 1.
-echo_rsp When set to 0, disabled sending of the echo Responses, when set to 1, enables
Echo Replies. Default enabled. This can be used to do some negative testing.
-length_bit Enable sedning of the length field in the L2TP data messages.
-offset_bit Enable sending of the offset field in the L2TP data messages.
-offset_len If the -offset_bit is set to 1, this option controls number of bytes (specified by the
-offset_byte option) to be inserted in after the L2TP data message header.
-offset_byte This is the value inserted in the offset field, if enabled by -offset_bit and -offset_
len option.
-ctrl_chksum Enable sending the valid UDP checksum in the L2TP control messages.
-data_chksum Enable sending the valid UDP checksum in the L2TP data messages.
-hello_interval Time interval between sending of the hello request. Only applicable if the -hello_
req is set to 1.
-redial Enable redialling of the session if the session drops after establishment due to
any reason other than operator initiated teardown.
-no_call_timeout Number of seconds to wait before tearing down the tunnels when the last sesision
on the tunnel goes down.
(DEFAULT = ::)
-ipv6_pool_prefix_len The IPv6 pool prefix length. Subtracting this from the address prefix length pro-
vides the size of the PPP IP pool.
(DEFAULT = 48)
(DEFAULT = 10)
-is_last_subport When being used it will add a subport to the configuration. The routine needs to
know when this is the last subport being done in the configuration, which will
cause the configurations to be written to hardware. This can only occur once
within IxAccess. The choice are 0 and 1 with 1 being the default.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::l2tp_control
SYNOPSIS ::ixia::l2tp_control
-handle interface
-action CHOICES connect disconnect reset clear pause
resume retry
ARGUMENTS
Value Usage
connect Brings up configured sessions.
disconnect Tears down established sessions.
reset Aborts all L2TPoX sessions and resets the
L2TP emulation engine on the specified
device. A session is not notified of termina-
tion, and a Terminate Request packet is not
sent to the peers.
clear Clears the status and statistics.
pause Pauses all the sessions.
resume Resumes all the sessions.
retry Attempts to connect sessions that have previ-
ously failed to establish.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::l2tp_stats
SYNOPSIS ::ixia::l2tp_stats
-handle interface
-mode CHOICES aggregate session tunnel
[-csv_filename
ARGUMENTS
-handle The port for which the L2TPoX sessions statistics needs to be retrieved.
-mode Specifies statistics retrieval mode as either aggregate for all configured sessions
or on a per session basis. Valid choices are:
Value Usage
-csv_filename The .csv filename that can be created under HLT library install folder and where
per session stats can be found.
RETURN VALUES
Key Value
Key Value
aggregate.lcp_cfg_rej_rx
aggregate.lcp_cfg_rej_tx
aggregate.lcp_cfg_ack_rx
aggregate.lcp_cfg_ack_tx
aggregate.lcp_cfg_nak_rx
aggregate.lcp_cfg_nak_tx
aggregate.term_req_rx
aggregate.term_req_tx
aggregate.term_ack_rx
aggregate.term_ack_tx
aggregate.echo_req_rx
aggregate.echo_rsp_tx
aggregate.zlb_tx
aggregate.sccrp_tx
aggregate.scccn_tx
aggregate.sccrp_tx
aggregate.stopccn_tx
aggregate.hello_tx
aggregate.icrq_tx
aggregate.icrp_tx
aggregate.iccn_tx
aggregate.cdn_tx
aggregate.wen_tx WAN-Error-Notify
aggregate.sli_tx Set-Link-Info
aggregate.zlb_rx
aggregate.sccrp_rx
aggregate.scccn_rx
aggregate.sccrp_rx
aggregate.stopccn_rx
aggregate.hello_rx
aggregate.icrq_rx
aggregate.icrp_rx
aggregate.iccn_rx
aggregate.cdn_rx
aggregate.wen_rx WAN-Error-Notify
aggregate.sli_rx Set-Link-Info
aggregate.out_of_order_rx Number of packet rx out of sequence
aggregate.out_of_win_rx Number of packets rx outside window
aggregate.duplicate_rx Number of duplicate packet received
aggregate.in_order_rx Number of in order packet received
aggregate.retransmits Number of retransmitted messages
aggregate.tx_pkt_acked Number of tx packets acked by peer
session.<session ID>.icrq_tx
Key Value
session.<session ID>.icrp_tx
session.<session ID>.iccn_rx
session.<session ID>.cdn_tx
session.<session ID>.icrq_rx
session.<session ID>.icrp_rx
session.<session ID>.iccn_tx
session.<session ID>.cdn_rx
session.<session ID>.tx_pkt_acked Num of tx packet ack by peer
session.<session ID>.lcp_cfg_req_rx
session.<session ID>.lcp_cfg_req_tx
session.<session ID>.lcp_cfg_rej_rx
session.<session ID>.lcp_cfg_rej_tx
session.<session ID>.lcp_cfg_ack_rx
session.<session ID>.lcp_cfg_ack_tx
session.<session ID>.lcp_cfg_nak_rx
session.<session ID>.lcp_cfg_nak_tx
session.<session ID>.pap_auth_req_tx
session.<session ID>.pap_auth_ack_rx
session.<session ID>.pap_auth_nak_rx
session.<session ID>.chap_auth_chal_
rx
session.<session ID>.chap_auth_rsp_
tx
session.<session ID>.chap_auth_
succ_rx
session.<session ID>.chap_auth_fail_
rx
session.<session ID>.ipcp_cfg_req_rx
session.<session ID>.ipcp_cfg_req_tx
session.<session ID>.ipcp_cfg_ack_rx
session.<session ID>.ipcp_cfg_ack_tx
session.<session ID>.ipcp_cfg_nak_rx
session.<session ID>.ipcp_cfg_nak_tx
session.<session ID>.ipcp_cfg_rej_rx
session.<session ID>.ipcp_cfg_rej_tx
session.<session ID>.term_req_rx
session.<session ID>.term_req_tx
session.<session ID>.term_ack_rx
session.<session ID>.term_ack_tx
session.<session ID>.echo_req_rx
session.<session ID>.echo_rsp_tx
tunnel.<tunnel ID>.zlb_tx
tunnel.<tunnel ID>.sccrp_tx
tunnel.<tunnel ID>.scccn_tx
Key Value
tunnel.<tunnel ID>.sccrp_tx
tunnel.<tunnel ID>.stopccn_tx
tunnel.<tunnel ID>.hello_tx
tunnel.<tunnel ID>.icrq_tx
tunnel.<tunnel ID>.icrp_tx
tunnel.<tunnel ID>.iccn_tx
tunnel.<tunnel ID>.cdn_tx
tunnel.<tunnel ID>.wen_tx WAN-Error-Notify
tunnel.<tunnel ID>.sli_tx Set-Link-Info
tunnel.<tunnel ID>.zlb_rx
tunnel.<tunnel ID>.sccrp_rx
tunnel.<tunnel ID>.scccn_rx
tunnel.<tunnel ID>.sccrp_rx
tunnel.<tunnel ID>.stopccn_rx
tunnel.<tunnel ID>.hello_rx
tunnel.<tunnel ID>.icrq_rx
tunnel.<tunnel ID>.icrp_rx
tunnel.<tunnel ID>.iccn_rx
tunnel.<tunnel ID>.cdn_rx
tunnel.<tunnel ID>.wen_rx WAN-Error-Notify
tunnel.<tunnel ID>.sli_rx Set-Link-Info
tunnel.<tunnel ID>.out_of_order_rx Number of pkt rx out of seq
tunnel.<tunnel ID>.out_of_win_rx Number of pkt rx outside window
tunnel.<tunnel ID>.duplicate_rx Number of duplicate pkt received
tunnel.<tunnel ID>.in_order_rx Number of in order pkt received
tunnel.<tunnel ID>.retransmits Number of retransmitted messages
tunnel.<tunnel ID>.tx_pkt_acked Number of tx pkt acked by peer
EXAMPLES Examples for L2TP will be coming in the the next release.
SAMPLE INPUT
SAMPLE OUTPUT
1) Session ID will be local call ID, and tunnel ID will be the local tunnel ID.
2) Per session and per tunnel stats retrieval can take long time.
aggregate.disconnecting
aggregate.connect_attempts
aggregate.disconnect_success
aggregate.disconnect_failed
SEE ALSO
NAME — ::ixia::l2tpv3_dynamic_cc_config
DESCRIPTION Creates a control connection group. A control connection group has one or more
control connections and there can be one or more connection groups.
SYNOPSIS ::ixia::l2tpv3_dynamic_cc_config
-action CHOICES create delete modify
[-cc_handle]
[-port_handle ^[0-9]+/[0-9]+/[0-9]+$]
[-cc_src_ip IP]
[-cc_ip_mode CHOICES fixed increment]
[-cc_src_ip_step IP]
[-cc_ip_count NUMERIC]
[-cc_src_ip_subnet_mask IP]
[-cc_dst_ip IP]
[-cc_dst_ip_step IP]
[-gateway_ip IP]
[-gateway_ip_step IP]
[-cc_id_start NUMERIC]
[-router_identification_mode CHOICES hostname routerid
both DEFAULT routerid]
[-hostname ALPHANUM]
[-hostname_suffix_start NUMERIC DEFAULT 1]
[-router_id_min RANGE 1-0xFFFFFFFF DEFAULT 1]
[-cookie_size CHOICES 0 4 8 DEFAULT 0]
[-retransmit_retries RANGE 1-1000 DEFAULT 15]
[-retransmit_timeout_max RANGE 1-8 DEFAULT 8]
[-retransmit_timeout_min RANGE 1-8 DEFAULT 1]
[-hidden CHOICES 0 1 DEFAULT 0]
[-authentication CHOICES 0 1 DEFAULT 0]
[-password ALPHANUM DEFAULT "LAB"]
[-hello_interval RANGE 0-1000]
[-base_unconnected_ip IPDEFAULT 0.0.0.0]
[-cc_src_mac]
[-enable_l2_sublayer CHOICES 0 1 DEFAULT 0]
[-enable_unconnected_intf CHOICES 0 1 DEFAULT 0]
[-l2_specific_sublayer CHOICES no_sublayer
ietf_sublayer atm_sublayer]
[-l2tp_variant CHOICES ietf_variant
cisco_variant]
[-message_digest CHOICES no_digest md5_digest
sha1_digest]
[-no_call_timeout NUMERIC DEFAULT 5]
[-num_cell_packed_rx RANGE 1-25 DEFAULT 1]
[-num_cell_packed_tx RANGE 1-4 DEFAULT 1]
[-peer_host_name ANY DEFAULt "IxiaLNS"]
[-peer_router_id NUMERIC DEFAULT 200]
[-redial CHOICES 0 1 DEFAULT 1]
[-redial_max NUMERIC DEFAULT 20]
[-redial_timeout NUMERIC DEFAULT 10]
[-rws RANGE 1-2048 DEFAULT 10]
[-secret_increment_mode CHOICES local_incr
peer_incr]
[-tunnel_setup_role CHOICES active_role
passive_role DEFAULT active_role]
[-tunnel_id_start RANGE 1-65535 DEFAULT 1]
[-cc_src_ip_skip_broadcast CHOICES 0 1]
[-cc_dst_ip_skip_broadcast CHOICES 0 1]
[-cc_dst_ip_subnet_mask IP]
[-cookie NUMERIC]
[-gateway_ip_skip_broadcast CHOICES 0 1]
[-gateway_ip_subnet_mask IP]
[-retransmit_initial_retries RANGE 1-1000]
ARGUMENTS
-action This option defines the action to be taken. Valid choices are:
Value Usage
-cc_handle If -action is delete or modify this option is required to specify the existing control
group. Ignored for other values of -action.
-port_handle If -action is create this option is required to specify the port handle on which the
CC group is configured. Ignored for other values of -action.
-cc_ip_mode Configure the source IP address to be fixed or increment through a range of val-
ues.
(DEFAULT = fixed)
-cc_src_ip_step This is the value by which src_ip address will be incremented. This is used only
when cc_src_ip_mode is set to "increment".
(DEFAULT = 0.0.0.1)
-cc_ip_count If -cc_ip_mode is set to increment, this option is required to specify the number
of values in IP address range. The option is ignored if -cc_src_ip is set to fixed.
Src/Dst and Gateway IP addresses will have the same number of addresses in the
range.
-cc_src_ip_subnet_mask This option specifies the subnet mask for the source address of the emulated PE
router.
(DEFAULT = 255.255.255.0)
-cc_dst_ip Destination IP address for the for the CC. If a range is specified, the range must
have the same number of IP addresses as the src_ip range.
-cc_dst_ip_step This is the value by which dst_ip address would be incremented. This is used
only when cc_dst_ip_mode is set to "increment".
(DEFAULT = 0.0.0.1)
-gateway_ip_step This is the value by which gateway_ip address will be incremented. This is used
only when -gateway_ip_mode is set to "increment".
(DEFAULT = 0.0.0.1)
-cc_id_start This is the control connection ID assigned to the connection. If the user doesn't
specify the cc ID to use, a randomly generated number will be used. Specifying
the cc_id_start will allow the user to close a specific control connection at any
time.
-router_identification_ Specifies the method used to identify the LCEE (emulated router) during the con-
mode trol connection. This determines if the "Hostname AVP" or "Router-ID AVP" or
both AVPs are used during control connection establishment.
(DEFAULT = routerid)
-hostname Hostname of the emulated PE. This is used in "Hostname AVP" during the con-
trol connection establishment. The actual hostname for the emulated PE would
be hostname followed by the hostname_suffix_start. The suffix is incremented
by one for each emulated router in case of multiple emulated PEs.
-hostname_suffix_start The actual hostname for the emulated PE would be hostname followed by the
hostname_suffix_start. The suffix is incremented by one for each emulated router
in case of multiple emulated PEs.
(DEFAULT = 1)
(DEFAULT = 1)
-cookie_size Configures the size of the cookie to be used in the L2TP headers.
(DEFAULT = 0)
-retransmit_retries Specifies how many retransmission cycles occur before determining that the peer
provider edge (PE) router does not respond.
(DEFAULT = 15)
-retransmit_timeout_max Specifies the maximum retransmission interval (in seconds) for resending control
packets.
(DEFAULT = 8)
-retransmit_timeout_min Specifies the minimum retransmission interval (in seconds) for resending control
packets.
(DEFAULT = 1)
(DEFAULT = LAB)
-hello_interval Number of seconds a PE router at one end of an L2TPv3 control channel waits
before sending a hello keepalive packet to its peer PE router.
(DEFAULT = 60)
-base_unconnected_ip This option specifies the ip address of the emulated CE behind the PE specified
by the -cc_src_ip option.
(DEFAULT 0.0.0.0)
(DEFAULT = 0)
-enable_unconnected_intf This option is used to enable the emulation of a CE router behind the PE router
specified by the -cc_src_ip option.
(DEFAULT = 0)
(DEFAULT = ietf_variant)
(DEFAULT = no_digest)
-no_call_timeout The amount of time, in seconds, that IxAccess waits to receive a L2TP request
for connection. If it does not receive a call within this time, IxAccess ends the
test. An integer value may be used.
(DEFAULT = 5)
-num_cell_packed_rx The maximum number of ATM cells that can be packed in one receive data
packet. Valid values are from 1 to 25. Note that if the value is set to one, there is
no need to send the AVP and it will not be sent in the ICRQ and ICRP messages.
(DEFAULT = 1)
-num_cell_packed_tx The maximum number of ATM cells that can be packed in one transmit data
packet. Valid values are from 1 to 4. The size of a transmitted packet is calcu-
lated as: 32 + 48 * (number of cells packed ñ 1).
(DEFAULT = 1)
(DEFAULT = IxiaLNS)
(DEFAULT = 200)
(DEFAULT = 1)
-redial_max The maximum number of attempts IxAccess will make to redial the DUT to rees-
tablish a downed L2TP link. Any integer value is valid.
(DEFAULT = 20)
-redial_timeout The number of seconds that can elapse between attempts to redial the DUT to
reestablish a downed L2TP link. Any integer value is valid.
(DEFAULT = 10)
-rws The size of the sliding window used for managing control message transmission.
The values for this parameter are expressed in units of unacknowledged control
messages. For example, if you set this parameter to 4, the DUT can send control
messages until it has four messages that it is waiting for acknowledgements for;
at that point, it must wait for one or more of the messages to be acknowledged
before it can send any new control messages. Valid values are from 1 to 2048.
(DEFAULT = 10)
(DEFAULT = local_incr)
(DEFAULT = active_role)
-tunnel_id_start The first tunnel ID used. Any ID in the range from 1 to 65535 may be used.
(DEFAULT = 1)
-cc_src_ip_skip_broadcast This flag is applicable only when -cc_src_ip_mode is set to "increment". If this
flag is set, src_ip will skip the network or subnet broadcast address in the speci-
fied address range.
-cc_dst_ip_skip_broadcast This flag is applicable only when -cc_dst_ip_mode is set to "increment". If this
flag is set, dst_ip will skip the network or subnet broadcast address in the speci-
fied address range.
-gateway_ip_skip_ This flag is applicable only when -gateway_ip_mode is set to "increment". If this
broadcast flag is set, gateway_ip will skip the network or subnet broadcast address in the
specified address range.
-cookie If -cookie_size is non-zero this option is required to specify the value of the
cookie. The size of the cookie is determined by -cookie_size. If the specified
value is greater than the size of the cookie, an error is returned.
-retransmit_initial_retries Specifies how many SCCRQs are re-sent before giving up on the session.
(DEFAULT = 2)
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
NOTES 1. Due to IxAccess limitations, only one control connection group per port can be
created.
2. Current parser does not support hex. The following options have RANGE 0-
0xFFFFFFFF. It is changed to NUMERIC.
-router_id_min
SEE ALSO
NAME — ::ixia::l2tpv3_session_config
DESCRIPTION Creates a session group, or group of sessions, over the given control connection
group. Each session group represents one or more sessions. These sessions are
created over each control connection.
SYNOPSIS ::ixia::l2tpv3_session_config
-action CHOICES create delete modify
[-session_handle]
[-cc_handle]
[-vcid_start NUMERIC]
[-vcid_mode CHOICES fixed increment
DEFAULT increment]
[-vcid_step NUMERIC DEFAULT 1]
[-num_sessions NUMERIC]
[-session_id_start RANGE 1-65535 DEFAULT 10000]
[-ip_tos CHOICES reflect fixed
DEFAULT reflect]
[-ip_tos_value RANGE 0-255 DEFAULT 0]
[-sequencing_transmit CHOICES 0 1 DEFAULT 0]
[-pw_type CHOICES ethernet dot1q_ethernet
frame_relay atm]
[-mac_src MAC]
[-mac_src_step MAC]
[-mac_dst MAC]
[-mac_dst_step MAC]
[-vlan_id RANGE 1-4094]
[-vlan_id_step RANGE 1-4094]
[-fr_dlci_value NUMERIC]
[-fr_dlci_step NUMERIC]
[-vpi RANGE 0-255]
[-vci RANGE 32-65535]
[-vpi_step NUMERIC]
[-vci_step NUMERIC]
[-pvc_incr_mode CHOICES vpi vci both]
[-qos_rate_mode CHOICES percent pps bps
DEFAULT bps]
[-qos_rate NUMERIC]
[-qos_atm_clp CHOICES 0 1 DEFAULT 0]
[-qos_atm_efci CHOICES 0 1 DEFAULT 0]
[-qos_atm_cr CHOICES 0 1 DEFAULT 0]
[-qos_fr_cr CHOICES 0 1 DEFAULT 0]
[-qos_fr_de CHOICES 0 1 DEFAULT 0]
[-qos_fr_becn CHOICES 0 1 DEFAULT 0]
[-qos_fr_fecn CHOICES 0 1 DEFAULT 0]
[-qos_ipv6_flow_label RANGE 0-1048575 DEFAULT 0]
[-qos_ipv6_traffic_class RANGE 0-255 DEFAULT 0]
[-ip_dfbit CHOICES 0 1]
[-ip_ttl RANGE 0-255]
[-sequencing_receive CHOICES 0 1]
[-vlan_priority RANGE 0-7]
[-fr_address_size CHOICES 2 3 4]
ARGUMENTS
-action This option defines the action to be taken. Valid choices are:
Value Usage
-session_handle If -action is delete or modify this option is required to specify the existing session
group. Ignored for other values of -action.
-cc_handle If -action is create this option is required to specify the control group over which
to create the sessions. Ignored for other values of -action.
-vcid_step Specify the value by which vcid increments when -vcid_mode is set to incre-
ment.
(DEFAULT = 1)
-num_sessions Number of sessions to be created on the control connection in this session group.
-session_id_start Specify the starting value of session-id to be used for the sessions.
(DEFAULT = 10000)
-ip_tos If this option is set to reflect, the TOS field in CC IP header will reflect the ip-tos
value of the payload IP header. If it is set to fixed, the TOS field in CC IP header
will have the value specified by -ip_tos_value option.
(DEFAULT = reflect)
-ip_tos_value This option is required if -ip_tos is set to fixed. Specifies the value to be used for
IP TOS bits in CC IP header. The option is ignored if -ip_tos is set to reflect.
(DEFAULT = 0)
-mac_src Specifies the source mac address used by the attachement circuit. The
num_sessions and cc_ip_count (from CC group) parameters decide the number
of source mac addresses. Number of source_mac addresses is (cc_ip_count *
num_sessions).
(DEFAULT = 0000.0000.0001)
-mac_dst Specifies the destination mac address used by the attachement circuit. The
num_sessions and cc_ip_count (from CC group) parameters decide the number
of dst mac addresses. Number of dst mac addresses in the range is (cc_ip_count *
num_sessions).
-mac_dst_step Specifies the step value for destination mac address. This parameter is used only
when (num_sessions * cc_ip_count) > 1. It is ignored otherwise.
(DEFAULT = 0000.0000.0001)
-vlan_id Specifies the VLAN ID of the attached circuit. The num_sessions and
cc_ip_count (from CC group) parameters decide the number of VLAN IDs to be
used. Number of VLAN IDs is (cc_ip_count * num_sessions).
-vlan_id_step This is the step value for VLAN ID. This parameter is used only when
(num_sessions * cc_ip_count) > 1. It is ignored otherwise.
(DEFAULT = 1)
-fr_dlci_value Specifies the value of DLCI to be used by the frame relay attachement circuit.
The num_sessions and cc_ip_count (from CC group) parameters decide the num-
ber of DLCIs to be used. Number of DLCIs is (cc_ip_count * num_sessions).
-fr_dlci_step Specifies the step-size for DLCI. This parameter is used only when
(num_sessions * cc_ip_count) > 1. It is ignored otherwise.
(DEFAULT = 1)
-vpi Specifies the VPI value for the ATM attachment circuit. The num_sessions and
cc_ip_count (from CC group) parameters decide the number of VPI values to be
used. Number of VPI values is (cc_ip_count * num_sessions).
-vci Specifies the VCI value for the ATM attachment circuit. The num_sessions and
cc_ip_count (from CC group) parameters decide the number of VCI values to be
used. Number of VCI values is (cc_ip_count * num_sessions).
-vpi_step Specifies the step value for VPI. This parameter is used only when
(num_sessions * cc_ip_count) > 1. It is ignored otherwise.
(DEFAULT = 1)
-vci_step Specifies the step value for VCI. This parameter is used only when
(num_sessions * cc_ip_count) > 1. It is ignored otherwise.
(DEFAULT = 1)
-pvc_incr_mode The mode by which the vci and vpi are incremented for each session.
-qos_rate_mode The means by which line rates will be specified. Valid choices are:
Value Usage
-qos_rate This is the data rate setting expressed. Default values are:
This rate represents the aggregated rate for all sessions belonging to the group.
(DEFAULT = 0)
(DEFAULT = 0)
-qos_atm_cr The setting of the command response bit. Valid only if pw_type atm.
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 0)
-qos_fr_becn The setting of the frame relay backward congestion notification bit.
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 60)
-vlan_priority Specifies the value for the priority field in the VLAN header of the attachement
circuit.
(DEFAULT = 0)
-fr_address_size Specifies the size of DLCI to be used by the frame relay attachement circuit.
(DEFAULT = 2)
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
of QoS groups is exceeded, the sessions that will be created will belong
to the first group that has the same ip_tos value. If there is no group
group.
ip_tos_value is set to 0.
SEE ALSO
NAME — ::ixia::l2tpv3_control
SYNOPSIS ::ixia::l2tpv3_control
-action CHOICES start stop retry restart
clear_stats delete_all
[-port_handle ^[0-9]+/[0-9]+/[0-9]+$]
ARGUMENTS
-action This option defines the action to be taken. Valid choices are:
Value Usage
-port_handle Port handle on which the action is to be performed. If no port handle is specified,
it performs the requested action on all the ports.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::l2tpv3_stats
SYNOPSIS ::ixia::l2tpv3_stats
-mode CHOICES aggregate control_connection
session
-cc_handle
[-cc_id NUMERIC]
[-cc_id_range_end NUMERIC]
[-vcid NUMERIC]
[-vcid_range_end NUMERIC]
[-csv_filename ]
ARGUMENTS
Value Usage
-cc_id Selects a specific range of control connections that belong to the cc group to to
return statistics for. If the option is not specified, return statistics for all the con-
trol connections in the group.
-cc_id_range_end This options is used along with -cc_id to specify the range of control connections
to be selected. This option has a default value equal with -cc_id (ie., default
range is only one cc_id).
-vcid Selects a specific range of sessions that belong to the session group to perform
the operation upon. If the option is not specified, all the sessions in the group are
selected.
-vcid_range_end This options is used along with -vcid to specify the range of sessions to be
selected. This option has a default value equal with -vcid (ie., default range is
only one VCID).
-csv_filename The .csv filename that can be created under HLT library install folder
RETURN VALUES
Key Value
Key Value
aggregate.connected
aggregate.num_sessions
aggregate.connect_success
aggregate.sessions_up
aggregate.min_setup_time
aggregate.max_setup_time
aggregate.avg_setup_time
aggregate.success_setup_rate
aggregate.sccrp_tx
aggregate.scccn_tx
aggregate.sccrp_tx
aggregate.stopccn_tx
aggregate.hello_tx
aggregate.icrq_tx
aggregate.icrp_tx
aggregate.iccn_tx
aggregate.cdn_tx
aggregate.wen_tx WAN-Error-Notify
aggregate.sli_tx Set-Link-Info
aggregate.zlb_rx
aggregate.sccrp_rx
aggregate.scccn_rx
aggregate.sccrp_rx
aggregate.stopccn_rx
aggregate.hello_rx
aggregate.icrq_rx
aggregate.icrp_rx
aggregate.iccn_rx
aggregate.cdn_rx
aggregate.wen_rx WAN-Error-Notify
aggregate.sli_rx Set-Link-Info
aggregate.out_of_order_rx Number of packet rx out of sequence
aggregate.out_of_win_rx Number of packets rx outside window
aggregate.duplicate_rx Number of duplicate packet received
aggregate.in_order_rx Number of in order packet received
aggregate.retransmits Number of retransmitted messages
aggregate.tx_pkt_acked Number of tx packets acked by peer
aggregate.tx_data_pkt Number of data packets transmitted
aggregate.rx_data_pkt Number of data packets received
cc.<cc ID>.zlb_tx
cc.<cc ID>.sccrq_tx
cc.<cc ID>.scccn_tx
cc.<cc ID>.sccrp_tx
Key Value
cc.<cc ID>.stopccn_tx
cc.<cc ID>.hello_tx
cc.<cc ID>.icrq_tx
cc.<cc ID>.icrp_tx
cc.<cc ID>.iccn_tx
cc.<cc ID>.cdn_tx
cc.<cc ID>.wen_tx WAN-Error-Notify
cc.<cc ID>.sli_tx Set-Link-Info
cc.<cc ID>.zlb_rx
cc.<cc ID>.sccrq_rx
cc.<cc ID>.scccn_rx
cc.<cc ID>.sccrp_rx
cc.<cc ID>.stopccn_rx
cc.<cc ID>.hello_rx
cc.<cc ID>.icrq_rx
cc.<cc ID>.icrp_rx
cc.<cc ID>.iccn_rx
cc.<cc ID>.cdn_rx
cc.<cc ID>.wen_rx WAN-Error-Notify
cc.<cc ID>.sli_rx Set-Link-Info
cc.<cc ID>.out_of_order_rx Number of packet rx out of sequence
cc.<cc ID>.out_of_win_rx Number of packets rx outside window
cc.<cc ID>.duplicate_rx Number of duplicate packet received
cc.<cc ID>.in_order_rx Number of in order packet received
cc.<cc ID>.retransmits Number of retransmitted messages
cc.<cc ID>.tx_pkt_acked Number of tx packets acked by peer
cc.<cc ID>.tx_data_pkt Number of data packets transmitted on the
CC
cc.<cc ID>.rx_data_pkt Number of data packets received on the CC
session.<session ID>.icrq_tx
session.<session ID>.icrp_tx
session.<session ID>.iccn_rx
session.<session ID>.cdn_tx
session.<session ID>.icrq_rx
session.<session ID>.icrp_rx
session.<session ID>.iccn_tx
session.<session ID>.cdn_rx
session.<session ID>.tx_pkt_acked
SAMPLE INPUT
1) Session ID will be PPPoE session ID for the case of PPPoE and PPPoEoA. For
the case of PPPoA, session ID will be VPI/VCI.
aggregate.disconnecting
aggregate.connect_attempts
aggregate.disconnect_success
aggregate.disconnect_failed
session.<session ID>.tx_data_pkt
session.<session ID>.rx_data_pkt
SEE ALSO
NAME — ::ixia::l3vpn_generate_stream
DESCRIPTION This command configures traffic streams on the specified CE and PE ports based
on L3VPN setups.
SYNOPSIS ::ixia::l3vpn_generate_stream
-pe_port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
-ce_port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
-pe_label_protocol CHOICES ldp rsvp
-ce_routing_protocol CHOICES ospf bgp isis rip
[-stream_generation CHOICES pe_to_ce ce_to_pe
both]
[-pe_router_handle]
[-ce_router_handle]
[-reset FLAG]
[-length_mode CHOICES fixed increment
random auto imix gaussian quad]
[-l3_length RANGE 1-64000]
[-l3_length_min RANGE 1-64000]
[-l3_length_max RANGE 1-64000]
[-l3_length_step RANGE 1-64000]
[-l3_imix1_size RANGE 32-1518]
[-l3_imix1_ratio]
[-l3_imix2_size RANGE 32-1518]
[-l3_imix2_ratio]
[-l3_imix3_size RANGE 32-1518]
[-l3_imix3_ratio]
[-l3_imix4_size RANGE 32-1518]
[-l3_imix4_ratio]
[-l3_gaus1_avg DECIMAL]
[-l3_gaus1_halfbw DECIMAL]
[-l3_gaus1_weight NUMERIC]
[-l3_gaus2_avg DECIMAL]
[-l3_gaus2_halfbw DECIMAL]
[-l3_gaus2_weight NUMERIC]
[-l3_gaus3_avg DECIMAL]
[-l3_gaus3_halfbw DECIMAL]
[-l3_gaus3_weight NUMERIC]
[-l3_gaus4_avg DECIMAL]
[-l3_gaus4_halfbw DECIMAL]
[-l3_gaus4_weight NUMERIC]
[-rate_pps]
[-rate_bps]
[-rate_percent RANGE 0-100]
[-transmit_mode CHOICES continuous
single_burst]
[-pkts_per_burst INTEGER]
[-data_pattern]
[-data_pattern_mode CHOICES incr_byte decr_byte
fixed random repeating]
[-enable_data_integrity CHOICES 0 1]
[-integrity_signature]
[-integrity_signature_offset RANGE 12-65535]
[-frame_sequencing CHOICES enable disable]
[-frame_sequencing_offset]
[-frame_size RANGE 20-13312]
ARGUMENTS
-pe_port_handle The PE port for which to configure traffic and to which the traffic on CE port is
configured.
-ce_port_handle The CE port for which to configure traffic and to which the traffic on PE port is
configured.
-pe_label_protocol Specifies which label protocol is used on CE port. Valid choices are:
Value Usage
ldp N/A
rsvp N/A
-ce_routing_protocol Specifies which routing protocol is used on CE port. Valid choices are:
Value Usage
bgp N/A
isis N/A
ospf N/A
rip N/A
(DEFAULT = both)
-pe_router_handle List of router handles for which traffic will be configured on CE port. If this
option is present traffic will be configured only for route ranges advertised by the
specified router handles. Otherwise traffic is configured for route ranges adver-
tised by all routers on the PE port.
-reset When the option is enabled all streams are deleted on the seding ports(s) before
creating new ones.
-length_mode Behavior of the packet size for a particular stream. Valid choices are:
Value Usage
fixed N/A
increment N/A
random N/A
auto N/A
imix Mix of packet sizes are specified using
options l3_imix1_size etc
gaussian, quad Packet sizes are specified as gaussian/quad
curves using options l3_gaus1_avg,
l3_gaus1_halfbw, l3_gaus1_weight etc.
-l3_length Packet size in bytes. Use this option in conjunction with option "length_mode"
set to fixed. Valid choices are between 1 and 64000, inclusive.
-l3_length_min Minimum packet size for the specified stream in bytes. Use this option in con-
junction with option "length_mode" set to increment.
-l3_length_max Maximum packet size for the specified stream in bytes. Use this option in con-
junction with option "length_mode" set to increment.
-l3_length_step Step size by which the packet size will be incremented. Use this option in con-
junction with option "length_mode" set to increment.
-l3_gaus1_avg The center of the first curve. Used if length_mode is set to gaussian or quad.
-l3_gaus1_halfbw The width at half of the first curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus1_weight The weigth of the first curve. Used if length_mode is set to gaussian or quad.
-l3_gaus2_avg The center of the second curve. Used if length_mode is set to gaussian or quad.
-l3_gaus2_halfbw The width at half of the second curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus2_weight The weigth of the second curve. Used if length_mode is set to gaussian or quad.
-l3_gaus3_avg The center of the third curve. Used if length_mode is set to gaussian or quad.
-l3_gaus3_halfbw The width at half of the third curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus3_weight The weigth of the third curve. Used if length_mode is set to gaussian or quad.
-l3_gaus4_avg The center of the fourth curve. Used if length_mode is set to gaussian or quad.
-l3_gaus4_halfbw The width at half of the fourth curve. Used if length_mode is set to gaussian or
quad.
-l3_gaus4_weight The weigth of the fourth curve. Used if length_mode is set to gaussian or quad.
-rate_percent Traffic rate in percent of line rate for the specified stream. Valid choices are
between 0.00 and 100.00, inclusive.
(DEFAULT = 100.00)
-transmit_mode Type of transmit mode to use. Note that all transmit modes need to have one
value set in either rate_pps, rate_bps, or rate_percent. Valid choices are:
Value Usage
continuous N/A
single_burst N/A
-data_pattern Payload value in bytes. For example, you can specify a custom payload pattern
like the following using option "data_pattern":
00 44 00 44
-data_pattern_mode Packet payload mode for a particular stream. Valid choices are:
Value Usage
Value Usage
Value Usage
0 Disabled.
1 Enabled.
-integrity_signature
-integrity_signature_offset
-frame_sequencing
-frame_sequencing_offset
-frame_size Actual total frame size coming out of the interface on the wire in bytes. Valid
choices are between 20 and 13312, inclusive.
(DEFAULT = 64)
-frame_size_max Actual maximum total frame size coming out of the interface on the wire in bytes
when option "length_mode" is set to random. Valid choices are between 20 and
13312.
(DEFAULT = 64)
-frame_size_min Actual minimal total frame size coming out of the interface on the wire in bytes
when option "length_mode" is set to random. Valid choices are between 20 and
13312.
(DEFAULT = 64)
-frame_size_step Actual increment by which the actual total frame size in bytes coming out of the
interface on the wire will be incremented. Valid choices are between 20 and
13292.
(DEFAULT = 64)
-ip_cost Part of the Type of Service byte of the IP header datagram (bit 6). Valid choices
are:
Value Usage
-ip_delay Part of the Type of Service byte of the IP header datagram (bit 3). Valid choices
are:
Value Usage
-ip_precedence Part of the Type of Service byte of the IP header datagram that establishes prece-
dence of delivery. Valid choices are between 0 and 7, inclusive.
-ip_reliability Part of the Type of Service byte of the IP header datagram (bit 5). Valid choices
are:
Value Usage
-ip_reserved Part of the Type of Service byte of the IP header datagram (bit 7). Valid choices
are:
Value Usage
0 (default)
1 N/A
-ip_throughput Part of the Type of Service byte of the IP header datagram (bit 4). Valid choices
are:
Value Usage
Value Usage
0 Disabled.
1 Enabled. (default)
-enable_pgid
-pgid_value
-signature
-signature_offset
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_ldp_config
DESCRIPTION
SYNOPSIS ::ixia::emulation_ldp_config
-mode CHOICES create modify
delete disable enable
-port_handle REGEXP ^[0-9]+/[0-9]+/
[0-9]+$
[-handle]
[-label_adv CHOICES unsolicited
on_demand]
[-peer_discovery CHOICES link targeted
targeted_martini DEFAULT link]
[-count NUMERIC]
[-intf_ip_addr IP]
[-intf_prefix_length RANGE 1-128]
[-intf_ip_addr_step IP]
[-lsr_id IP]
[-label_space RANGE 0-65535]
[-lsr_id_step IPV4]
[-mac_address_init MAC]
[-remote_ip_addr IP]
[-remote_ip_addr_step IP]
[-hello_interval RANGE 0-65535]
[-hello_hold_time RANGE 0-65535]
[-keepalive_interval RANGE 0-65535]
[-keepalive_holdtime RANGE 0-65535]
[-discard_self_adv_fecs CHOICES 0 1]
[-vlan_id RANGE 0-4095]
[-vlan_id_mode CHOICES fixed increment]
[-vlan_id_step RANGE 0-4096]
[-vlan_user_priority RANGE 0-7]
[-vpi RANGE 0-255]
[-vci RANGE 0-65535]
[-vpi_step RANGE 0-255]
[-vci_step RANGE 0-256]
[-atm_range_max_vpi RANGE 0-255]
[-atm_range_min_vpi RANGE 0-255]
[-atm_range_max_vci RANGE 0-65535]
[-atm_range_min_vci RANGE 0-65535]
[-atm_vc_dir CHOICES bi_dir uni_dir]
[-enable_explicit_include_ip_fec CHOICES 0 1]
[-enable_l2vpn_vc_fecs CHOICES 0 1]
[-enable_remote_connect CHOICES 0 1]
[-enable_vc_group_matching CHOICES 0 1]
[-gateway_ip_addr IP]
[-gateway_ip_addr_step IP]
[-graceful_restart_enable CHOICES 0 1]
[-no_write FLAG]
[-reconnect_time RANGE 0-300000]
[-recovery_time RANGE 0-300000]
[-reset FLAG]
[-targeted_hello_hold_time RANGE 0-65535]
[-targeted_hello_interval RANGE 0-65535]
-loop_detection
-path_vector_limit
-max_pdu_length
-message_aggregation
-label_start
-label_step
-atm_merge_cap
ARGUMENTS
-mode Which mode is being performed. All but create require the use of the -handle
option. Valid choices are:
Value Usage
-port_handle The port which on which the LDP configuration will take place.
-handle A LDP handle returned from this procedure and now being used when the -mode
is anything but create.
-label_adv The mode by which the simulated router advertises its FEC ranges. Valid
choices are:
Value Usage
-peer_discovery The discovery mode used for the LDP interface. Valid choices are:
Value Usage
-remote_ip_addr_step When creating multiple sessions and using the -remote_ip_addr, tells how to
increment between sessions.
-hello_interval The amount of time, expressed in seconds, between transmitted HELLO mes-
sages.
-hello_hold_time The amount of time, expressed in seconds, that an LDP adjacency will be main-
tained in the absence of a HELLO message.
-keepalive_interval The amount of time, expressed in seconds, between keep-alive messages sent
from simulated routers to their adjacency in the absence of other PDUs sent to
the adjacency.
-keepalive_holdtime The amount of time, expressed in seconds, that an LDP adjacency will be main-
tained in the adbsence of a PDU received from the adjacency.
-discard_self_adv_fecs Discard learned labels from the DUT that match any of the enabled configured
IPv4 FEC ranges. This flag is only set when LDP is started. If it is to be changed
later, LDP should be stopped, the value changed and then restart LDP.
-vlan_id_mode For multiple neighbor configuration, configures the VLAN ID mode. Valid
choices are:
Value Usage
fixed VLAN ID mode is fixed.
increment VLAN ID mode to increment.
-vlan_id_step Defines the step for the VLAN ID when the VLAN ID mode is increment.
-atm_vc_dir The ATM directional virtual circuit (VC) capability of this LSR. Valid choices
are:
Value Usage
-enable_explicit_include_ Enables the use of the explicit include IP FEC list which filters received labels.
ip_fec
-enable_l2vpn_vc_fecs Enables the use of Layer 2 Virtual Circuit FECs for this router.
-enable_remote_connect Enables LDP routers not part of the local multicast network to connect to the
simulated router.
-enable_vc_group_ This option enables the matching of received Martini labels by group ID as well
matching as VCID.
-gateway_ip_addr Gives the gateway IP address for the protocol interface that will be created for
use by the simulated routers.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-reconnect_time (in milliseconds) This Fault Tolerant (FT) Reconnect Timer value is advertised in
the FT Session TLV in the Initialization message sent by a neighbor LSR. It is a
request sent by an LSR to its neighbor(s) - in the event that the receiving neigh-
bor detects that the LDP session has failed, the receiver should maintain MPLS
forwarding state and wait for the sender to perform a restart of the control plane
and LDP protocol. If the value = 0, the sender is indicating that it will not pre-
serve its MPLS forwarding state across the restart.
If -graceful_restart_enable is set.
-reset If set, then all existing simulated routers will be removed before creating a new
one.
-targeted_hello_hold_time The amount of time, expressed in seconds, that an LDP adjacency will be main-
tained for a targeted peer in the absence of a HELLO message.
-loop_detection
-path_vector_limit
-max_pdu_length
-message_aggregation
-label_start
-label_step
-atm_merge_cap
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_ldp_route_config
DESCRIPTION This procedure creates/modifies/deletes LSP (FEC) pools or FEC ranges on sim-
ulated LDP router Interface.
Value Usage
-lsp_handle This option specifies on which lsp element to configure the lsp pools/fec range
options. The user must pass in this option if the "type" is modify or delete. lsp_
handle is returned by this procedure when "type" is create.
-fec_type Note: this option cannot be modified with modify mode. Valid choices are:
Value Usage
-label_msg_type Type of label messages to be sent out. Note: this option cannot be modified with
modify mode. Valid choices are:
Value Usage
Value Usage
(DEFAULT = 24)
-fec_vc_type The type of virtual circuit. Note that none, atm_aal5_pdu, and fr_port types are
not supported. Valid choices are:
Value Usage
fr_dlci N/A
atm_aal5_vcc N/A
atm_cell N/A
eth_vlan N/A
eth N/A
hdlc N/A
ppp N/A
cem N/A
atm_vcc_n_1 N/A
atm_vpc_n_1 N/A
eth_vpls N/A
atm_vcc_1_1 N/A
atm_vpc_1_1 N/A
(DEFAULT = 0)
-fec_vc_group_id The group ID associated with all VC FEC elements for this interface.
(DEFAULT = 0)
-fec_vc_id_start The virtual circuit ID, together with the value of the fec_vc_type option, identi-
fies a unique VC.
(DEFAULT = 10)
(DEFAULT = 1)
(DEFAULT = false)
(DEFAULT = 0)
-hop_count_tlv_enable If set, enables the use of hop_count_tlv in Label Request and Label Mapping
messages.
(DEFAULT = 1)
(DEFAULT = 1)
-fec_vc_group_count The number of contiguous values of groupId that will be used in generating VC
FECs.
(DEFAULT = 1)
-fec_vc_label_mode The manner in which labels are assigned to generated VCs. The options include:
fixed_label, increment_label.
(DEFAULT = 16)
-fec_vc_peer_address The IPv4 address of the LDP router which is the peer for this VC range.
(DEFAULT = 0.0.0.0)
-fec_vc_id_count The number of times that the VCID will be incremented in order to generate
FECs.
(DEFAULT = 1)
(DEFAULT = 24)
(DEFAULT = 16)
-next_hop_peer_ip The IPv4 address of the LDP peer that is the next hop router on this
path.
(DEFAULT = 0.0.0.0)
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-num_routes The number of routes to request starting at the host_addr for fec_type of "host_
addr".
(DEFAULT = 1)
-packing_enable Enables the packing of multiple label mappings on sending labels and sending
withdrawals into a single PDU. This is only applicable to sessions established in
the downstream unsolicited mode.
(DEFAULT = 0)
(DEFAULT = 1)
(DEFAULT = 5)
-fec_ip_prefix_step
-fec_host_step
-path_vector_tlv
-path_vector_tlv_lsr
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
For "modify" mode, the fec_type option and label_msg_type option will not be
updated for the lsp.
SEE ALSO
NAME — ::ixia::emulation_ldp_control
SYNOPSIS ::ixia::emulation_ldp_control
-mode CHOICES restart start stop
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-handle]
[-advertise]
[-withdraw]
[-flap_routes]
[-flap_count]
[-flap_interval_time]
[-flap_down_time]
ARGUMENTS
Value Usage
-advertise
-withdraw
-flap_routes
-flap_count
-flap_interval_time
-flap_down_time
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_ldp_info
SYNOPSIS ::ixia::emulation_ldp_info
-mode CHOICES state stats clear_stats settings
neighbors lsp_labels
-handle
ARGUMENTS
Value Usage
state N/A
stats N/A
clear_stats N/A
settings N/A
neighbors N/A
lsp_labels N/A
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log If status is failure, detailed information pro-
vided.
basic_sessions Ixia only
targeted_sessions_running Ixia only
targeted_sessions_configured Ixia only
routing_protocol Cisco only
ip_address Cisco only
elapsed_time Cisco only
linked_hellos_tx Cisco only
linked_hellos_rx Cisco only
targeted_hellos_tx Cisco only
targeted_hellos_rx Cisco only
total_setup_time Cisco only
min_setup_time Cisco only
max_setup_time Cisco only
num_lsps_setup Cisco only
req_rx Cisco only
req_tx Cisco only
map_rx Cisco only
map_tx Cisco only
release_rx Cisco only
Key Value
release_tx Cisco only
withdraw_rx Cisco only
withdraw_tx Cisco only
abort_rx Cisco only
abort_tx Cisco only
notif_rx Cisco only
notif_tx Cisco only
max_peers No further support planned; Cisco only
max_lsps No further support planned; Cisco only
peer_count No further support planned; Cisco only
intf_ip_addr a.b.c.d No further support planned
transport_address a.b.c.d No further support planned
targeted_hello No further support planned
label_adv No further support planned
hello_hold_time No further support planned
hello_interval No further support planned
keepalive_interval No further support planned
keepalive_holdtime No further support planned
label_space No further support planned
vpi No further support planned
vci No further support planned
atm_range_min_vci No further support planned
atm_range_max_vci No further support planned
atm_range_min_vpi No further support planned
atm_range_max_vpi No further support planned
vc_direction No further support planned; Cisco only
atm_merge_capability No further support planned; Cisco only
fr_merge_capability No further support planned; Cisco only
path_vector_limit No further support planned; Cisco only
max_pdu_length No further support planned; Cisco only
loop_detection No further support planned; Cisco only
ip_address a.b.c.d No further support planned
hold_time No further support planned
keepalive No further support planned
config_seq_no No further support planned; Cisco only
max_lsps No further support planned; Cisco only
max_peers No further support planned; Cisco only
atm_label_range No further support planned; Cisco only
fr_label_range No further support planned; Cisco only
session_state Cisco only; disabled|nonexist|hello_adj|init|
openrec|opensent|operational
num_incoming_ingress_lsps Cisco only; number of opened LSPs
num_incoming_egress_lsps Cisco only; number of opened LSPs
lsp_pool_handle.<handle>. Cisco only
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_mld_config
SYNOPSIS ::ixia::emulation_mld_config
-mode CHOICES create modify delete
disable enable enable_all disable_all
[-port_handle ^\[0-9\]+/\[0-9\]+/\[0-
9\]+$]
[-handle]
[-interface_handle]
[-mld_version CHOICES v1 v2]
[-count RANGE 1-1000]
[-intf_ip_addr IP]
[-intf_ip_addr_step IP]
[-intf_prefix_len RANGE 1-128]
[-msg_interval RANGE 0-999999999]
[-unsolicited_report_interval RANGE 0-999999]
[-max_groups_per_pkts RANGE 0-999999999]
[-max_response_control CHOICES 0 1]
[-max_response_time RANGE 0-999999]
[-ip_router_alert CHOICES 0 1]
[-general_query CHOICES 0 1]
[-group_query CHOICES 0 1]
[-filter_mode CHOICES include exclude]
[-suppress_report CHOICES 0 1]
[-vlan_id RANGE 0-4096]
[-vlan_id_mode CHOICES fixed increment]
[-vlan_id_step RANGE 0-4096]
[-vlan_user_priority RANGE 0-7]
[-neighbor_intf_ip_addr IP]
[-neighbor_intf_ip_addr_step IP]
[-robustness RANGE 1-65535]
[-vlan_cfi CHOICES 0 1]
[-mac_address_init]
[-no_write FLAG]
[-reset FLAG]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
Value Usage
-port_handle If -mode is create, enable_all or disable_all this option is required to specify the
port where to take the action.
-handle If -mode is delete, modify, enable or disable this option is required to specify the
existing MLD session.
-interface_handle A handle or list of the handles that are returned from the interface_config call.
These provide a direct link to an already existing interface and supercede the use
of the intf_ip_addr value.
(DEFAULT = v2).
(DEFAULT = 1)
-msg_interval The interval (in ms) used for throttling updates. Use the value 0 to send messages
as fast as possible.
(DEFAULT = 0)
-unsolicited_report_ The interval (in 1/10 seconds) to wait before re-sending the host's initial report of
nterval membership in a group.
-max_groups_per_pkts The maximum number of group records that can go into one MLDv2 member-
ship report packet. If the number of groups to be advertised exceeds this number,
then the groups are split up into multiple membership report packets. If set to 0,
groups are packed into Membership Report packets until the MTU size is
reached.
(DEFAULT = 0)
-max_response_control If 1, use -max_response_time to overwrite the value obtained from the received
Query message.
(DEFAULT = 0)
-max_response_time Set the maximum response time (in 1/10 seconds) on receipt of a query. If set to
0, immediately respond to received Query message.
(DEFAULT = 1)
(DEFAULT = 1)
(DEFAULT = 1)
(DEFAULT = include)
-suppress_report If 1, suppress the transmission of a listener report that duplicates one received on
the interface.
-vlan_id_mode For multiple neighbor configuration, configures the VLAN ID mode to be fixed
or increment.
-vlan_id_step When -vlan_id_mode isset to increment, this defines the step for every VLAN.
-neighbor_intf_ip_addr_ Neighbor's interface IP address increment step for creating multiple sessions.
step Default is 0, i.e. same IP address for all sessions.
-robustness The number of times to send a State Change Report. MLDv2 only.
(DEFAULT = 2)
-vlan_cfi Canonical format indicator field in VLAN for emulated router node.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_mld_group_config
DESCRIPTION Configures multicast groups added to an MLD session. This procedure utilizes
the common emulation_multicast_group_config and emulation_multicast_
source_config procedures.
SYNOPSIS ::ixia::emulation_mld_group_config
-mode CHOICES create modify delete
clear_all
[-session_handle]
[-group_pool_handle]
[-source_pool_handle]
[-handle]
[-no_write FLAG]
ARGUMENTS
-session_handle
-group_pool_handle
-source_pool_handle
-handle
-no_write
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is failure, contains more info
handle The group member handle
group_pool_handle The group pool handle
source_pool_handle Source pool handles list
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_mld_control
SYNOPSIS ::ixia::emulation_mld_control
-mode CHOICES start stop restart join
leave
[-handle]
[-port_handle ^[0-9]+/[0-9]+/[0-9]+$]
[-group_member_handle]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
-handle If -mode is join or leave, all group pools belonging to the MLD session specified
with this option will join or leave.
-port_handle If -mode is start, stop or restart, this option is required to specify the port where
to take the MLD action.
-group_member_handle If -mode is join or leave this option specifies the group pools to join or leave.
RETURN VALUES
Key Value
SAMPLE INPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_multicast_group_config
DESCRIPTION Configures multicast groups to be used by all multicast emulation tools including
PIM, IGMP, MLD, MSDP.
SYNOPSIS ::ixia::emulation_multicast_group_config
-mode CHOICES create modify delete
[-handle]
[-num_groups NUMERIC]
[-ip_addr_start IP]
[-ip_addr_step IP]
[-ip_prefix_len RANGE 1-128]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
-handle If the -mode is delete or modify, then this option is required to specify the exist-
ing multicast group pool.
(DEFAULT = 1)
(DEFAULT = 0.0.0.1)
RETURN VALUES
Key Value
EXAMPLES See the files starting with IGMPv1_, IGMPv2_, IGMPv3_, MLD_,
MVPN_, andPIM_ in the Samples subdirectory.
See the IGMP, MLD, MVPN, or PIM examples in Appendix A,
"Example APIs," for more specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_multicast_source_config
DESCRIPTION Configures multicast sources to be used by all multicast emulation tools includ-
ing PIM, IGMP, MLD, MSDP.
SYNOPSIS ::ixia::emulation_multicast_source_config
-mode CHOICES create modify delete
[-handle]
[-num_sources NUMERIC]
[-ip_addr_start IP]
[-ip_addr_step IP]
[-ip_prefix_len RANGE 1-128]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
-handle If the -mode is delete or modify, then this option is required to specify the exist-
ing multicast source pool.
(DEFAULT = 1)
(DEFAULT = 0.0.0.1)
RETURN VALUES
Key Value
EXAMPLES See the files starting with IGMPv1_, IGMPv2_, IGMPv3_, MLD_,
MVPN_, andPIM_ in the Samples subdirectory.
See the IGMP, MLD, MVPN, or PIM examples in Appendix A,
"Example APIs," for more specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
NOTES
SEE ALSO
NAME — ::ixia::emulation_ospf_config
DESCRIPTION This procedure will add OSPF router(s) to a particular Ixia Interface. The user
can then configure OSPF routes by using the procedure "emulation_ospf_route_
config".
SYNOPSIS ::ixia::emulation_ospf_config
-mode CHOICES create delete modify
enable disable
-session_type CHOICES ospfv2 ospfv3
[-area_id IP]
[-area_id_step IP]
[-area_type CHOICES external-capable ppp
stub]
[-authentication_mode CHOICES null simple md5]
[-count RANGE 1-1000]
[-dead_interval RANGE 1-65535]
[-demand_circuit CHOICES 0 1]
[-handle]
[-hello_interval RANGE 1-65535]
[-interface_cost RANGE 1-65535]
[-intf_ip_addr IP]
[-intf_ip_addr_step IP]
[-intf_prefix_length RANGE 1-128]
[-instance_id RANGE 0-65535]
[-loopback_ip_addr IP]
[-loopback_ip_addr_step IP]
[-lsa_discard_mode CHOICES 0 1]
[-md5_key RANGE 0-255]
[-md5_key_id]
[-mtu RANGE 512-4470]
[-network_type CHOICES broadcast ptomp ptop]
[-neighbor_intf_ip_addr IP]
[-neighbor_intf_ip_addr_step IP]
[-neighbor_router_id IP]
[-neighbor_router_id_step IP]
[-option_bits]
[-password]
[-router_id IP]
[-router_id_step IP]
[-router_priority RANGE 0-255]
[-te_enable CHOICES 0 1]
[-te_max_bw REGEXP ^[0-9]+]
[-te_max_resv_bw REGEXP ^[0-9]+$]
[-te_metric RANGE 1-4294967295]
[-vci RANGE 0-65535]
[-vci_step]
[-vlan_id_mode CHOICES fixed increment]
[-vlan_id RANGE 0-4095 (DEFAULT 100)]
[-vlan_id_step RANGE 0-4095 (DEFAULT 1)]
[-vpi RANGE 0-255]
[-vpi_step]
[-vlan_user_priority RANGE 0-7]
[-te_unresv_bw_priority0 REGEXP ^[0-9]+$]
[-te_unresv_bw_priority1 REGEXP ^[0-9]+$]
[-te_unresv_bw_priority2 REGEXP ^[0-9]+$]
ARGUMENTS
Value Usage
-area_id_step The OSPF area ID step associated with the -area_id option on the ISPF interface.
-area_type The "area_type" advertised in the Router LSA interface list. Valid choices are:
Value Usage
Value Usage
-dead_interval The time after which the DUT router is considered dead if it does not send
HELLO messages.
-demand_circuit Enables the Demand Circuit bit. Pertains to handling of demand circuits (DCs)
by the router. CHOICES 0 1
-handle OSPF session handle for using the modes delete, modify, enable, and disable.
-hello_interval The time between HELLO messages sent over the interface. RANGE 1-65535
-interface_cost The metric associated with the OSPF interface. RANGE 1-65535
-intf_ip_addr_step What step will be use for incrementing the -intf_ip_addr option. IP
-intf_prefix_length Defines the mask of the IP address used for the Ixia (-intf_ip_addr) and the DUT
interface. RANGE 1-128
-instance_id Defines the instance ID of the OSPFv3 process. It allows multiple instances of
the OSPFv3 protocol to be run simultaneously over the same link. RANGE 0-
65535
-loopback_ip_addr Defines the IP address of the loopback interface for MPLS VPN testing.
-loopback_ip_addr_step Defines the IP address step of the loopback interface for MPLS VPN.
-lsa_discard_mode Enables/Disables the LSA discard mode on the OSPF router. CHOICES 0 1
-md5_key Active only when "MD5" is selected in the Authentication field. Enter a value to
be used as a "secret" MD5 Key.
-md5_key_id Active only when "MD5" is selected in the Authentication field. Enter a value to
be used as a Key ID. This identifier is associated with the MD5 Key entered in
the field below.
-mtu The advertised MTU value in database entries sent to other routers create on the
Ixia interface. RANGE 512-4470
-neighbor_intf_ip_addr_ What step will be use for incrementing the -neighbor_intf_ip_addr option.
step
-network_type Indicates the type of network for the interface. Valid choices are:
Value Usage
-option_bits The bit sum of the different OSPF option bits. This switch is for users to custom-
ize options since area_type will determine a default value for those bits. The
Demand circuit option can be modified with the -demand_circuit option. In HEX.
-password Password to be used in the OSPF authentication mode is enabled and set to "sim-
ple".
-router_id The Router ID for this emulated OSPF Router, in IPv4 format. IP
-router_id_step The Router ID step for this emulated OSPF Router, in IPv4 format. IP
-router_priority The priority of the interface, for use in election of the designated or backup mas-
ter. RANGE 0-255
-te_enable If set to 1, this will enable Traffic Engineering on the OSPF router. The user can
then configure the TE parameters by using "-te_metric", "-te_max_bw", "-te_
max_resv_bw", "-te_unresv_bw_priority0-7".
-te_max_bw If "-enable_te" is 1, then this indicates the maximum bandwidth that can be used
on the link between this interface and its neighbors in the outbound direction.
-te_max_resv_bw If "-enable_te" is 1, then this indicates the maximum bandwidth, in bytes per sec-
ond, that can be reserved on the link between this interface and its neighbors in
the outbound direction.
-te_unresv_bw_priority0 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 0 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 0. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority1 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 1 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 1. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority2 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 2 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 2. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority3 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 3 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 3. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority5 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 5 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 5. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority6 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 6 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 6. The value must be less
than the maxReservableBandwidth option.
-te_unresv_bw_priority7 If "-enable_te" is 1, then this value indicates the amount of bandwidth, in bytes
per second, not yet reserved at the 7 priority level. This value corresponds to the
bandwidth that can be reserved with a setup priority of 7. The value must be less
than the maxReservableBandwidth option.
-te_metric If set to 1, then this indicates the traffic engineering metric associated with the
interface. RANGE 1-2147483647
-vci_step The step value used for incrementing the -vci option.
-vlan_id If VLAN is enable on the Ixia interface, this option will configure the VLAN
number. RANGE 0-4095
-vlan_id_mode If the user configures more than one interface on the Ixia with VLAN, he can
choose to automatically increment the VLAN tag or leave it idle for each inter-
face. CHOICES fixed increment
-vlan_id_step If the -vlan_id_mode is increment, this will be the step value by which the VLAN
tags are incremented. RANGE 0-4095
-vpi_step The step value used for incrementing the -vpi option.
-mac_address_init This option defines the MAC address that will be configured on the Ixia inter-
face. If is > 1, this MAC address will increment by default by step of 1.
-no_write If this option is present, the protocol configuration will not be written to the
server.
-reset If this option is selected, this will clear any OSPF router on the targeted interface.
-vlan_priority Defines the VLAN user priority for the interface. RANGE 0-7
-poll_interval
-lsa_retransmit_delay
-transmit_delay
-max_lsas_per_pkt
-host_route
-neighbor_dr_eligibility
-te_admin_group
RETURN VALUES
Key Value
EXAMPLES See files starting with OSPFv2 and OSPFv3 in the Samples
subdirectory. Also see some of the L2VPN, L3VPN, MPLS,
and MVPN sample files for further examples of the OSPF
usage.
See the OSPF example in Appendix A, "Example APIs," for one
specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_ospf_topology_route_config
DESCRIPTION This procedure will add OSPF route(s) to a particular simulated OSPF router Ixia
Interface. The user can configure the properties of the OSPF routes.
SYNOPSIS ::ixia::emulation_ospf_topology_route_config
-mode CHOICES create modify delete
-handle
[-type CHOICES router grid network
summary_routes ext_routes]
[-elem_handle]
[-router_id IP (DEFAULT 0.0.0.0)]
[-router_abr CHOICES 0 1 (DEFAULT 0)]
[-router_asbr CHOICES 0 1 (DEFAULT 0)]
[-router_te CHOICES 0 1 (DEFAULT 0)]
[-grid_row RANGE 1-10000 (DEFAULT 1)]
[-grid_col RANGE 1-10000 (DEFAULT 1)]
[-grid_router_id IP (DEFAULT 0.0.0.0)]
[-grid_router_id_step IP (DEFAULT 0.0.0.0)]
[-grid_link_type CHOICES broadcast
ptop_numbered ptop_unnumbered
(DEFAULT ptop_numbered)]
[-grid_prefix_start IP DEFAULT 0.0.0.0]
[-grid_prefix_length RANGE 1-128 (DEFAULT 24)]
[-grid_prefix_step IP (DEFAULT 0.0.0.1)]
[-grid_connect DEFAULT 1 1]
[-grid_disconnect]
[-grid_te CHOICES 0 1 (DEFAULT 0)]
[-net_ip IP (DEFAULT 0.0.0.0)]
[-net_prefix_length RANGE 1-128 (DEFAULT 24)]
[-summary_number_of_prefix RANGE 1-16000000
(DEFAULT 24)]
[-summary_prefix_start IP (DEFAULT 0.0.0.0)]
[-summary_prefix_length RANGE 0-128 (DEFAULT 24)]
[-summary_prefix_metric RANGE 1-16777215 (DEFAULT 1)]
[-summary_prefix_step DEFAULT 1]
[-external_number_of_prefixRANGE 1-16000000
(DEFAULT 24)]
[-external_prefix_start IP (DEFAULT 0.0.0.0)]
[-external_prefix_length RANGE 0-128 (DEFAULT 24)]
[-external_prefix_metric RANGE 1-16777215 (DEFAULT 1)]
[-external_prefix_type CHOICES 1 2 (DEFAULT 1)]
[-interface_ip_address IP]
[-interface_ip_mask IP]
[-net_prefix_options (DEFAULT 16)]
[-no_write FLAG]
[-router_wcr CHOICES 0 1 (DEFAULT 0)]
[-router_connect]
[-link_enable]
[-link_intf_addr]
[-link_te]
[-link_te_instance]
[-link_te_link_id]
[-link_te_metric]
[-link_te_local_ip_addr]
[-link_te_remote_ip_addr]
[-link_te_type]
[-link_te_admin_group]
[-link_te_max_bw]
[-link_te_max_resv_bw]
[-link_te_unresv_bw_priority0]
[-link_te_unresv_bw_priority1]
[-link_te_unresv_bw_priority2]
[-link_te_unresv_bw_priority3]
[-link_te_unresv_bw_priority4]
[-link_te_unresv_bw_priority5]
[-link_te_unresv_bw_priority6]
[-link_te_unresv_bw_priority7]
[-router_disconnect]
[-grid_stub_per_router]
[-grid_connect_session]
[-net_dr]
[-summary_connect]
[-external_prefix_step]
[-external_prefix_forward_addr]
[-external_connect]
[-nssa_number_of_prefix]
[-nssa_prefix_start]
[-nssa_prefix_length]
[-nssa_prefix_step]
[-nssa_prefix_metric]
[-nssa_prefix_type]
[-nssa_prefix_forward_addr]
ARGUMENTS
Value Usage
create N/A
modify N/A
delete N/A
-handle This option represents the handle the user *must* pass to the "emulation_ospf_
topology_route_config" procedure. This option specifies on which OSPF router
to configure the OSPF route range. The OSPF router handle(s) are returned by
the procedure "emulation_ospf_config" when configuring OSPF routers on the
Ixia interface.
-elem_handle This option specifies on which topology element to configure the route options.
The user must pass in this option if the "type" is modify or delete.
Value Usage
-router_abr If true (1), set router to be an area boundary router (ABR). Correspond to E
(external) bit in router LSA.
(DEFAULT = 1)
(DEFAULT = 1)
-router_virtual_link_endpt This option is supported for OSPFV3 only. Indicates that the router is an end-
point of one or more fully adjacent virtual links.
(DEFAULT = 0)
-grid_prefix_step This is the value used to increment the subnet address by between successively
generated routers.
-grid_connect Connects a router in the grid, as specified by the row and column, to the session
router of specified OSPF session. The format for entering the row and column is
"grid_connect <row> <col>". By default, the 1st row and 1st column router is
connected to the session router of its parent session.
-grid_te If true (1), enable traffic engineering on the router grid. OSPFv2 only. This can
overwrite the settings on the session router.
(DEFAULT = 0)
-net_ip IP address of the network (transit link) behind the session router.
-summary_number_of_ The number of prefixes to be advertised. This option is for summary route only.
prefix
-summary_prefix_length The number of bits in the prefixes to be advertised. For example, a value of 24 is
equivalent to a network mask of 255.255.255.0.
-summary_prefix_step Supported in OSPFv3 only. The increment used to generate multiple summary
addresses.
-external_number_of_ The number of prefixes to be advertised. This option is for external route only.
prefix
-external_prefix_length The number of bits in the prefixes to be advertised. For example, a value of 24 is
equivalent to a network mask of 255.255.255.0.
-external_prefix_step Supported in OSPFv3 only. The increment used to generate multiple summary
addresses.
Value Usage
1 Outside the area.
2 Outside the area, but with metrics which are
larger than any internal metric.
-interface_ip_address For OSPFv2 only. IP address of the unconnected interface between the router/
grid to the session router.
(DEFAULT = 0.0.0.0)
(DEFAULT = 255.255.255.0)
Options related to the interface. Multiple options may be combined using a logi-
cal or. Valid choices are:
Value Usage
ospfOptionBitTypeOfService 0x01
ospfOptionBitExternalRouting 0x02
ospfOptionBitMulticast 0x04
ospfOptionBitNSSACapability 0x08
ospfOptionBitExternalAttributes 0x10
ospfOptionBitDemandCircuit 0x20
ospfOptionBitLSANoForward 0x40
ospfOptionBitUnused 0x80
(DEFAULT = 0)
Value Usage
-router_wcr Indicates that the router is a wild-card multicast receiver and will
-router_connect
-link_enable
-link_intf_addr
-link_te
-link_te_instance
-link_te_link_id
-link_te_metric
-link_te_local_ip_addr
-link_te_remote_ip_addr
-link_te_type
-link_te_admin_group
-link_te_max_bw
-link_te_max_resv_bw
-link_te_unresv_bw_
priority0
-link_te_unresv_bw_
priority1
-link_te_unresv_bw_
priority2
-link_te_unresv_bw_
priority3
-link_te_unresv_bw_
priority4
-link_te_unresv_bw_
priority5
-link_te_unresv_bw_
priority6
-link_te_unresv_bw_
priority7
-router_disconnect
-grid_stub_per_router
-grid_connect_session
-net_dr
-summary_connect
-external_prefix_step
-external_prefix_forward_
addr
-external_connect
-nssa_number_of_prefix
-nssa_prefix_start
-nssa_prefix_length
-nssa_prefix_step
-nssa_prefix_metric
-nssa_prefix_type
-nssa_prefix_forward_addr
EXAMPLES See files starting with OSPFv2 and OSPFv3 in the Samples
subdirectory. Also see some of the L2VPN, L3VPN, MPLS,
and MVPN sample files for further examples of the OSPF
usage.
See the OSPF example in Appendix A, "Example APIs," for one
specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
Caveats:
router
. connected_handles
. <handle1>.link_type <link_type>
. te_link_lsa <te_link_lsa_handle>
. link_type <link_type_list>
. router_lsa <router_lsa_handle>
. link_lsa <ospfv3_link_lsa_handle>
. intra_area_pfx_lsa <ospfv3_intra_area_prefix_lsa_handle>
. te_router_lsa <ospfv2_te_router_lsa_handle>
. te_link_lsas <ospfv2_te_link_lsa_handle_list
grid
. router.$row.$col <router_handle>
network
. network_lsa <lsa_handle>
. intra_area_pfx_lsa <ospfv3_intra_area_prefix_lsa_handle>
. connected_routers <router_handle_list>
summary
. summary_lsas <lsa_pool_handle>
. external_lsas <lsa_pool_handle>
. connected_routers <router_handle_list>
nssa
. nssa_lsas <lsa_pool_handle>
. connected_routers <router_handle_list>
. version {ospfv2|ospfv3}
OSPFv3
Router and grid type do not support "modify" mode. This is due to ixTclHal's
lack of getNetworkRange option with a lableId. To workaround, delete then re-
create router or grid topology element.
SEE ALSO
NAME — ::ixia::emulation_ospf_control
DESCRIPTION
SYNOPSIS ::ixia::emulation_ospf_control
-mode CHOICES create delete modify enable disable
-handle
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-advertise]
[-withdraw]
[-advertise_lsa]
[-withdraw_lsa]
[-flap_routes]
[-flap_lsa]
[-flap_count]
[-flap_interval_time]
[-flap_down_time]
ARGUMENTS
Value Usage
restart N/A
start N/A
stop N/A
-port_handle A list of ports on which to control the OSPF protocol. If this option is not present,
the port in the handle option will be applied.
-handle This option represents the handle the user *must* pass to the "emulation_ospf_
control" procedure. This option specifies on which OSPF session to control. If
port_handle option is present, the port_handle takes precedence over port in the
router handle. The OSPF router handle(s) is returned by the procedure
::ixia::emulation_ospf_config when configuring router handle(s).
-advertise
-withdraw
-advertise_lsa
-withdraw_lsa
-flap_routes
-flap_lsa
-flap_count
-flap_interval_time
-flap_down_time
RETURN VALUES
Key Value
EXAMPLES See files starting with OSPFv2 and OSPFv3 in the Samples
subdirectory. Also see some of the L2VPN, L3VPN, MPLS,
and MVPN sample files for further examples of the OSPF
usage.
See the OSPF example in Appendix A, "Example APIs," for one
specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_ospf_lsa_config
DESCRIPTION This procedure will add, modify, or delete a User LSA to a particular OSPF ses-
sion. The user must create a OSPF session using the procedure "emulation_ospf_
config" prior to calling this procedure.
SYNOPSIS ::ixia::emulation_ospf_lsa_config
-mode CHOICES create modify delete
-handle
-lsa_handle
[-type CHOICES router network
summary_pool asbr_summary ext_pool (
DEFAULT routerospfv2)]
[-adv_router_id IP]
[-link_state_id IP]
[-options RANGE 0-255]
[-router_abr CHOICES 0 1 (DEFAULT 0)]
[-router_asbr CHOICES 0 1 (DEFAULT 0)]
[-router_virtual_link_endpt CHOICES 0 1 (DEFAULT 0)]
[-router_link_mode CHOICES create]
[-router_link_id IP]
[-router_link_data IP]
[-router_link_type CHOICES ptop transit stub
virtual (DEFAULT ptop)]
[-router_link_metric RANGE 1-65535]
[-net_prefix_length]
[-net_attached_router CHOICES create delete reset
(DEFAULT create)]
[-attached_router_id IP]
[-summary_number_of_prefix]
[-summary_prefix_start IP]
[-summary_prefix_length]
[-summary_prefix_step IP]
[-summary_prefix_metric RANGE 1-16777215]
[-external_number_of_prefix]
[-external_prefix_start IP]
[-external_prefix_length]
[-external_prefix_step IP]
[-external_prefix_metric RANGE 1-16777215]
[-external_prefix_type CHOICES 1 2]
[-external_prefix_forward_addr IP]
[-ls_type_function_code RANGE 0-8191]
[-external_metric_fbit CHOICES 1 0]
[-external_metric_tbit CHOICES 1 0]
[-external_route_tag IP]
[-link_state_id_step IP (DEFAULT 0.0.0.0)]
[-no_write FLAG]
[-router_wildcard CHOICES 1 0]
[-prefix_options]
[-auto_update]
[-auto_ls_checksum]
[-auto_ls_age]
[-auto_ls_seq]
[-ls_checksum]
[-ls_age]
[-ls_seq]
[-ls_type_s_bits]
[-ls_type_u_bit]
[-nssa_number_of_prefix]
[-nssa_prefix_start]
[-nssa_prefix_length]
[-nssa_prefix_step]
[-nssa_prefix_metric]
[-nssa_prefix_type]
[-nssa_prefix_forward_addr]
[-router_link_idx]
ARGUMENTS
Value Usage
create N/A
modify N/A
delete N/A
-handle This option represents the handle the user *must* pass to the "emulation_ospf_
lsa_config" procedure. This option specifies on which OSPF router to configure
the OSPF User LSA. The OSPF router handle(s) are returned by the procedure
"emulation_ospf_config" when configuring OSPF routers on the Ixia interface.
-lsa_handle This option specifies on which OSPF User LSA to configure. This option *must*
be passed if the -mode option is modify or delete.
-type This option specified the type of the LSA. The choices are: router, network,
summary_pool, asbr_summary, ext_pool. The user *must* pass this option when
creating a LSA.
(DEFAULT = 0.0.0.0)
-link_state_id The router ID of the originating router. This field uniquely identified the LSA in
the link-state database.
-options The optional capabilities supported by the OSPFv2 router. For OSPFv3, use
OSPFv3 specific options. Multiple options may be combined using a logical
"or". Valid choices are:
Value Usage
ospfOptionBitTypeOfService 0x01
ospfOptionBitExternalRouting 0x02
ospfOptionBitMulticast 0x04
ospfOptionBitNSSACapability 0x08
ospfOptionBitExternalAttributes 0x10
ospfOptionBitDemandCircuit 0x20
ospfOptionBitLSANoForward 0x40
Value Usage
ospfOptionBitUnused 0x80
-router_link_mode This option specifies the mode for configuring router links in a router LSA. Note
that the modify and delete mode do not work. Valid choices are:
Value Usage
create N/A
modify N/A
delete N/A
-router_link_id Identifies the object that this router link connects to, depending on the router_
link_type option. Valid choices are:
Value Usage
-router_link_data The meaning of this option depends on the router_link_type option. Valid
choices are:
Value Usage
Value Usage
-router_link_metric The cost of using the router link, applied to all TOS values.
(DEFAULT = 0)
-net_prefix_length The length in bits of the IP address mask for the network.
-net_attached_router The option specifies the mode in configuring router IDs in the area. Note that
delete and reset does not work. Valid choices are:
Value Usage
create N/A
delete N/A
reset N/A
-attached_router_id A list of router IDs in the area, in IP address format separated by spaces.
-summary_prefix_start This option is valid for OSPFv3 summary_pool route type. The prefix address to
be advertised in the LSA. Although only prefixLength bits of the IPv6 address
are meaningful, a full IPv6 address should be specified.
-external_prefix_start This option is valid for OSPFv3 external route type. The prefix address to be
advertised in the LSA. Although only prefixLength bits of the IPv6 address are
meaningful, a full IPv6 address should be specified.
-external_prefix_step If external_number_of_prefix is greater than 1,this is the value that will be added
to the most significant external_prefix_length bits of external_prefix_start
between generated LSAs. This is also the value to increment the link_state_id.
-external_prefix_type The type of external metric. A value of 1 implies type 2 metric. A value of 0
implies type 1.
-external_prefix_forward_ If the external_metric_fbit is true, data traffic for the advertised destination will
addr be forwarded to this fully qualified IPv6 address.
-external_metric_fbit The value of the external metric's F-bit. If true, then the forwardingAddress field
is to be included in the LSA.
-external_metric_tbit The value of the external metric's T-bit. If true, then the externalRouteTag field
will be included in the LSA.
(DEFAULT = 0.0.0.0)
-no_write If this option is present, the protocol configuration will not be written to the
server.
-router_wildcard Indicates that the router is a wild-card multicast receiver and will receive multi-
cast datagrams regardless of destination.
-prefix_options An 8-bit quantity with options related to the prefixAddress. Multiple bits may be
combined using a logical or. Valid choices are:
Value Usage
-auto_update
-auto_ls_checksum
-auto_ls_age
-auto_ls_seq
-ls_checksum
-ls_age
-ls_seq
-ls_type_s_bits
-ls_type_u_bit
-nssa_number_of_prefix
-nssa_prefix_start
-nssa_prefix_length
-nssa_prefix_step
-nssa_prefix_metric
-nssa_prefix_type
-nssa_prefix_forward_addr
-router_link_idx
RETURN VALUES
Key Value
EXAMPLES See files starting with OSPFv2 and OSPFv3 in the Samples
subdirectory. Also see some of the L2VPN, L3VPN, MPLS,
and MVPN sample files for further examples of the OSPF
usage.
See the OSPF example in Appendix A, "Example APIs," for one
specific example usage.
SAMPLE INPUT
SAMPLE OUTPUT
NOTES Coded versus functional specification. In OSPFv3, asbr_summary type and the
summary_prefix_length field do not apply and are not returned in returnLis.
Caveats: Due to the problem with getting item with local lable ID, there are the
following limitaions:
- For OSPFv3, only one lsa can be created per router handle.
SEE ALSO
NAME — ::ixia::emulation_pim_config
SYNOPSIS ::ixia::emulation_pim_config
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$
-mode CHOICES create modify delete
disable enable enable_all disable_all
[-handle pimsm_session_handle]
[-interface_handle]
[-pim_mode CHOICES sm ssm]
[-type CHOICES remote_rp]
[-ip_version CHOICES 4 6]
[-count NUMERIC]
[-intf_ip_addr IP]
[-intf_ip_addr_step IP]
[-intf_ip_prefix_len RANGE 1-128]
[-router_id IP]
[-router_id_step IP]
[-neighbor_intf_ip_addr IP]
[-dr_priority NUMERIC]
[-bidir_capable CHOICES 0 1]
[-hello_interval NUMERIC]
[-hello_holdtime NUMERIC]
[-join_prune_interval NUMERIC]
[-join_prune_holdtime NUMERIC]
[-prune_delay_enable CHOICES 0 1]
[-prune_delay RANGE 100-32767]
[-override_interval RANGE 100-65535]
[-vlan_id RANGE 0-4096]
[-vlan_id_mode CHOICES fixed increment]
[-vlan_id_step RANGE 0-4096]
[-vlan_user_priority RANGE 0-7]
[-vlan_cfi CHOICES 0 1]
[-default_mdt_ip IP]
[-default_mdt_ip_incr IP DEFAULT 0]
[-gateway_intf_ip_addr IP]
[-gateway_intf_ip_addr_step IP]
[-gre_checksum_enable CHOICES 0 1
[-gre_key_enable CHOICES 0 1 DEFAULT 0]
[-gre_key_in CHOICES 0 1 DEFAULT 0]
[-gre_key_out CHOICES 0 1 DEFAULT 0]
[-generation_id_mode CHOICES increment random
constant]
[-intf_ip_prefix_length RANGE 1-128]
[-mac_address_init]
[-mvpn_enable CHOICES 0 1 DEFAULT 0]
[-mvpn_pe_count NUMERIC DEFAULT 1]
[-mvpn_pe_ip IP]
[-mvpn_pe_ip_incr IP]
[-mvrf_count NUMERIC]
[-mvrf_unique CHOICES 0 1 DEFAULT 0]
[-no_write FLAG]
[-prune_delay_tbit CHOICES 0 1]
[-send_generation_id CHOICES 0 1]
[-reset]
[-vlan CHOICES 0 1]
[-writeFlag CHOICES write nowrite
(DEPRECATED)]
[-keepalive_period RANGE 1-3600]
[-register_suppression_time RANGE 1-3600]
[-register_probe_time RANGE 1-30]
[-c_rp_addr IP]
[-c_rp_bsr_addr IP]
[-c_rp_priority RANGE 0-255]
[-c_rp_adv_holdtime NUMERIC]
[-c_rp_adv CHOICES 0 1]
[-c_rp_adv_interval RANGE 1-3600]
[-c_rp_group_mode CHOICES create delete modify]
[-c_rp_group_handle group range handle]
[-c_rp_group_addr IP]
[-c_rp_group_prefix_len RANGE 1-128]
[-c_rp_group_admin CHOICES 0 1]
[-c_rp_group_bidir CHOICES 0 1]
[-c_bsr_addr IP]
[-c_bsr_priority RANGE 0-255]
[-c_bsr_adv CHOICES 0 1]
[-c_bsr_rp_mode CHOICES create delete modify]
[-c_bsr_rp_handle RP set handle]
[-c_bsr_group_addr IP]
[-c_bsr_group_prefix_len RANGE 1-128]
[-c_bsr_group_admin CHOICES 0 1]
[-c_bsr_group_bidir CHOICES 0 1]
[-c_bsr_rp_addr IP]
[-c_bsr_rp_priority RANGE 0-255]
[-c_bsr_rp_holdtime NUMERIC]
[-bs_period RANGE 1-3600]
ARGUMENTS
-mode This option defines the action to be taken. Limitations: for modify mode, the fol-
lowing options cannot be changed: router_id, dr_priority, join_prune_holdtime,
and join_prune_interval. Valid choices are:
Value Usage
create N/A
modify N/A
delete N/A
disable N/A
enable N/A
enable_all N/A
disable_all N/A
-interface_handle A handle or list of the handles that are returned from the interface_config call.
These provide a direct link to an already existing interface and supercede the use
of the intf_ip_addr value.
-type Type of the PIM session router. Supports remote_rp type only. c_rp and c_bsr
types are not supported.
(DEFAULT = 1)
(DEFAULT = 24)
(DEFAULT = 0.0.0.1)
-router_id_step The value use to increment the router_id when count > 1.
(DEFAULT = 0.0.0.1)
(DEFAULT = 0.0.0.0)
-dr_priority The Designated Router (DR) priority assigned to this simulated router.
(DEFAULT = 0).
(DEFAULT = 0)
(DEFAULT = 30)
-hello_holdtime The length of time, in seconds, between the transmission of Hello messages.
(DEFAULT = 105)
(DEFAULT = 60)
-join_prune_holdtime The period, in seconds, during which a router receiving a Join/Prune must keep
the state alive. The default is 3 times the Join/Prune interval. If this value is
65536 (0xffff), then the timeout is infinite and if this value isi 0, the timeout is
immediate.
(DEFAULT = 180)
-prune_delay_enable If true (1), the LAN prune propagation delay is enabled for this interface.
(DEFAULT = 0)
-prune_delay The value, in milliseconds, of the LAN prune propagation delay for this inter-
face. It indicates to an upstream router how long to wait for a Join override mes-
sage before it prunes an interface.
(DEFAULT = 500)
-override_interval The delay interval, in milliseconds, for randomizing the transmission time for
override messages, which are used when scheduling a delayed Join message.
(DEFAULT = 2500)
-vlan_id If VLAN is enable on the Ixia interface, this option will configure the VLAN
number. RANGE 0-4095.
(DEFAULT = 100)
-vlan_id_mode If the user configures more than one interface on the Ixia with VLAN, he can
choose to automatically increment the VLAN tag or leave it idle for each inter-
face.
(DEFAULT = increment)
-vlan_id_step If the -vlan_id_mode is increment, this will be the step value by which the VLAN
tags are incremented. RANGE 0-4095
(DEFAULT = 1)
-vlan_user_priority VLAN user priority assigned to emulated router node. RANGE 0-7
(DEFAULT = 0)
-default_mdt_ip Defines the IP address of the default MDT, if multiple mVPN PEs are created.
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 0)
Value Usage
increment N/A
random N/A
constant N/A
-intf_ip_prefix_length The prefix length on the interface (DEFAULT = 24). NOTE: This value is being
maintained for backwards compatibility and shouldn't be used going forward.
Please use the -intf_ip_prefix_len value.
(DEFAULT = 0)
-mvpn_pe_count Defines the number of mVPN PIM routers to create by the command.
(DEFAULT = 1)
-mvpn_pe_ip Defines the IP address of the mVPN PIM router. Also defines the Router ID of
the mVPN PIM Local Router and has to be consistent with the IGP protocol
router ID. Note: The global PIM router ID shall take the interface IP address for
Router ID.
-mvpn_pe_ip_incr Defines the IP increment for the mVPN PIM router if multiples are being created.
Also defines the Router ID increment of the mVPN PIM Local Router ID and has
to be consistent with the IGP protocol router ID increment.
-mvrf_count Defines the number of mVRFs per mVPN (PIM router) which needs to be con-
sistent with the BGP mVRF count. Also when creating the GRE tunnels, each
GRE tunnel grouping needs to have the PE loopback address as the IP source.
-mvrf_unique When -mvpn_enable is 1, this option is used for creation of unique MVRFs if
enabled.
(DEFAULT 0)
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-prune_delay_tbit If true (1), the T flag bit in the LAN Prune Delay option of the Hello message is
set (= 1). Setting this bit specifies that the sending PIM-SM router has the ability
to disable Join message suppression.
-reset If this option is present, all the neightbor pair on the router is deleted.
-keepalive_period
-register_suppression_time
-register_probe_time
-c_rp_addr
-c_rp_bsr_addr
-c_rp_priority
-c_rp_adv_holdtime
-c_rp_adv
-c_rp_adv_interval
-c_rp_group_mode
-c_rp_group_handle
-c_rp_group_addr
-c_rp_group_prefix_len
-c_rp_group_admin
-c_rp_group_bidir
-c_bsr_addr
-c_bsr_priority
-c_bsr_adv
-c_bsr_rp_mode
-c_bsr_rp_handle
-c_bsr_group_addr
-c_bsr_group_prefix_len
-c_bsr_group_admin
-c_bsr_group_bidir
-c_bsr_rp_addr
-c_bsr_rp_priority
-c_bsr_rp_holdtime
-bs_period
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_pim_group_config
DESCRIPTION This procedure configures Multicast groups added to a PIM session. This allows
adding (*,G) or (S,G) entries to PIM session.
SYNOPSIS ::ixia::emulation_pim_group_config
-mode CHOICES create delete
clear_all
-session_handle pim_session_handle
[-group_pool_handle multicast_group_pool_
handle]
[-source_pool_handle source_pool_handles]
[-handle pimsm_session_handle]
[-rp_ip_addr IP]
[-group_pool_mode CHOICES send register]
[-join_prune_aggregation_factor NUMERIC]
[-wildcard_group CHOICES 0 1]
[-s_g_rpt_group CHOICES 0 1]
[-rate_control CHOICES 0 1]
[-interval RANGE 50-1000]
[-join_prune_per_interval NUMERIC]
[-register_per_interval NUMERIC]
[-register_stop_per_interval NUMERIC]
[-flap_interval RANGE 1-65535]
[-no_write FLAG]
[-register_tx_iteration_gap NUMERIC]
[-register_stop_trigger_count RANGE 1-127]
[-register_udp_destination_port RANGE 1-65535]
[-register_udp_source_port RANGE 1-65535]
[-register_triggered_sg CHOICES 0 1]
[-rp_ip_addr_step IP]
[-send_null_register CHOICES 0 2 DEFAULT 0]
[-source_group_mapping CHOICES fully_meshed
one_to_one]
[-spt_switchover CHOICES 0 1]
[-switch_over_interval RANGE 1-65535]
[-writeFlag CHOICES write nowrite]
[-border_bit CHOICES 0 1]
ARGUMENTS
-mode This option defines the action to be taken. Note: modify and delete options are
not supported at this time. Valid choices are:
Value Usage
-handle Group membership handle that associates a group pool with a PIM session. This
option is returned from previous call to this proc with "create" mode. In "mod-
ify" mode, membership handle must be used in conjunction with the session han-
dle to identify the member group pool.
-rp_ip_addr The IP address of Rendezvous Point router for the multicast group pool.
-group_pool_mode Specifies whether the membership pool is used to send or receive PIM messages.
Note: no configuration required for receive mode.
Value Usage
send Sends Join/Prunes (downstream DR) mes-
sages.
register Sends Register and NULL Register mes-
sages. (source DR) and receive Stop-Regis-
ter messages.
-join_prune_aggregation_ If > 1, enables the packing of multiple groups in a single packet; however, this
factor option does not specify the exact number groups in a packet.
-wildcard_group If true (1), enable wildcard group. When enabled, (*,*,RP) Join/ Prune messages
are sent. Takes effect only if (S,G) is disabled. (no source pool).
(DEFAULT = 0)
-s_g_rpt_group If true (1), enable (S,G,rpt). When enabled, (S,G,rpt) Join/Prune messages are
sent. Takes effect only if (S,G) is enabled. Note: only one of s_g_rpt_group,
register_triggered_sg, spt_switchover options can be enabled per multicast
group.
(DEFAULT = 0)
-rate_control If true (1), enable rate control on Join/Prune and register messages.
-interval The length of interval (in ms) during which a number of messages will be sent. If
0, send as fast as possible.
-flap_interval If flap is enabled thru the emulation_pim_control, this is the amount amount of
time, in seconds, between simulated flap events.
(DEFAULT= 60)
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-register_stop_trigger_ If register_triggered_sg option is enabled (1), this is the count of register mes-
count sages received that will trigger transmission of a (S,G) message.
(DEFAULT = 10)
(DEFAULT = 5000)
-register_udp_destination_ The number of UDP destination ports in the receiving multicast group.
port
(DEFAULT = 3000)
-register_udp_source_port The number of UDP source ports sending encapsulated UDP packets to multicast
groups via Register messages to the RP.
(DEFAULT = 3000)
-register_triggered_sg When enabled (1), sends (S,G) Join/Prune messages when matching registers
have been received. Sends register stop after registerStopTriggerCount registers
have been received. Note: only one of s_g_rpt_group, register_triggered_sg, spt_
switchover options can be enabled per PIM group.
-source_group_mapping Set the type of mapping that occurs when routes are advertised. This only applies
for (S,G) and switchover types for MGR and is meaningful for RR. Choices are:
fully_meshed, one_to_one.
-spt_switchover When enabled (1), Sends (*,G)->(S,G) switchover type. Indicates that the simu-
lated router will switch over from a non-source specific group state to a source
specific group state.
-switch_over_interval The time interval, in seconds, allowed for the switch from using the RP tree to
using a source-specific tree. Used when spt_switchover option is enabled.
(DEFAULT = 0)
-border_bit
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_pim_control
ARGUMENTS
-mode This option defines the action to be taken. Note: join and prune options are not
supported. Valid choices are:
Value Usage
stop N/A
start N/A
restart. N/A
(DEFAULT = false)
-flap_interval If flap is true, this is the amount of time, in seconds, between simulated flap
events.
-group_member_handle
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::pppox_config
DESCRIPTION This procedure configures PPPoA, PPPoEoA, PPPoE sessions for the specified
test port. This command allows the user to configure a specified number of
PPPoX sessions on the test port. Each port can have upto 32000 sessions.
SYNOPSIS ::ixia::pppox_config
-port_handle interface
-protocol CHOICES pppoa pppoeoa pppoe
-encap CHOICES vc_mux llcsnap
ethernet_ii ethernet_ii_vlan ethernet_ii_qinq
-num_sessions RANGE 1-32000
[-vci_step RANGE 1-65502]
[-vci_count RANGE 1-16000]
[-pvc_incr_mode CHOICES vpi vci both]
[-vlan_id_step RANGE 1-4094]
[-vlan_user_priority RANGE 0-7]
[-auth_mode CHOICES none pap chap
pap_or_chap]
[-username]
[-password]
[-wildcard_pound_start RANGE 0-65535]
[-wildcard_pound_end RANGE 0-65535]
[-wildcard_question_start RANGE 0-65535]
[-wildcard_question_end RANGE 0-65535]
[-mac_addr MAC]
[-max_configure_req RANGE 1-65535]
[-config_req_timeout RANGE 1-65535]
[-attempt_rate RANGE 1-1000]
[-max_outstanding RANGE 2-2000]
[-max_terminate_req RANGE 1-65535]
[-term_req_timeout RANGE 1-65535]
[-disconnect_rate RANGE 1-200]
[-ip_cp CHOICES ipv4_cp]
[-echo_req RANGE 0-1]
[-local_magic RANGE 0-1]
[-ac_select_list KEYLIST]
[-ac_select_mode CHOICES first_responding
ac_mac ac_name service_name]
[-auth_req_timeout RANGE 1-65535]
[-ac_name ANY]
[-service_name ANY]
[-service_type CHOICES any name DEFAULT any]
[-domain_group_map ]
[-port_role CHOICES access network
DEFAULT access]
[-ppp_local_mode CHOICES local_only local_may
peer_only DEFAULT peer_only]
[-ppp_local_ip IPV4]
[-ppp_local_ip_step IPV4]
[-ppp_local_iid ANY DEFAULT {00 00 00 00 00 00
00 00}]
[-ppp_peer_mode CHOICES local_only local_may
peer_only DEFAULT peer_only]
[-ppp_peer_ip IPV4]
[-ppp_peer_ip_step IPV4]
ARGUMENTS
Value Usage
pppoa N/A
pppoeoa N/A
pppoe N/A
Value Usage
vc_mux N/A
llcsnap N/A
ethernet_ii N/A
ethernet_ii_vlan N/A
ethernet_ii_qinq N/A
-pvc_incr_mode "Vpi" means increment VPI first then VCI (all based on the info configured),
"vci" means increment first VCI then VPI, "both" means increment both VPI and
VCI at the same time. Valid choices are:
Value Usage
vpi N/A
vci N/A
both N/A
Value Usage
none N/A
pap N/A
chap N/A
pap_or_chap Accept both PAP and CHAP offered by DUT.
-wildcard_pound_start Starting value for wildcard symbol 1 (\#) substitution. It is also valid to use # as
the substitution symbol.
-wildcard_pound_end Ending value for wildcard symbol 1 (\#) substitution. It is also valid to use # as
the substitution symbol.
-mac_addr <aa.bb.cc.dd.ee.ff>
-max_configure_req Specifies the maximum number of Configure Requests that can be sent without
acknowledgement.
-padr_req_timeout Specifies the timeout value in seconds for acknowledgement of a PADR Request.
-attempt_rate Specifies the rate in attempts/second at which attempts are made to bring up ses-
sions.
-max_outstanding Specifies the maximum number of sessions in progress, which includes the ses-
sions in the process of either coming up or disconnecting, at one time.
-max_terminate_req Specifies the maximum number of Terminate Requests that can be sent without
acknowledgement.
-ip_cp Specifies either IPv4 Control Protocol or IPv6 Control Protocol negotiation and
communication.
-echo_req When set to 1, enables Echo Requests, when set to 0, disables Echo Requests.
Value Usage
-ac_select_list This option is used in case ac_select_mode is chosen as ac_mac or. ac_name. It
specifies the AC MAC address and percentage pair as:
{ { 00:11:00:00:00:11|50 } { 00:11:00:00:00:12|50 } }
{ { ciscoAC1|60 } { ciscoAC2|40 } }
-ac_select_mode There are various ways AC can be selected based on the PADO received from
AC. Valid choices are:
Value Usage
first_responding N/A
ac_mac Specify the AC MAC Address and percentage
pair using -ac_select_list.
ac_name Specify the AC Name and percentage pair
using -ac_select_list option.
service_name N/A
-ac_name When the port is used as a server, this is the name sent in the PADO message.
-service_name This string is used for matching of the PADO messages for the client. For server
ports, this string is also sent by the server as the server name in the PADO mes-
sage. Any string up to 32 characters in length may be used.The string may con-
tain text characters, plus a specification of the form:
%[<start-width>:<modulo>:<repeat>]i
-service_type The type of Access Concentrator matching that is desired. Valid choices are:
Value Usage
-domain_group_map List of domain group to LNS IP mapping. Each domain group can have thou-
sands of domains. With the help of domain group it is very easy to map thou-
sands of domains to one or more LNS IP addresses. Each domain group is
defined as:
wc_start <0-65535> : starting value for wildcard symbol for the name (%) substi-
tution
wc_end <0-65535> : ending value for wildcard symbol for the name (%) substi-
tution
e.g. Say you want to setup 20 domains, out of which cisco1.com to cisco10.com
going to 192.1.1.1 & 192.1.1.2 and cisco11.com to cisco20.com going to
192.1.2.1. Also assume number of sessions per tunnel is 5. Your domain group
list will look like:
(DEFAULT access)
-ppp_local_mode Indicates the local IP address negotation mode. Valid choices are:
Value Usage
local_only The local clients only use static IP addresses.
local_may The local clients obtain their IP addresses
from a PPP server.
peer_only (default) The clients initially use static IP
addresses. If the server rejects the client’s IP
address and offers a dynamic IP address, the
client accepts it and uses the dynamic
address instead.
Value Usage
DEFAULT ::
-ipv6_pool_prefix_len The IPv6 pool prefix length. Subtracting this from the address prefix length pro-
vides the size of the PPP IP pool.
(DEFAULT 48)
(DEFAULT 1)
(DEFAULT 20)
-redial_timeout The time to wait before restarting a session if the call was dropped, expressed in
seconds.
(DEFAULT 10)
-intermediate_agent Enables the Intermediate Agent feature. This feature allows for the testing of
DSLAM/BRAS devices that translate from PPPoA traffic to PPPoE traffic.
When this option is true, the program inserts agent_circuit_id and agent_remote_
id values into PPPoE tags for each PPPoE session.
(DEFAULT 0)
-agent_circuit_id When intermediate_agent is true, the program inserts an Agent Circuit ID and an
Agent Remote ID into PPPoE tags for each PPPoE session. These IDs serve to
distinguish the CPE premises from each other. This field has a maximum length
of 32 characters. The agent_circuit_id field is defined in strings of the form:
%<start-width>:<count>:<repeat count>i.
-agent_remote_id When intermediate_agent is true, the program inserts an Agent Circuit ID and an
Agent Remote ID into PPPoE tags for each PPPoE session. These IDs serve to
distinguish the CPE premises from each other. This field has a maximum length
of 32 characters.The agentRemoteId field is defined in strings of the form:
%<start-width>:<count>:<repeat count>i.
-padi_include_tag Enables sending the Access Loop Tag in the PADI message.
-pado_include_tag Enables sending the Access Loop Tag in the PADO message.
-padr_include_tag Enables sending the Access Loop Tag in the PADR message.
-pads_include_tag Enables sending the Access Loop Tag in the PADS message.
Value Usage
none (default) IP traffic only.
tcp TCP traffic only.
udp UDP traffic only.
tcp_udp Both TCP and UDP traffic are generated.
Value Usage
-l4_src_port The initial value of the source port. Legal values are from 1 to 65535.
(DEFAULT 1)
-l4_dst_port The initial value of the destination port. Legal values are from 1 to 65535.
(DEFAULT 1)
-l4_flow_number The number of per-user flows to be generated. Legal values are from 1 to 65535.
When using ATM ports, this must be a multiple of 2.
-echo_req_interval Specifies the time interval in seconds for sending LCP echo requests. Valid only
if -echo_req is set to 1.
Value Usage
-ipcp_req_timeout Specifies the timeout value in seconds for acknowledgement of an IPCP config-
ure request.
-max_ipcp_req Specifies the maximum number of IPCP configure requests that can be sent with-
out getting an ack from the DUT.
-max_padi_req Specifies the maximum number of PADI Requests that can be sent without get-
ting a PADO from the DUT.
-max_padr_req Specifies the maximum number of PADR Requests that can be sent without get-
ting a PADS from the DUT.
-padi_req_timeout Specifies the timeout value in seconds for acknowledgement of a PADI Request.
Value Usage
inner Increment the inner VLAN ID. Based on the
vlan_id parameter first then increment the
outer vlan_id_outer parameters next.
outer Increment the outer first then inner.
both Increment both inner and outer at the same
time.
-vlan_id_outer Starting outer VLAN ID, applies to PPPoE w/Stacked VLAN only.
-vlan_id_outer_count Number of outer VLAN IDs, applies to PPPoE w/Stacked VLAN only.
-vlan_id_outer_step Step value applied to outer VLAN ID, PPPoEoE w/Stacked VLAN only.
-is_last_subport Tells the call if this is the last subport configuration being added. If so, then the
configuration is written to hardware. IxAccess can only write to hardware once,
which is why this is requred, if you going to use multiple subports in the setup.
Choices are 0 and 1 with 1 being the default
(DEFAULT = 0)
(DEFAULT = 0)
(DEFAULT = 10)
-watch_duration The time period between join and leave (the time spent to watch the channel).
(DEFAULT = 10 seconds)
-mc_group_id Unique Identifier per port for the multicast group. Type: string.
(DEFAULT = 225.0.0.1)
-group_ip_count The number of IP addresses in the group range. Maximum value is 1000.
(DEFAULT = 1)
(DEFAULT = 0.0.0.1)
Value Usage
IGMPv2 igmp version 2
IGMPv3 igmp version 3
(DEFAULT = IGMPv2) N/A
-mc_enable_packing If true, then multiple multicast addresses groups are included in each transmitted
listener response message
(DEFAULT = 0)
(DEFAULT = 1)
(DEFAULT = 0)
(DEFAULT = 0)
-mc_enable_suppress_ If true, will cause the host to suppress the transmission of a listener report that
reports duplicates one received on the interface.
(DEFAULT = 0)
-mc_enable_unsolicited If true, will cause the host to transmit unsolicited listener reports at the interval
specified in reportFrequency.
(DEFAULT = 0)
-mc_report_frequency If enableUnsolicited is set to true, then this is the frequency with which unsolic-
ited listener reports will be sent, expressed in seconds.
(DEFAULT = 120)
-mode
-sessions_per_vc
-include_id
-mac_addr_step
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::pppox_control
SYNOPSIS ::ixia::pppox_control
-handle interface
-action CHOICES connect disconnect reset clear pause
resume retry
ARGUMENTS
Value Usage
connect Brings up configured sessions.
disconnect Tears down established sessions.
reset Aborts all PPPoX sessions and resets the
PPP emulation engine on the specified
device. A session is not notified of termina-
tion, and a Terminate Request packet is not
sent to the peers.
clear Clears the status and statistics of the PPP
sessions.
pause Pauses all the PPP sessions.
resume Resumes all the PPP sessions.
retry Attempts to connect PPP sessions that have
previously failed to establish.
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log If status is failure, detailed information pro-
vided.
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::pppox_stats
DESCRIPTION Retrieves statistics for the PPPoX sessions configured on the specified test port.
SYNOPSIS ::ixia::pppox_stats
-handle interface
-mode CHOICES aggregate session
[-csv_filename]
-retry
ARGUMENTS
-handle The port for which the PPPoX sessions statistics needs to be retrieved.
-mode Specifies statistics retrieval mode as either aggregate for all configured sessions
or on a per session basis. Valid choices are:
Value Usage
-csv_filename The .csv filename that can be created under HLT library install folder
-retry
RETURN VALUES
Key Value
Key Value
aggregate.lcp_cfg_nak_tx
aggregate.term_req_rx
aggregate.term_req_tx
aggregate.term_ack_rx
aggregate.term_ack_tx
aggregate.echo_req_rx
aggregate.echo_rsp_tx
aggregate.padi_rx Ixia only
aggregate.padi_tx Ixia only
aggregate.pado_rx Ixia only
aggregate.padr_tx Ixia only
aggregate.pads_rx Ixia only
aggregate.padt_tx Ixia only
aggregate.padt_rx Ixia only
session.<session ID>.lcp_cfg_req_rx
session.<session ID>.lcp_cfg_req_tx
session.<session ID>.lcp_cfg_rej_rx
session.<session ID>.lcp_cfg_rej_tx
session.<session ID>.lcp_cfg_ack_rx
session.<session ID>.lcp_cfg_ack_tx
session.<session ID>.lcp_cfg_nak_rx
session.<session ID>.lcp_cfg_nak_tx
session.<session ID>.padr_tx Ixia only
session.<session ID>.pads_rx Ixia only
session.<session ID>.pads_tx Ixia only
session.<session ID>.padt_rx Ixia only
session.<session ID>.padt_tx Ixia only
session.<session ID>.term_req_rx
session.<session ID>.term_req_tx
session.<session ID>.term_ack_rx
session.<session ID>.term_ack_tx
session.<session ID>.echo_req_rx
session.<session ID>.echo_rsp_tx
session.<session ID>.pap_auth_req_tx
session.<session ID>.pap_auth_ack_rx
session.<session ID>.pap_auth_nak_rx
session.<session ID>.chap_auth_chal_
rx
session.<session ID>.chap_auth_rsp_
tx
session.<session ID>.chap_auth_
succ_rx
session.<session ID>.chap_auth_fail_
rx
Key Value
session.<session ID>.ipcp_cfg_req_rx
session.<session ID>.ipcp_cfg_req_tx
session.<session ID>.ipcp_cfg_ack_rx
session.<session ID>.ipcp_cfg_ack_tx
session.<session ID>.ipcp_cfg_nak_rx
session.<session ID>.ipcp_cfg_nak_tx
session.<session ID>.ipcp_cfg_rej_rx
session.<session ID>.ipcp_cfg_rej_tx
SAMPLE INPUT
1) Session ID will be PPPoE session ID for the case of PPPoE and PPPoEoA. For
the case of PPPoA, session ID will be VPI/VCI.
aggregate.atm_mode
aggregate.disconnecting
aggregate.connect_attempts
aggregate.disconnect_success
aggregate.sessions_down
aggregate.disconnect_failed
SEE ALSO
NAME — ::ixia::emulation_rip_config
DESCRIPTION This procedure will configure RIP routers in a particular interface. The user can
create single or multiple RIP routers.
SYNOPSIS ixia::emulation_rip_config
-mode CHOICES create delete modify
enable disable
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-
9]+$]
[-handle ]
[-session_type CHOICES ripv1 ripv2 ripng
DEFAULT ripv2]
[-count NUMERIC (DEFAULT 1)]
[-intf_ip_addr IP]
[-intf_prefix_length RANGE 1-128]
[-intf_ip_addr_step IP DEFAULT 1]
[-interface_metric RANGE 0-15 (DEFAULT 0)]
[-neighbor_intf_ip_addr IP]
[-neighbor_intf_ip_addr_step IP (DEFAULT 0)]
[-update_interval RANGE 1-1000 (DEFAULT 30)]
[-update_interval_offset RANGE 0-15 (DEFAULT 0)]
[-authentication_mode CHOICES null text md5]
[-password ALPHANUM]
[-update_mode CHOICES no_horizon
split_horizon poison_reverse discard]
[-vpi RANGE 0-255]
[-vci RANGE 0-65535]
[-vpi_step RANGE 0-256]
[-vci_step RANGE 0-256]
[-vlan_id RANGE 0-4095]
[-vlan_id_mode CHOICES fixed increment
(DEFAULT increment)]
[-vlan_id_step RANGE 0-4096 (DEFAULT 1)]
[-vlan_user_priority RANGE 0-7 (DEFAULT 0)]
[-router_id RANGE 0-65535]
[-router_id_step RANGE 0-65535 (DEFAULT 1)]
[-send_type CHOICES multicast
broadcast_v1broadcast_v2]
[-receive_type CHOICES v1 v2 v1_v2 ignore
store]
[-time_period RANGE 0-999999]
[-num_routes_per_period RANGE 0-999999 (DEFAULT 0)]
[-mac_address_init MAC (DEFAULT 0000.0000.0000)]
[-no_write FLAG]
[-reset FLAG]
[-md5_key ALPHANUM]
[-md5_key_id RANGE 1-255 ]
[-triggered_interval RANGE 1-5000 (DEFAULT 5000)]
[-expiration_interval RANGE 1-16777215
(DEFAULT 180000)]
[-garbage_interval RANGE 1-16777215
(DEFAULT 120000)]
[-vlan_cfi CHOICES 0 1 ]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
-handle RIP session handle used for mode other than create.
(DEFAULT = ripv2)
(DEFAULT = 1)
-intf_ip_addr_step The IP address step between each session for multiple sessions.
(DEFAULT = 1)
-interface_metric The value of the metric associated with the interface. This value is added to the
metric in the routing table before transmitting updates through this interface. For
RIPng only.
(DEFAULT = 0)
-neighbor_intf_ip_addr_ Define neighbor's interface IP for multiple sessions across multiple sub-inter-
step faces.
(DEFAULT = 0)
-update_interval The time, in seconds, between transmitted update messages. RANGE 1-1000.
(DEFAULT = 30)
(DEFAULT = 0)
-authentication_mode For RIPv2 only. Valid choices are: null text md5.
-password For RIPv2 only. The password is used in simple text authentication mode.
-update_mode Select learned routes to be included in outgoing RIP update (response message).
Valid choices are:
Value Usage
-vlan_id_mode For multiple neighbor configuration, configures the VLAN ID mode to fixed or
increment.
(DEFAULT = increment)
-vlan_id_step When vlan_id_mode is set to increment, this defines the step for every VLAN.
RANGE 0-4096
(DEFAULT = 1)
-vlan_user_priority VLAN user priority assigned to emulated router node. RANGE 0-7.
(DEFAULT = 0)
-router_id Router ID of RIP session router, use intf_ip_address if not specified by user.
(DEFAULT 1)
-send_type Configure version & destination address of outgoing RIP packets. The choices
for send type are: multicast broadcast_v1 broadcast_v2. Multicast is for RIPv2
only. Broadcast address can be used for both v1 & v2.
-receive_type Configure which version of RIP incoming packets is received. The choices for
receive type are v1, v2, v1_v2 for RIPv1 and RIPv2, and ignore and store for
RIPng.
-time_period The time period to use for throttling updates, in milliseconds. A value of 0 dis-
ables this feature and transmits all routes immediately for all updates. RANGE 0-
999999.
-num_routes_per_period The number of routes to transmit every time period in milliseconds. A value of 0
disables this feature and transmits all routes immediately for all updates. RANGE
0-999999. (DEFAULT = 0)
-reset Clear all existent routers on the specified port. Valid only in create mode.
-md5_key
-md5_key_id
-triggered_interval
-expiration_interval
-garbage_interval
-vlan_cfi
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_rip_route_config
DESCRIPTION This procedure will configure RIP routes to a targeted RIP router.
SYNOPSIS ::ixia::emulation_rip_route_config
-mode CHOICES create modify delete
[-handle ]
[-route_handle ]
[-num_prefixes RANGE 1-1000000]
[-prefix_start IP ]
[-prefix_length RANGE 1-128]
[-prefix_step IP ]
[-metric RANGE 1-16]
[-next_hop IP ]
[-route_tag RANGE 0-65535]
[-no_write FLAG ]
[-reset ]
ARGUMENTS
-mode The action to be taken. The choices for mode are: create, modify, and delete.
-route_handle The route handle is used for modes other than create.
-prefix_step How to increment prefixes. Default is using prefix length (minimum step). The
value would be rounded to the prefix length.
(DEFAULT = 1)
-next_hop The immediate next hop IP address on the way to the destination prefix. Used by
RIPv2 & RIPng, default is all zeros IP address which indicates the next hop is
update source address.
-route_tag An arbitrary value associated with the routes in this range. Used by RIPv2 &
RIPng. RANGE 0-65535.
(DEFAULT = 0)
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-reset Will erase any Route Range configuration on the targeted RIP router.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_rip_control
SYNOPSIS ::ixia::emulation_rip_control
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-handle]
[-mode CHOICES stop start restart flap]
[-advertise]
[-withdraw ]
[-flap_routes]
[-flap_count NUMERIC]
[-flap_interval_time NUMERIC]
[-flap_down_time NUMERIC]
ARGUMENTS
-flap_routes
-flap_count
-flap_interval_time
-flap_down_time
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_rsvp_config
SYNOPSIS ::ixia::emulation_rsvp_config
-port_handle REGEXP ^[0-9]+/[0-9]+/[0-
9]+$
-mode CHOICES create enable
disable modify delete
[-handle rsvp_session_handle]
[-interface_handle]
[-count NUMERIC]
[-intf_ip_addr IP]
[-intf_prefix_length RANGE 1-32]
[-intf_ip_addr_step IP]
[-neighbor_intf_ip_addr IP]
[-neighbor_intf_ip_addr_step IP]
[-refresh_interval NUMERIC]
[-refresh_retry_count NUMERIC]
[-summary_refresh CHOICES 0 1]
[-srefresh_interval NUMERIC]
[-hello_msgs CHOICES 0 1]
[-hello_interval RANGE 1-65535]
[-hello_retry_count RANGE 1-255]
[-refresh_reduction CHOICES 0 1]
[-reliable_delivery CHOICES 0 1]
[-bundle_msgs CHOICES 0 1]
[-resv_confirm CHOICES 0 1]
[-record_route CHOICES 0 1]
[-ttl CHOICES 1 64]
[-egress_label_mode CHOICES nextlabel imnull
exnull]
[-max_label_value RANGE 1-1048575]
[-min_label_value RANGE 1-1048575]
[-vpi RANGE 0-255]
[-vci RANGE 0-65535]
[-vpi_step RANGE 0-256]
[-vci_step RANGE 0-256]
[-vlan_id RANGE 0-4096]
[-vlan_id_mode CHOICES fixed increment]
[-vlan_id_step RANGE 0-4096]
[-vlan_user_priority RANGE 0-7]
[-path_state_refresh_timeout RANGE 1-65535]
[-resv_state_refresh_timeout RANGE 1-65535]
[-router_alert CHOICES 1]
[-path_state_timeout_count RANGE 1-255]
[-resv_state_timeout_count RANGE 1-255]
[-ip_version CHOICES 4]
[-mac_address_init]
[-reset]
[-no_write FLAG]
[-vlan CHOICES 0 1]
[-writeFlag CHOICES write nowrite
(DEPRECATED)]
ARGUMENTS
-mode This option defines the action to be taken. Valid choices are:
Value Usage
-interface_handle A handle or list of the handles that are returned from the interface_config call.
These provide a direct link to an already existing interface and supercede the use
of the intf_ip_addr value.
(DEFAULT = 1)
(DEFAULT = 24)
-refresh_interval Specifies the time in milliseconds between seding RSVP messages to refresh
state.
-refresh_retry_count Specifies the number of refresh intervals to wait before RSVP state is turned
down.
(DEFAULT = 0)
-srefresh_interval Specifies the time interval in ms to gather refresh messages that would have been
sent out individually. Messages are sent out as a single refresh message upon
interval expiration or when the message size exceeds the MTU.
-hello_interval Specifies the timeout interval in ms to wait before sending a Hello message.
-hello_retry_count Specifies the number of timeout intervals to wait until a session timeout occurs.
-reliable_delivery If set to 1, sends message IDs and acknowledgements for each message received.
If set to 0, which is the default value, does not send message IDs. refresh_reduc-
tion, reliable_delivery, summary_refresh, and bundle_msgs work together. If
anyone of them is turns on, all the options are enabled.
-bundle_msgs If set to 1, combines multiple RSVP messages into a single PDU to reduce pro-
cessing overhead and bandwidth consumption. If set to 0, does not combine mes-
sages. refresh_reduction, reliable_delivery, summary_refresh, and bundle_msgs
work together. If anyone of them is turned on, all the options are enabled.
-resv_confirm If set to 1, enables and requires Resv confirmation with final parameters from the
egress. If set to 0, which is the default value, disables the sending of Resv confir-
mation messages.
-record_route If set to 1, includes the RECORD_ROUTE object in the Path message. If set to 0,
does not include the RECORD_ROUTE object in the Path message.
-ttl Time-to-live value used n RSVP header. It is not user configurable. By default it
is 1 for hello messages and for anything else it is 64.
-egress_label_mode Specifies the label advertisement for the egress of an LSP as one of the follow-
ing. Valid choices are:
Value Usage
nextlabel Advertises the next available label.
exnull Advertises label 9, the explicit null label.
imnull Advertises label 3, the implicit null label.
(DEFAULT = 1)
(DEFAULT = 10)
-vpi_step The step value used for incrementing the -vpi option. RANGE 0-255
(DEFAULT = 1)
-vci_step The step value used for incrementing the -vci option. RANGE 0-65535
(DEFAULT = 1)
-vlan_id If VLAN is enable on the Ixia interface, this option will configure the VLAN
number. RANGE 0-4095
(DEFAULT = 100)
-vlan_id_mode If the user configures more than one interface on the Ixia with VLAN, he can
choose to automatically increment the VLAN tag or leave it idle for each inter-
face. Valid choices are:
Value Usage
-vlan_id_step If the -vlan_id_mode is increment, this will be the step value by which the VLAN
tags are incremented. RANGE 0-4095
(DEFAULT = 1)
-vlan_user_priority VLAN user priority assigned to emulated router node. RANGE 0-7
(DEFAULT = 0)
-path_state_refresh_ Specifies the timeout interval in seconds to wait before sending a Path message.
timeout
-resv_state_refresh_ Specifies the timeout interval in seconds to wait before sending a Resv message.
timeout
-router_alert If set to 1, enables a router to recognize the router alert option in a packet. This
option is always set to 1.
-path_state_timeout_count Specifies the number of Path state intervals to wait before a teardown message is
sent.
-resv_state_timeout_count Specifies the number of Resv state intervals to wait before a teardown message is
sent.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-reset If this option is present, all the neightbor pair on the router is deleted.
-rapid_retx_delta
-rapid_retx_interval
-rapid_retx_limit
-max_ack_delay
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_rsvp_tunnel_config
SYNOPSIS ::ixia::emulation_rsvp_tunnel_config
-port_handle REGEXP ^[0-9]+/[0-9]+/
[0-9]+$
-mode CHOICES create delete
modify
-handle
[-tunnel_pool_handle rsvp_tunnel_pool_
handle]
[-egress_ip_addr IP]
[-egress_ip_step IP]
[-count RANGE 1-999999]
[-ingress_ip_addr IP]
[-ingress_ip_step IP]
[-tunnel_id_start RANGE 0-65535]
[-tunnel_id_step RANGE 0-65535]
[-lsp_id_start RANGE 0-65535]
[-sender_tspec_token_bkt_rate NUMERIC]
[-sender_tspec_token_bkt_size NUMERIC]
[-sender_tspec_peak_data_rate NUMERIC]
[-sender_tspec_min_policed_size NUMERIC]
[-sender_tspec_max_pkt_size NUMERIC]
[-adspec CHOICES 1]
[-session_attr CHOICES 1]
[-session_attr_setup_priority RANGE 0-7]
[-session_attr_hold_priority RANGE 0-7]
[-session_attr_name]
[-session_attr_local_protect CHOICES 0 1]
[-session_attr_label_record CHOICES 0 1]
[-session_attr_se_style CHOICES 0 1]
[-session_attr_bw_protect CHOICES 0 1]
[-session_attr_flags RANGE 0-255]
[-session_attr_resource_affinities CHOICES 0 1]
[-session_attr_ra_exclude_any RANGE 0-0xFFFFFFFF]
[-session_attr_ra_include_any RANGE 0-0xFFFFFFFF]
[-session_attr_ra_include_all RANGE 0-0xFFFFFFFF]
[-ero CHOICES 0 1]
[-ero_list_type CHOICES ipv4 as]
[-ero_list_loose CHOICES 0 1]
[-ero_list_ipv4 IP]
[-ero_list_pfxlen RANGE 0-128]
[-ero_list_as_num NUMERIC]
[-rro CHOICES 0 1]
[-rro_list_type CHOICES ipv4 label]
[-rro_list_ipv4 IP]
[-rro_list_label NUMERIC]
[-rro_list_flags RANGE 0-255]
[-session_attr_reroute CHOICES 0 1]
[-session_attr_node_protect CHOICES 0 1]
[-ingress_bandwidth NUMERIC]
[-tunnel_id_count RANGE 0-65535]
[-lsp_id_count RANGE 0-65535]
[-lsp_id_step RANGE 0-65535]
ARGUMENTS
-tunnel_pool_handle RSVP-TE tunnel pool handle. Used for mode other than create.
-egress_ip_step This value is used to increment egress IP address when configuring multiple tun-
nels.
-ingress_ip_step This value is used to increment ingress IP address when configuring multiple
tunnels.
-tunnel_id_step This value is used to increment the tunnel ID when configuring multiple tunnels
("-count" is greater than 1).
-sender_tspec_token_bkt_ The token bucket rate associated with the RSVP Senders Traffic Specification.
rate Expressed in bytes per second.
-sender_tspec_token_bkt_ TThe token bucket size associated with the RSVP Senders Traffic Specification.
size Expressed in bytes.
-sender_tspec_peak_data_ The peak data rate associated with the RSVP Senders Traffic Specification.
rate Expressed in bytes per second.
-sender_tspec_min_ The minimum policed unit size associated with the RSVP Senders Traffic Speci-
policed_size fication. Expressed in bytes.
-sender_tspec_max_pkt_ The maximum packet size associated with the RSVP Senders Traffic Specifica-
size tion. Expressed in bytes.
-adspec If true (1), enable INTSERV ADSPEC object in PATH message. This option is
always set to true.
-session_attr_setup_ This is the session priority with respect to taking resources, such as preempting
priority another session. The valid range is from 0 to 7. The highest priority is indicated
by 0.
(DEFAULT = 7)
-session_attr_hold_priority This is the session priority with respect to holding resources, such as keeping a
session during preemption. The valid range is from 0 to 7. The highest priority is
indicated by 0.
(DEFAULT = 7)
(DEFAULT = "")
-session_attr_local_ This permits transit routers to use a local traffic rerouting repair mechanism, in
protect_desired the event of a fault on an adjacent downstream link or node. This may result in a
violation of the explicit route object.
(DEFAULT = true)
-session_attr_label_record This indicates that label information is to be included when doing a record route
operation.
(DEFAULT = false)
-session_attr_se_style This indicates that the tunnel ingress node may reroute this tunnel without tearing
it down. A tunnel egress node should use the SE Style when responding with an
RESV message.
(DEFAULT = true)
-session_attr_bw_protect This indicates that bandwidth protection is desired from the PLRs along the
backup protected LSP path.
(DEFAULT = false)
-session_attr_ra_exclude_ Represents a set of attribute filters associated with a tunnel, any of which renders
any a link unacceptable.
(DEFAULT = 00 00 00 00)
-session_attr_ra_include_ Represents a set of attribute filters associated with a tunnel, any of which makes a
any link acceptable (with respect to this test). When all bits are set to 0 (null set), it
automatically passes.
(DEFAULT = 00 00 00 00)
-session_attr_ra_include_ Represents a set of attribute filters associated with a tunnel, all of which must be
all present for a link to be acceptable (with respect to this test). When all bits are set
to 0 (null set), it automatically passes.
(DEFAULT = 00 00 00 00)
-ero_list_type Type of ERO entries. Note ipv6 is not supported. Valid choices are:
Value Usage
ipv4 N/A
as N/A
-ero_list_loose Indicates whether the ERO item is to be considered a LOOSE item or a STRICT
item. 1 for LOOSE; 0 for STRICT
-ero_list_ipv4 List of IPv4 prefixes (one for each entry) used by IPv4 type only.
(DEFAULT = 32)
(DEFAULT = 0)
-rro_list_type Type of RRO entries. Note ipv6 is not supported. Valid choices are:
Value Usage
ipv4 N/A
label N/A
-rro_list_ipv4 List of IPv4 prefixes (one for each entry) used by IPv4 type only.
(DEFAULT = 32)
Value Usage
(DEFAULT = 0)
(DEFAULT = 0.0)
-lsp_id_step The value to increment the LSP ID when configuring multiple LSPs ("-count" is
greater than 1).
-ero_mode Indicates whether the DUTs address is to be prepended to the ERO list and
whether it is a LOOSE or STRICT entry. Valid choices are:
Value Usage
loose N/A
strict N/A
none N/A
-ero_dut_pfxlen If the DUTs address is to be prepended to the ERO list, this indicates what prefix
length is to be used for the entry.
(DEFAULT = 32)
-rro_list_ctype If the type field is IP, then this is the C_Type of the included Label Object.
(DEFAULT = 0)
-fast_reroute_bandwidth An element of the FAST_REROUTE object that indicates the bandwidth esti-
mate for the protection path in bytes per second, expressed in 32-bit IEEE float-
ing point format.
(DEFAULT = 0.0)
-fast_reroute_holding_ An element of the FAST_REROUTE object that indicates the priority of the
priority backup path with respect to holding resources, in the range of 0 (highest) to
7(lowest).
(DEFAULT = 7)
(DEFAULT = 3)
-fast_reroute_include_all An element of the FAST_REROUTE object that represents a set of attribute fil-
ters associated with a backup path, all of which must be present to render a link
acceptable.
-fast_reroute_include_any An element of the FAST_REROUTE object that represents a set of attribute fil-
ters associated with a backup path, any of which render a link acceptable.
-fast_reroute_setup_ An element of the FAST_REROUTE object that indicates the priority of the
priority backup path with respect to taking resources, in the range of 0 (highest) to 7
(lowest).
(DEFAULT = 7)
-facility_backup For fast reroute, indicates that the use of the Facility Backup feature is enabled.
This may be combined with one_to_one_backup option. fast_reroute option
must be true for this option to have any effect.
(DEFAULT = 0)
-one_to_one_backup For fast reroute, indicates that the use of the Facility Backup feature is enabled.
This may be combined with facility_backup option. fast_reroute option must be
true for this option to have any effect.
(DEFAULT = 0)
-send_detour Enables the generation of the fast reroute DETOUR object, using the values in
the PLR list. fast_reroute option must be true for this option to have any effect.
(DEFAULT = 0)
-plr_id The IPv4 address identifying the beginning point of detour which is a PLR. Any
local address on the PLR can be used.
-avoid_node_id The IPv4 address identifying the immediate downstream node that the PLR is
trying to avoid. The Router ID of the downstream node is the preferred value.
-no_write If this option is present, the configuration is not written to the hardware. This
option can be used to queue up multiple configurations before writing to the
hardware.
-adspec_comp_mtu
-adspec_ctrl_load
-adspec_est_path_bw
-adspec_hop_count
-adspec_min_path_latency
-ero_list_ipv6
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
Current parser does not support hex. The following options have RANGE 0-
0xFFFFFFFF. It is changed to RANGE 0-2147483647 for now. Note:
2147483647 is the max number supported by the current tcl 8.0.
-session_attr_ra_exclude_any
-session_attr_ra_include_any
-session_attr_ra_include_all
SEE ALSO
NAME — ::ixia::emulation_rsvp_control
SYNOPSIS ::ixia::emulation_rsvp_control
-mode CHOICES stop start restart
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-handle]
[-teardown list_of_tunnel_pool_handles]
[-restore list_of_tunnel_pool_handles]
ARGUMENTS
Value Usage
stop stop the protocol
start start the protocol
restart restart the protocol
-teardown Tear down the list of LSP tunnels when mode is stop or restore.
-restore Set up the list of LSP tunnels when mode is start or restore.
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
SEE ALSO
NAME — ::ixia::emulation_rsvp_info
DESCRIPTION For a test port running RSVP emulation, retrieves the RSVP tunnel
SYNOPSIS ::ixia::emulation_rsvp_info
[-mode CHOICES stats clear_stats settings
neighbors labels DEFAULT stats ]
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-handle ]
ARGUMENTS
-handle The RSVP handle from which the port_handle should be extracted and RSVP
tunnel information is to be retrieved from that port_handle.
RETURN VALUES
Key Value
Key Value
msg_tx Cisco only
lsp_created Cisco only
lsp_deleted Cisco only
hellos_rx Cisco only
hellos_tx Cisco only
total_setup_time Cisco only
min_setup_time Cisco only
max_setup_time Cisco only
ingress_path_tx Cisco only
egress_path_rx Cisco only
ingress_resv_rx Cisco only
egress_resv_tx Cisco only
ack_rx Cisco only
ack_tx Cisco only
nack_rx Cisco only
nack_tx Cisco only
srefresh_rx Cisco only
srefersh_tx Cisco only
bundle_rx Cisco only
bundle_tx Cisco only
msg_retx Cisco only
out_of_order_msg Cisco only
SAMPLE INPUT
SAMPLE OUTPUT
For settings:
intf_ip_address a.b.c.d
neighbor_intf_ip_addr a.b.c.d
For neighbors:
For labels:
{labels {\
{LSP_tunnel1 label1} \
{LSP_tunnel2 label2} \
{LSP_tunneln labeln} \
SEE ALSO
NAME — ::ixia::emulation_rsvp_tunnel_info
DESCRIPTION For a test port running RSVP emulation, retrieves the RSVP tunnel
SYNOPSIS ::ixia::emulation_rsvp_tunnel_info
[-port_handle REGEXP ^[0-9]+/[0-9]+/[0-9]+$]
[-handle ]
ARGUMENTS
RETURN VALUES
Key Value
SAMPLE INPUT
SAMPLE OUTPUT
total_lsp_count
inbound_lsp_count
outbound_lsp_count
outbound_up_count
outbound_down_count
SEE ALSO
NAME — ::ixia::emulation_telnet_config
DESCRIPTION This command is used to construct the environment required for the TELNET
protocol to be used. It sets for the client or server side of the emulation the con-
figuration of TCP parameters used for a TELNET transaction, the presence or
absence of an emulated router, the range of ports where the process can open
sockets, the buffers sizes. To this environment it can add network ranges to
define the TELNET client or server networks, or it can add DNS servers, or a
pool of IP addresses to be used for an emulated router between the network range
and the testing port. Multiple network ranges, DNS servers and suffixes or IP
address pools can be added to a client or server TELNET configuration.
SYNOPSIS ::ixia::emulation_telnet_config
-mode CHOICES add remove
modify enable disable
[-property CHOICES telnet network
router_addr dns]
[-handle ANY]
[-target CHOICES client
server]DEFAULT client]
[-port_handle REGEXP ^[0-9]+/[0-9]+/
[0-9]+$]
[-mac_mapping_mode CHOICES macip macport
DEFAULT macip]
[-source_port_from RANGE 1024-65535
DEFAULT 1024]
[-source_port_to RANGE 1024-65535
DEFAULT 65535]
[-emulated_router_gateway IP DEFAULT 0.0.0.0]
[-emulated_router_subnet MASK
DEFAULT 255.255.255.0]
[-dns_cache_timeout NUMERIC DEFAULT 30000]
[-grat_arp_enable CHOICES 0 1 DEFAULT 0]
[-congestion_notification_enable CHOICES 0 1 DEFAULT 0]
[-time_stamp_enable CHOICES 0 1 DEFAULT 1]
[-rx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-tx_bandwidth_limit_enable CHOICES 0 1 DEFAULT 0]
[-fin_timeout NUMERIC DEFAULT 60]
[-keep_alive_interval NUMERIC DEFAULT 7200]
[-keep_alive_probes NUMERIC DEFAULT 9]
[-keep_alive_time NUMERIC DEFAULT 75]
[-receive_buffer_size NUMERIC DEFAULT 4096]
[-retransmit_retries NUMERIC DEFAULT 15]
[-rx_bandwidth_limit NUMERIC]
[-rx_bandwidth_limit_unit CHOICES kb mb
DEFAULT kb]
[-syn_ack_retries NUMERIC DEFAULT 5]
[-syn_retries NUMERIC DEFAULT 5]
[-transmit_buffer_size NUMERIC DEFAULT 4096]
[-tx_bandwidth_limit NUMERIC]
[-tx_bandwidth_limit_unit CHOICES kb mb
DEFAULT kb]
[-ip_address_start IP DEFAULT 198.18.0.1]
[-mac_address_start MAC
DEFAULT 00.C6.12.00.01.00]
[-gateway IP DEFAULT 0.0.0.0]
ARGUMENTS
-target Specifies where this network will be added: on the client side or on the server
side. Values: client, server.
(DEFAULT = client)
-property Defines types of properties of the TELNET configuration. Mandatory for -mode
add. Valid choices are:
Value Usage
-mode Defines types of actions to be taken on the "-property" object. Values: add,
remove, modify, enable, disable.
-mac_mapping_mode Indicates whether one MAC address will be associated with each IP address or
with each port. The use of the latter option indicates that an emulated router is to
be used. Values are: macip, macport.
(DEFAULT = macip)
-source_port_from Defines the beginning of the range of ephemeral port numbers used to establish
connections to the server. The end of the range is specified by source_port_to.
Valid values are from 1024 to 65535.
(DEFAULT = 1024)
-source_port_to Defines the end of the range of ephemeral port numbers used to
establish connections to the server. Valid values are from 1024 to 65535.
(DEFAULT = 65535)
(DEFAULT = 0.0.0.0)
(DEFAULT = 255.255.255.0)
-dns_cache_timeout The length of time, in milliseconds, the program should continue to refer to the
previously resolved host name stored in its cache before discarding the entry and
accessing the DNS server to re-resolve the host name.
(DEFAULT = 30000)
-grat_arp_enable Values: 0 or 1. If true, before beginning a test, the program will ARPs the gate-
ways so that the DUT can learn the MAC addresses used on the subnet. If a sub-
net is set to MAC per Port, the subnet sends one ARP request. If a subnet is set to
MAC per IP, each host on the subnet sends an ARP request.
(DEFAULT = 0)
-congestion_notification_ Values: 0 or 1. If true, the client or server uses bits from the Type of Service
enable (TOS) field and the TCP packet header’s Reserved field to support Explicit Con-
gestion Notification (ECN). ECN uses the bits as follows:
TOS bit 6 is the ECT (Explicit Congestion Transport) bit, which a recipient sets
to indicate that it supports ECN.
TOS bit 7 is the CE (Congestion Experienced) bit, which the recipient sets if its
average queue length exceeds a threshold.
TCP header Reserved field bit 5 the CWR (Congestion Window Reduced) bit.
A SYN packet with both ECN-Echo and CWR bits indicates the sender supports
ECN in both directions (as sender and receiver). A combined SYN+ACK packet
sets only ECN to indicate ECN capability. If you enable ECN, the sender sets the
ECT bit to indicate that it supports ECN. If the sender receives a packet with the
CE bit set, it returns an ACK with the ECN-Echo bit set. If a sender receives a
packet with ECN-Echo set, it should reduce its window size. The first packet it
sends after reducing its window size has the CWR bit set. The sender will repeat-
edly reduce its window size until it receives a packet in return with the CWR bit
from the recipient.
(DEFAULT = 0)
-time_stamp_enable Values: 0 or 1. If true, the client or server inserts a timestamp into each packet.
(DEFAULT = 1)
-fin_timeout The amount of time a TCP implementation will keep a TCP connection open
that it has closed itself, i.e., sent a FIN for (it has no more data to send).
(DEFAULT = 60)
-keep_alive_interval The interval, in seconds, between repeated keep alive probes sent.
(DEFAULT = 7200)
-keep_alive_probes The number of keep alive probes that the program sends out before determining
that a link is down.
(DEFAULT = 9)
-keep_alive_time If a link has no activity on it for the time specified, in seconds, the program
begins sending keep alive probes to determine if the link is still up.
(DEFAULT = 75)
-receive_buffer_size The size of the receive buffer. This affects the TCP receive window size. If you
increase the size of the receive buffer, the program enlarges the receive window.
If you are experiencing high latency on your test network, you can increase the
size of the receive buffer to improve the throughput.
(DEFAULT = 4096)
-retransmit_retries The number of times the program attempts to re-transmit a packet for which it
has not received an acknowledgement.
(DEFAULT = 15)
Dependencies: -rx_bandwidth_limit_enable 1.
-rx_bandwidth_limit_unit The units used in rx_bandwidth_limit: kilobytes per second or megabytes per
second. Values: kb | mb.
Dependencies: -rx_bandwidth_limit_enable 1.
(DEFAULT = kb)
(DEFAULT = 5)
-syn_retries The number of times IxLoad re-transmits an un-acknowledged SYN for an active
TCP connection.
(DEFAULT = 5)
-transmit_buffer_size The size of the transmit buffer. This affects the TCP transmit window size. If you
increase the size of the transmit buffer, IxLoad enlarges the transmit window. If
you are experiencing high latency on your test network, you can increase the size
of the transmit buffer to improve the throughput.
(DEFAULT = 4096)
-tx_bandwidth_limit The maximum amount of transmit bandwidth on each port allowed to the clients
or servers. You can use this parameter to simulate the bandwidth available from
different types of Internet access technologies such as dial-up, ISDN, cable
modem, or T1. If you do not configure this option, the program uses all the band-
width available on the test ports.
Dependencies: tx_bandwidth_limit_enable 1.
-tx_bandwidth_limit_unit The units used in tx_bandwidth_limit: kilobytes per second or megabytes per
second. Value: kb | mb.
(DEFAULT = kb)
Dependencies: tx_bandwidth_limit_enable 1.
(DEFAULT = 198.18.0.1)
-mac_address_start The first MAC address for the network range. This is not used if the value of
mac_mapping_mode is set to "macport".
(DEFAULT = 00.C6.12.00.01.00)
-gateway The gateway associated with all IP addresses in the network range.
(DEFAULT = 0.0.0.0)
(DEFAULT = 100)
-ip_increment_step Indicates the increment to be applied between generated IP addresses. The format
of this option is a dotted-quad IP address, in which only one of the octets may be
non-zero. For example: 0.0.0.1, 0.0.2.0, 0.22.0.0 and 4.0.0.0 are valid values
which will increment a different octet each time. Values which use more than one
octet, for example 0.0.1.1, are illegal.
(DEFAULT = 0.0.0.1)
-mac_increment_step Indicates the increment to be applied between generated MAC addresses. The
format of this option is a colon separated MAC address, in which only one of the
octets may be non-zero. For example: 00.00.00.00.00.01, 00.00.00.00.22.00,
00.00.00.33.00.00, 00.00.44.00.00.00, 00.AA.00.00.00.00 and
0C.00.00.00.00.00 are valid values which will increment a different octet each
time. Values which use more than one byte, for example 00.00.00.00.01.01, are
illegal.
(DEFAULT = 00.00.00.00.00.01)
-mss If mss_enable is true, this option specifies the TCP Maximum Segment Size in
the MSS (RX) field. Otherwise, clients or servers advertise their TCP Maximum
Segment Size as 1460 bytes.
(DEFAULT = 1460)
(DEFAULT = 0)
(DEFAULT = 255.255.0.0)
(DEFAULT = 0)
-dns_suffix Define suffixes to be appended to partial host names. Each is tried in order by the
DNS server(s).
(DEFAULT = 194.18.0.1)
(DEFAULT = 1)
(DEFAULT = 00.C2.12.00.01.00)
(DEFAULT = 255.255.0.0)
-pool_vlan_enable If true, VLAN tags are inserted into the IP frame. Value: 0 or 1.
(DEFAULT = 0)
RETURN VALUES
Key Value
status $::SUCCESS | $::FAILURE
log When status is $::FAILURE, contains more
information
handles the handles of a TELNET configuration, net-
work, router, pool, dns server
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_telnet_traffic_config
DESCRIPTION The command is used to construct the model for client or server traffic to be
applied, or respectively, handled during the test. This traffic is composed by
commands created by client TELNET agents which are handled by server TEL-
NET agents. Multiple agents can be added to form a TELNET traffic.
SYNOPSIS ::ixia::emulation_telnet_traffic_config
-mode CHOICES add remove modify enable
disable
-property CHOICES traffic agent
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-default_command_prompt ANY]
[-options_enable CHOICES 0 1 DEFAULT 0]
[-expect_timeout NUMERIC DEFAULT 100]
[-esm_enable CHOICES 0 1]
[-esm NUMERIC DEFAULT 1460]
[-command CHOICES open login password end
exit think loop_begin loop_end ]
[-expect ANY]
[-send ANY]
[-server_close_command ANY]
[-server_command_prompt ANY DEFAULT #]
[-echo_enable CHOICES 0 1 DEFAULT 1]
[-linemode_enable CHOICES 0 1 DEFAULT 0]
[-port RANGE 0-65635 DEFAULT 23]
[-goahead_enable CHOICES 0 1 DEFAULT 0]
ARGUMENTS
-handle Handle of a telnet configuration when -property traffic and -mode add. Or handle
of a traffic property , used when -property is agent and -mode is add. Also the
handle of a traffic, agent or command property when -property is respectively
traffic, agent and -mode is modify | remove | enable | disable.
-target Specifies where this traffic will be added: on the client side or on the server side.
Values: client or server.
(DEFAULT = client)
-property Defines types of properties of the TELNET traffic configuration. Command han-
dles operations required for defining commands for the telnet agents. Valid
choices are:
Value Usage
-mode Defines types of actions to be taken on the -property object. Values: add | remove
| modify | enable | disable.
-options_enable Enables options negotiation with the telnet server. Values: 0 or 1. Dependencies:
-property agent with -mode add | modify.
(DEFAULT = 0)
-expect_timeout The time in seconds to wait for receipt of the expected response.
(DEFAULT = 120)
-esm_enable If true enables the use of ESM. Value: 0 or 1. Dependencies: -property agent with
-mode add | modify.
(DEFAULT = 0)
(DEFAULT = 1460)
Value Usage
If -command is:
-send This option is dependent of the -command option value. If -command is:
open - The name or IP address of the Telnet server or Telnet server activity.
(DEFAULT = "")
login - The login name to send to the Telnet server. (DEFAULT = root)
exit - The string to send to the Telnet server to exit the Telnet session.
(DEFAULT = exit)
-server_close_command The value of the close command expected from the client.
(DEFAULT = exit)
(DEFAULT = #)
(DEFAULT = 1)
-linemode_enable Causes the line-mode option to be negotiated with the client. Values: 0 or 1.
Dependencies: property agent with mode add | modify.
(DEFAULT = 0)
(DEFAULT = 23)
-goahead_enable If false it will suppress the "go ahead" command. Value: 0 or 1. Dependencies:
property agent with mode add | modify.
(DEFAULT = 0)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_telnet_stats
DESCRIPTION This command manages the statistics gathered during the test run. It can add mul-
tiple types of statistics, extract data, clear statistics from a previous run, or can
add specific filters to the way the statistics are gathered.
SYNOPSIS ::ixia::emulation_telnet_stats
-mode CHOICES add clear get
[-handle ANY]
[-aggregation_type CHOICES sum max min average rate
maxrate minrate averagerate DEFAULT sum]
[-stat_name ALPHANUM]
[-stat_type CHOICES client server
DEFAULT client]
[-filter_type CHOICES port card chassis traffic
map]
[-filter_value ANY]
ARGUMENTS
Value Usage
add adds a statistic.
clear clear all statistics previously added.
get get statistic data.
(DEFAULT = sum)
Value Usage
Value Usage
Value Usage
Value Usage
Value Usage
Value Usage
Value Usage
(DEFAULT = client)
(DEFAULT = port)
Value Usage
Value Usage
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_telnet_control_config
DESCRIPTION This command is used to construct the mapping between the agents that will gen-
erate the traffic and the set of networks which will carry the traffic. A number of
additional options control the manner in which the traffic is applied to the net-
works. To the client side mappings , the command can specify the options used to
allow the test to achieve a particular objective, for example, connections per sec-
ond, or the options that determine the timeline for application of traffic or the
options that control the manner in which client traffic is sent to servers.
SYNOPSIS ::ixia::emulation_telnet_control_config
-mode CHOICES add remove modify
enable disable
[-handle ANY]
[-target CHOICES client server
DEFAULT client]
[-property CHOICES map dut]
[-direct_server_return_enable CHOICES 0 1 DEFAULT 0]
[-ip_address IPV4 DEFAULT 1.1.1.1]
[-server_telnet_handle ANY]
[-type CHOICES external slb
firewall DEFAULT slb]
[-client_iterations NUMERIC DEFAULT 1]
[-client_telnet_handle ANY]
[-client_traffic_handle ANY]
[-objective_type CHOICES na users
connections crate trate tputmb tputkb sessions
DEFAULT na]
[-objective_value NUMERIC]
[-client_offline_time NUMERIC DEFAULT 0]
[-port_map_policy CHOICES pairs mesh
round_robin DEFAULT pairs]
[-ramp_down_time NUMERIC DEFAULT 20]
[-ramp_up_type CHOICES users_per_second
max_pending_users DEFAULT users_per_second]
[-ramp_up_value NUMERIC]
[-client_standby_time RANGE 0-3600000 DEFAULT 0]
[-client_sustain_time RANGE 0-3600000 DEFAULT 0]
[-client_total_time NUMERIC DEFAULT 60]
[-server_traffic_handle ANY]
[-match_client_totaltime CHOICES 0 1 DEFAULT 1]
[-server_iterations NUMERIC DEFAULT 1]
[-server_offline_time NUMERIC DEFAULT 0]
[-server_standby_time RANGE 0-3600000 DEFAULT 0]
[-server_sustain_time NUMERIC DEFAULT 20]
[-server_total_time NUMERIC DEFAULT 60]
ARGUMENTS
(DEFAULT = client)
-mode Defines types of actions to be taken on the -property object. Enable and disable
are not valid values for -property DUT. Value: add | remove | modify | enable |
disable.
-direct_server_return_ If type is "slb" and this option is true, Direct Server Return is enabled. In a basic
enable SLB topology, incoming requests from clients and outgoing responses from serv-
ers both go through the SLB. In a topology using Direct Server Return, the
responses are sent directly from the servers to the clients; they do not go through
the SLB. DSR reduces the amount of traffic going through the SLB, allowing it
to devote more resources to managing the incoming requests and monitoring the
status of the servers in its pool. Value: 0 | 1.
(DEFAULT = 0)
-ip_address The IPv4 address, virtual IPv4 address or host name used to access the DUT.
(DEFAULT = 1.1.1.1)
-server_telnet_handle If type is "slb" and the SLB is balancing emulated servers, set this option to the
handle of the server telnet network that is being balanced.
(DEFAULT = slb)
Value Usage
-client_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
-client_telnet_handle This handle provides the networks from which the traffic will be generated.
-client_traffic_handle This handle provides the model of the client traffic to be generated.
Value Usage
(DEFAULT = 0)
-port_map_policy This option controls the sequence in which the client ports connect to the server
ports. For large numbers of ports, the Port Pair sequence scales performance bet-
ter than the Port Mesh sequence. The operation of Port Pairs can be described by
three scenarios: If the number of client ports is equal to the number of server
agents, client ports will establish connections to server ports on a one-to-one
basis. If the number of client ports is less than the number of server ports, the cli-
ent ports will establish connections to the server ports on a one-to-one basis until
Value Usage
-ramp_down_time The amount of time used for closing any TCP connections that are still open after
all transactions are complete. When the ramp down time expires, the program ter-
minates any users. If the program terminates any client users that are still running
after the ramp down time expires, statistics for servers and clients that should
match may not. This is an indication that the ramp down time may be too short.
(DEFAULT = 20)
-ramp_up_type The method used to apply the ramp_up_value. Dependencies: property map with
mode add | modify.Valid choices are:
Value Usage
users_per_second (default) applies the ramp_up_value to bring
up the specified number of users per second.
For example, if you select users_per_second
and you specify 10 for the ramp_up_value,
the program brings up 10 new users every
second until all the users are and running.
max_pending_users - N/A
-client_standby_time The amount of time, expressed in seconds, that elapses between the time the test
is started and the time that the traffic-network pair become active. If you have
multiple traffic-network paris in your test, you can use this parameter to stagger
their start times. A value of 0 causes the test to begin immediately. The valid
range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-client_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP). The
valid range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-client_total_time The total time required to run the test, including Ramp Up, Ramp Down, Sustain,
and Offline times for all iterations.
(DEFAULT = 60)
-server_traffic_handle This handle provides the model of the server traffic to be generated. Dependen-
cies: property map with mode add | modify.
-match_client_totaltime If true, the servers on this mapping will stay online for the same length of time as
the longest-running client agent. If you do not check this box and a server's dura-
tion is shorter than one of the clients connecting to it, the server will go offline
while the client is connected; if this is not what you intend to happen during test-
ing, the test results for that client may be misleading. If false, the program calcu-
lates agent run times independently for each server activity. server_offline_time,
server_standby_time, server_sustain_time, server_total_time options will be dis-
abled if -match_client_totaltime option is enabled. Value: 0 | 1.
(DEFAULT = 1)
-server_iterations The number of times that the traffic-network pair perform their functions (estab-
lishing TCP connections, retrieving files, etc.) in the test.
(DEFAULT = 1)
(DEFAULT = 0)
-server_standby_time The amount of time, expressed in seconds, that elapses between the time the test
is started and the time that the traffic-network pair become active. If you have
multiple traffic-network pairs in your test, you can use this parameter to stagger
their start times. A value of 0 causes the test to begin immediately. The valid
range is from 0 to 1000 hours (3,600,000).
(DEFAULT = 0)
-server_sustain_time The amount of time, in seconds, during which all users are up and performing the
central test objectives, such as establishing and closing connections (TCP),
retrieving or serving pages (TELNET).
(DEFAULT = 20)
-server_total_time The total time required to run the test, including Standby, Sustain, and Offline
times for all iterations.
(DEFAULT = 60)
SAMPLE INPUT
SEE ALSO
NAME — ::ixia::emulation_telnet_control
DESCRIPTION This command defines a mapping between the telnet networks, the DUT and the
statistics used. It can start a test previously defined with the ::ixia::emulation_
telnet_control_config command.
SYNOPSIS ::ixia::emulation_telnet_control
-mode CHOICES add modify start
[-handle ANY]
[-map_handle ANY]
[-force_ownership_enable CHOICES 0 1 DEFAULT 0]
[-release_config_afterrun_enable CHOICES 0 1 DEFAULT 0]
[-reset_ports_enable CHOICES 0 1 DEFAULT 0]
[-results_dir_enable CHOICES 0 1 DEFAULT 0]
[-results_dir ANY]
[-stats_required CHOICES 0 1 DEFAULT 1]
ARGUMENTS
Value Usage
-map_handle List of handles of the maps between a client http config and a client traffic config
and between a server http config and a server traffic config created with
::ixia::emulation_http_control_config.
-force_ownership_enable If true, at the beginning of the test, any ports that are selected for the test but
owned by another user are rebooted and their previous ownership cleared.
(DEFAULT = 0)
-release_config_afterrun_ If true, purges the test configuration from the ports after a test completes, releases
enable ownership of them, and the ports will no longer respond to ARPs and PINGs
from the DUT.
(DEFAULT = 0)
-reset_ports_enable If true, the program reboots the ports before downloading the test configuration
to them. To ensure the integrity of your testing, it is always safest to reboot the
ports before running a test. However, rebooting the ports does increase the
amount of time required to prepare the ports for a test.
If you do not want to reboot the ports for every test, you should at least reboot the
ports the first time you load a repository; this will ensure that any software struc-
tures remaining from a previous test or other application are properly removed.
(DEFAULT = 0)
(DEFAULT = 0)
-results_dir Specifies the location of where the execution results will be kept.
(DEFAULT = 1)
RETURN VALUES
Key Value
SAMPLE INPUT
SEE ALSO
The following sections give examples of the various protocol commands detailed
in the previous chapters. Included examples are:
• IxNetwork/IxRouter Examples
• BGP (BGP4_neighbor_BGP4_route_external.tcl) on page A-3
• IGMP (IGMPv3_different_operations.tcl) on page A-6
• ISIS (ISIS_topology_control.tcl) on page A-15
• L2VPN (L2VPN_martini_scalability.tcl) on page A-18
• LDP (LDP_create_route_all.tcl) on page A-28
• L3VPN (L3VPN_OSPF_LDP_OSPF.tcl) on page A-31
• MLD (MLD_host_group.tcl) on page A-38
• mVPN (MVPN_PIM-SM_OSPF_LDP.tcl) on page A-40
• MPLS 6PE (MPLS_6PE_OSPF_RIP.tcl) on page A-55
• OSPFv2 (OSPFv2_router_control.tcl) on page A-62
• OSPFv3 (OSPFv3_lsa_create_router.tcl) on page A-65
• PIM (PIM_control.tcl) on page A-67
• RIP (RIP_route_advertise_withdraw.tcl) on page A-72
• RSVP (RSVP_tunnel_info.tcl) on page A-77
• IxAccess Examples
• IGMPoPPPoE (IGMPoPPPoE_traffic_mc_stats.tcl) on page A-81
• L2PoE (L2TPoE_LNS_DUT_PPPoE_tos_traffic.tcl) on page A-88
• L2TPv3 (L2TPv3_stats.tcl) on page A-97
• PPPoE (PPPoE_session.tcl) on page A-99
• IxOS Examples
• DHCPv4 (DHCP_host_group.tcl) on page A-101
• Traffic (Streams_IPv4_stats.tcl) on page A-104
IxNetwork/IxRouter Examples
BGP (BGP4_neighbor_BGP4_route_external.tcl)
################################################################################
# #
# Description: #
# This sample configures two internal BGP neighbors and on each neighbor it #
# configures two IPv4 route ranges and two IPv6 route ranges. Then it #
# starts the protocol. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# #
# IPv4 #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 0 \
-duplex full \
-speed ether100]
#################################################
# #
# Configure 2 BGP neighbors on interface 1/10/1 #
# 1) Neighbor #1 - internal #
# 2) Neighbor #2 - internal #
#################################################
set bgp_routers_status [ixia::emulation_bgp_config \
-port_handle $port_handle \
-mode reset \
-local_ip_addr 10.1.1.1 \
-remote_ip_addr 10.1.1.2 \
-count 2 \
-mac_address_start 0000.0000.0001 \
-netmask 24 \
-neighbor_type internal \
-ip_version 4 \
-next_hop_enable \
-next_hop_ip 10.10.160.1 \
-local_as 111 \
-local_as_mode fixed \
-tcp_window_size 6666 \
-updates_per_iteration 5 \
-retries 11 \
-retry_time 22 \
-active_connect_enable \
-staggered_start_enable \
-staggered_start_time 77 ]
#########################################################
# #
# Configure 2 BGP IPv4 Route Range on each BGP router #
# 1/10/1 #
# #
#########################################################
#Get the list of BGP router handle form the keye list returned
set bgp_router_handle_list [keylget bgp_routers_status handles]
#########################################################
# #
# Configure 2 BGP IPv6 Route Range on each BGP router #
# 1/10/1 #
# #
#########################################################
#Get the list of BGP router handle form the keye list returned
set bgp_router_handle_list [keylget bgp_routers_status handles]
######################
# START BGP on #
######################
set handle [lindex $bgp_router_handle_list 0]
set bgp_emulation_status [ixia::emulation_bgp_control \
-handle $handle \
-mode start ]
IGMP (IGMPv3_different_operations.tcl)
################################################################################
# #
# Description: #
# This sample performs various operation. It creates, modifies and deletes #
# IGMP hosts. Creates group pools and source pools. Adds, modifies and #
# deletes group and source pools to IGMP hosts. Leaves and joins groups #
# pools. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle1 \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
# Create session1
set igmp_status_1 [ixia::emulation_igmp_config \
-port_handle $port_handle1 \
-mode create \
-reset \
-msg_interval 167 \
-igmp_version v3 \
-ip_router_alert 1 \
-general_query 1 \
-group_query 1 \
-unsolicited_report_interval 200 \
-suppress_report 0 \
-max_response_control 1 \
-max_response_time 50 \
-intf_ip_addr 10.41.1.2 \
-neighbor_intf_ip_addr 10.41.1.1 \
-vlan_id_mode increment \
-vlan_id 10 \
-vlan_id_step 1 \
-vlan_user_priority 7 ]
# Create session2
set igmp_status_2 [ixia::emulation_igmp_config \
-port_handle $port_handle1 \
-mode create \
-igmp_version v3 \
-intf_ip_addr 10.41.1.3 \
-neighbor_intf_ip_addr 10.41.1.1 ]
# Modify group_member5
set retMember [::ixia::emulation_igmp_group_config \
-mode modify \
-handle $group_member5 \
-group_pool_handle $group_pool2 ]
if {[keylget retMember status] != $SUCCESS} {
return "FAIL - $test_name - [keylget retMember log]"
}
puts "Modify: $retMember"
# Modify group_member2
set retMember [::ixia::emulation_igmp_group_config \
-mode modify \
-handle $group_member2 \
-source_pool_handle [list $source_pool3 $source_pool4]]
if {[keylget retMember status] != $SUCCESS} {
return "FAIL - $test_name - [keylget retMember log]"
}
puts "Modify: $retMember"
# Modify group_member3
set retMember [::ixia::emulation_igmp_group_config \
-mode modify \
-handle $group_member3 \
-source_pool_handle [list $source_pool5 $source_pool1]]
if {[keylget retMember status] != $SUCCESS} {
return "FAIL - $test_name - [keylget retMember log]"
}
puts "Modify: $retMember"
# Create session3,4
set igmp_status_3 [ixia::emulation_igmp_config \
-port_handle $port_handle1 \
-mode create \
-msg_interval 167 \
-igmp_version v3 \
-ip_router_alert 0 \
-general_query 0 \
-group_query 0 \
-unsolicited_report_interval 200 \
-suppress_report 0 \
-max_response_control 1 \
-max_response_time 0 \
-intf_ip_addr 10.41.1.4 \
-neighbor_intf_ip_addr 10.41.1.1 \
-count 2 ]
if {[keylget igmp_status_3 status] != $SUCCESS} {
return "FAIL - $test_name - [keylget igmp_status_3 log]"
}
puts "Create: $igmp_status_3"
set session3 [lindex [keylget igmp_status_3 handle] 0]
set session4 [lindex [keylget igmp_status_3 handle] 1]
# Disable session3
set igmpConf [ixia::emulation_igmp_config \
-handle $session3 \
-mode disable ]
if {[keylget igmpConf status] != $SUCCESS} {
return "FAIL - $test_name - [keylget igmpConf log]"
}
puts "Disable: $igmpConf"
# Enable session3
set igmpConf [ixia::emulation_igmp_config \
-handle $session3 \
-mode enable ]
if {[keylget igmpConf status] != $SUCCESS} {
return "FAIL - $test_name - [keylget igmpConf log]"
}
puts "Enable: $igmpConf"
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle2 \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
# Create session5,6,7
set igmp_status_4 [ixia::emulation_igmp_config \
-port_handle $port_handle2 \
-mode create \
-reset \
-igmp_version v3 \
-ip_router_alert 0 \
-general_query 0 \
-group_query 0 \
-unsolicited_report_interval 100 \
-suppress_report 0 \
-max_response_control 1 \
-max_response_time 0 \
-intf_ip_addr 10.42.1.4 \
-neighbor_intf_ip_addr 10.42.1.1 \
-count 3 ]
if {[keylget igmp_status_4 status] != $SUCCESS} {
return "FAIL - $test_name - [keylget igmp_status_4 log]"
}
puts "Create: $igmp_status_4"
set session5 [lindex [keylget igmp_status_4 handle] 0]
set session6 [lindex [keylget igmp_status_4 handle] 1]
set session7 [lindex [keylget igmp_status_4 handle] 1]
# Delete group_member11
set retMember [::ixia::emulation_igmp_group_config \
-mode delete \
-handle $group_member11 ]
if {[keylget retMember status] != $SUCCESS} {
return "FAIL - $test_name - [keylget retMember log]"
}
puts "Delete: $retMember"
# ERROR - Delete one group from session5 - the group does not exist anymore
set retMember [::ixia::emulation_igmp_group_config \
-mode delete \
-handle $group_member11 ]
puts "NOT Delete: $retMember"
ISIS (ISIS_topology_control.tcl)
################################################################################
# #
# Description: #
# This sample creates an ISIS router and adds a route range for it. Then it #
# starts, stops and restarts the router. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
################################################################################
# START TEST #
################################################################################
#####################################################
# Configure 10 ISIS L1L2 neighbors interface #
#####################################################
set isis_router_status [ixia::emulation_isis_config \
-mode create \
-reset \
-port_handle $port_handle \
-intf_ip_addr 22.1.1.1 \
-gateway_ip_addr 22.1.1.2 \
-intf_ip_prefix_length 24 \
-mac_address_init 0000.0000.0001 \
-count 1 \
-wide_metrics 0 \
-discard_lsp 1 \
-attach_bit 0 \
-partition_repair 1 \
-overloaded 0 \
-lsp_refresh_interval 10 \
-lsp_life_time 777 \
-max_packet_size 1492 \
-intf_metric 0 \
-routing_level L1L2 \
-te_enable 0 \
-te_router_id 198.0.0.1 \
-te_max_bw 10 \
-te_max_resv_bw 20 \
-te_unresv_bw_priority0 0 \
-te_unresv_bw_priority1 10 \
-te_unresv_bw_priority2 20 \
-te_unresv_bw_priority3 30 \
-te_unresv_bw_priority4 40 \
-te_unresv_bw_priority5 50 \
-te_unresv_bw_priority6 60 \
-te_unresv_bw_priority7 70 \
-te_metric 10]
if {[keylget isis_router_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget isis_router_status log]"
}
#Get the list of ISIS router handle form the keye list returned
set isis_router_handle_list [keylget isis_router_status handle]
##############################################################
# For each ISIS router configure 2 IPv4 route range on each #
##############################################################
#######################################
# START / STOP / RESTART ISIS #
#######################################
set isis_emulation_status [ixia::emulation_isis_control \
-handle $isis_router_handle \
-port_handle $port_handle \
-mode start ]
if {[keylget isis_emulation_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget isis_emulation_status log]"
}
L2VPN (L2VPN_martini_scalability.tcl)
################################################################################
# #
# Description: #
# This sample creates the following L2VPN configuration on two pairs of #
# ports (1/1,1/2) and (1/3,1/4): #
# ____ #
# | CE |_____ ____ #
# +____+ \ ___| CE | #
# \ / +____+ #
# ____ \ __________ ______ _____ / ____ #
# | CE |---------| DUT (PE) |------| P |__________| PE |__/_____| CE | #
# +____+ / +__________+ +______+ | +_____+ \ +____+ #
# / | \ ____ #
# ____ / | \___| CE | #
# | CE |____/ | +____+ #
# +____+ | #
# | #
# | ____ #
# | ___| CE | #
# | / +____+ #
# | _____ / ____ #
# |______| PE |__/_____| CE | #
# | +_____+ \ +____+ #
# | \ ____ #
# | \___| CE | #
# | +____+ #
# | #
# | ____ #
# | ___| CE | #
# | / +____+ #
# | _____ / ____ #
# |______| PE |__/_____| CE | #
# +_____+ \ +____+ #
# \ ____ #
# \___| CE | #
# +____+ #
# #
# #
# In this figure we have: #
# CE - customer edge #
# PE - provider edge #
# P - provider #
# The following DUT(Cisco 6509) configuration was used: #
# #
# ip multicast-routing #
# mpls label protocol ldp #
# mpls traffic-eng tunnels #
# tag-switching tdp router-id Loopback100 force #
# #
# interface Loopback100 #
# ip address 100.0.0.1 255.255.255.255 #
# #
# router ospf 41 #
# log-adjacency-changes #
# network 170.1.1.0 0.0.0.255 area 0 #
# router ospf 42 #
# log-adjacency-changes #
# network 170.1.2.0 0.0.0.255 area 0 #
# #
# Interface connected to TX port1(1/1): #
# interface GigabitEthernet4/30 #
# no ip address #
# interface GigabitEthernet4/30.41 #
# encapsulation dot1Q 41 #
# mpls l2transport route 41.41.41.41 41 #
# interface GigabitEthernet4/30.42 #
# encapsulation dot1Q 42 #
# mpls l2transport route 41.41.41.42 42 #
# interface GigabitEthernet4/30.43 #
# encapsulation dot1Q 43 #
# mpls l2transport route 41.41.41.43 43 #
# #
incr index
########################################
# Configure TX interface in the test #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_tx \
-autonegotiation 1 \
-duplex full \
-speed ether100 \
-transmit_mode stream \
-qos_stats 0 \
-port_rx_mode capture \
]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
########################################
# Configure RX interface in the test #
########################################
# When the stream is received on RX port, it is mpls encapsulated
# So if the data signature offset on transmition is $offset then
# 14 bytes for the mac header and 4 bytes for the mpls label must
# be added on receive port.
set interface_status [::ixia::interface_config \
-port_handle $port_rx \
-autonegotiation 1 \
-duplex full \
-speed ether100 \
-port_rx_mode packet_group \
-data_integrity 1 \
-integrity_signature \
[lindex $stream_tx_signature_list $index] \
-integrity_signature_offset \
[expr [lindex $stream_tx_signature_offset_list $index] + 18] \
-signature \
[lindex $stream_tx_signature_list $index] \
-signature_offset \
[expr [lindex $stream_tx_signature_offset_list $index] + 18] \
-pgid_offset \
[expr [lindex $stream_tx_pgid_offset_list $index] + 18] \
-transmit_mode stream ]
#################################################
# Configure OSPFv2 Provider #
# #
#################################################
set ospf_neighbor_status [ixia::emulation_ospf_config \
-reset \
-port_handle $port_rx \
-session_type ospfv2 \
-mode create \
-count 1 \
-mac_address_init \
[lindex $rx_mac_init_list $index] \
-intf_ip_addr \
[lindex $provider_ip_list $index] \
-intf_prefix_length \
[lindex $provider_prefix_list $index] \
-neighbor_intf_ip_addr \
[lindex $dut_intf_list $index] \
-router_id \
[string map {/ "."} $port_rx].1 \
-area_id 0.0.0.0 \
-area_id_step 0.0.0.0 \
-area_type external-capable \
-authentication_mode null \
-dead_interval 40 \
-hello_interval 10 \
-interface_cost 10 \
-network_type broadcast \
-option_bits "0x02" ]
#################################################
# Configure LDP Provider Router #
#################################################
set ldp_routers_status [ixia::emulation_ldp_config \
-reset \
-mode create \
-port_handle $port_rx \
-count 1 \
-intf_ip_addr \
[lindex $provider_ip_list $index] \
-intf_prefix_length \
[lindex $provider_prefix_list $index] \
-gateway_ip_addr \
[lindex $dut_intf_list $index] \
-mac_address_init \
[lindex $rx_mac_init_list $index] \
-lsr_id \
[string map {/ "."} $port_rx].1 \
-label_space 0 \
-label_adv unsolicited \
-peer_discovery link \
-hello_interval 5 \
-hello_hold_time 15 \
-keepalive_interval 10 \
-keepalive_holdtime 30 \
-discard_self_adv_fecs 0 \
-enable_l2vpn_vc_fecs 0 \
-enable_explicit_include_ip_fec 0 \
-enable_remote_connect 1 \
-enable_vc_group_matching 0 \
-targeted_hello_hold_time 45 \
-targeted_hello_interval 15 ]
-packing_enable 0 \
-label_value_start 3 \
]
#################################################
# Configure LDP Provider Edge Router #
#################################################
set ldp_routers_status [ixia::emulation_ldp_config \
-mode create \
-port_handle $port_rx \
-count 1 \
-intf_ip_addr \
[lindex $provider_ip_list $index] \
-intf_prefix_length \
[lindex $provider_prefix_list $index] \
-gateway_ip_addr \
[lindex $dut_intf_list $index] \
-loopback_ip_addr \
[lindex [lindex $pe_ip_list $index] $i] \
-mac_address_init \
[lindex $rx_mac_init_list $index] \
-lsr_id \
[lindex [lindex $pe_ip_list $index] $i] \
-remote_ip_addr $dut_ldp_intf \
-label_space 0 \
-peer_discovery targeted_martini \
-hello_interval 5 \
-hello_hold_time 15 \
-keepalive_interval 10 \
-keepalive_holdtime 30 \
-discard_self_adv_fecs 0 \
-enable_l2vpn_vc_fecs 1 \
-enable_explicit_include_ip_fec 0 \
-enable_remote_connect 1 \
-enable_vc_group_matching 0 \
-targeted_hello_hold_time 45 \
-targeted_hello_interval 15 ]
# Wait 100 seconds for the OSPF and LDP to learn routes and labels
after 100000
###############################################################################
# Retrieve stats after stopped
###############################################################################
# Get aggregrate stats for all ports
set aggregate_stats [ixia::traffic_stats -port_handle $port_handle]
if {[keylget aggregate_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget aggregate_stats log]"
}
puts "***************************************************************\n"
############################################
# Get traffic statistics for all the PGIDs #
############################################
set index -1
foreach {port_rx} $port_rx_handle {
incr index
foreach {pgid_index} [lindex $stream_tx_pgid_value_list $index] {
set pgid_statistics_list [ixia::traffic_stats \
-port_handle $port_rx \
-packet_group_id $pgid_index \
]
#############################
# Format the statistics #
#############################
puts [format "%8s %8d %15.1f %15.1f %8.1f %8.1f %8d" \
$port_rx $pgid_index \
[keylget pgid_statistics_list \
$port_rx.pgid.rx.pkt_count.$pgid_index] \
[keylget pgid_statistics_list \
$port_rx.pgid.rx.bit_rate.$pgid_index] \
[keylget pgid_statistics_list \
$port_rx.pgid.rx.max_latency.$pgid_index] \
[keylget pgid_statistics_list \
$port_rx.pgid.rx.min_latency.$pgid_index] \
[keylget pgid_statistics_list \
$port_rx.pgid.rx.avg_latency.$pgid_index] ]
}
}
LDP (LDP_create_route_all.tcl)
################################################################################
# #
# Description: #
# This sample creates two LDP peers and configures ipv4_prefix, host_addr #
# and vc fec type routes on the first peer. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
#################################################
# Configure 2 LDP peers on interface 1/10/1 #
#################################################
set ldp_routers_status [ixia::emulation_ldp_config \
-mode create \
-port_handle $port_handle \
-label_adv on_demand \
-peer_discovery targeted \
-count 2 \
-intf_ip_addr 11.1.1.2 \
-intf_prefix_length 24 \
-intf_ip_addr_step 0.0.1.0 \
-lsr_id 10.10.10.10 \
-label_space 60 \
-lsr_id_step 0.0.1.0 \
-mac_address_init 0000.0000.0001 \
-hello_interval 5 \
-hello_hold_time 10 \
-keepalive_interval 5 \
-keepalive_holdtime 10 \
-discard_self_adv_fecs 1 \
-enable_explicit_include_ip_fec 1 \
-enable_l2vpn_vc_fecs 1 \
-enable_remote_connect 1 \
-enable_vc_group_matching 1 \
-gateway_ip_addr 11.1.1.1 \
-gateway_ip_addr_step 0.0.1.0 \
-reset \
-targeted_hello_hold_time 22 \
-targeted_hello_interval 10 \
-graceful_restart_enable 1 \
-recovery_time 66000 \
-reconnect_time 90000 ]
#################################################
# Configure ipv4_prefix fec type routes #
#################################################
set ldp_routers_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $router_handle \
-fec_type ipv4_prefix \
-label_msg_type mapping \
-egress_label_mode nextlabel \
-num_lsps 3 \
-fec_ip_prefix_start 123.0.0.1 \
-fec_ip_prefix_length 16 \
-packing_enable 1 \
-label_value_start 100 \
]
#################################################
# Configure host_addr fec type routes #
#################################################
set ldp_routers_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $router_handle \
-fec_type host_addr \
-label_msg_type request \
-egress_label_mode nextlabel \
-num_routes 5 \
-fec_host_addr 99.0.0.1 \
-fec_host_prefix_length 16 \
-hop_count_tlv_enable 1 \
-hop_count_value 25 \
-next_hop_peer_ip 122.0.0.1 \
-stale_timer_enable 1 \
-stale_request_time 200 \
]
#################################################
# Configure vc ranges for LDP #
#################################################
set ldp_routers_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $router_handle \
-fec_type vc \
-fec_vc_type eth_vlan \
-fec_vc_group_id 100 \
-fec_vc_group_count 10 \
-fec_vc_cbit 1 \
-fec_vc_id_start 12 \
-fec_vc_id_step 10 \
-fec_vc_id_count 100 \
-fec_vc_intf_mtu_enable 1 \
-fec_vc_intf_mtu 512 \
-fec_vc_intf_desc ixia_ldp_vc \
-packing_enable 1 \
-fec_vc_label_mode fixed_label \
-fec_vc_label_value_start 25 \
-fec_vc_peer_address 198.0.0.1 \
]
L3VPN (L3VPN_OSPF_LDP_OSPF.tcl)
################################################################################
# #
# Description: #
# This sample creates a L3VPN setup. It uses two Ixia ports. One port is #
# used as a PE and P router. One port is used as CE router. #
# Streams are generated on both ports and then started. #
# #
# ------ ----- ----- ------ #
# | PE |-----| P |---------| DUT |--------| CE | #
# ------ ----- | ----- | ------ #
# | | #
# Ixia port 1 | Cisco 6500 | Ixia port 2 #
# #
# PE runs mBGP #
# P runs LDP and OSPF #
# CE runs OSPF #
#
# conf t
#
# ip cef
# ip vrf vpn901
# description vpn901
# rd 901:1
# route-target export 901:1
# route-target import 901:1
#
# ip multicast-routing
# mpls label protocol ldp
# mpls traffic-eng tunnels
# tag-switching tdp discovery directed-hello accept
#
# interface Loopback0
# ip address 110.0.110.1 255.255.255.255
# no ip directed-broadcast
#
# interface GigabitEthernet0/2
# no ip address
# no ip directed-broadcast
# load-interval 30
# duplex auto
# speed auto
# media-type rj45
# negotiation auto
#
# interface GigabitEthernet0/2.1
# description vpn901_ce
# encapsulation dot1Q 901
# ip vrf forwarding vpn901
# ip address 100.27.0.1 255.255.255.0
# no ip directed-broadcast
# no cdp enable
#
# interface GigabitEthernet0/3
# ip address 100.28.0.1 255.255.255.0
# no ip directed-broadcast
# ip ospf network broadcast
# load-interval 30
# duplex auto
# speed auto
# media-type rj45
# negotiation auto
# mpls label protocol ldp
# tag-switching ip
#
# router ospf 101 vrf vpn901
# log-adjacency-changes
# network 100.27.0.0 0.0.0.255 area 0
#
# router ospf 901
# mpls traffic-eng router-id Loopback0
# mpls traffic-eng area 0
# log-adjacency-changes
set rd_target_type 0
set rd_admin_value 901
set rd_assign_value 1
set vrf_target_type "as"
set vrf_admin_value 901
set vrf_assign_value 1
set vrf_network 77.77.78.0
set vrf_prefix 255.255.255.0
set vrf_num_routes 2
# Initialize ports
set intf_status [::ixia::interface_config \
-port_handle "$pe_port $ce_port" \
-autonegotiation 1 \
-transmit_mode advanced ]
#################################################
# Configure OSPFv2 neighbor on P/PE port #
#################################################
set ospf_neighbor_status [ixia::emulation_ospf_config \
-port_handle $pe_port \
-reset \
-session_type ospfv2 \
-mode create \
-count 1 \
-mac_address_init $p_mac_address \
-intf_ip_addr $p_ip_address \
-intf_ip_addr_step 0.0.1.0 \
-router_id $ospf_router_id \
-router_id_step 0.0.1.0 \
-neighbor_intf_ip_addr $p_gateway_ip \
-neighbor_intf_ip_addr_step 0.0.1.0 \
-loopback_ip_addr $pe_ip_address \
-loopback_ip_addr_step 0.0.1.0 \
-area_id $ospf_area_id \
-area_id_step 0.0.0.1 \
-area_type external-capable \
-network_type broadcast ]
#############################################
# Configure LDP Neighbor on P/PE port #
#############################################
set ldp_routers_status [ixia::emulation_ldp_config \
-mode create \
-port_handle $pe_port \
-label_adv unsolicited \
-peer_discovery link \
-count 1 \
-intf_ip_addr $p_ip_address \
-intf_prefix_length $p_prefix_len \
-intf_ip_addr_step 0.0.1.0 \
-lsr_id $p_lsr_id \
-label_space 0 \
-lsr_id_step 0.0.1.0 \
-mac_address_init $p_mac_address \
-gateway_ip_addr $p_gateway_ip \
-gateway_ip_addr_step 0.0.1.0 \
-reset ]
#################################################
# Configure ipv4_prefix fec type routes #
#################################################
set ldp_routers_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $ldp_handle \
-fec_type ipv4_prefix \
-label_msg_type mapping \
-fec_ip_prefix_start $pe_ip_address \
-fec_ip_prefix_length 32 \
-egress_label_mode imnull ]
#############################################
# Configure BGP Neighbor on PE port #
#############################################
set bgp_router_status [ixia::emulation_bgp_config \
-mode reset \
-port_handle $pe_port \
-local_ip_addr $p_ip_address \
-remote_ip_addr $p_gateway_ip \
-local_addr_step 0.0.0.1 \
-local_loopback_ip_addr $pe_ip_address \
-remote_loopback_ip_addr $bgp_peer_ip \
-local_loopback_ip_addr_step 0.0.1.0 \
-count 1 \
-mac_address_start $p_mac_address \
-local_router_id $bgp_router_id \
-neighbor_type internal \
-ip_version 4 \
-local_as $bgp_as \
-local_as_mode fixed \
-active_connect_enable \
-ipv4_mpls_vpn_nlri ]
#############################################
# Configure L3 VPN Site on the BGP Neighbor #
#############################################
set bgp_route_range_status [::ixia::emulation_bgp_route_config \
-mode add \
-handle $bgp_neighbor_handle \
-ip_version 4 \
-prefix $vrf_network \
-prefix_step 1 \
-netmask $vrf_prefix \
-label_value 55 \
-num_sites 1 \
-num_routes $vrf_num_routes \
-label_step 1 \
-rd_type $rd_target_type \
-rd_admin_value $rd_admin_value \
-rd_assign_value $rd_assign_value \
-rd_admin_step 1 \
-rd_assign_step 1 \
-target_type $vrf_target_type \
-target $vrf_admin_value \
-target_assign $vrf_assign_value \
-import_target_type $vrf_target_type \
-import_target $vrf_admin_value \
-import_target_assign $vrf_assign_value \
-local_pref 0 \
-next_hop_enable 1 \
-origin_route_enable \
-enable_traditional_nlri 1 \
-ipv4_mpls_vpn_nlri ]
if {[keylget bgp_route_range_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget bgp_route_range_status log]"
}
##################### End of iBGP PE configuration ##################
#############################################
# Configure OSPFv2 neighbor on CE port #
#############################################
set ospf_neighbor_status [ixia::emulation_ospf_config \
-port_handle $ce_port \
-reset \
-session_type ospfv2 \
-mode create \
-count 1 \
-mac_address_init $ce_mac_address \
-intf_ip_addr $ce_ip_address \
-intf_ip_addr_step 0.0.1.0 \
-router_id $ospf_ce_router_id \
-router_id_step 0.0.1.0 \
-neighbor_intf_ip_addr $ce_gateway_ip \
-neighbor_intf_ip_addr_step 0.0.1.0 \
-vlan_id $ce_vlan_id \
-area_id $ospf_ce_area_id \
-area_id_step 0.0.0.1 \
-area_type external-capable \
-network_type broadcast ]
###############################################
# Configure two route ranges on OSPF neighbor #
###############################################
set ospf_route_status [::ixia::emulation_ospf_topology_route_config \
-mode create \
-handle $ospf_ce_handle \
-type summary_routes \
-summary_prefix_start $c_network1 \
-summary_prefix_step 1 \
-summary_prefix_length $c_prefix_len1 \
-summary_number_of_prefix $c_num_prefixes1 ]
if {[keylget ospf_route_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget ospf_route_status log]"
}
set ospf_route_status [::ixia::emulation_ospf_topology_route_config \
-mode create \
-handle $ospf_ce_handle \
-type summary_routes \
-summary_prefix_start $c_network2 \
-summary_prefix_step 1 \
-summary_prefix_length $c_prefix_len2 \
-summary_number_of_prefix $c_num_prefixes2 ]
if {[keylget ospf_route_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget ospf_route_status log]"
}
##################### End of OSPF CE configuration ##################
######################
# START OSPF (PE) on #
######################
set ospf_emulation_status [::ixia::emulation_ospf_control \
-handle $ospf_handle \
-mode start ]
######################
# START LDP on #
######################
set ldp_emulation_status [::ixia::emulation_ldp_control \
-handle $ldp_handle \
-mode start ]
######################
# START OSPF (CE) on #
######################
set ospf_emulation_status [::ixia::emulation_ospf_control \
-handle $ospf_ce_handle \
-mode start ]
after 40000
######################
# START BGP (PE) on #
######################
set bgp_emulation_status [::ixia::emulation_bgp_control \
-handle $bgp_neighbor_handle \
-mode start ]
if {[keylget bgp_emulation_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget bgp_emulation_status log]"
}
after 60000
#############################################
# Generate traffic on PE and CE ports #
#############################################
set stream_status [::ixia::l3vpn_generate_stream \
-pe_port_handle $pe_port \
-ce_port_handle $ce_port \
-stream_generation both \
-pe_label_protocol ldp \
-ce_routing_protocol ospf \
-reset \
-length_mode random \
-l3_length_min 128 \
-l3_length_max 1024 \
-enable_pgid 1 \
-pgid_value 1234 ]
if {[keylget stream_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget stream_status log]"
}
#############################################
# Start traffic on PE and CE ports #
#############################################
# Clear stats before sending traffic
set clear_stats_status [ixia::traffic_control \
-port_handle "$pe_port $ce_port" \
-action clear_stats ]
if {[keylget clear_stats_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget clear_stats_status log]"
}
after 40000
#############################################
# Stop traffic on PE and CE ports #
#############################################
set traffic_status [::ixia::traffic_control \
-port_handle "$pe_port $ce_port" \
-action stop ]
if {[keylget traffic_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget traffic_status log]"
}
after 5000
#############################################
# Print traffic stats #
#############################################
set pe_stats [ixia::traffic_stats -port_handle $pe_port -mode aggregate]
if {[keylget pe_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget pe_stats log]"
}
MLD (MLD_host_group.tcl)
################################################################################
# #
# Description: #
# This sample creates 10 MLD v2 hosts and a pool of two multicast groups, #
# then adds the groups in the pool to each MLD hosts. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
#################################################
# Configure 10 MLD hosts on interface 1/10/1 #
# MLD Version 2 #
#################################################
set mld_host_status [ixia::emulation_mld_config \
-mode create \
-port_handle $port_handle \
-mld_version v2 \
-count 10 \
-intf_ip_addr 30::31 \
-intf_prefix_len 64 \
-msg_interval 10 \
-max_groups_per_pkts 5 \
-unsolicited_report_interval 30 \
-general_query 1 \
-group_query 1 \
-max_response_control 1 \
-max_response_time 0 \
-ip_router_alert 1 \
-suppress_report 1 \
-mac_address_init 0000.0000.0001 \
-reset ]
if {[keylget mld_host_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget mld_host_status log]"
}
#####################################################################
# Configure 1 MLD groups on each MLD group on interface 1/10/1 #
# MLD Version 2 #
#####################################################################
######################
# START MLD #
######################
set mld_emulation_status [ixia::emulation_mld_control \
-mode start \
-port_handle $port_handle ]
if {[keylget mld_emulation_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget mld_emulation_status log]"
}
mVPN (MVPN_PIM-SM_OSPF_LDP.tcl)
################################################################################
# #
# Description: #
# This sample creates the following MVPN setup. #
# #
# #
# +-------+ #
# +--| MVRF1 | MVPN #
# +-----+ / +-------+ #
# +---| PE1 |-+ #
# +----+ / +-----+ \ +-------+ #
# | CE |---+ / +--| MVRF2 | MVPN #
# +----+ \ +-----+ +----------+ / +-------+ #
# --| DUT |---| Provider |--- #
# +----+ / +-----+ +----------+ \ +-------+ #
# | CE |---+ \ +--| MVRF1 | MVPN #
# +----+ \ +-----+ / +-------+ #
# +---| PE2 |-+ #
# +-----+ \ +-------+ #
# +--| MVRF2 | MVPN #
# +-------+ #
# #
# Protocols used: #
# Provider Side EGP - BGP #
# Provider Side IGP - OSPF #
# Provider Side MPLS Protocol - LDP #
# Provider Side Multicast Protocol - PIM/SM #
# Customer Side Multicast Protocol - PIM/SM #
# #
# DUT configuration: #
# ip vrf 500 #
# rd 1:500 #
# route-target export 1:500 #
# route-target import 1:500 #
# mdt default 239.1.1.1 #
# #
# ip vrf 501 #
# rd 1:501 #
# route-target export 1:501 #
# route-target import 1:501 #
# mdt default 239.1.1.2 #
# exit #
# #
# ip multicast-routing #
# ip multicast-routing vrf 500 #
# ip multicast-routing vrf 501 #
# mpls label protocol ldp #
# no mpls ldp logging neighbor-changes #
# #
# interface Loopback0 #
# ip address 111.111.111.111 255.255.255.255 #
# ip pim sparse-mode #
# #
# interface Loopback5 #
# ip address 5.5.5.5 255.255.255.0 #
# ip pim sparse-mode #
# #
# interface GigabitEthernet1/38 #
# description Provider #
# ip address 19.19.19.1 255.255.255.0 #
# ip pim sparse-mode #
# tag-switching ip #
# #
# interface GigabitEthernet1/37 #
# description CustomerSide #
# ip address 18.18.18.1 255.255.255.0 #
# ip pim sparse-mode #
# tag-switching ip #
# #
# interface GigabitEthernet1/37.500 #
# description CE1 #
# encapsulation dot1Q 500 #
incr octet_number -1
incr step_index -1
}
return $prefix
}
if {$mvrf_unique} {
set ce_count [mpexpr $pe_count * $mvrf_count]
} else {
set ce_count $mvrf_count
}
set total_mvrf_count $ce_count
################################################################################
# Connect to the chassis, reset to factory defaults and take ownership
################################################################################
set connect_status [::ixia::connect \
-reset \
-device $chassisIP \
-port_list $port_list \
-username ixiaApiUser ]
if {[keylget connect_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget connect_status log]"
}
################################################################################
# Configure interfaces in the test
################################################################################
set interface_status [::ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 0 \
-duplex full \
-speed ether1000 ]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
################################################################################
# Configure BGP on PE Routers side
################################################################################
set bgp_routers_status [ixia::emulation_bgp_config \
-mode reset \
-port_handle $pe_port_handle \
-count $pe_count \
-local_ip_addr $p_ip_addr_start \
-remote_ip_addr $p_gw_addr \
-local_addr_step 0.0.0.0 \
-remote_addr_step 0.0.0.0 \
-local_loopback_ip_addr $pe_ip_addr_start \
-local_loopback_ip_addr_step $pe_ip_addr_step \
-remote_loopback_ip_addr $pe_dut_ip_addr_start \
-remote_loopback_ip_addr_step $pe_dut_ip_addr_step \
-local_router_id $pe_ip_addr_start \
-neighbor_type internal \
-ip_version 4 \
-local_as $pe_as_number \
-active_connect_enable \
-ipv4_unicast_nlri \
-ipv4_multicast_nlri \
-ipv4_mpls_nlri \
-ipv4_mpls_vpn_nlri \
-ipv6_unicast_nlri \
-ipv6_multicast_nlri \
-ipv6_mpls_nlri \
-ipv6_mpls_vpn_nlri ]
################################################################################
# Configure BGP mVRFs
################################################################################
set mvpn_source_address $mvpn_source_addr_start
set mvpn_group_address $mvpn_group_addr_start
set mdt_group_address $mdt_group_addr_start
set rd_number $rd_number_start
set rd_assigned_number $rd_assigned_number_start
################################################################################
# Create OSPFv2 Provider
################################################################################
set ospf_neighbor_status [ixia::emulation_ospf_config \
-port_handle $pe_port_handle \
-reset \
-session_type ospfv2 \
-mode create \
-count 1 \
-intf_ip_addr $p_ip_addr_start \
-intf_prefix_length $p_ip_prefix \
-neighbor_intf_ip_addr $p_gw_addr \
-router_id $p_ip_addr_start \
-area_id 0.0.0.0 \
-area_id_step 0.0.0.0 \
-area_type external-capable \
-authentication_mode null \
-dead_interval 40 \
-hello_interval 10 \
-interface_cost 10 \
-network_type broadcast \
-option_bits "0x02" ]
################################################################################
# Create OSPFv2 PE Routes
################################################################################
set route_config_status [::ixia::emulation_ospf_topology_route_config\
-mode create \
-handle $provider_ospf_handle \
-type summary_routes \
-summary_number_of_prefix $pe_count \
-summary_prefix_start $pe_ip_addr_start \
-summary_prefix_length $pe_ip_prefix ]
################################################################################
# Create LDP Provider
################################################################################
set ldp_routers_status [ixia::emulation_ldp_config \
-reset \
-mode create \
-port_handle $pe_port_handle \
-count 1 \
-intf_ip_addr $p_ip_addr_start \
-intf_prefix_length 24 \
-gateway_ip_addr $p_gw_addr \
-lsr_id $p_ip_addr_start \
-label_space 0 \
-label_adv unsolicited \
-peer_discovery link \
-hello_interval 5 \
-hello_hold_time 15 \
-keepalive_interval 10 \
-keepalive_holdtime 30 \
-discard_self_adv_fecs 0 \
-enable_l2vpn_vc_fecs 1 \
-enable_explicit_include_ip_fec 0 \
-enable_remote_connect 1 \
-enable_vc_group_matching 0 \
-targeted_hello_hold_time 45 \
-targeted_hello_interval 15 ]
################################################################################
# Create LDP PE Routers
################################################################################
set pe_ip_address $pe_ip_addr_start
for {set i 0} {$i < $pe_count} {incr i} {
set route_config_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $provider_ldp_handle \
-fec_type ipv4_prefix \
-label_msg_type mapping \
-egress_label_mode nextlabel \
-num_lsps 1 \
-fec_ip_prefix_start $pe_ip_address \
-fec_ip_prefix_length 32 \
-packing_enable 0 \
-label_value_start 3 \
]
##############################################################################
# Configure PIM, P and PE neighbors
##############################################################################
set pim_config_status [::ixia::emulation_pim_config \
-mode create \
-reset \
-port_handle $pe_port_handle \
-count 1 \
-ip_version 4 \
-intf_ip_addr $p_ip_addr_start \
-intf_ip_addr_step $p_ip_addr_step \
-intf_ip_prefix_length $p_ip_prefix \
-dr_priority 0 \
-bidir_capable 0 \
-hello_interval 30 \
-hello_holdtime 105 \
-join_prune_interval 60 \
-join_prune_holdtime 180 \
-prune_delay_enable 1 \
-prune_delay 500 \
-override_interval 2500 \
-gateway_intf_ip_addr $p_gw_addr \
-gateway_intf_ip_addr_step 0.0.0.0 \
-prune_delay_tbit 0 \
-send_generation_id 1 \
-generation_id_mode constant \
-mvpn_enable 1 \
-mvpn_pe_ip $pe_ip_addr_start \
-mvpn_pe_ip_incr $pe_ip_addr_step \
-mvpn_pe_count $pe_count \
-mvrf_count $mvrf_count \
-mvrf_unique 0 \
-default_mdt_ip $mdt_group_addr_start \
-default_mdt_ip_incr $mdt_group_addr_step ]
if {[keylget pim_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget pim_config_status log]"
}
set provider_pim_handle [lindex [keylget pim_config_status handle] 0]
set pe_pim_handles [lrange [keylget pim_config_status handle] 1 end]
################################################################################
# Create PIM MVPN sources on each PE
################################################################################
set mvpn_rp_address $mvpn_rp_addr_start
set mvpn_source_address $mvpn_source_addr_start
set mvpn_group_address $mvpn_group_addr_start
foreach {pe_pim_handle} $pe_pim_handles {
# Create multicast source pool
set pim_config_status [::ixia::emulation_multicast_source_config \
-mode create \
-num_sources $mvpn_num_sources \
-ip_addr_start $mvpn_source_address \
-ip_addr_step $mvpn_source_addr_step \
-ip_prefix_len $mvpn_source_prefix \
]
if {[keylget pim_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget pim_config_status log]"
}
set mvpn_source_pool_handle [keylget pim_config_status handle]
################################################################################
# Create PIM MDT sources on each PE
################################################################################
set mdt_source_address $pe_ip_addr_start
set mdt_source_addr_step $pe_ip_addr_step
set mdt_source_prefix $pe_ip_prefix
set mdt_num_sources 1
set mdt_group_address $mdt_group_addr_start
foreach {pe_pim_handle} $pe_pim_handles {
# Create multicat source
set pim_config_status [::ixia::emulation_multicast_source_config \
-mode create \
-num_sources $mdt_num_sources \
-ip_addr_start $mdt_source_address \
-ip_addr_step $mdt_source_addr_step \
-ip_prefix_len $mdt_source_prefix \
]
if {[keylget pim_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget pim_config_status log]"
}
set mdt_source_pool_handle [keylget pim_config_status handle]
-register_stop_per_interval 102 \
-register_tx_iteration_gap 6000 \
-flap_interval 60 \
-spt_switchover 0 \
-source_group_mapping fully_meshed \
-switch_over_interval 5 \
-send_null_register 1 \
]
if {$mvrf_unique == 0} {
set mdt_group_address $mdt_group_addr_start
for {set i 0} {$i < $mdt_num_sources} {incr i} {
set mdt_source_address [script_increment_ipv4_net \
$mdt_source_address $mdt_source_prefix]
}
} else {
for {set i 0} {$i < $mvrf_count} {incr i} {
set mdt_group_address [script_increment_ipv4_address \
$mdt_group_address $mdt_group_addr_step]
################################################################################
# Create PIM Provider groups
################################################################################
set mdt_group_address $mdt_group_addr_start
for {set i 0} {$i < $total_mvrf_count} {incr i} {
set pim_config_status [::ixia::emulation_multicast_group_config \
-mode create \
-num_groups 1 \
-ip_addr_start $mdt_group_address \
-ip_addr_step 0.0.0.0 \
-ip_prefix_len 32 \
]
################################################################################
# Configure PIM CE Routers
################################################################################
set pim_config_status [::ixia::emulation_pim_config \
-mode create \
-reset \
-port_handle $ce_port_handle \
-count $ce_count \
-ip_version 4 \
-intf_ip_addr $ce_ip_addr_start \
-intf_ip_addr_step $ce_ip_addr_step \
-vlan_id $ce_vlan_id_start \
-vlan_id_step $ce_vlan_id_step \
-dr_priority 0 \
-bidir_capable 0 \
-hello_interval 30 \
-hello_holdtime 105 \
-join_prune_interval 60 \
-join_prune_holdtime 180 \
-prune_delay_enable 1 \
-prune_delay 500 \
-override_interval 2500 \
-gateway_intf_ip_addr $ce_gw_addr_start \
-gateway_intf_ip_addr_step $ce_gw_addr_step \
-prune_delay_tbit 0 \
-send_generation_id 1 \
-generation_id_mode constant ]
################################################################################
# Create CE PIM groups
################################################################################
set mvpn_source_address $mvpn_source_addr_start
set mvpn_group_address $mvpn_group_addr_start
set mvpn_rp_address $mvpn_rp_addr_start
foreach {ce_pim_handle} $ce_pim_handles {
set pim_config_status [::ixia::emulation_multicast_group_config \
-mode create \
-num_groups 1 \
-ip_addr_start $mvpn_group_address \
-ip_addr_step $mvpn_group_addr_step \
-ip_prefix_len $mvpn_group_prefix \
]
if {$mvrf_unique == 0} {
set mdt_group_address $mdt_group_addr_start
set mvpn_group_address $mvpn_group_addr_start
set mvpn_source_address $mvpn_source_addr_start
for {set k 0} {$k < $mvpn_num_sources} {incr k} {
set mvpn_source_address [script_increment_ipv4_net \
$mvpn_source_address $mvpn_source_prefix]
}
}
}
###############################################################################
# Retrieve stats after stopped
###############################################################################
# Get aggregrate stats for all ports
set aggregate_stats [ixia::traffic_stats -port_handle $port_handle]
if {[keylget aggregate_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget aggregate_stats log]"
}
puts "***************************************************************\n"
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
# Initialize ports
set intf_status [::ixia::interface_config \
-port_handle $pe_port \
-autonegotiation 1 \
-transmit_mode advanced \
-signature_offset 62 \
-pgid_offset 66 ]
#################################################
# Configure OSPFv2 neighbor on P/PE port #
#################################################
set ospf_neighbor_status [ixia::emulation_ospf_config \
-port_handle $pe_port \
-reset \
-session_type ospfv2 \
-mode create \
-count 1 \
-mac_address_init $p_mac_address \
-intf_ip_addr $p_ip_address \
-intf_ip_addr_step 0.0.1.0 \
-router_id $ospf_router_id \
-router_id_step 0.0.1.0 \
-neighbor_intf_ip_addr $p_gateway_ip \
-neighbor_intf_ip_addr_step 0.0.1.0 \
-loopback_ip_addr $pe_ip_address \
-loopback_ip_addr_step 0.0.1.0 \
-area_id $ospf_area_id \
-area_id_step 0.0.0.1 \
-area_type external-capable \
-network_type broadcast ]
#############################################
# Configure LDP Neighbor on P/PE port #
#############################################
set ldp_routers_status [ixia::emulation_ldp_config \
-mode create \
-port_handle $pe_port \
-label_adv unsolicited \
-peer_discovery link \
-count 1 \
-intf_ip_addr $p_ip_address \
-intf_prefix_length $p_prefix_len \
-intf_ip_addr_step 0.0.1.0 \
-lsr_id $p_lsr_id \
-label_space 0 \
-lsr_id_step 0.0.1.0 \
-mac_address_init $p_mac_address \
-gateway_ip_addr $p_gateway_ip \
-gateway_ip_addr_step 0.0.1.0 \
-reset ]
#################################################
# Configure ipv4_prefix fec type routes #
#################################################
set ldp_routers_status [ixia::emulation_ldp_route_config \
-mode create \
-handle $ldp_handle \
-fec_type ipv4_prefix \
-label_msg_type mapping \
-fec_ip_prefix_start $pe_ip_address \
-fec_ip_prefix_length 32 \
-egress_label_mode imnull ]
#############################################
# Configure BGP Neighbor on PE port #
#############################################
set bgp_router_status [ixia::emulation_bgp_config \
-mode reset \
-port_handle $pe_port \
-local_ip_addr $p_ip_address \
-remote_ip_addr $p_gateway_ip \
-local_addr_step 0.0.0.1 \
-local_loopback_ip_addr $pe_ip_address \
-remote_loopback_ip_addr $bgp_peer_ip \
-local_loopback_ip_addr_step 0.0.1.0 \
-count 1 \
-mac_address_start $p_mac_address \
-local_router_id $bgp_router_id \
-neighbor_type internal \
-ip_version 4 \
-local_as $bgp_as \
-local_as_mode fixed \
-active_connect_enable \
-ipv4_unicast_nlri \
-ipv4_mpls_vpn_nlri \
-ipv6_mpls_nlri ]
#############################################
# Configure L3 VPN Site on the BGP Neighbor #
#############################################
set bgp_route_range_status [::ixia::emulation_bgp_route_config \
-mode add \
-handle $bgp_neighbor_handle \
-ip_version 6 \
-prefix $pe_adv_network \
-prefix_step 1 \
-ipv6_prefix_length $pe_adv_prefix_len \
-label_value $pe_adv_label_start \
-num_sites 1 \
-num_routes $pe_adv_num_routes \
-label_step 1 \
-local_pref 0 \
-next_hop_enable 1 \
-origin_route_enable \
-enable_traditional_nlri 1 \
-ipv6_mpls_nlri ]
if {[keylget bgp_route_range_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget bgp_route_range_status log]"
}
##################### End of iBGP PE configuration ##################
#############################################
# Configure RIPng Neighbor on CE port #
#############################################
set rip_status [ixia::emulation_rip_config \
-port_handle $ce_port \
-mode create \
-reset \
-session_type ripng \
-intf_ip_addr $ce_ip_address \
-intf_prefix_length $ce_prefix_len \
-receive_type store \
-count 1 \
-vlan_id $ce_vlan_id \
-mac_address_init $ce_mac_address]
#############################################
# Configure two route ranges on RIP neighbor#
#############################################
set rip_status [ixia::emulation_rip_route_config \
-handle $rip_router \
-mode create \
-reset \
-num_prefixes $c_num_prefixes1 \
-prefix_start $c_network1 \
-prefix_length $c_prefix_len1 ]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
######################
# START OSPF (PE) on #
######################
set ospf_emulation_status [::ixia::emulation_ospf_control \
-handle $ospf_handle \
-mode start ]
######################
# START LDP on #
######################
set ldp_emulation_status [::ixia::emulation_ldp_control \
-handle $ldp_handle \
-mode start ]
######################
# START RIPng on #
######################
set isis_emulation_status [ixia::emulation_rip_control \
-handle $rip_router \
-mode start ]
after 40000
######################
# START BGP (PE) on #
######################
set bgp_emulation_status [::ixia::emulation_bgp_control \
-handle $bgp_neighbor_handle \
-mode start ]
after 30000
#############################################
# Create stream on CE ports #
#############################################
set traffic_status [::ixia::traffic_config \
-mode reset \
-port_handle $ce_port ]
if {[keylget traffic_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget traffic_status log]"
}
set traffic_status [::ixia::traffic_config \
-mode create \
-port_handle $ce_port \
-length_mode random \
-l3_length_min 128 \
-l3_length_max 1024 \
-enable_pgid 1 \
-pgid_value 1234 \
-l3_protocol ipv6 \
-ipv6_src_addr $c_network1 \
-ipv6_src_mode fixed \
-ipv6_dst_addr $pe_adv_network \
-ipv6_dst_mode fixed \
-mac_dst_mode discovery \
-vlan enable \
-vlan_id 901 \
-vlan_id_mode fixed ]
if {[keylget traffic_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget traffic_status log]"
}
#############################################
# Start traffic on CE port #
#############################################
# Clear stats before sending traffic
set clear_stats_status [ixia::traffic_control \
-port_handle "$pe_port $ce_port" \
-action clear_stats ]
if {[keylget clear_stats_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget clear_stats_status log]"
}
after 40000
#############################################
# Stop traffic on CE port #
#############################################
set traffic_status [::ixia::traffic_control \
-port_handle $ce_port \
-action stop ]
if {[keylget traffic_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget traffic_status log]"
}
after 5000
#############################################
# Print traffic stats #
#############################################
set ce_stats [ixia::traffic_stats -port_handle $ce_port -mode aggregate]
if {[keylget ce_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget ce_stats log]"
}
OSPFv2 (OSPFv2_router_control.tcl)
################################################################################
# #
# Description: #
# This sample creates two OSPFv2 routers on two different ports. On the #
# first router it configures a router behind the session router. Then it #
# starts the routers on both ports. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# #
# IPv4 #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 1 \
-duplex full \
-speed ether1000]
#################################################
# #
# Configure n OSPFv2 neighbors #
# #
#################################################
-router_id 1.1.1.1 \
-router_id_step 0.0.1.0 \
-neighbor_intf_ip_addr 100.1.1.2 \
-neighbor_intf_ip_addr_step 0.0.1.0 \
-vlan_id_step 5 \
-area_id 0.0.0.1 \
-area_id_step 0.0.0.1 \
-area_type external-capable \
-authentication_mode null \
-dead_interval 222 \
-hello_interval 333 \
-interface_cost 55 \
-lsa_discard_mode 1 \
-mtu 670 \
-network_type ptop \
-demand_circuit 1]
######################################################
# #
# Configure a single router behind a session router #
# #
######################################################
set route_config_status [::ixia::emulation_ospf_topology_route_config\
-mode create \
-handle $session_handle \
-type router \
-router_id 123.1.1.1 \
-router_abr 1 \
-router_asbr 1 \
-router_te 1 \
-interface_ip_address 22.0.0.1 \
-interface_ip_mask 255.255.0.0 \
]
-mtu 670 \
-network_type ptop \
-demand_circuit 1]
#################################################
# #
# Start OSPFv2 neighbors #
# #
#################################################
set ospf_neighbor_status [ixia::emulation_ospf_control \
-handle $session_handle \
-port_handle $port_handle \
-mode start \
]
OSPFv3 (OSPFv3_lsa_create_router.tcl)
################################################################################
# #
# Description: #
# This sample calls: #
# ::ixia::connect to connect to the chassis, reset to factory defaults #
# and take ownership. Configure interface in the test #
# #
# ::ixia::interface_config to configure interface in the test #
# #
# ::ixia::emulation_ospf_config to configure n OSPFv3 neighbors #
# #
# ::ixia::emulation_ospf_lsa_config to configure a Router LSA #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# #
# IPv4 #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 0 \
-duplex full \
-speed ether100]
#################################################
# #
# Configure n OSPFv3 neighbors #
# #
#################################################
-count 10 \
-intf_ip_addr 30::1 \
-intf_ip_addr_step 0:0:0:1::0 \
-router_id 30.1.1.1 \
-router_id_step 0.0.1.0 \
-instance_id 100 \
-instance_id_step 5 \
-vlan 1 \
-vlan_id 1000 \
-vlan_id_mode increment \
-vlan_id_step 2 \
-area_id 0.0.0.1 \
-area_id_step 0.0.0.1 \
-dead_interval 60 \
-hello_interval 20 \
-interface_cost 55 \
-lsa_discard_mode 1 \
-mtu 1500 \
-network_type broadcast \
-demand_circuit 1 ]
#################################################
# #
# Create Router LSA #
# #
#################################################
PIM (PIM_control.tcl)
################################################################################
# #
# Description: #
# This sample creates four PIM routers on two ports, starts, stops and #
# restarts the routers. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
##############################################################################
# Configure interface in the test
# IPv4
##############################################################################
set interface_status [::ixia::interface_config \
-port_handle $port_handle \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
##############################################################################
# Configure a PIM neighbor
##############################################################################
set pim_config_status [::ixia::emulation_pim_config \
-mode create \
-reset \
-port_handle $port1_handle \
-count 2 \
-ip_version 4 \
-intf_ip_addr 3.3.3.100 \
-intf_ip_addr_step 0.0.1.0 \
-intf_ip_prefix_length 24 \
-router_id 11.0.0.1 \
-router_id_step 0.0.0.1 \
-neighbor_intf_ip_addr 22.0.0.1 \
-dr_priority 10 \
-bidir_capable 0 \
-hello_interval 30 \
-hello_holdtime 40 \
-join_prune_interval 50 \
-join_prune_holdtime 60 \
-prune_delay_enable 1 \
-prune_delay 600 \
-override_interval 700 \
-vlan 1 \
-vlan_id 300 \
-vlan_id_mode increment \
-vlan_id_step 2 \
-vlan_user_priority 7 \
-mac_address_init 0000.0000.0001 \
-gateway_intf_ip_addr 3.3.3.1 \
-gateway_intf_ip_addr_step 0.0.1.0 \
-prune_delay_tbit 1 \
-send_generation_id 1 \
-generation_id_mode random \
-writeFlag nowrite ]
if {[keylget pim_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget pim_config_status log]"
}
set port1_session_handle [lindex [keylget pim_config_status handle] 0]
###############################################################
# Start the first PIM router per port. The second PIM router
# is enabled by default.
###############################################################
set pim_config_status [::ixia::emulation_pim_control \
-mode start \
-handle $port1_session_handle \
-flap_interval 300 \
-flap 1 \
]
#########################################################
# Stop the first PIM router per port
#########################################################
set pim_config_status [::ixia::emulation_pim_control \
-mode stop \
-handle $port1_session_handle \
-flap_interval 200 \
-flap 0 \
]
#########################################################
# Stop PIM protocol on port_handle
#########################################################
set pim_config_status [::ixia::emulation_pim_control \
-mode stop \
-port_handle $port1_handle \
]
#########################################################
# Restart PIM protocol on port_handle
#########################################################
set pim_config_status [::ixia::emulation_pim_control \
-mode restart \
-port_handle $port1_handle \
]
RIP (RIP_route_advertise_withdraw.tcl)
################################################################################
# #
# Description: #
# This sample creates RIPv1, RIPv2 and RIPng routers and adds route ranges #
# to each router. Then it withdraws and advertises all route ranges. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle1 \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
####################################################
# Configure interfaces and create RIP v1 sessions #
####################################################
set rip_status [ixia::emulation_rip_config \
-port_handle $port_handle1 \
-mode create \
-session_type ripv1 \
-reset \
-count 3 \
-intf_ip_addr 10.41.1.2 \
-neighbor_intf_ip_addr 10.41.1.1 \
-intf_prefix_length 24 \
-update_interval 50 \
-update_interval_offset 5 \
-update_mode no_horizon \
-mac_address_init 0000.0000.0001]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
set ripv1_routers [keylget rip_status handle]
set ripv1_route_ranges [list ]
set i 20
# Creates 2 route ranges for each router => a total of 6 route ranges
foreach ripv1_router $ripv1_routers {
# Create first route range
set rip_status [ixia::emulation_rip_route_config \
-handle $ripv1_router \
-mode create \
-reset \
-num_prefixes 5 \
-prefix_start $i.0.0.0 \
-prefix_length 8 \
-metric 2 \
]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
lappend ripv1_route_ranges [keylget rip_status route_handle]
# Create second route range
set rip_status [ixia::emulation_rip_route_config \
-handle $ripv1_router \
-mode create \
-num_prefixes 5 \
-prefix_start [mpexpr $i + 5].0.0.0 \
-prefix_length 8 \
-metric 2 \
]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
lappend ripv1_route_ranges [keylget rip_status route_handle]
incr i 10
}
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle2 \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
###################################################
# Configure interfaces and create RIPv2 sessions #
###################################################
set rip_status [ixia::emulation_rip_config \
-port_handle $port_handle2 \
-mode create \
-reset \
-intf_ip_addr 10.42.1.2 \
-neighbor_intf_ip_addr 10.42.1.1 \
-intf_prefix_length 24 \
-update_interval 50 \
-update_interval_offset 5 \
-update_mode poison_reverse \
-authentication_mode text \
-password abcde \
-send_type broadcast_v2 \
-receive_type v1_v2 \
-count 3 \
-mac_address_init 0000.0000.0004 ]
########################################
# Configure interface in the test #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle3 \
-autonegotiation 0 \
-duplex full \
-speed ether100 ]
###################################################
# Configure interfaces and create RIPng sessions #
###################################################
-session_type ripng \
-intf_ip_addr 30:30:30:30:1:1:1:1 \
-intf_prefix_length 64 \
-update_interval 50 \
-update_interval_offset 5 \
-update_mode no_horizon \
-receive_type store \
-interface_metric 2 \
-time_period 100 \
-num_routes_per_period 10 \
-router_id 20 \
-router_id_step 10 \
-count 3 \
-mac_address_init 0000.0000.0007]
if {[keylget ripng_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget ripng_status log]"
}
# Creates three route ranges for each router => a total of 9 routes
foreach ripng_router $ripng_routers {
# Create first route range
set rip_status [ixia::emulation_rip_route_config \
-handle $ripng_router \
-mode create \
-reset \
-num_prefixes 5 \
-prefix_start 10:$i:0:0:0:0:0:0 \
-prefix_length 32 \
-prefix_step 0:1000:0:0:0:0:0:0 \
-metric 2 \
-next_hop FE80:0:0:0:$i:$i:$i:$i \
]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
lappend ripng_route_ranges [keylget rip_status route_handle]
# Create second route range
set rip_status [ixia::emulation_rip_route_config \
-handle $ripng_router \
-mode create \
-num_prefixes 5 \
-prefix_start 20:20:$i:$i:0:0:0:0 \
-prefix_length 64 \
-metric 2 \
-route_tag 100 \
-next_hop FE81:0:0:0:$i:$i:$i:$i \
]
if {[keylget rip_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rip_status log]"
}
lappend ripng_route_ranges [keylget rip_status route_handle]
incr i
}
RSVP (RSVP_tunnel_info.tcl)
################################################################################
# #
# Description: #
# This sample creates two RSVP neighbors on two different ports. One is #
# configured as Ingress LSR, the other as Egress LSR. Then the emulated #
# neighbors are started and tunnel info is displayed. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
##############################################################################
# Configure a RSVP neighbor on ingress_port
##############################################################################
set rsvp_config_status [::ixia::emulation_rsvp_config \
-mode create \
-reset \
-port_handle $ingress_port \
-count 1 \
-refresh_reduction 0 \
-reliable_delivery 0 \
-bundle_msgs 0 \
-hello_msgs 1 \
-hello_interval 200 \
-hello_retry_count 4 \
-refresh_interval 200 \
-srefresh_interval 300 \
-egress_label_mode nextlabel \
-path_state_refresh_timeout 77 \
-path_state_timeout_count 5 \
-record_route 1 \
-resv_confirm 1 \
-resv_state_timeout_count 5 \
-resv_state_refresh_timeout 5 \
-min_label_value 20 \
-max_label_value 30 \
-vlan 1 \
-vlan_id 300 \
-vlan_id_mode fixed \
-vlan_id_step 2 \
-mac_address_init 0000.0000.0001 \
-intf_prefix_length 24 \
-ip_version 4 \
-intf_ip_addr 3.3.3.100 \
-intf_ip_addr_step 0.0.1.0 \
-neighbor_intf_ip_addr 3.3.3.1 \
-neighbor_intf_ip_addr_step 0.0.1.0 ]
if {[keylget rsvp_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rsvp_config_status log]"
}
##############################################################################
# Configure a RSVP neighbor on ingress_port
##############################################################################
set rsvp_config_status [::ixia::emulation_rsvp_config \
-mode create \
-reset \
-port_handle $egress_port \
-count 1 \
-refresh_reduction 0 \
-reliable_delivery 0 \
-bundle_msgs 0 \
-hello_msgs 1 \
-hello_interval 200 \
-hello_retry_count 4 \
-refresh_interval 200 \
-srefresh_interval 300 \
-egress_label_mode nextlabel \
-path_state_refresh_timeout 77 \
-path_state_timeout_count 5 \
-record_route 1 \
-resv_confirm 1 \
-resv_state_timeout_count 5 \
-resv_state_refresh_timeout 5 \
-min_label_value 20 \
-max_label_value 30 \
-vlan 1 \
-vlan_id 300 \
-vlan_id_mode fixed \
-vlan_id_step 2 \
-mac_address_init 0000.0000.0002 \
-intf_prefix_length 24 \
-ip_version 4 \
-intf_ip_addr 3.3.3.1 \
-intf_ip_addr_step 0.0.1.0 \
-neighbor_intf_ip_addr 3.3.3.100 \
-neighbor_intf_ip_addr_step 0.0.1.0 ]
if {[keylget rsvp_config_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget rsvp_config_status log]"
}
################################################################################
# Configure a RSVP Destination Range along with Sender Range
# handle - retured from the previous call
# rsvp_behavior - rsvpIngress
################################################################################
IxAccess Examples
IGMPoPPPoE (IGMPoPPPoE_traffic_mc_stats.tcl)
################################################################################
# #
# Description: #
# This sample configures a PPPoE tunnel with 5 sessions between the #
# SRC port and the DUT. Traffic is sent bidirectional. After that #
# multicast statistics are being retrieved. #
# #
# Module: #
# The sample was tested on a LM1000STXS4 module. #
# #
################################################################################
################################################################################
# DUT configuration: #
#
# conf t
# no aaa new-model
# vpdn enable
#
# # VPDN configuration 1:
# # # bba-group pppoe global
# # # virtual-template 27
# # # sessions per-vc limit 1000
# # # sessions per-mac limit 1000
# #
# # or
# #
# # VPDN configuration 2:
# vpdn-group 1
# accept-dialin
# protocol pppoe
# virtual-template 27
#
# ip multicast-routing
#
# ip local pool pppoe 16.16.16.2 16.16.16.254
#
# interface FastEthernet3/0
# no shut
# ip address 16.16.16.1 255.255.255.0
# ip pim dense-mode
# ip igmp version 2
# no ip route-cache cef
# no ip route-cache
# pppoe enable
# no shutdown
#
# interface FastEthernet4/0
# no shut
# ip address 18.18.18.1 255.255.255.0
# ip pim dense-mode
# ip igmp version 2
# no ip route-cache cef
# no ip route-cache
# no shutdown
#
# interface Virtual-Template27
# mtu 1492
# ip unnumbered FastEthernet3/0
# ip pim version 1
# ip pim dense-mode
# peer default ip address pool pppoe
# ppp ipcp address required
# no keepalive
# ppp max-bad-auth 20
# ppp timeout retry 10
#
# end
################################################################################
########################################
# Configure SRC interface in the test #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_src_handle \
-mode config \
-speed ether100 \
-phy_mode copper \
-autonegotiation 1 ]
if {[keylget interface_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
########################################
# Configure DST interface in the test #
########################################
set interface_status [::ixia::interface_config \
-port_handle $port_dst_handle \
-mode config \
-speed ether100 \
-phy_mode copper \
-autonegotiation 1 \
-intf_ip_addr 18.18.18.18 \
-gateway 18.18.18.1 \
-netmask 255.255.255.0 ]
if {[keylget interface_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
#########################################
# Configure sessions #
#########################################
set config_status [::ixia::pppox_config \
-port_handle $port_src_handle \
-protocol pppoe \
-encap ethernet_ii \
-num_sessions $sess_count \
-disconnect_rate 10 \
-auth_req_timeout 10 \
-enable_multicast 1 \
-mc_group_id testId001 \
-start_group_ip 227.7.7.7 \
-group_ip_count 2 \
-group_ip_step 0.1.0.0 \
-igmp_version IGMPv2 \
-watch_duration 60 ]
#########################################
# Connect sessions #
#########################################
set control_status [::ixia::pppox_control \
-handle $pppox_handle \
-action connect ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
puts "Sessions going up..."
set pppoe_attempts 0
set pppoe_sessions_up 0
while {($pppoe_attempts < 5) && ($pppoe_sessions_up < $sess_count)} {
after 10000
set pppox_status [::ixia::pppox_stats \
-handle $pppox_handle \
-mode aggregate ]
#########################################
# Configure traffic #
#########################################
set traffic_status [::ixia::traffic_config \
-mode create \
-port_handle $port_src_handle \
-port_handle2 $port_dst_handle \
-bidirectional 1 \
-l3_protocol ipv4 \
-ip_src_mode emulation \
-ip_src_count $sess_count \
-emulation_src_handle $pppox_handle \
-ip_dst_mode fixed \
-ip_dst_addr 18.18.18.18 \
-l3_length 1000 \
-rate_percent 1 \
-transmit_mode continuous \
-mac_dst_mode discovery \
-ip_precedence 1 \
-ip_cost 0 \
-ip_delay 0 \
-ip_reliability 0 \
-ip_reserved 0 \
-ip_throughput 0 \
-enable_voice 1 \
-enable_data 1 \
-voice_tos 64 \
-data_tos 32 \
-duration 60 ]
#########################################
# Clear traffic stats #
#########################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action clear_stats ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
puts "Starting to transmit traffic over tunnels..."
#########################################
# Start traffic #
#########################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action run ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
after 30000
#########################################
# Stop traffic #
#########################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action stop ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
#########################################
# Retrieve SRC aggregate traffic stats #
#########################################
set aggr_stats [::ixia::traffic_stats -port_handle $port_src_handle]
if {[keylget aggr_stats status] == $::FAILURE} {
return "FAIL - $test_name - [keylget aggr_stats log]"
}
#########################################
# Retrieve DST aggregate traffic stats #
#########################################
set aggr_stats [::ixia::traffic_stats -port_handle $port_dst_handle]
if {[keylget aggr_stats status] == $::FAILURE} {
return "FAIL - $test_name - [keylget aggr_stats log]"
}
#########################################
# Retrieve aggregate session stats #
#########################################
set aggr_status [::ixia::pppox_stats \
-handle $pppox_handle \
-mode aggregate ]
if {[keylget aggr_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget aggr_status log]"
}
#########################################
# Retrieve multicast stats #
#########################################
#########################################
# Disconnect sessions #
#########################################
if {0} {
puts "Disconnecting $sess_count_up sessions. "
set control_status [::ixia::pppox_control \
-handle $pppox_handle \
-action disconnect ]
if {[keylget control_status status] != $::SUCCESS} {
L2PoE (L2TPoE_LNS_DUT_PPPoE_tos_traffic.tcl)
################################################################################
# #
# Description: #
# This sample configures a PPPoE tunnel with 100 sessions between the #
# first Ixia port and DUT , and 10 L2TP tunnels each with 10 sessions #
# between DUT and the other Ixia port. Traffic is sent between the two Ixia #
# ports. #
# Topology is the following: #
# #
# Access PPPoE L2TPoE Destination #
# Network -------- LAC (DUT) ---------- LNS ----------- Network #
# (Ixia Port1) (Cisco 7200) (Ixia Port2) (Ixia Port2) #
# #
# #
# Module: #
# The sample was tested on a LM1000STXS4 module. #
# #
################################################################################
################################################################################
# DUT configuration: #
# #
# no service pad
# service timestamps debug uptime
# service timestamps log uptime
# no service password-encryption
#
# aaa new-model
#
# aaa authentication login telnet enable
# aaa session-id common
# ip subnet-zero
# no ip gratuitous-arps
#
# ip cef
# vpdn enable
# vpdn ip udp ignore checksum
# vpdn search-order domain
#
# vpdn-group x00000
# request-dialin
# protocol l2tp
# domain x0
# initiate-to ip 12.80.0.2
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00001
# request-dialin
# protocol l2tp
# domain x1
# initiate-to ip 12.80.0.3
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00002
# request-dialin
# protocol l2tp
# domain x2
# initiate-to ip 12.80.0.4
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00003
# request-dialin
# protocol l2tp
# domain x3
# initiate-to ip 12.80.0.5
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00004
# request-dialin
# protocol l2tp
# domain x4
# initiate-to ip 12.80.0.6
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
#
# vpdn-group x00005
# request-dialin
# protocol l2tp
# domain x5
# initiate-to ip 12.80.0.7
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00006
# request-dialin
# protocol l2tp
# domain x6
# initiate-to ip 12.80.0.8
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00007
# request-dialin
# protocol l2tp
# domain x7
# initiate-to ip 12.80.0.9
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
#
# vpdn-group x00008
# request-dialin
# protocol l2tp
# domain x8
# initiate-to ip 12.80.0.10
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# vpdn-group x00009
# request-dialin
# protocol l2tp
# domain x9
# initiate-to ip 12.80.0.11
# local name lac
# l2tp tunnel password cisco
# l2tp tunnel timeout no-session 1
# exit
#
# bba-group pppoe global
# virtual-template 1
# exit
#
# interface FastEthernet3/0
# no ip address
# no ip mroute-cache
# duplex half
# pppoe enable group global
# no keepalive
# no shutdown
# exit
#
# interface FastEthernet5/0
# ip address 12.80.0.1 255.255.255.0
# no ip mroute-cache
# duplex half
# no keepalive
# no shutdown
# exit
#
# interface Virtual-Template1
# mtu 1458
# no ip address
# no logging event link-status
# no snmp trap link-status
# no keepalive
# ppp max-bad-auth 10
# ppp mtu adaptive
# ppp authentication chap pap
# ppp timeout retry 15
# ppp timeout authentication 15
# exit
#
# ip classless
# no ip http server
#
# line vty 0 16
# login authentication telnet
#
# end
# #
################################################################################
################################################################################
# Configure access interface in the test
################################################################################
set interface_status [::ixia::interface_config \
-port_handle $access_port \
-mode config \
-speed ether100 \
-duplex half \
-phy_mode copper \
-autonegotiation 0 ]
if {[keylget interface_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
################################################################################
# Configure network interfaces in the test (one for each tunnel)
################################################################################
set port_handle_list ""
set intf_ip_addr_list ""
set gateway_list ""
set speed_list ""
set duplex_list ""
set auto_list ""
set phy_mode_list ""
set netmask_list ""
set src_mac_addr_list ""
################################################################################
# Configure PPPoE on access port
################################################################################
# Each tunnel will have a corresponding domain x0 - x9
# Users will be cisco@x1 - cisco@x9
set ppp_domain_group {{{x% 1 0 9 1} {}}}
set config_status [::ixia::pppox_config \
-port_handle $access_port \
-protocol pppoe \
-encap ethernet_ii \
-num_sessions $session_count \
-disconnect_rate 10 \
-auth_req_timeout 10 \
-auth_mode chap \
-username cisco \
-password cisco \
-domain_group_map $ppp_domain_group ]
################################################################################
# Configure L2TP on network port
################################################################################
# Each tunnel will have a corresponding domain x0 - x9
# Users will be cisco@x1 - cisco@x9
set l2tp_domain_group {{{x% 1 0 9 1} {}}}
set l2tp_status [::ixia::l2tp_config \
-port_handle $network_port \
-mode lns \
-l2_encap ethernet_ii \
-num_tunnels $tunnel_count \
-l2tp_src_addr 12.80.0.2 \
-l2tp_dst_addr 12.80.0.1 \
-sessions_per_tunnel $sessions_per_tunnel \
-l2tp_src_count $tunnel_count \
-l2tp_src_step 0.0.0.1 \
-l2tp_dst_step 0.0.0.0 \
-udp_src_port 1701 \
-udp_dst_port 1701 \
-tunnel_id_start 1 \
-session_id_start 1 \
-ppp_client_ip 54.0.0.2 \
-ppp_client_step 0.0.0.1 \
-ppp_server_ip 54.0.0.1 \
-tun_auth \
-hostname lac \
-secret cisco \
-tun_distribution next_tunnelfill_tunnel \
-domain_group_map $l2tp_domain_group \
-auth_mode chap \
-username cisco \
-password cisco \
-attempt_rate 10 ]
################################################################################
# Connect sessions
################################################################################
set control_status [::ixia::pppox_control \
-handle $pppox_handle \
-action connect ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
################################################################################
# Get PPPoE session aggregate statistics
################################################################################
set pppoe_attempts 0
set pppoe_sessions_up 0
set statList {
idle
connecting
num_sessions
connected
connect_success
sessions_up
success_setup_rate
min_setup_time
max_setup_time
avg_setup_time
}
puts "\n"
puts [format "%-41s" "[string repeat * 14] PPPoE STATS [string repeat * 14]"]
puts ""
puts [format "%-30s %-10s" Statistic Value]
puts [format "%-41s" [string repeat "-" 41]]
foreach {key} $statList {
if {![catch {keylget aggregate_stats $key}]} {
puts [format "%-30s %-10d" $key [keylget aggregate_stats $key]]
}
################################################################################
# Get L2TP session/tunnel aggregate statistics
################################################################################
set l2tp_attempts 0
set l2tp_tunnels_up 0
while {($l2tp_attempts < 20) && ($l2tp_tunnels_up < $tunnel_count)} {
after 10000
set l2tp_status [::ixia::l2tp_stats \
-handle $l2tp_handle \
-mode aggregate ]
set statList {
idle
connecting
num_sessions
connected
connect_success
sessions_up
tunnels_up
tunnels_neg
success_setup_rate
min_setup_time
max_setup_time
avg_setup_time
}
puts "\n"
puts [format "%-41s" "[string repeat * 14] L2TPoE STATS [string repeat * 13]"]
puts ""
################################################################################
# Clear traffic stats
################################################################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action clear_stats ]
################################################################################
# Start traffic
################################################################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action run ]
after 60000
################################################################################
# Stop traffic
################################################################################
set control_status [::ixia::traffic_control \
-port_handle $port_handle \
-action stop ]
###############################################################################
# Retrieve aggregate stats after traffic stopped
###############################################################################
set aggregate_stats [ixia::traffic_stats -port_handle $port_handle]
if {[keylget aggregate_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget aggregate_stats log]"
}
################################################################################
# Disconnect sessions
################################################################################
puts "Disconnecting sessions ... "
set control_status [::ixia::pppox_control \
-handle $pppox_handle \
-action disconnect ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
set control_status [::ixia::pppox_control \
-handle $l2tp_handle \
-action disconnect ]
if {[keylget control_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget control_status log]"
}
L2TPv3 (L2TPv3_stats.tcl)
################################################################################
# #
# Description: #
# This sample sets up a L2TPv3 configuration, starts everything and gathers #
# some statistics. #
# #
# Module: #
# The sample was tested on a LM1000TXS4 module. #
# #
################################################################################
#################################################
# Configure one L2TPv3 control connection #
# group containing two tunnels #
#################################################
set l2tpv3_cc_status [ixia::l2tpv3_dynamic_cc_config \
-action create \
-port_handle $port_handle \
-cc_id_start 10 \
-cc_src_ip 101.100.100.11 \
-cc_ip_mode increment \
-cc_src_ip_step 0.0.0.1 \
-cc_ip_count 1 \
-cc_src_ip_subnet_mask 255.255.255.0 \
-cc_dst_ip 172.16.100.192 \
-cc_dst_ip_step 0.0.0.0 \
-gateway_ip 101.100.100.1 \
-gateway_ip_step 0.0.0.0 \
-router_identification_mode hostname \
-hostname ixia \
-hostname_suffix_start 1 \
-router_id_min 1000 \
-cookie_size 4 \
-retransmit_retries 15 \
-retransmit_timeout_max 8 \
-retransmit_timeout_min 1 \
-hidden 0 \
-authentication 0 \
-password ixia \
-hello_interval 15 \
-l2tp_variant cisco_variant \
-peer_host_name 7200 ]
if {[keylget l2tpv3_cc_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget l2tpv3_cc_status log]"
}
set cc_handle [keylget l2tpv3_cc_status handle]
#################################################
# Configure a L2TPv3 session group with one #
# pseudo-wire on the control connection group #
#################################################
set l2tpv3_session_status [ixia::l2tpv3_session_config \
-action create \
-cc_handle $cc_handle \
-vcid_start 100 \
-vcid_mode increment \
-vcid_step 1 \
-num_sessions 1 \
-pw_type dot1q_ethernet \
-mac_src 0000.2222.3333 \
-mac_src_step 0000.0000.0001 \
-mac_dst 0000.5555.6666 \
-mac_dst_step 0000.0000.0001 \
-vlan_id 20 ]
if {[keylget l2tpv3_session_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget l2tpv3_session_status log]"
}
set session_handle [keylget l2tpv3_session_status handle]
#################################################
# Setup tunnels #
#################################################
set l2tpv3_control_status [ixia::l2tpv3_control \
-action start \
-port_handle $port_handle ]
#################################################
# Get statistics #
#################################################
set aggregate_stats [::ixia::l2tpv3_stats \
-mode aggregate \
-cc_handle $cc_handle ]
PPPoE (PPPoE_session.tcl)
################################################################################
# #
# Description: #
# This sample configures a PPPoE tunnel with 5 sessions. #
# Then it connects to the DUT(Cisco7206) and retrieves a few statistics. #
# #
# Module: #
# The sample was tested on a LM1000STXS4 module. #
# #
################################################################################
################################################################################
# DUT configuration: #
# #
# aaa new-model #
# aaa authentication ppp default none #
# aaa session-id common #
# #
# vpdn enable #
# #
# bba-group pppoe global #
# virtual-template 1 #
# sessions per-vc limit 1000 #
# sessions per-mac limit 1000 #
# #
# interface Loopback1 #
# ip address 10.10.10.1 255.255.255.0 #
# #
# ip local pool pppoe 10.10.10.2 10.10.10.254 #
# #
# interface FastEthernet1/0 #
# no ip address #
# no ip route-cache cef #
# no ip route-cache #
# duplex half #
# pppoe enable #
# no shut #
# #
# interface Virtual-Template1 #
# mtu 1492 #
# ip unnumbered Loopback1 #
# peer default ip address pool pppoe #
# no keepalive #
# ppp max-bad-auth 20 #
# ppp timeout retry 10 #
# #
################################################################################
################################################
# Configure session #
################################################
set pppox_config_status [ixia::pppox_config \
-port_handle $port_handle \
-protocol pppoe \
-encap ethernet_ii \
-num_sessions 5 \
-auth_req_timeout 10 \
-auth_mode none \
]
################################################
# Setup session #
################################################
set pppox_control_status [ixia::pppox_control \
-handle $pppox_handle \
-action connect \
]
after 10000
################################################
# Stats #
################################################
set aggr_status [::ixia::pppox_stats \
-handle $pppox_handle \
-mode aggregate ]
if {[keylget aggr_status status] != $::SUCCESS} {
return "FAIL - $test_name - [keylget aggr_status log]"
}
IxOS Examples
DHCPv4 (DHCP_host_group.tcl)
################################################################################
# #
# Description: #
# This sample configures/modifies 1 group of DHCP subscribers on a port. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
#################################################
# Configure DHCP on the interface 1/4/1 #
#################################################
set dhcp_portHandle_status [ixia::emulation_dhcp_config \
-mode create \
-port_handle $port_handle \
-lease_time 100 \
-max_dhcp_msg_size 1000 \
-reset ]
# Get the DHCP port handle from the keyed list (a session handle)
set dhcp_portHandle [keylget dhcp_portHandle_status handle]
#####################################################################
# Configure one group on each session on the interface 1/4/1 #
#####################################################################
-handle $dhcp_portHandle \
-encap vc_mux \
-vci 0 \
-vpi 32 \
-vci_step 2 \
-vpi_step 3 \
-vci_count 5 \
-vpi_count 10 \
-sessions_per_vc 4 \
-pvc_incr_mode vci ]
######################
# START DHCP #
######################
######################
# DHCP STATISTICS #
######################
Traffic (Streams_IPv4_stats.tcl)
################################################################################
# #
# Description: #
# This sample creates three IPv4 streams on a port, starts the streams #
# and displays statistics about them. #
# #
# Module: #
# The sample was tested on a LM100TXS8 module. #
# #
################################################################################
########
# IpV4 #
########
set ipV4_port_list "2/3 2/4"
set ipV4_ixia_list "1.1.1.2 1.1.1.1"
set ipV4_gateway_list "1.1.1.1 1.1.1.2"
set ipV4_netmask_list "255.255.255.0 255.255.255.0"
set ipV4_mac_list "0000.debb.0001 0000.debb.0002"
set ipV4_version_list "4 4"
set ipV4_autoneg_list "1 1"
set ipV4_duplex_list "full full"
set ipV4_speed_list "ether100 ether100"
#################################################################################
# START TEST #
#################################################################################
########################################
# Configure interface in the test #
# IPv4 #
########################################
set interface_status [ixia::interface_config \
-port_handle $port_handle \
-intf_ip_addr $ipV4_ixia_list \
-gateway $ipV4_gateway_list \
-netmask $ipV4_netmask_list \
-autonegotiation $ipV4_autoneg_list \
-duplex $ipV4_duplex_list \
-src_mac_addr $ipV4_mac_list \
-speed $ipV4_speed_list ]
if {[keylget interface_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget interface_status log]"
}
########################################
# Stream configuration #
# IPv4 #
########################################
# Delete all the streams first
set traffic_status [ixia::traffic_config \
-mode reset \
-port_handle $port_handle ]
########################################
# Traffic control #
########################################
# Sleep 5 seconds
ixia_sleep 5000
###############################################################################
# Retrieve stats while running
###############################################################################
ixia_sleep 8000
###############################################################################
# Retrieve stats after stopped
###############################################################################
# Get aggregrate stats for all ports
set aggregate_stats [ixia::traffic_stats -port_handle $port_handle]
if {[keylget aggregate_stats status] != $SUCCESS} {
return "FAIL - $test_name - [keylget aggregate_stats log]"
}
puts "\n\t\t########################"
puts "\t\t# STATIC STATS #"
puts "\t\t########################"
puts "\n******************* FINAL COUNT STATS **********************"
puts "\t\t$port_one\t\t$port_two"
puts "\t\t-----\t\t-----"
IxLoad Examples
FTP (FTP_basic_config.tcl)
################################################################################
# #
# Description: #
# This sample creates a FTP client and server basic configuration. #
# FTP traffic is sent from client side to server side. #
# At the end statistics are being retrieved. #
# #
# Module: #
# The sample was tested on a LM1000STXS4-256 module. #
# #
################################################################################
#####################
# Client FTP config #
#####################
set ftp_client_conf [::ixia::emulation_ftp_config \
-property ftp \
-mode add \
-target client \
-port_handle $port_handle1 \
-mac_mapping_mode macip \
-source_port_from 1024 \
-source_port_to 65535 \
-dns_cache_timeout 35000 \
-grat_arp_enable 1 \
-congestion_notification_enable 1 \
-time_stamp_enable 1 \
-keep_alive_time 9 \
-keep_alive_probes 75 \
-keep_alive_interval 9600 \
-fin_timeout 60 \
-receive_buffer_size 4096 \
-transmit_buffer_size 4096 \
-syn_ack_retries 5 \
-syn_retries 5 \
-retransmit_retries 15 ]
####################
# Sever FTP config #
####################
set ftp_server_conf [::ixia::emulation_ftp_config \
-property ftp \
-mode add \
-target server \
-port_handle $port_handle2 \
-mac_mapping_mode macip ]
#########################
# Client network config #
#########################
set client_network_conf [::ixia::emulation_ftp_config \
-property network \
-mode add \
-handle [keylget ftp_client_conf handles] \
-ip_address_start 198.18.0.1 \
-network_mask 255.255.0.0 \
-ip_count 1 \
-ip_increment_step 0.0.0.1 \
-gateway 0.0.0.0 \
-mac_address_start 00:C6:12:00:01:00 \
-mac_increment_step 00:00:00:00:01:00 \
-grat_arp_enable 1 \
-mss_enable 1 \
-mss 1460 ]
#########################
# Server network config #
#########################
set server_network_conf [::ixia::emulation_ftp_config \
-property network \
-mode add \
-handle [keylget ftp_server_conf handles] \
-ip_address_start 198.18.0.101 \
-network_mask 255.255.0.0 \
-ip_count 10 \
-ip_increment_step 0.0.0.1 \
-grat_arp_enable 1 \
-mss_enable 1 \
-mss 1460 ]
#########################
# Client traffic config #
#########################
set ftp_client_traffic [::ixia::emulation_ftp_traffic_config \
-property traffic \
-mode add \
-target client ]
#########################
# Server traffic config #
#########################
set ftp_server_traffic [::ixia::emulation_ftp_traffic_config \
-property traffic \
-mode add \
-target server ]
#######################
# Server agent config #
#######################
set ftp_server_agent [::ixia::emulation_ftp_traffic_config \
-property agent \
-mode add \
-handle [keylget ftp_server_traffic handles] \
-target server ]
#######################
# Client agent config #
#######################
set ftp_client_agent [::ixia::emulation_ftp_traffic_config \
-property agent \
-mode add \
-handle [keylget ftp_client_traffic handles] \
-target client ]
########################
# Client action config #
########################
############################
# Client map configuration #
############################
set ftp_client_map [::ixia::emulation_ftp_control_config \
-property map \
-mode add \
-client_iterations 1 \
-target client \
-client_ftp_handle [keylget ftp_client_conf handles] \
-client_traffic_handle [keylget ftp_client_traffic handles] \
-objective_type users \
-ramp_up_type users_per_second \
-objective_value 10 \
-ramp_up_value 10 \
-client_sustain_time 43 \
-port_map_policy pairs \
-ramp_down_time 20 \
-client_offline_time 3 \
-client_total_time 64 \
-client_standby_time 0 ]
############################
# Server map configuration #
############################
set ftp_server_map [::ixia::emulation_ftp_control_config \
-property map \
-mode add \
-target server \
-server_ftp_handle [keylget ftp_server_conf handles] \
-server_traffic_handle [keylget ftp_server_traffic handles] \
-server_sustain_time 65 \
-server_total_time 65 \
-server_iterations 1 \
-match_client_totaltime 1 ]
set client_stats_list {
ftp_simulated_users \
ftp_concurrent_sessions \
ftp_connections \
ftp_transactions \
ftp_bytes \
ftp_control_conn_requested \
ftp_control_conn_established \
ftp_control_conn_failed \
ftp_control_conn_failed_rejected \
ftp_control_conn_failed_other \
ftp_control_conn_active \
ftp_data_conn_established \
ftp_data_conn_established_active_mode \
ftp_data_conn_requested_passive_mode \
ftp_data_conn_established_passive_mode \
ftp_data_conn_failed_passive_mode \
ftp_file_uploads_requested \
ftp_file_uploads_successful \
ftp_file_uploads_failed \
ftp_file_downloads_requested \
ftp_file_downloads_successful \
ftp_file_downloads_failed \
ftp_data_bytes_sent \
ftp_data_bytes_received \
ftp_control_connection_latency \
ftp_data_connection_latency_passive_mode \
ftp_data_connection_latency_passive_mode \
}
#####################
# Client statistics #
#####################
set ftp_client_stats [::ixia::emulation_ftp_stats \
-mode add \
-aggregation_type sum \
-stat_name $client_stats_list \
-stat_type client ]
set server_stats_list {
ftp_control_conn_received \
ftp_control_conn_established \
ftp_control_conn_rejected \
ftp_control_conn_active \
ftp_data_conn_established \
ftp_data_conn_requested_active \
ftp_data_conn_established_active \
ftp_data_conn_failed_active \
ftp_data_conn_established_passive \
ftp_data_conn_active \
ftp_file_uploads_requested \
ftp_file_uploads_successful \
ftp_file_uploads_failed \
ftp_file_downloads_requested \
ftp_file_downloads_successful \
ftp_file_downloads_failed \
ftp_data_bytes_sent \
ftp_data_bytes_received \
ftp_control_bytes_sent \
ftp_control_bytes_received \
ftp_data_conn_latency \
}
#####################
# Server statistics #
#####################
set ftp_server_stats [::ixia::emulation_ftp_stats \
-mode add \
-aggregation_type sum \
-stat_name $server_stats_list \
-stat_type server ]
#########################
# Control configuration #
#########################
set ftp_control [::ixia::emulation_ftp_control \
-mode add \
-map_handle [list [keylget ftp_client_map handles] \
[keylget ftp_server_map handles]] \
-results_dir_enable 1 \
-results_dir {/home/testuser/ftp_results_dir} \
-force_ownership_enable 1 \
-release_config_afterrun_enable 1 \
-reset_ports_enable 1 \
-stats_required 1 ]
###############
# Start test
###
set ftp_control [::ixia::emulation_ftp_control \
-handle [keylget ftp_control handles] \
-mode start ]
###################
# Get statistics
###
set client_stats_result [::ixia::emulation_ftp_stats \
-mode get \
-handle [keylget ftp_client_stats handles] ]
###########################
# Print client statistics #
###########################
ixPuts "CLIENT STATISTICS:"
foreach {stat_handle} [keylkeys client_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget client_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
ixPuts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}
###########################
# Print server statistics #
###########################
ixPuts "SERVER STATISTICS:"
foreach {stat_handle} [keylkeys server_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget server_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
ixPuts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}
} error
##################################################
# Disconnect and cleanup variables and sessions
###
::ixia::cleanup_session
if {$error != ""} {
ixPuts $error
} else {
return "SUCCESS - $test_name - [clock format [clock seconds]]"
}
HTTP (HTTP_emulated_router.tcl)
################################################################################
# #
# Description: #
# This sample creates a HTTP client and server configuration with emulated #
# routers between emulated networks and port.Client is simulating a GET #
# command.
# HTTP traffic is sent from clent side to server side. #
# At the end statistics are being retrieved. #
# #
# Module: #
# The sample was tested on a LM1000STXS4-256 module. #
# #
################################################################################
#########################
# Configure HTTP client #
#########################
set http_client_conf [ixia::emulation_http_config \
-target client \
-property http \
-mode add \
-port_handle $port_handle1 \
-mac_mapping_mode macport \
-source_port_from 1024 \
-source_port_to 65535 \
-dns_cache_timeout 35000 \
-grat_arp_enable 1 \
-congestion_notification_enable 1 \
-time_stamp_enable 1 \
-keep_alive_time 9 \
-keep_alive_probes 75 \
-keep_alive_interval 9600 \
-fin_timeout 60 \
-receive_buffer_size 4096 \
-transmit_buffer_size 4096 \
-syn_ack_retries 5 \
-syn_retries 5 \
-retransmit_retries 15 ]
########################################################
# adding a network range for http client configuration #
########################################################
set client_network_conf [ixia::emulation_http_config \
-handle [keylget http_client_conf handles] \
-property network \
-mode add \
-ip_address_start 10.10.10.1 \
-mac_address_start 90.a0.a5.22.c1.09 \
-network_mask 255.255.255.0 \
-gateway 0.0.0.0 \
-ip_count 30 \
-ip_increment_step 0.0.0.1 \
-mac_increment_step 00.00.00.00.00.01 ]
##########################
# adding two dns servers #
##########################
##########################################################
##ading emulated router router_address/macperport client #
##########################################################
#####################################
# configuring a http client traffic #
#####################################
set http_client_traffic [::ixia::emulation_http_traffic_config \
-target client \
-property traffic \
-mode add ]
################
# Client AGENT #
################
set http_client_agent [::ixia::emulation_http_traffic_config \
-property agent \
-handle [keylget http_client_traffic handles] \
-mode add \
-max_sessions 3 \
-http_version 1.0 \
-keep_alive 0 \
-max_persistent_requests 3 \
-follow_http_redirects 0 \
-cookie_support_enable 0 \
-http_proxy_enable 0 \
-https_proxy_enable 0 \
-ssl_enable 0 \
-browser_emulation ie6 ]
#########################
# Configure HTTP server #
#########################
##########################################################
##ading emulated router router_address/macperport server #
##########################################################
#####################################
# configuring a http server traffic #
#####################################
set http_server_traffic [::ixia::emulation_http_traffic_config \
-target server \
-property traffic \
-mode add ]
#####################################################################
# adding an http server agent that will receive http client traffic #
#####################################################################
set http_server_agent [::ixia::emulation_http_traffic_config \
-property agent \
-handle [keylget http_server_traffic handles] \
-mode add \
-http_port 80 ]
# We have SUCCESS
# set some handy variables
###############################
# CLIENT TRAFFIC AGENT ACTION #
###############################
set http_client_action [::ixia::emulation_http_traffic_type_config \
-property action \
-handle [keylget http_client_agent handles] \
-mode add \
-command get \
-destination [keylget http_server_agent handles] \
-page_handle [lindex $serverPageHandles 5] ]
##########################################################
# map http client configuration with http client traffic #
##########################################################
set http_client_map [::ixia::emulation_http_control_config \
-target client \
-property map \
-mode add \
-client_iterations 1 \
-client_http_handle [keylget http_client_conf handles] \
-client_traffic_handle [keylget http_client_traffic handles] \
-objective_type users \
-objective_value 30 \
-ramp_up_type users_per_second \
-ramp_up_value 10 \
-client_sustain_time 43 \
-port_map_policy pairs \
-ramp_down_time 20 \
-client_offline_time 2 \
-client_total_time 43 \
-client_standby_time 0 ]
################################################################
# create statistics for client.
###
set client_stats_list {
http_transactions
http_users_active
http_bytes_sent
http_bytes_received
http_cookies_received
http_cookies_sent
http_cookies_rejected
http_connect_time
http_cookies_rejected_path
http_cookies_rejected_domain
http_cookies_rejected_overflow
http_cookies_rejected_probabilistic
http_connect_time
}
set server_stats_list {
http_requests_received
http_requests_successful
http_requests_failed
http_sessions_rejected
http_session_timeouts
http_transactions_active
http_bytes_received
http_bytes_sent
http_cookies_received
http_cookies_sent
}
###############
# Start test
###
set http_control [::ixia::emulation_http_control \
-handle [keylget http_control handles] \
-mode start ]
###################
# Get statistics
###
set client_stats_result [::ixia::emulation_http_stats \
-mode get \
-handle [keylget http_client_stat handles] ]
###########################
# Print client statistics #
###########################
ixPuts "CLIENT STATISTICS:"
foreach {stat_handle} [keylkeys client_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget client_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
ixPuts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}
###########################
# Print server statistics #
###########################
ixPuts "SERVER STATISTICS:"
foreach {stat_handle} [keylkeys server_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget server_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
ixPuts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}
} error
##################################################
# Disconnect and cleanup variables and sessions
###
::ixia::cleanup_session
if {$error != ""} {
ixPuts $error
} else {
return "SUCCESS - $test_name - [clock format [clock seconds]]"
}
TELNET (TELNET_basic_config.tcl)
################################################################################
# #
# Description: #
# This sample creates a Telnet client and server basic configuration. #
# Telnet traffic is sent from clent side to server side. #
# At the end statistics are being retrieved. #
# #
# Module: #
# The sample was tested on a LM1000STXS4-256 module. #
# #
################################################################################
################################################################################
# Connect to the chassis, reset to factory defaults and take ownership
################################################################################
set connect_status [ixia::connect \
-reset \
-device $chassisIP \
-port_list $port_list \
-username ixiaApiUser ]
if {[keylget connect_status status] != $SUCCESS} {
return "FAIL - $test_name - [keylget connect_status log]"
}
################################################################################
# Client network
################################################################################
set client_network [ixia::emulation_telnet_config \
-target client \
-property telnet \
-mode add \
-port_handle $port_handle1 \
-mac_mapping_mode macip \
-source_port_from 1024 \
-source_port_to 65535 \
-dns_cache_timeout 35000 \
-grat_arp_enable 1 \
-congestion_notification_enable 1 \
-time_stamp_enable 1 \
-keep_alive_time 9 \
-keep_alive_probes 75 \
-keep_alive_interval 9600 \
-fin_timeout 60 \
-receive_buffer_size 4096 \
-transmit_buffer_size 4096 \
-syn_ack_retries 5 \
-syn_retries 5 \
-retransmit_retries 15 ]
################################################################################
# Client network range
################################################################################
set client_network_range [ixia::emulation_telnet_config \
-handle $client_network_handle \
-property network \
-mode add \
-ip_address_start 20.0.1.1 \
-network_mask 255.255.0.0 \
-ip_count 100 \
-ip_increment_step 0.0.0.1 \
-gateway 0.0.0.0 \
-mac_address_start 00.01.01.01.01.00 \
-mac_increment_step 00.00.00.00.00.01 ]
################################################################################
# Client DNS
################################################################################
set client_dns [::ixia::emulation_telnet_config \
-handle $client_network_handle \
-property dns \
-mode add \
-dns_server 20.0.2.1 \
-dns_suffix .ixiacom.com ]
################################################################################
# Client DNS
################################################################################
set client_dns [::ixia::emulation_telnet_config \
-handle $client_network_handle \
-property dns \
-mode add \
-dns_server 20.0.2.2 \
-dns_suffix .ixiacom.com ]
################################################################################
# Server network
################################################################################
set server_network [ixia::emulation_telnet_config \
-target server \
-property telnet \
-mode add \
-port_handle $port_handle2 \
-mac_mapping_mode macip \
-source_port_from 1024 \
-source_port_to 65535 \
-dns_cache_timeout 35000 \
-grat_arp_enable 1 \
-congestion_notification_enable 1 \
-time_stamp_enable 1 \
-keep_alive_time 9 \
-keep_alive_probes 75 \
-keep_alive_interval 9600 \
-fin_timeout 60 \
-receive_buffer_size 4096 \
-transmit_buffer_size 4096 \
-syn_ack_retries 5 \
-syn_retries 5 \
-retransmit_retries 15 ]
################################################################################
# Server network range
################################################################################
set server_network_range [ixia::emulation_telnet_config \
-handle $server_network_handle \
-property network \
-mode add \
-ip_address_start 20.0.3.1 \
-ip_count 1 \
-network_mask 255.255.0.0 \
-gateway 0.0.0.0 \
-ip_increment_step 0.0.0.1 \
-mac_address_start 00.03.03.03.03.00 \
-mac_increment_step 00.00.00.00.00.01 \
]
################################################################################
# Server traffic
################################################################################
set server_traffic [::ixia::emulation_telnet_traffic_config \
-target server \
-property traffic \
-mode add ]
################################################################################
# Server traffic agent
################################################################################
set server_agent [::ixia::emulation_telnet_traffic_config \
-handle $server_traffic_handle \
-property agent \
-mode add \
-server_close_command exit \
-server_command_prompt # \
-echo_enable 1 \
-linemode_enable 1 \
-goahead_enable 0 \
-port 23 ]
################################################################################
# Server traffic-network mapping
################################################################################
set server_map [::ixia::emulation_telnet_control_config \
-target server \
-property map \
-mode add \
-server_telnet_handle $server_network_handle \
-server_traffic_handle $server_traffic_handle \
-server_offline_time 10 \
-match_client_totaltime 1 ]
################################################################################
# Client traffic
################################################################################
set client_traffic [::ixia::emulation_telnet_traffic_config \
-target client \
-property traffic \
-mode add ]
################################################################################
# Client agent
################################################################################
set client_agent [::ixia::emulation_telnet_traffic_config \
-handle $client_traffic_handle \
-property agent \
-mode add \
-target client \
-options_enable 1 \
-default_command_prompt # \
-expect_timeout 10 ]
################################################################################
# Client commands
################################################################################
set command_1 [::ixia::emulation_telnet_traffic_config \
-handle $client_agent_handle \
-property action \
-mode add \
-target client \
-command open \
-expect login: \
-server_ip 20.0.3.1 ]
################################################################################
# Client traffic-network mapping
################################################################################
set client_map [::ixia::emulation_telnet_control_config \
-target client \
-property map \
-mode add \
-client_iterations 1 \
-client_telnet_handle $client_network_handle \
-client_traffic_handle $client_traffic_handle \
-objective_type users \
-objective_value 100 \
-ramp_up_type users_per_second \
-ramp_up_value 1 \
-client_sustain_time 20 \
-port_map_policy pairs \
-ramp_down_time 20 \
-client_offline_time 0 \
-client_total_time 140 \
-client_standby_time 0 ]
################################################################################
# Client and server mapping
################################################################################
set results_dir [pwd]/results/[clock seconds]
set control_status [::ixia::emulation_telnet_control \
-mode add \
-map_handle [list \
$client_map_handle $server_map_handle] \
-force_ownership_enable 1 \
-release_config_afterrun_enable 1 \
-reset_ports_enable 1 \
-stats_required 1 \
-results_dir_enable 1 \
-results_dir $results_dir ]
################################################################################
# Client statistics
################################################################################
set client_stats_list {
telnet_active_conn
telnet_total_conn_requested
telnet_total_conn_succeeded
telnet_total_conn_failed
telnet_total_bytes_sent
telnet_total_bytes_received
telnet_total_bytes_sent_and_received
}
set stats_result [::ixia::emulation_telnet_stats \
-mode add \
-aggregation_type sum \
-stat_name $client_stats_list \
-stat_type client ]
################################################################################
# Server statitics
################################################################################
set server_stats_list {
telnet_active_conn
telnet_total_accepted_conn
telnet_total_bytes_sent
telnet_total_bytes_received
}
################################################################################
# Start test
################################################################################
set control_status [::ixia::emulation_telnet_control \
-handle $test_handle \
-mode start ]
################################################################################
# Get statistics
################################################################################
set client_stats_result [::ixia::emulation_telnet_stats \
-mode get \
-handle $client_stat_handle ]
################################################################################
# Print client statistics
################################################################################
puts "CLIENT STATISTICS:"
foreach {stat_handle} [keylkeys client_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget client_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
puts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}
################################################################################
# Print server statistics
################################################################################
puts "SERVER STATISTICS:"
foreach {stat_handle} [keylkeys server_stats_result] {
if {$stat_handle != "status"} {
set stat_handle_kl [keylget server_stats_result $stat_handle]
foreach {stat_type} [keylkeys stat_handle_kl] {
set stat_type_kl [keylget stat_handle_kl $stat_type]
foreach {stat_name} [keylkeys stat_type_kl] {
set stat_name_kl [keylget stat_type_kl $stat_name]
puts -nonewline [format \
"%10s %10s %40s" $stat_handle $stat_type $stat_name]
}
}
}
}