Thursday, October 30, 2014

TCL IxLoad iSCSIServer : build a custom 512 entries target table


Example:
Build a 512 nodes  Target Pool  table wit the following distribution :





#################################################
# Activity iSCSIServer1 of NetTraffic Traffic1@Network1
#################################################
set Activity_iSCSIServer1 [$Traffic1_Network1 activityList.appendItem -protocolAndType "iscsi Server"]

#################################################
# Timeline1 for activities iSCSIServer1
#################################################
set Timeline1 [::IxLoad new ixTimeline]

$Timeline1 config

$Activity_iSCSIServer1 config \
-name                                    "iSCSIServer1" \
-timeline                                $Timeline1 

$Activity_iSCSIServer1 agent.config

$Activity_iSCSIServer1 agent.pm.advOptions.config

$Activity_iSCSIServer1 agent.pm.iscsi.config

set N 512

$Activity_iSCSIServer1 agent.pm.iscsiTarget.config \
-numberOfTargets                         $N \
-numberOfLuns                            $N \
-numberOfPortals                         1 

$Activity_iSCSIServer1 agent.pm.iscsiTarget.nodeList.clear

$Activity_iSCSIServer1 agent.pm.iscsiTarget.nodeList.appendItem \
-id                                      "NodeTargetPortal" \
-parentName                              "" \
-nodeType                                2 \
-name                                    "TP1" \
-enableTargetAlias                       true \
-selfId                                  1 \
-numberOfChildren                        $N \
-parentId                                -1 

for {set i 1} {$i <=$N} {incr i} {
set A [expr { 2* $i}]
set B [expr {$A + 1}]
$Activity_iSCSIServer1 agent.pm.iscsiTarget.nodeList.appendItem \
-id                                      "NodeTargetGroup" \
-targetAlias                             "ixiacom-iscsiTG$i" \
-parentName                              "TP1" \
-nodeType                                1 \
-name                                    "TG$i" \
-enableTargetAlias                       true \
-selfId                                  $A \
-numberOfChildren                        1 \
-parentId                                1 \
-targetName                              "iqn.2010-11.com.ixia:ixload:iscsiTG$i"

$Activity_iSCSIServer1 agent.pm.iscsiTarget.nodeList.appendItem \
-id                                      "Node" \
-parentName                              "TG$i" \
-name                                    "LUN$i" \
-selfId                                  $B \
-lunBlockSize                            "512" \
-logicalUnitNumber                       "0" \
-parentId                                $A \
-lunCapacity                             "307199" 
}

$Activity_iSCSIServer1 agent.pm.availableTosList.clear

$Traffic1_Network1 traffic.config

$Traffic1_Network1 setPortOperationModeAllowed $::ixPort(kOperationModeThroughputAcceleration) false

$Traffic1_Network1 setPortOperationModeAllowed $::ixPort(kOperationModeFCoEOffload) true

$Traffic1_Network1 setTcpAccelerationAllowed $::ixAgent(kTcpAcceleration) true

$Originate elementList.appendItem -object $Traffic1_Network1



$Originate config -name "Originate"

$Scenario1 columnList.appendItem -object $Originate



set DUT [::IxLoad new ixTrafficColumn]

$DUT elementList.clear

$DUT config -name "DUT"

$Scenario1 columnList.appendItem -object $DUT



set Terminate [::IxLoad new ixTrafficColumn]

$Terminate elementList.clear

$Terminate config -name "Terminate"

$Scenario1 columnList.appendItem -object $Terminate



$Scenario1 links.clear

$Scenario1 config

$Test1 config \
-csvThroughputScalingFactor              1000 \
-enableNetworkDiagnostics                false \
-currentUniqueIDForAgent                 1 \
-profileDirectory                        $profileDirectory \
-eventHandlerSettings                    $my_ixEventHandlerSettings \
-captureViewOptions                      $my_ixViewOptions 


Monday, September 29, 2014

IxLoad 802.1x Stored certificates



 In order to use stored certificated you will need to enable the option at plugin level:

























