Printer FriendlyEmail Article Link

Spirent TestCenter-JTAPI:How to create a Raw Streamblock with IEEE 802.3 Raw header and custom header?

Environment/Versions
  • Spirent TestCenter
  • Automation - JTAPI
  • Linux OS
  • IEEE 802.3 Raw
  • PGA
Answer
  • Below is the code:

my $cust= {custom=>"FEFE03831401001101000003e00001614e1a001e50d9018101cc01030200018404c0a8010af00f00000000030102550480230000004708ff00000000000000000000"};
my $s1 = {len => "15185",bw => "5", burst_count => "10", burst_len => "5",custom_header=>$cust};
my @tmap;
push (@tmap,{name=>"Stream_1",src=>["$port1"],dest => ["$port2"],stream => $s1,etherprotocol=>"Ethernet8023Raw", remove_ip_header=>1},);
$rt->setup_unicast_flows(map=>\@tmap);


Product : Spirent TestCenter,Automation,API,Spirent TestCenter,PGA