Multi Channel DMA Intel® FPGA IP for PCI Express Design Example User Guide

ID 683517
Date 10/28/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents Test Procedure by Using Name Space Environment

Use the following script to create name spaces and execute the commands.

  1. Stop the network manager by using following command:
    systemctl stop NetworkManager.service
  2. Create the name spaces:
    ip netns add <VM name>
    For example:
    ip netns add vm0
    ip netns add vm1
    ip netns add vm2
    ip netns add vm3
  3. Assign the interface to name space:
    ip link set <interface> netns <namespace>
    ip link set ifc_mcdma0 netns vm0
    ip link set ifc_mcdma1 netns vm1                                                
    ip link set ifc_mcdma2 netns vm2
    ip link set ifc_mcdma3 netns vm3
  4. Bring up the interface:

    Command: ip netns exec vm0 ifconfig <interface> up

    ip netns exec vm0 ifconfig ifc_mcdma0 up
    ip netns exec vm1 ifconfig ifc_mcdma1 up
    ip netns exec vm2 ifconfig ifc_mcdma2 up
    ip netns exec vm3 ifconfig ifc_mcdma3 up
  5. Assigning the IP address:

    Command: ip netns exec <namespace> ip addr add <ipaddr> dev <interfacename>

    ip netns exec vm1 ip addr add dev ifc_mcdma1
    ip netns exec vm0 ip addr add dev ifc_mcdma0
    ip netns exec vm2 ip addr add dev ifc_mcdma2
    ip netns exec vm3 ip addr add dev ifc_mcdma3
  6. Ping from one interface to another interface:
    Command: ip netns exec <namespace> ping <ip address>
    ip netns exec vm0 ping
    Note: Observing the pkt-loss currently with TCP and UDP traffic overtime after starting the traffic. This leads to hanging and closing of the iperf or netperf connections.