Thursday, May 8, 2014

IxNetwork NGPF: DHCP example configuration with traffic

Scenario:
Use 2 ports back to back
Configure 1000 DHCP clients each 100  in the same VLAN and  10 DHCP server, one in each vlan. Send L2/3 Traffic from client to his server


We are going to start the configuration by adding just 1 DHCP client in each VLAN

Configure DHCP clients
1.a Go to Scenario and add a port in Topology1










1.b Enable DHCP client on  the port and click finish
















1.c Automatically a   Device group containing 10 instances ( default) will appear in topology










2. Go to Protocol Tree->Next Gen Framework subtree and click on Ethernet
  2.a From the master pattern ( blue raw)  enable VLAN









  2.b From master patter set the VLAN as incremental step 1











3. Go to Protocol Tree->Next Gen Framework subtree and click on DHCP client
3.a  From master pattern  configure Server Address as incremental











Configure DHCP server
1.a Go to Scenario and add a new topology


















1.b Enable DHCP client on  the port and click finish

















1.c Automatically a   Device group containing 10 instances ( default) will appear in topology



2. Go to Protocol Tree->Next Gen Framework subtree and click on Ethernet
  2.a From the master pattern ( blue raw)  enable VLAN and set the VLAN as incremental step 1


3. Go to Protocol Tree->Next Gen Framework subtree and click on IP
   3.a Set the DHCP servers IP addresses

4. Go to Protocol Tree->Next Gen Framework subtree and click on DHCP server
   4.a  From master pattern  set the pool  initial value

   4.b From master pattern  set the pool  size

   4.c  From master pattern  set the pool   gateway



Start DHCP server



Start the DHCP  clients
All the DHCP  clients should obtain an IP address






Modify DHCP client configuration to map 1000 DHCP clients
*** stop the DHCP clients 
1. Modify the number of instances to 1000

2.a Go to Protocol Tree->Next Gen Framework subtree and click on Ethernet
       Change the VLAN ID pattern to Custom from Master raw

2.b Go to Protocol Tree->Next Gen Framework subtree and click on DHCP client
        From master pattern  configure Server Address as Custom


Start devices and check all are up













Create the Traffic
Configure a Traffic Item which sends traffic in each VLAN from the clients to the server
1. Open Add L2/3  traffic wizard
1.a On source side add 10 selection each containing 100 adresses

1.b On destination side add 10 selection  each containing 1 address

*** the selection are paired 1to1  in the order that they were added, for example Selection1 from source side will send traffic only to Selection1 on destination side and so on.

1.c Verify the pattern by  checking the flow groups in preview


2.Start traffic. Check that the load is distributed equally to the destination IP address
*** Enable tracking on IP destination when you create the Traffic Item in order to have this option



Thursday, October 10, 2013

IxNetwork IGMP configuration

*****Configuration steps

1.       Select the ports
Add 2 ports in  the configuration and rename them as IGMP Host and Querier

2.        Enable IGMP protocol on the ports
Click on Protocols  on Protocol tree and then switching to Multicast tab

3.       Configure the IP addresses on the ports
IGMP Querier  IP=1.1.1.1
IGMP Host IP=1.1.1.100
You need to  Add Interfaces and Add IPv4 addresses on the ports
Enable the interfaces, the port link should be green without exclamation mark


4.       IGMP Querier configuration
Go to IGMP  on Protocol tree and switch to Ports tab. Set number of queriers to 1 Number of host to  0

On the Querier tab add the Connected Interface to the   Querier and enable it

Set the querier to use IGMPv3


        5.  Configure IGMP host:
Go to IGMP  on Protocol tree and switch to Ports tab. Set number of queriers to 0 Number of host to  1

On the Hosts tab add the Connected Interface and enable it

 Set host type to IGMPV3



On the Host tab set No of Group Ranges to 1







Switch to Group Ranges tab and set the multicast group for which the IGMP host is member


6.       Start IGMP




















*****Tools for troubleshooting
1.       Capture packets
 Go to Captures button and  enable control capture on ports. Click  on Start Capture from Main ribbon

























2.       Use  Port Trace  Window:
On  Protocol Tree right-click on a port and chose Open Trace Window. Select the level of debugging.  























    


      In the Trace Window you see packets received and sent by the port









Thursday, September 5, 2013

Test example: QoS remarking


Setup  information:
Consider the following  setup : 