When using the stored certificate option you can authenticate:
- the emulated host (per each MAC address the Ixia port emulates)
- the user that is trying to authenticate (also emulated per each MAC address)
- or both 
These settings can be changed on each 802.1x range, like in the picture below:













None is equivalent to User only authentication
Host only authenticates the host
Host user-both authenticates both the host and the user

In stored certificate scenario,  regardless of the authentication type, the root.pem certificate is needed on the local IxLoad client machine and as the test gets configured, it will be copied to the port.


Additionally, that means that depending on the ‘Host authentication mode’ you need:
-         1 more certificate for each user that you try to authenticate 
-         1 more certificate for each host that you try to authenticate
-         2 more certificates for each host + user pair





Notes :

The Send CA certificate only checkbox makes IxLoad look only for the root.pem 
certificate in the path you provide in Certificate location and copy it only (without any 
additional user certificates) on the port.

The Obtain CA certificate only checkbox only has relevance and works when used with 
Run-Time Certificate Generation





Friday, August 8, 2014

IxLoad HTTP : How to test a real webpage



       By default when requesting  a transaction IxLoad uses  an URL  with  the following format:
http://<IP>/<page/object>:<port_number>

For example when you set  the following in the GET command: Destination (IP or IP:port) =1.1.1.1 
                                                                                            Page/Object= /1b.html                                  
The URI used will be:   URI=1.1.1.1/1b.html                                                                  
        On the real world will not usually see this type of URI. Instead of  IP address will see a host name.
For example: www.blogger.com/login.html


         In the following example I will  explain how to setup  IxLoad  to simulate that  is actually a  HTTP browser opening www.google.com

Configuration  steps:
1. Find out the default object for www.google.com
On an internet browser type www.google.com and se what page it pops-up


2. Set the GET request in the HTTP Client activity  as in the following prinscreen:


3. Assign an IP address to the hostname www.google.com
On HTTP client click on NetTraffic Network2 then on DNS settings DNS2 and add a hostname entry for  your website 























****In case you forget to add the DNS entry you will get an error like this:

Wednesday, June 4, 2014

IxLoad: How to run config from command line

"C:\Program Files (x86)\Ixia\IxLoad\IxLoadVersion\ixLoad.exe" -repository "C:\configlocation.rxf"

Example:
"C:\Program Files (x86)\Ixia\IxLoad\6.40-EA\ixLoad.exe" -repository "C:\Users\spaven\Desktop\b2bHTTP.rxf"

Wednesday, May 14, 2014

IxLoad: How to set custom DSCP value


    In general the DSCP settings are  availabe on the the Activity's Advanced tab (for both client and server)
For example for  HTTP client  is here:
























    On releases  prior  6.40 EA the options defined in the drop down list do not cover all the   possible combination.


In that case, if you would like for example  to use a custom DSCP value you will have to  set  in that box the TOS integer value associated to it.
integer_TOS =integer_DSCP x 4
TOS(8b)=DSCP(6B)+2B

Monday, April 28, 2014

IxLoad IPsec: how to troubleshoot tunnel negotiation


   In order to troubleshoot tunnel negotiation  you will need to Enable Extra Port Logging for IPsec stack as in the  printscreen bellow.

*** enabling Extra Port Logging is affecting the performance numbers; use it only when you need to troubleshoot setup issues.

After you run the test ftp to  card using Internet Explorer
user: root
pass:1x1ac0m.c0m

Follow the direction to open  the directory in Windows Explorer
This will help you coy more files in the same time of you need it.


Go to  the  folder mng_IP/shared/port and search for the last xike.log
This will contain some detailed info about the tunnel setup process.





Friday, April 25, 2014

IxLoad How to create an ARP broadcast storm

   IxLoad was not design to test L2 features ( as ARP)  but in case you do not have available other tools as IxNetwork or IxExplorer  there are some ways on  which you create an ARP  storm.

Scenario:
Let's  say you need to have 1000 ARP  request  sent to your Gateway IP address

Setup:
Create one IP Range having 1000 IP address and set the GW as your DUT.
DUT IP=1.0.0.1
Ixia Port IP= 1.0.0.2+1000/22

Configuration:
1. Create one IP range with 1000 clients

