
3. Set Stream identify Source stream identify entry 3
tsntool> cbstreamidset --device eno0 --index 3 --sourcemacvid --sourcemac 0x112233445566 --
sourcetagged 3 --sourcevid 20 --streamhandle 100
4. Send frame from opposite device port. The frame passes to stream filter index 1.
tsntool> qcisfiget --device eno0 --index 1
8.1.3.3.4 SGI stream gate list
Use the command below for this test:
cat > sgi1.txt << EOF
t0 0b -1 100000000 0
t1 1b -1 100000000 0
EOF
tsntool> qcisfiset --device eno0 --index 2 --gateid 2
tsntool> qcisgiset --device eno0 --index 2 --initgate 1 --gatelistfile sgi1.txt
#flooding frame size 64bytes from opposite device port.(iperf or netperf as example)
tsntool> qcisfiget --device eno0 --index 2
Check the frames dropped and passed, they should be the same since stream gate list is setting 100ms open and 100ms close
periodically.
8.1.3.3.5 FMI test
Only send green color frames(Normally it is the TCI bit value in 802.1Q tag). Flooding the stream against the eno0 port speed to
10000kbsp/s:
tsntool> qcisfiset --device eno0 --index 2 --gateid 2 --flowmeterid 2
tsntool> qcifmiset --device eno0 --index 2 --cm --cf --cbs 1500 --cir 5000 --ebs 1500 --eir 5000
'cm' parameter set color mode enable means frames seperate green frames and yellow frames judged by the TCI bit in frame.
Or else, any frames are green frames.
'cf' parameter set the coupling flag enable. When CF is set to 0, the frames that are declared yellow is bounded by EIR. When
CF is set to 1, the frames that are declared Yellow is bounded by CIR + EIR depending on volume of the offered frames that are
declared Green.
After upper commands setup, since green frames not larger than EIR + CIR 10Mbit/s. So the green frame would not be dropped.
The below setting shows the dropped frames:
tsntool> qcifmiset --device eno0 --index 2 --cm --cf --cbs 1500 --cir 5000 --ebs 1500 --eir 2000
This case makes the grean frames pass 5Mbit/s in CIR, then it pass to the EIR space, but EIR is 2Mbit/s, so total EIR + CIR
7Mbit/s still not qualify the total 10Mbit/s bandwidth. So green frame would be dropped part.
To get information of color frame counters showing at application layer, use the code as in the below example:
tsntool> qcifmiget --device eno0 --index 2
=======================================================================
bytecount drop dr0_green dr1_green dr2_yellow remark_yellow dr3_red remark_red
1c89 0 4c 0 0 0 0 0
=======================================================================
index = 2
cir = c34c
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
112 / 199