(Ixia)port1--------------Gi1/1(Router)Gi1/2-------------port2 (Ixia)
IP1=11.1.1.100/24                                                            IP2=11.1.2.100/24
GW=11.1.1.1                                                                     GW=11.1.2.1

We are going to send traffic from IP1 to IP2 using AF11
When he receives traffic on Interface Gi1/1 the DUT will remark DSCP value to AF21



af11     Match packets with AF11 dscp (001010)2=(10)10
af21     Match packets with AF21 dscp (010010)2=(18)10


IxNetwork Configuration

Step 1. Create protocol interfaces


Step2. Create L2-3 Traffic Item

2.1 Add a L2-3 traffic item 

2.2 Select the connected interface as  source/destination endpoints 

2.3 On the Paket/ QOS page set IP priority as DiffServ, AF11 

2.4 On Flow Goup  page select to create Flow groups based on Source/Destination Endpoint 

2.5 On Flow Tracking page select to track IP-AF PBH values

2.6 On Flow Tracking page  don’t forget to enable Egress tracking for DSCP 



**** All the other settings are default. Click Finish  on Advance Traffic Wizard and you are good to go.


Step3. Verify results
3.1 Start traffic
3.2 On Statistics window go to Traffic Item Statistics tab. Right-click on Traffic Item and choose Drill down per IPv4: Assured Forwarding PBH
3.3  After performing previous step  you are  automatically switched to  User Defined Statistics tab
Right-Click on the item and choose to see Egress values of DSCP


****Right now on statistics window you will have the intial and also the  new marked values of DSCP




DUT Configuration
1 Steps taken to configure the DUT and configuration  explain
In order to set a new DSCP value on an interesting traffic you will need to perform the following steps:
1.       Identify the interesting traffic with an ACL
2.        Create a Class Map for matching the Network Traffic using the ACL
3.       Create a Policy Map for Applying a QoS Feature to Network Traffic classified  by  the class map 
4.        Attaching the Policy Map to an Interface


! Configure IP address on the interfaces
7606-S(config)#int gi1/1
7606-S(config-if)#ip add 11.1.1.1 255.255.255.0
7606-S(config-if)#exit
7606-S(config)#int gi 1/2
7606-S(config-if)#ip add 11.1.2.1 255.255.255.0
7606-S(config-if)#exit

7606-S(config)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet1/1     11.1.1.1        YES manual up                    up
GigabitEthernet1/2     11.1.2.1        YES manual up                    up

!  Identify the  interesting traffic (11.1.1.100 -----> 11.1.2.100) with an  ACL
7606-S(config)#access-list 101 permit ip host 11.1.1.100 host 11.1.2.100

7606-S(config)#do show access-list 101
Extended IP access list 101
10     ermit ip host 11.1.1.100 host 11.1.2.100
! Create a Class Map for matching the Network Traffic using the ACL
7606-S(config)#class-map cmap-acl-101
7606-S(config-cmap)#match  access-group 101

! Create a Policy Map for QoS  remarking of the Network Traffic classified  by  the class map 
7606-S(config)#policy-map pmap-acl-101
7606-S(config-pmap)#class cmap-acl-101
7606-S(config-pmap-c)#set dscp af21

7606-S(config)#do show policy-map pmap-acl-101
  Policy Map pmap-acl-101
    Class cmap-acl-101
      set dscp af21

! Attach the Policy Map to an Interface
7606-S(config)#interface gi 1/1
7606-S(config-if)#service-policy input pmap-acl-101

7606-S(config-if)#do show policy-map int gi1/1
 GigabitEthernet1/1
  Service-policy input: pmap-acl-101
    class-map: cmap-acl-101 (match-all)
      Match: access-group 101
      set dscp 18:
      Earl in slot 5 :
        30121000 bytes
        5 minute offered rate 785080 bps
        aggregate-forwarded 30121000 bytes
    Class-map: class-default (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0000 bps, drop rate 0000 bps
      Match: any
        0 packets, 0 bytes
        5 minute rate 0 bps


2. Actual DUT configuration
ena
conf ter
int gi1/1
ip add 11.1.1.1 255.255.255.0
exit
int gi 1/2
ip add 11.1.2.1 255.255.255.0
exit

access-list 101 permit ip host 11.1.1.100 host 11.1.2.100

class-map cmap-acl-101
match access-group 101
exit
policy-map pmap-acl-101
class cmap-acl-101
set dscp af21
exit

interface gi 1/1
service-policy input pmap-acl-101
exit