Spirent Test Center: How to capture packets for both control plane and data plane using Spirent API?


Doc ID    SOL13616
Version:    1.0
Status:    Published
Published date:    12/04/2017
 

Objective/Summary

  • To provide TCL snippet to capture all (Control plane & Data plane) packets in STC.

Environment/Versions

  • Spirent Test Center
  • 4.80
  • Capture
  • Automation
  • Native API

Procedure

 
  • Retrieve the capture handle form the port first
        
                     set hCaptureRx [stc::get $hportRX -children-capture]
 
  •   Check for srcmode that configured in capture. Change it to Tx_RX_mode to capture all data plane and control plane packets.
 
                    stc::config $hCaptureRx -mode REGULAR_MODE -srcMode TX_RX_MODE
 

Notes

 
  • To capture only control plane packets, Change srcmode attribute value from TX_RX_MODE to TX_MODE
                               stc::config $hCaptureRx -mode REGULAR_MODE -srcMode TX_MODE
  • Attached sample TCL script for capturing packets using TCL API

Attachment

Capturing packets (2).tcl
2K • < 1 minute @ 56k, < 1 minute @ broadband


Find Answers

Specified Languages
English
中文

Please Sign In

Username
Password

Did you forget your password?
Click here for assistance

New user? Start here.