PS_HEADERPROTOCOL#

code: 176

# set
<module-index>/<port-index> PS_HEADERPROTOCOL [<stream_index>] <segments>

# get
<module-index>/<port-index> PS_HEADERPROTOCOL [<stream_index>] ?

Description#

This command will inform the Xena tester how to interpret the packet header byte sequence specified with PS_PACKETHEADER. This is mainly for information purposes, and the stream will transmit the packet header bytes even if no protocol segments are specified. The Xena tester however support calculation of certain field values in hardware, such as the IP, TCP and UDP length and checksum fields. This allow the use of hardware modifiers for these protocol segments. In order for this function to work the Xena tester needs to know the type of each segment that precedes the segment where the hardware calculation is to be performed.

Actions#

set, get

Parameters#

  1. segments: byte list, a number specifying a built-in protocol segment

  • ETHERNET = 1

  • VLAN = 2

  • ARP = 3

  • IP = 4

  • IPV6 = 5

  • UDP = 6

  • TCP = 7

  • LLC = 8

  • SNAP = 9

  • GTP = 10

  • ICMP = 11

  • RTP = 12

  • RTCP = 13

  • STP = 14

  • SCTP = 15

  • MACCTRL = 16

  • MPLS = 17

  • PBBTAG = 18

  • FCOE = 19

  • FC = 20

  • FCOETAIL = 21

  • IGMPV3L0 = 22

  • IGMPV3L1 = 23

  • UDPCHECK = 24

  • IGMPV2 = 25

  • MPLS_TP_OAM = 26

  • GRE_NOCHECK = 27

  • GRE_CHECK = 28

  • TCPCHECK = 29

  • GTPV1L0 = 30

  • GTPV1L1 = 31

  • GTPV2L0 = 32

  • GTPV2L1 = 33

  • IGMPV1 = 34

  • PWETHCTRL = 35

  • VXLAN = 36

  • ETHERNET_8023 = 37

  • NVGRE = 38

  • DHCPV4 = 39

  • GENEVE = 40

  • XENA_TPLD = 41

  • XENA_TPLD_PI = 42

  • XENA_MICROTPLD = 43

  • ETHERNET_FCS = 44

  • MACCTRLPFC = 45

  • ECPRI = 46

  • ROE = 47

  • ETHERTYPE = 48

  • -n (n bytes custom segment)

Example#

# set
input:  0/1 PS_HEADERPROTOCOL [0] ETHERNET VLAN IP -4
output: <OK>

# get
input:  0/1 PS_HEADERPROTOCOL [0] ?
output: 0/1 PS_HEADERPROTOCOL [0] ETHERNET VLAN IP -4