cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
991
Views
0
Helpful
3
Replies

How Generate BW for test CRC in Nexus 9000

Hi 

I nexus platfom any option have to Generate Packet and send target for test throughput On trunk connection ??

any idea scp-server is too low 

3 Replies 3

AshSe
VIP
VIP

Hi admin@atrinnet.net 

It seems like you're asking about generating packets and sending them to a target for testing throughput on a trunk connection, possibly using the Nexus platform (Cisco Nexus switches). Additionally, you're mentioning that SCP (Secure Copy Protocol) is too slow for your needs. Let me provide some insights and suggestions:


1. Packet Generation and Throughput Testing on Nexus Platform

Cisco Nexus switches are primarily designed for high-performance networking, but they don't natively include tools for generating test traffic or throughput testing. However, you can use external tools or devices to generate traffic and test throughput on a trunk connection. Here are some options:

a. Using External Traffic Generators

  • Use a dedicated traffic generator tool like iPerf, Ostinato, or Spirent TestCenter to generate packets and send them to the target device through the trunk connection.
  • iPerf is a free and widely used tool for testing network throughput. You can set up an iPerf server on one end and an iPerf client on the other to measure throughput.
    • Example:
      iperf3 -s  # Start the iPerf server on the target
      iperf3 -c <target_ip> -P 10  # Run the iPerf client with multiple parallel streams
      
  • Ostinato is a packet generator and analyzer that allows you to craft custom packets and send them to a target.

b. Using Nexus Switch Features

  • Cisco Nexus switches support SPAN (Switched Port Analyzer) or ERSPAN to mirror traffic for analysis. While this doesn't generate traffic, it can help you monitor and analyze the traffic on the trunk connection.
  • Nexus switches also support sFlow or NetFlow, which can provide insights into traffic patterns and throughput.

c. Using NX-OS Built-in Tools

  • Some Nexus switches support EEM (Embedded Event Manager) scripts or Python scripting to automate tasks. While this won't generate traffic, you can use it to monitor and log throughput or trigger specific actions based on traffic patterns.

2. SCP Performance Issues

If SCP is too slow for your needs, consider the following alternatives:

a. Use Faster Protocols

  • Rsync: Rsync is faster than SCP for transferring files because it only transfers the differences between source and destination files.
    • Example:
      rsync -avz --progress source_file user@target:/path/to/destination
      
  • FTP/SFTP: FTP or SFTP might offer better performance depending on your setup.

b. Optimize SCP

  • Use the -C option to enable compression during SCP transfers:
    scp -C source_file user@target:/path/to/destination
    
  • Increase the cipher performance by using faster ciphers (e.g., aes128-ctr
    scp -c aes128-ctr source_file user@target:/path/to/destination
    

c. Use Parallel Transfers

  • Split the file into smaller chunks and transfer them in parallel using tools like split and scp or rsync.

d. Use a Dedicated File Transfer Tool

  • Tools like Aspera or Rclone are designed for high-speed file transfers and can outperform SCP in many cases.

3. Testing Throughput on a Trunk Connection

  • If your goal is to test throughput specifically on a trunk connection, you can:

a. Use VLAN-Specific Traffic

  • Generate traffic tagged with specific VLANs to test throughput on individual VLANs within the trunk.

b. Monitor Interface Statistics

  • Use the show interface command on the Nexus switch to monitor traffic statistics and throughput on the trunk interface.
    • Example:
      show interface Ethernet1/1
      

c. Use Third-Party Tools

  • Tools like Wireshark or SolarWinds Network Performance Monitor can help you analyze traffic and measure throughput on the trunk connection.

Summary

  1. For packet generation and throughput testing, use tools like iPerf, Ostinato, or Spirent.
  2. If SCP is too slow, optimize it with compression or faster ciphers, or switch to faster alternatives like Rsync or Aspera.
  3. Use Nexus switch features like SPAN, sFlow, or interface monitoring to analyze traffic on the trunk connection.

 

Hope This Helps!!!

AshSe

Forum Tips: 

  1. Insert photos/images inline - don't attach.
  2. Always mark helpful and correct answers, it helps others find what they need.
  3. For a prompt reply, kindly tag @name. An email will be automatically sent to the member.

In This Case Only used Switch 9K For Generate Traffic 

"Cisco Nexus switches are primarily designed for high-performance networking, but they don't natively include tools for generating test traffic or throughput testing."

Just want to expand upon this statement.

Cisco network devices are designed to maximize transit (data plane) traffic performance, and in comparison, can have extremely poor capacity for network device locally sourced (control plane) traffic, especially for switches.

In the past, some Cisco routers had provided a hidden/secret command to invoke TTCP, but as using this command was so stressful to the router, goes far to explain why this command was hidden/secret or often not provided at all.