4. Push a specific vlan tag(vid=3, pcp=3) into frames(classified vid=2, pcp=2 in switch) egress from swp1.
tc qdisc add dev swp1 clsact
tc filter add dev swp1 egress protocol 802.1Q flower skip_sw vlan_id 2 vlan_prio 2 action vlan
push id 3 priority 3
Set vid=1 and pcp=1 in vlan tag, then send ip package from testcenter, the frame will hit rule in usecase 3 and retag the
vlan(vid=2, pcp=2). we can get a frame with vid=3, pcp=3 from swp1 on TestCenter.
8.1.5 Netconf usage on LS1028ARDB
Netopeer is a set of NETCONF tools built on the libnetconf library.
(https://github.com/openil/sysrepo-tsn) helps to
configure TSN features, including Qbv, Qbu, Qci, and stream identification via network, without logging in to device.
For details of configuring TSN features on LS1028ARDB, please refer to
).
8.2 Using TSN features on LS1021A-TSN board
On the LS1021A-TSN platform, TSN features are provided by the SJA1105TEL Automotive Ethernet switch. These hardware
features comply to pre-standard (draft) versions of the following IEEE specifications:
• 802.1Qbv - Time Aware Shaping
• 802.1Qci - Per-Stream Filtering and Policing
• 1588v2 - Precision Time Protocol
The following demonstration illustrates the SJA1105 hardware features listed below:
• Ingress rate limiting via the L2 (best-effort) policers
• Time-aware shaping
• 802.1AS gPTP synchronization
8.2.1 Topology
For demonstrating the SJA1105 TSN features, the following topology is required:
• 1 LS1021A-TSN board, acting as a TSN switch
• 1 generic host (can be a PC or another board) capable of PTP hardware timestamping, acting as a sender of latency-
sensitive traffic
• 1 generic host (can be a PC or another board), acting as a sender of high-bandwidth traffic
• 1 generic host (can be a PC or another board) capable of PTP hardware timestamping, acting as receiver for the latency-
sensitive and for the high-bandwidth traffic
The required software packages for the generic hosts are:
• ptp4l, phc2sys and phc_ctl from the linuxptp package: https://github.com/openil/linuxptp
• iperf3
• isochron from the tsn-scripts package: https://github.com/vladimiroltean/tsn-scripts/tree/isochron
The generic hosts are assumed to be connected to the LS1021A-TSN board through an interface called eth0.
This topology is depicted in the following figure.
NXP Semiconductors
TSN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
130 / 199