
Figure 18. Seamless redundancy test case
Sequence generator test
# Get MAC address of eth2: 7E:A8:8C:9B:41:DD
# On board A:
ifconfig eth2 192.168.0.1 up
ping 192.168.0.2
# Network is connected.
# On board A:
tsntool> cbstreamidset --device eth4 –streamhandle 1 --nulldmac 0x7EA88C9B41DD --nullvid 1
tsntool> cbgen --device eth4 --index 1 --iport_mask 0x3f --split_mask 0x07 --seq_len 16 --seq_num 2048
# Capture frames on eth6 on TestCenter.
ping 192.168.0.2
# We can get frames from eth6 on TestCenter, each frame add the sequence number: 23450801, 23450802,
23450803…
# On board B:
tcpdump -i eth2 -w eth2.pcap
# We also can get a copy frames from eth2 on board B, which is transmit through eth4 of board A.
Sequence recover test
# On board B:
ifconfig eth2 192.168.0.2 up
ifconfig eth2
# On board B:
tsntool> cbstreamidset --device eth8 –streamhandle 1 --nulldmac 0x7EA88C9B41DD --nullvid 1
tsntool> cbrec --device eth4 --index 1 --seq_len 16 --his_len 31 --rtag_pop_en
tcpdump -i eth2 -w eth2.pcap
# On board A:
ping 192.168.0.2
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
124
NXP Semiconductors
Содержание Layerscape LS1028A BSP
Страница 135: ......