Software Example - HPE Edgeline EL300 Getting Started Manual

Converged edge system daughter card
Table of Contents

Advertisement

Execute the following command to verify:
sudo tc -g qdisc show dev enp12s0
This is an example of the above command's usage and output:
[admin@tsn1 ~]$ sudo tc -g qdisc show dev enp12s0
qdisc mqprio 8001: root
queues:(0:0) (1:1) (2:3)
qdisc fq_codel 0: parent 8001:4 limit 10240p flows 1024 quantum 1514 target 5.0ms
qdisc fq_codel 0: parent 8001:3 limit 10240p flows 1024 quantum 1514 target 5.0ms
qdisc fq_codel 0: parent 8001:1 limit 10240p flows 1024 quantum 1514 target 5.0ms
qdisc cbs 8002: parent 8001:2 hicredit 30 locredit -1470 sendslope -980000 idleslope 20000 offload 1
NOTE: The last qdisc is labeled cbs.

Software Example

In this section, how to use TSN traffic using the CBS traffic class queue will be explained.
Getting the Tools
Download and install the necessary packages required for compiling the example and TC Command. The
primary component needed is the GCC Compiler (gcc).
At the Shell command prompt, execute the following command to install the gcc compiler:
sudo dnf install -y gcc
Getting the Software
The software used in this example is contained within the CBS's Request for Comments (RFC), which is
hosted at the URL https://lwn.net/Articles/736335/. There are two C programs within the RFC namely
tsn-listener.c and tsn-talker.c. Extract the C code out of the RFC using the appropriate
commands in the following subsections.
Download tsn-listener.c to TSN1
Execute the following command to download the example program:
curl -s https://lwn.net/Articles/736335/|\
sed -n '/^tsn-l/,/end.*8---$/p'|\
sed 's/>/\>/g;s/</\;s/&/\&/g'|\
tail -n+3|\
head -n-1 >tsn-listener.c
Download tsn-talker.c to TSN2
Execute the following command to download the example program:
curl -s https://lwn.net/Articles/736335/|\
sed -n '/^tsn-t/,/end.*8---$/p'|\
sed 's/>/\>/g;s/</\;s/&/\&/g'|\
tail -n+3|\
head -n-1 > tsn-talker.c
Compiling the Software
After downloading the software, compile tsn-listener.c and tsn-talker.c using the gcc compiler.
Compile tsn-listener.c on TSN1
Execute the following command to download the example program:
gcc -o tsn-listener tsn-listener.c
tc 3 map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2
interval 100.0ms memory_limit 32Mb ecn
interval 100.0ms memory_limit 32Mb ecn
interval 100.0ms memory_limit 32Mb ecn
4x 1GB Ethernet with TSN Support Daughter Card
29

Advertisement

Table of Contents
loading

Table of Contents