2. Click on IP  plugin on the stack and then  click on Plugin settings in Main ribbon.
     Enable  Gateway ARP for each IP Address

3. Apply the configuration in order to generate the ARP storm,  you do not need to run the configuration.




IxLoad How to configure Static ARP


  There are situation on which  the Gateway  IP address  is configured on a DUT which does not reply  to ARP  request. For this particular cases you need to create a static ARP entry for the gateway on IxLoad.

Setup:
Let's consider the following setup:
Client IP address is 1.1.1.1
Gateway  IP address is 1.1.1.254 and Gateway MAC address is aa:bb:cc:00:00:00
***GW does not reply to ARP








Configuration:
In order to accomodate this setup, you will need to add a Static ARP plugin which  on which you will define the MAC address associated with the Gateway IP address  as in the  images bellow.

 1. Righ click on the IP plugin and chose Add above Static ARP




















2.  Set the proper (MAC, IP ) association on the Static ARP plugin










**If you are not able to  add a plugin,  make sure that the configuration is not applied on the ports . Press the button Release Config in Main ribbon and then try to perform the steps again.


IxLoad XT80 commands

 How to find  the serial number of an appliance
telnet to management IP of the node and run command ipmitool fru print



 How to find the IxOS version running on the appliance
telnet to node management IP  and run command cat /var/ixos_version











 How to configure/ verify  the node IP address configuration
telnet to node management IP  and run command ixos-config.sh

  How to  list the active IPMI connections 
telnet to node management IP  and run command ipmitool session info all
*** you can check remotely with this command ipmitool -U ADMIN -P 1x1ac0m.c0m -I lanplus -H $IPMI_ADDR session info all


  How to  upgrade the XT80 manually?
1. upload the cpd-install.tgz on the node

2. install using command ixos-install.sh

3. reboot







IxLoad HTTP : How to include more HTTP transaction in the same TCP packet


    In some situation you will need to have more HTTP transaction included in  the same TCP packet as in the following image.

To  obtain this behavior you will need to modify the Max pipeline value in HTTP Client Settings tab to the number of transactions that you would like to be included in a packet.
























The TCP  connection will look like this:

Wednesday, April 23, 2014

IxLoad mongod.log is very big














   MongoDB is a 3rdParty application we are using for storing Resource Manager content including AppLib flows) 

Sometimes  MongoDB service enters an infinite restarting state and writes output in mongod.log wchich mankes the log incredible big.

To fix this please follow the steps described in the release notes
1.       Stop ResourceManager service
2.       Stop MongoDB service
3.       Delete the mongod.lock file from the Resource Manager Storage location. By default, mongod.lock file is found at C:\ProgramData\Ixia\ResourceManager\Storage\Database\mongod.lock for Win7/WinServer2008 or C:\Documents and Settings\All Users\Application Data\Ixia\ResourceManager\Storage for WinXP or WinServer2003
4.       Delete log file %ALLUSERSPROFILE%\Ixia\ResourceManager\Logs\mongo.log

5.       Start mongo service and then Resource Manager service.

Thursday, April 17, 2014

IxLoad HTTP: Verify Throughput distribution per IP using QoE

Setup information:
2 Ixia ports back  to back:
Network1: 1 port,  2 HTTP clients 
Netowrk2: 1 port, 1 HTTP  server
Objective: 100Mb Throughput






Configuration steps:

1. Go to Test Options and enable QoE per IP



















2. Start test. Check that the Conditional Statistics view appear in Statistics tab. Select it

3. Press Filter/Sort button in the main ribbon . 

4.  Go to Statistics tab  in Filter/Sort window  and select the statistics that you want to be included in Conditional Statistics view.






































***  The statistics selected will be included in the Conditional Statistics view  window  










      If you want to be able to automatically see this value when you  start a test perfomr the  following additional steps:

5. Create a QoE profile for the statistics you selected in conditional statistics window/
On Filter/Sort window press on the button Save As  in order to  create a QoE profile for the statistics selected






































 6. Add the QoE profile created to the test  in  the Test Options window. Save the test.











*** When running  the test you will  have under conditional statistics a new statistics view  named as your QoE profile  containing the statistics you saved in that profile: