Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

TSN Blueprint

Introduction

This document is a guide for setting up a functional TSN network to start the journey around understanding and implementing TSN into a wide number of products. Initially the scope will be limited to Microchips LAN969x 24-port eval board using Velocity software being driven and monitored with the Keysight Novus Mini. This document will cover hardware and software setup, TSN configuration, and TSN test results.

Table of Contents

1. Blueprint Requirements

Components required for this blueprint are found in Table 1 below:

Table 1. Blueprint Requirements

Category Requirement Description
Hardware Keysight Novus Mini Network Endpoint (Need keyboard, mouse, and monitor)
Hardware Microchip EV23X71A Network Switch (Firmware Version: PelocitySP-v2026.06-1LAN969x)
Hardware (3x) Ethernet Cables Ethernet Connection Cables
Hardware (2x) USB Cables USB Connection Cables
Hardware Linux Computer Linux Computer Capable of Elevated Permissions (Ubuntu 22.04 was used for guides in this blueprint)
Software VelocityDrive SP VelocityDrive Software Support Package (SP) (Commit #7101733)
Software VelocityDrive CT VelocityDrive Configuration Tool (CT) (V. 2026.03.58)
Software Serial Communication (Minicom or other) Software for Serial Communication with the Network Switch
Software Wireshark Network packet protocol analyzer
Documentation VelocityDrive CT User Guide User guide for VelocityDrive CT
Documentation VelocityDrive SP User Guide User guide for VelocityDrive SP

Note 1: The included project files in the configurations folder are board-specific (EV23X71A / pcb8398).

Note 2: This blueprint is only for Keysight Novus Mini.

2. Design Overview

The design is intended to leverage products such as switches, endpoints, and a terminal PC to create a working TSN network. The schematic is basic for this blueprint but is designed for scalability. More switches and endpoints can be added to the design if desired.

This blueprint will provide specific details on set-up and configuring the switches and endpoints to create a starter TSN network. Instructions for physical setup are included. Microchip has software avaiable for easy configuration of the switch which will be utilized in this blueprint. With that, Keysight provides a robust testing suite for the Novus mini to generate test packets and display useful packet statistics for verification of TSN functionality.

The diagram below provides the layout of the network for this blueprint.

TSN_TOPOLOGY

Note: This blueprint is designed for support multiple switches. The hardware setup for a second switch can be found in Appendix B: Hardware Setup for 2 Switches. For simplilcity, the blueprint starts with 1 switch and eventually moves to multiple switches.

3. Blueprint Setup

3.1 Blueprint Prerequisites

It is assumed that Docker, Git, and Wireshark are already installed and available on your machine.

To verify that docker is available, run the following command and verify the output.

$ docker --help
Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build       Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login       Authenticate to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version     Show the Docker version information
  info        Display system-wide information

  ...

To verify that git is installed, run the following command and verify the output.

$ git --help
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           [--super-prefix=<path>] [--config-env=<name>=<envvar>]
           <command> [<args>]

...

To verify that wireshark is installed, run the following command and verify the output.

$ wireshark --help
...

Usage: wireshark [options] ... [ <infile> ]

Capture interface:
  -i <interface>, --interface <interface>
                           name or idx of interface (def: first non-loopback)
  -f <capture filter>      packet filter in libpcap filter syntax
  -s <snaplen>, --snapshot-length <snaplen>
                           packet snapshot length (def: appropriate maximum)
  -p, --no-promiscuous-mode
                           don't capture in promiscuous mode

...

If you do not have docker and git utilities installed and are running a Linux distribution that has apt you can run the following commands to install the utilities.

$ sudo apt install docker.io

$ sudo apt install git

$ sudo apt install wireshark

(Optional) For accessing the Microchip EV23X71A over serial without using root prvileges, add this udev rule to allow all users to read and write to the device:

SUBSYSTEM=="tty", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="00df", MODE="0666"

Create the rules file by typing:

$ sudo nano /etc/udev/rules.d/99-mydevice.rules

Copy and paste the udev rules into the file and save it.

After saving, reload the udev rules:

$ sudo udevadm control --reload-rules

Then trigger the changes for devices already connected to the PC:

$ sudo udevadm trigger

3.2 Hardware Setup

The data sheet for the Keysight Novus Mini can be found here. Keysight provides a Novusmini_GettingStarted.pdf for setting up the Novus Mini for testing. If you do not have the documentation, reach out to Keysight.

Ensure that a keyboard, mouse and monitor are plugged into the Novus Mini.

This section defines how to set up the hardware. The Keysight Novus Mini acts as the endpoints. The Microchip EV23X71A is the network switch. Use the following diagram in Appendix A: Hardware Setup for 1 Switch to set-up the hardware.



switch_connections

Recommended Microchip Switch EV23X71A Ports



switch_USB

USB Port callout on Microchip EV23X71A Network Switch



  1. Use the USB C port of the Microchip EV23X71A to connect to the Linux Computer via USB.

  2. Use the maintenance port of the Keysight Novus Mini to connect to the Linux Computer via Ethernet.

  3. Connect the Keysight Novus Mini Port 3 to the Microchip EV23X71A Port 11 using Ethernet as shown above.

  4. Connect the Keysight Novus Mini Port 4 to the Microchip EV23X71A Port 12 using Ethernet as shown above.

  5. Supply power to the Keysight Novus Mini.

  6. Press the reset button on the Keysight Novus Mini.

  7. Supply power to the Microchip EV23X71A using the barrel jack.

  8. Actuate the power switch to turn on the Microchip EV23X71A.

  9. Supply power the the Linux Computer.

  10. Turn on the Linux Computer.

3.3 Software Setup

The serial terminal can be used to confirm the firmware version of the switch. The communication protocol used, MUP1CC, is not human readable, but can still be used to confirm the firmware version.

  1. To begin, open a serial connection the switch using minicom. The user may use any serial monitor of their choice, but the serial monitor must be set up to use a 115200 baud rate, no parity or flow control, 8 data bits, and 1 stop bit. For the purpose of this guide Minicom was used. Copy and paste the command below:

    $ sudo minicom -b 115200 -D /dev/ttyACM0

    Hardware flow control must be turned off to interface with the board.

    a. Press Ctrl+A then Z to open the command menu.

    b.Press O to open the Configure Minicom menu.

    c. Select Serial port set-up.

    d. Press F to toggle Hardware Flow Control to No.

    e. Press G to toggle Software Flow Control to No.

    f. Press Enter to exit the submenu then select Save setup as dfl to make this the default setting for future Minicom sessions.

  2. Once in Minicom, enter >p<<8553 into the console (either by typing or copy and pasting). If you choose to type it out, you will not be able to see what you are typing as you type it. Once finished you should see a message from the switch appear in the terminal automatically. The firmware version of the switch is defined by the text characters between the > and <. the characters following the < is a four digit checksum. Beyond this, it is practically impossible to use the MUP1 interface with a classic terminal emulator (like Minicom). If your firmware is not up to date, refer to the documentation that details updating the network switch firmware here.

    P8553_result

  3. Close Minicom by pressing Ctrk+A then X then Enter.

  4. In order to interface to the VelocityDrive SP on the switch, you will need to clone the Git repository using a series of Linux commands. To clone the repository, copy the command below:

    $ git clone https://github.com/microchip-ung/velocitydrivesp-support -b main

  5. Once the repository is cloned and installed on your local machine, enter the cloned repository changing to it's directory.

    $ cd velocitydrivesp-support/

  6. To install dr, which is used to run a docker container, run the following commands:

    sudo curl -o /usr/local/bin/dr https://raw.githubusercontent.com/microchip-ung/docker-run/refs/heads/main/dr

    sudo chmod +x /usr/local/bin/dr

  7. Then run the follow command to confirm that docker and dr is ready, you should see an empty list as the output:

    docker images

    If not, see this page for further guidance.

  8. Verify that VelocityDrive SP is functioning by getting the running configuration using the command below. By getting the running configuration from the EV23X71A Network switch, we confirm that VelocityDrive SP is able to communicate directly with the network switch.

    sudo dr mup1cc -d /dev/ttyACM0 -m get

    Once run, if successful, the terminal will display a message stating that a serial port has been opened, and will be followed by various lines of configuration text.

  9. Clone the TSN blueprint repo to ensure the YAML files needed for the blueprint are downloaded:

    git clone https://github.com/dornerworks/TSNBlueprint.git

The VelocityDrive Configuration Tool (CT) is a tool that allows engineers to build network configurations in a human-readable layout. In this tool, you can see the YANG model of the entire switch. YANG is a data modeling language that allows the definition of the structure, syntax, and rules of the network device configuration.

Once a change is made in the CT and sent to upload onto the switch, it sends the YANG data over CORECONF which maps the human-readable text into binary data and transmits it over CoAP via UDP or MUP1 (Microchip UART protocol 1) over serial.

In order to set different configurations at large, or configure patches to the switch, you will use the VelocityDrive CT.

  1. Download the tool here. Make sure to download the most recent tarball of the VelocityDrive CT (UI, not CLI). The image shown below shows the version downloaded for this Blueprint from the download site

    CT_Download

  2. After you have downloaded the correct VelocityDrive CT, move the tarball file to the directory of your choice, and then run the following command to extract the tarball:

    $ tar -xf Microchip_VelocityDRIVE_CT-UI-linux-2026.03.58.tgz

  3. Once you have extracted the program, open a graphic based file explorer, and navigate to the newly created directory with the same name as your downloaded tarball. The newly created folder shares the same name, but does not have the .tgz appended at the end.

    sw_folder

  4. Once you have opened the correct software folder, run the software. Select and run the file (microchip-velocity-drivect) shown below.

    run_sw

From here, the software setup is complete. Refer to the TSN Features setup for further guidance on feature configuration. Below is what the running VelocityDrive CT should look like initially when running.

CT_running

4. Testing the Endpoints

Before configuring TSN on the network switch, a basic ethernet test with the endpoints will be completed to verify their operation. The Keysight Novus Mini is used for the feature configuration in this guide; if you are utilizing a different endpoint configuration, or you have already confirmed the proper operation of your endpoints, you can skip to the TSN Features section of this guide to begin configuring TSN features on the network switch. To begin endpoint operation verification, the user must first enter the Keysight Novus Mini platform suite. To enter the suite, the user must enter the address of the Novus mini (format example: "172.16.0.2" or "localhost") in the address bar of any web browser like Google Chrome, or Firefox. Once in the platform the user must then select IxNetwork, the leftmost option of the three center options, to enter the appropriate setup suite for this configuration.

login_dashboard_novus

  1. Once in the appropriate suite, select the Files button in the top left corner of the suite.

    Files_Button

  2. From there, select the New button.

    New_Button

  3. After selecting New, select the New Config button.

    New_Configuration

  4. The suite will prompt you to confirm that you would like to create a New Configuration (Config). Select OK.

    New_Config_OK

  5. After the new configuration menu has been brought up, select the Samples tab on the left area of the suite.

    Samples

  6. Once in the Samples tab menu, select the Basic dropdown menu.

    Basic

  7. Select Ethernet and the suite will display the Ethernet Topology view.

    Ethernet_Topology_View

  8. From within the Ethernet Topology view, select the icon with the red X through it above 1 port.

    Port_Sel

  9. Select Port 3

    Sel_Port_3

  10. Select OK

    Confirm_Port_3

  11. After selecting Port 3, return your attention to the Ethernet Topology area of the suite and select the icon with the red X through it above 2 port.

    Ethernet_Topology_View

  12. Select Port 4

    Sel_Port_4

  13. Select OK

    Confirm_Port_4

  14. The port configuration for standard best effort ethernet has been completed, it is now time to test that the configuration has been set properly. Select the Traffic tab in the top right area of the suite.

    Traffic_Tab

  15. Before running the best effort operation test, left click on the box below the Frame Rate column label (The box to select will be pre-populated with some line rate as a percentage). Once the box has been selected, a menu will pop up, change the value of the Line Rate row to 100%, this allows best effort traffic to flow at the maximum rate possible.

    Line_Rate_Change

  16. Select OK

    Line_Rate_OK

  17. Once finished setting the Line Rate to 100% the ethernet test test is ready to begin. Select the Statistics tab at the top right of the suite before beginning the test to open the Statistics view.

    Statistics

  18. Once in the Statistics view, move your attention to the top left area of the suite and select the Test button with the green triangle arrow to the left of it. This will begin testing the best effort ethernet configuration.

    Test_Button

  19. If this is the first time selecting Test in the current user session (and on the current configuration), there is a chance the system may take some time to prepare the test. System test preperation progress can be monitored at the top right area of the suite.

    The configuration test results are outputted in the center of the testing suite becuase the Statistics page is active. The user may move to other tabs during the test, but cannot modify the test while running, and the user cannot view test statistics without being on the Statistics page.

    Verify_Results

5. TSN Features

5.1 gPTP (IEEE 802.1AS)

5.1.1 Description

The Generalized Precision Time Protocol (gPTP), specified by IEEE 802.1AS, provides sub-microsecond time synchronization between network devices. Operating directly at Layer 2 Ethernet for maximum speed and determinism, gPTP avoids standard PTP (IEEE 1588) Layer 3 overhead. The network automatically elects a primary time source—the Grandmaster Clock—via the automated Best Master Clock Algorithm (BMCA). Precise alignment is achieved through strict hardware-timing constraints and a localized peer-to-peer delay measurement mechanism.

5.1.2 Simple Grandmaster/Slave Configuration Steps

In this set-up, there will be 2 endpoints with the LAN969x switch in between. One endpoint will act as the grandmaster (GM) and the other endpoint will act as the slave.

  1. In the VelocityDrive CT, click on the Configurations tab on the top: alt text

  2. Then click the + on the right hand side to create a new Configuration.

  3. Open the new configuration and click the bookmark icon that is under Devices to make a local copy of the configuration currently running on the switch: alt text

  4. Open the configuration by clicking the / button above the Devices section and select ptp to configure gPTP:

    alt text

  5. Click into instances -> instance, then click Add Item. The instance index should be 0:

    alt text

  6. Click into instance[instance-index='0'] and add default-ds, ports, and servos by selecting each of those items in the YANG Elements list and clicking Add Selected:

    alt text

  7. Now we will configure each part starting with default-ds. Ensure the domain-number is 0, external-port-config-enable is false, instance-enable is true. Ensure priority1 and priority2 are set to 150 and 255 respectively. Compared to the Novus Mini, priority1 and priority2 on the switch must be numerically greater (lower priority) than the setting on the Novus to allow the Novus to be the grandmaster (GM). Then set the instance-type to be relay.

    alt text

  8. In servo, open servos, then click Add Item to add a servo. Then click into servo[servo-index='0']. Ensure that servo-index is set to 0, ltc-index is set to 0 and the servo-type is set to pi:

    alt text

  9. In ports, open port then click Add Item twice to add two ports. Open the first one. Set the port index to the port number that is connected to the master endpoint. In this case, the port number is 11. Add port-ds by checking the box below and clicking Add Selected:

    alt text

  10. Open port-ds and add port-enable to the configuration. Ensure this is enabled by setting it to true:

    alt text

  11. Repeat the steps 9-10 for port 12 by setting the port index connected to the slave endpoint to 12 and ensuring port 12 is enabled:

    alt text

  12. Upload the configuration to the switch by clicking the refresh button under Devices.

  13. Now on the IxNetwork on the Novus Mini, add the AS2020 Master and Slave 2 domains sample in Files->Samples->TSN.

    alt text

  14. Map the master port to a port, in this example, it is mapped to port 3. Map the slave port to a different port, in this example, it is port 4.

    alt text

  15. Ensure the multipier is set to 1 on both the master and slave.

  16. Click the Protocol tab, and select PTP on the left-hand side under Protocol Selection. Then click the gPTP tab. Uncheck Enable CmIds for both the master and slave:

    alt text alt text

  17. Then click Test to run the test:

    alt text

  18. The passing result is shown here:

    alt text

  19. Click the Statistics tab and select PTP Drill Down to see PTP statistics. The offset on the slave should be within in nanoseconds from the GM, which is the exact difference in time between the local clock on the slave and the GM clock. The path delay should also be low, in this case, 23 ns, which is the tavel time the packet spends in the physical cable.

    alt text

5.1.3 Adding a Second Switch

Change the hardware configuration to match the topology found in Appendix B.

Repeat the gPTP configuration steps, starting in 5.1.2 Simple Grandmaster/Slave Configuration Steps, for the 2nd switch which will setup gPTP on the second switch. Optionally, you can use the PTP project in the configuration folder to load the configuration to save time.

Run the same test again.

You should expect to see similiar results in the PTP Drill Down table, especially similiar offset times.

5.1.4 Adding a Third Switch

Change the hardware configuration to match the topology found in Appendix C.

Repeat the gPTP configuration steps, starting in 5.1.2 Simple Grandmaster/Slave Configuration Steps, for the 3rd switch which will setup gPTP on the third switch. Optionally, you can use the PTP project in the configuration folder to load the configuration to save time.

Run the same test again.

You should expect to see similiar results in the PTP Drill Down table, especially similiar offset times.

5.2 TAS (IEEE 802.1Qbv)

5.2.1 Description

The Time Aware Shaper (TAS) coordinates with gPTP (IEEE 802.1AS) as a shared time reference to open and close virtual queue gates. This creates dedicated windows for uninterrupted, high-priority Ethernet traffic while blocking lower-priority traffic. The gates control this flow based on an ever-repeating, programmable timetable.

5.2.2 8 Queue Gates Configuration Steps

In this setup, there will be 2 endpoints with the LAN969x switch in between. The switch will be configured to have 8 queue gates or traffic classes running on roughly a 1 ms cycle. Each gate will be open for approximately 125 microseconds.

TAS will be configured on port 12, which will be the egress port. This means that the test will work in a unidirectional flow (Novus mini port 3 -> Switch port 11 -> Switch port 12 -> Novus mini port 4).

alt text

Note: Ensure that Traffic Class 0 (TC0) is included in the Gate Control List (GCL) schedule so that gPTP packets have an opportunity to pass through the switch during each cycle. This allows time synchronization messages to be exchanged while maintaining the intended TAS schedule.

  1. To begin, make sure you have the configuration loaded from the Simple Grandmaster/Slave Configuration Steps section. If you have not done so, you can either go to gPTP section and follow the steps there or load the gPTP configuration that is in the configuration directory.

    Note: You may have to select "All Files" in the open dialog filter rather than only *.velocitydrivect.

  2. Click into ptp->instances->instance-instance[instance-index='0']->servos->servo->servo[servo-index='0'] and set the ltc-index to 1. This is because the relay clock on the Microchip switch will not adjust the local time, an end node must be added which adjust the local time that is used by TAS.

    alt text

  3. Go back to the root by clicking / (root). Next, click into bridges->bridge->bridge[name='b0']->component->component[name='c0']->filtering-database->vlan-registration-entry and click Add Item:

    alt text

  4. Click into the new item and add port-map and entry-type and set the vids to 1000 and entry-type to static and database-id should be 0:

    alt text

  5. Next, click into port-map and click Add Item twice. Click into the first one and set the port-ref to 11, then click into static-vlan-registration-entries and ensure that vlan-transmitted is set to tagged:

    alt text

  6. Do step 5 again for the other port on port 12 in the port map.

  7. Go back to the root by clicking / (root).

  8. Click into interfaces->interface->interface[name='11']->bridge-port and set the port-type to c-vlan-bridge-port:

    alt text

  9. Next, click into pcp-decoding-table->pcp-decoding-map and click Add Item. This should add a map with type of 8P0D:

    alt text

  10. Click into pcp-decoding-map[pcp='8P0D'] and click Add Item 8 times to add 8 entries into the PCP mapping table. It should look like this (with priority 7 also there):

    alt text

  11. In each item in the mapping, ensure that the priority-code-point and priority matches. In the image below, a sample for priority 3 is shown:

    alt text

  12. After that, repeat the steps 8-11 for port 12 for setting the port-type to c-vlan-bridge-port and setting up the pcp-decoding-table.

  13. Close the CT, we are going to switch to using the CLI. This was done earlier in the blueprint when using dr mup1cc to access the device. The rest of the TAS configuration is going to take place there.

  14. If you have not done so already, clone the TSN blueprint repo to ensure the YAML files needed for TAS are downloaded:

    git clone https://github.com/dornerworks/TSNBlueprint.git

  15. In the terminal, pull the current TAS configuration:

    $ sudo dr mup1cc -d /dev/ttyACM0 -m fetch -i tas_baseline.yaml

    The operation gate states should be empty.

  16. Fetch the current TAS time. In order to set-up TAS properly, the current clock time must be fetched and the TAS configuration must configured to be enabled in a future time.

    $ sudo dr mup1cc -d /dev/ttyACM0 -m fetch -i tas_current_time.yaml

  17. Copy the current time and edit the tas_configure.patch.yaml file. Set the admin-base-time with the current time with 120 seconds added to it:

    alt text

  18. Save the changes to the yaml. Next, we are going to enable the TAS configuration by entering:

    $ sudo dr mup1cc -d /dev/ttyACM0 -m ipatch -i tas_configure.patch.yaml

  19. Then immediately after, fetch the TAS configuration:

    $ sudo dr mup1cc -d /dev/ttyACM0 -m fetch -i tas_baseline.yaml

    You should see the configuration loaded and config-pending set to true. This means that the configuration has been loaded and is waiting for the clock to reach the set admin base time that was set. Once this happens, TAS will be enabled.

  20. Once the TAS has been enabled, the IxNetwork can be set-up for testing. Load the 802.1Qbv - Talker and Listener sample (the second one) in Files->Samples->TSN:

    alt text

  21. Map the master port to a port, in this example, it is mapped to port 3. Map the slave port to a different port, in this example, it is port 4.

    alt text

  22. Now you can begin the test by clicking the Test button and you should see traffic coming into the Novus Mini's RX ports at the correct time intervals.

  23. To verify this, click Capture:

    alt text

  24. Then click Ethernet - 002 and ensure that Enable Data Capture is enabled:

    alt text

  25. Then click the Play Capture button:

    alt text

  26. Let this run for about 5-10 seconds, then click the same button to end the capture. Then expand the Captured Files tab to download the data capture:

    alt text

  27. Open the file in Wireshark and you can see the packets in each gate come in at about 125 microseconds apart:

    alt text

  28. When finished, in the terminal, ensure that you clean up the TAS configuration by entering:

    $ sudo dr mup1cc -d /dev/ttyACM0 -m ipatch -i tas_teardown.patch.yaml

5.2.3 Adding a Second Switch

Change the hardware configuration to match the topology found in Appendix B.

Repeat the TAS configuration steps, starting in 5.2.2 8 Queue Gates Configuration Steps, for the 2nd switch which will setup TAS on the second switch. Optionally, you can use the TAS project in the configuration folder to load the configuration to save time.

TAS should be configured for port 12 on both switches, which is the egress port.

Run the same test again.

The results should be similiar to the 1 switch configuration.

5.2.4 Adding a Third Switch

Change the hardware configuration to match the topology found in Appendix C.

Repeat the TAS configuration steps, starting in 5.2.2 8 Queue Gates Configuration Steps, for the 3rd switch which will setup TAS on the third switch. Optionally, you can use the TAS project in the configuration folder to load the configuration to save time.

TAS should be configured for port 12 on all switches, which is the egress port.

Run the same test again.

The results should be similiar to the 1 switch configuration.

5.3 CBS (IEEE 802.1Qav)

5.3.1 Description:

The Credit Based Shaper (CBS) is in compliance with IEEE 802.1Qav. Credit Based Shaping is a data processing algorithm set by the IEEE that allows different queues (VLAN groupings/traffic classes) to transmit data frames using "credits". Frames will only be sent when the number of credits available is greater than or equal to zero. When frames are transmitting, credits decrease at a set rate; when frames are not being sent, available credits increase at a set slope. The two slopes which modify credits are referred to as "Idle" and "Send" slopes. If a queue (port grouping) is the process of sending data and the credit balance drops into the negative, then the queue will finish its transmission and then wait for the Idle slope to recover the credit balance to something greater than 0. The CBS also allows for seperation of high priority traffic classes from regular best effort traffic. When high priority traffic classes are put into "credit debt" from a recent data transmission, best effort traffic is allowed to send its frames until interupted by the higher priority, credit based traffic.

5.3.2 Shaping Queue 0 Configuration Steps

In this setup, there will be 2 endpoints with the LAN969x switch in between. One endpoint will send best effort traffic, and the other will recieve the credit shaped output of the best effort traffic from the Network Switch.

  1. In the VelocityDrive CT, click on the Configurations tab on the top:

    alt text

  2. Then click the + on the right hand side to create a new Configuration.

  3. Open the new configuration and click the bookmark icon to make a local copy of the configuration that is currently running on the switch:

    alt text

  4. To follow this setup, enable CVLAN and PVID for ports 11 and 12. To enable CVLAN and PVID click into / (root) -> interface -> interface[name='11'] -> bridge-port. Click on the port-type (identityref) and the pvid (dot1qtypes:vlan-index-type -> uint32), then click Add Selected. Modify the port-type field to be the item that says "c-vlan-bridge", and the pvid field to be "2".

    alt text

  5. Repeat step 4 to enable and set CVLAN and PVID for interface 12.

    alt text

  6. Then, add the filtering database by clicking into / (root) -> bridges -> bridge[name='b0'] -> component -> component[name='c0'] -> filtering-database -> vlan-registration-entry -> vlan-registration-entry[database-id='0'][vids='x']. Set the vids to "2", and the entry type to "static".

    alt text

  7. Once the filtering database entry is added, the PCP Decoding Map will need to be added for ports 11 and 12. Click into / (root) -> interfaces -> interface[name='11'] -> bridge-port -> pcp-decoding-table -> pcp-decoding-map -> pcp-decoding-map[] and set the pcp (pcp-selection-type -> enumeration) value field to "8P0D". Repeat for interface 12.

    alt text

  8. Then, click into / (root) -> interfaces -> interface -> interface[name='11'] -> bridge-port -> pcp-decoding-table -> pcp-decoding-map -> pcp-decoding-map[pcp='8P0D'] -> priority-map -> priority-map[priority-code-point='0']. Set the priority-code-point (priority-type -> uint8) and priority (priority-type -> uint8) fields to "0", and ensure that drop-eligible (boolean) is disabled. Repeat steps for interface 12.

    alt text

  9. Now, click into / (root) -> interfaces -> interface -> interface[name=11] -> eth-qos ->config -> traffic_class_shapers:

    alt text

  10. Click Add Item then click into traffic_class_shapers[traffic-class=0]:

    alt text

  11. Select credit-based and then click Add Selected:

    alt text

  12. Click into credit-based. Select Idle-slope and then click Add Selected:

    alt text

  13. Enter the desired Idle-Slope for traffic class 0 in Kbps, or follow this example by clicking on No Value and entering 500 in the box:

    alt text

  14. To configure more traffic classes, return to the traffic-class-shapers section of the resources tree, and select Add Item until you have your desired number of traffic classes, and then click into the desired traffic class and follow the steps as previously seen to configure each class individually. Repeat the steps for interface 12.

  15. Now, on the IxNetwork select the Files button in the top left corner of the suite:

    Files_Button

  16. From there, select the New button:

    New_Button

  17. After selecting New, select the New Config button:

    New_Configuration

  18. The suite will prompt you to confirm that you would like to create a New Configuration (Config). Select OK.

    New_Config_OK

  19. After the new configuration menu has been brought up, select the Samples tab on the left area of the suite:

    Samples

  20. Once in the Samples tab menu, select the Basic dropdown menu:

    Basic

  21. Select Ethernet and the suite will display the Ethernet Topology view:

    Ethernet_Topology_View

  22. From within the Ethernet Topology view, select the icon with the red X through it in the box below Ethernet Topology 1:

    Port_Sel

  23. Select Port 3:

    Sel_Port_3

  24. Select OK:

    Confirm_Port_3

  25. After selecting Port 3, return your attention to the Ethernet Topology area of the suite and select the icon with the red X through it in the box below Ethernet Topology 2. Then select port 4:

    Sel_Port_4

  26. Select OK:

    Confirm_Port_4

  27. Select the Ethernet 1 button within the Ethernet Topology 1 box. On the menu that is brought up, click into VLAN-1 and click the check-box to enable VLAN. Set the VLAN ID-1 box to "2", and the Priority-1 box to "0". Repeat for the Ethernet 2 button within the Ethernet Topology 2 box.

    alt text

  28. Select the Traffic tab in the top right area of the suite:

    Traffic_Tab

  29. Before testing the CBS functionality, left click on the box below the Frame Rate column label (The box to select will be pre-populated with some line rate as a percentage). Once the box has been selected, a menu will pop up, change the value of the Line Rate row to 100%, this allows traffic to flow at the maximum rate possible:

    Line_Rate_Change

  30. Select OK:

    Line_Rate_OK

  31. Once finished setting the Line Rate to 100%, the test is ready to begin. Select the Statistics tab at the top right of the suite before beginning the test to open the Statistics view:

    Statistics

  32. Once in the Statistics view, select the Test button with the green triangle arrow to the left of it. This will begin testing the best effort ethernet configuration.

    Test_Button

  33. The configuration test results are outputted in the center of the testing suite. The left side of the suite displays the number of bits sent to the switch, and the right side displays the number of bits recieved from the switch. The number of bits recieved from the switch should match the the Idle-Slope configured in the VelocityDrive CT. Confirm that the output has converged to the Idle-Slope that was set to 500 Kbps. 500 Kbps is represented as 0.5 Mbps in the VelocityDrive CT configuration due to automatic scaling.

    Verify_Results

5.3.3 Adding a Second Switch

Change the hardware configuration to match the topology found in Appendix B.

Repeat the CBS configuration steps, starting from the 5.3.2 Shaping Queue 0 Configuration Steps, for the 2nd switch which will setup CBS on the second switch. Optionally, you can use the CBS project in the configuration folder to load the configuration to save time.

CBS should be configured for port 11 on both switches, which is the ingress port.

Run the same test again.

The results should be similiar or slightly lower than the 1 switch set-up.

5.3.4 Adding a Third Switch

Change the hardware configuration to match the topology found in Appendix C.

Repeat the CBS configuration steps, starting from the 5.3.2 Shaping Queue 0 Configuration Steps, for the 3rd switch which will setup CBS on the third switch. Optionally, you can use the CBS project in the configuration folder to load the configuration to save time.

CBS should be configured for port 11 on all switches, which is the ingress port.

Run the same test again.

The results should be similiar or slightly lower than the 1 switch set-up.

6. Leveraging Your Network for Learning and Growth

At this point you have a functioning TSN network where you have verified a small part of the capabilities. We encourage you to contact Microchip and Keysight to see in any additional functionality is available for this specific setup or to look at our other switching and endpoint technologies. We also recognize the TSN profile, specifically DP in support of the A&D market will have a lots of attention and along with a fast growing ecosystem of products, tools, verification, interoperability and certification options. We also encourage you to read more about the technologies offered in the below reference doucmentation to better understand how various TSN profiles can be leveraged for your use cases.

If you are interested in contributing to this blueprint so it will include other options please contact Microchip to discuss next steps.

7. Documentation and Support

Microchip FPGA Support

Microchip FPGA Support: Contact the Technical Support Center at www.microchip.com/support. Mention the FPGA Device Part number, select an appropriate case category, and upload design files while creating a technical support case.

Microchip Customer Service

Customer Service (non-technical product support):

North America: call 800.262.1060.

Outside of North America: call 650.318.4460.

Fax (Global): 650.318.8044.

8. Glossary

Term Definition
Velocity Drive CT Velocity Drive Configuration Tool
Velocity Drive SP Velocity Drive Support Package
Network Switch A Layer II Network Routing Device
MUP1CC A MUP1 CORECONF client tool for the switch firmware
CORECONF CoAP Management Interface, a lightweight network mangement protcol
TSN Time-Sensitive Network
gPTP Generalized Time Precision Protocol
BMCA Best Master Clock Algorithm
TAS Time-Aware Shaper
CBS Credit-Based Shaper
CLI Command Line Interface
GM Grandmaster
CVLAN Customer VLAN
VLAN Virtual Local Area Network
PVID Port VLAN ID
PCP Port Control Protocol
IEEE Institute of Electrical and Electronics Engineers
Hardware Electronic Hardware/Physical Electronic Device
Git Version Control Tool
Docker Virtual Environment Software

Appendix A: Hardware Setup for 1 Switch

The Keysight Novus Mini acts as the endpoints. The Microchip EV23X71A is the network switch. Reference the following diagrams to set-up the hardware.

TSN_TOPOLOGY

Appendix B: Hardware Setup for 2 Switches

The Keysight Novus Mini acts as the endpoints. The Microchip EV23X71A is the network switch. Reference the following diagrams to set-up the hardware.

TSN_TOPOLOGY

To go from 1 switch in Appendix A to 2 switches, follow these steps:

  1. Move the Ethernet cable that is in port 12 of the first switch and connect it to port 12 of the second switch.
  2. Connect an Ethernet cable to port 12 of the first switch and port 11 of the second switch

Appendix C: Hardware Setup for 3 Switches

The Keysight Novus Mini acts as the endpoints. The Microchip EV23X71A is the network switch. Reference the following diagrams to set-up the hardware.

A sample set-up with 3 switches could look something like this:

TSN_TOPOLOGY

Appendix D: Troubleshooting Guide

This appendix lists common issues seen while bringing the TSN Blueprint "up" and how to resolve them.

Serial Device is Busy

Only one process can access the serial device at a time. If you are encountering this issue, ensure there is not already another VelocityDrive CT GUI already open by you or another user.

Using Linux Version of the VelocityDrive CT Tool

If you are encountering issues when using the Linux version of the VelocityDrive CT, such as segfaults or missing options in the GUI, consider switching to Windows. The Windows version of the VelocityDrive CT is considered the more mature of the two.

Unable to Get YANG Checksum

This typically means that the switch is not running the VelocityDrive-SP. See this page for updating the firmware on the Microchip EV23X71A.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors