Hide thumbs Also See for Genio 700:
Table of Contents

Advertisement

Quick Links

Genio 700/1200 TSN Evaluation Guide
Version:
1.6
Release date:
2023-07-30
Use of this document and any information contained therein is subject to the terms and conditions set forth in Exhibit 1. This document
is subject to change without notice.
MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved.
Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Genio 700 and is the answer not in the manual?

Questions and answers

Summary of Contents for MEDIATEK Genio 700

  • Page 1 Use of this document and any information contained therein is subject to the terms and conditions set forth in Exhibit 1. This document is subject to change without notice. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 2: Version History

    Add Genio 700 Platform Support 2023-02-01 Add Chapter-2 to Summary Test Result 2023-07-30 Update template MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 3: Table Of Contents

    Quick Start Test Guide ············································································································································· 26 4.1 802.1AS ·································································································································································· 26 4.2 802.1Qav ································································································································································ 26 4.3 802.1Qbv ································································································································································ 27 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 4 6.3 Installing Netopeer2-cli on Ubuntu18.04 ··············································································································· 51 Reference ································································································································································ 53 Exhibit 1 Terms and Conditions ········································································································································ 54 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 5: List Of Figures

    Figure 6-1. Architecture of Netopeer2 and sysrepo ················································································································· 45 Figure 6-2. Test topology ·························································································································································· 46 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 6: Test Environment

    Binaries used in TSN test are installed to /usr/bin. udp_tai adjust_clock_tai_offset check_clocks dump-classifier tsn_talker tsn_listener MediaTek Confi dential A MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 7: Test Result Summary

    802.1AS Pass 802.1Qav Pass Pass 802.1Qbv Pass 802.1Qbu Pass OPC UA Pass NETCONF/YANG Pass MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 8: Detailed Test And Analysis For Tsn Schedulers

    Here we present the steps taken for setting up a test that slave end station(platform-1) synchronizes time with master end station(platform-2). MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 9: Test Steps

    39 (6) Ping platform-1 from platform-2 to confirm the path link is ready MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 10: Test Results

    Sync log will show on platform -1, as follows, and master offset value should be smaller than 100ns MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 11: Figure 3-3. Slave Offset From Master, In Startup State

    The slave offset from master in stable stage and the fluctuation range of offset is[-68,66] as shown in Figure 5. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 12: 802.1Qav Test

    (3) Check classes settings on platform-1 and logs will show as follows on platform-1 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 13 # ip link add link eth0 name eth0.100 type vlan id 100 (10) Up eth0.100 VLAN NIC node on platform-2 # ifconfig eth0.100 up MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 14: Test Results

    Receiving data rate: 39768 kbps Receiving data rate: 39756 kbps Receiving data rate: 39756 kbps MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 15 Receiving data rate: 0 kbps Receiving data rate: 0 kbps 5] 116.00-118.00 sec 224 MBytes 941 Mbits/sec MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 16: Earliest Txtime First(Etf) Test

    # phc2sys -s eth0 -c CLOCK_REALTIME --step_threshold=1 --transportSpecific=1 -w& (4) Adjust CLOCK_TAI 37s offset on platform-1&2 # adjust_clock_tai_offset MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 17: Etf Qdisc Configuration And Send Packets

    # tftp 192.168.0.100 # put tmp.pcap (3) Use tshark tool to analyze traffic on Ubuntu machine MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 18: Packet Tx Flow Timestamps Diagram On Platform-1

    Figure 3-5. ETF Qdisc Hardware Offload TX Flow Timestamps MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 19: Packet Rx Flow Timestamps Diagram On Platform-2

    - Traffic Class 2 (TC 2): duration of 300us, 'hw offload with deadline txtime' is used. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 20: Test Steps

    # phc2sys -s eth0 -c CLOCK_REALTIME --step_threshold=1 --transportSpecific=1 -w& (5) Adjust CLOCK_TAI 37s offset on platform-1&2 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 21: Taprio Configuration And Send Packets

    (1) Connect Ubuntu machine and platform-2 with Ethernet cable and set Ubuntu IP address MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 22: Packets Arrive Time Liner At Each Open Gate

    0 dedaline packet on gate1 Figure 3-7. Packets Liner at Each Open Gate MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 23: Packets Arrive Offset From Gate Open

    1060 1050 1040 1030 1020 Figure 3-9. Deadline Packets Arrive Offset from Gate-1 Open MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 24: 802.1Qbu Test

    3.5.2.2 FPE Configuration and Send Packets (1) Use iperf3 to receive traffic on platform-2 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 25: Test Results

    # ethtool -S eth0 | grep fpe platform-1: mmc_tx_fpe_fragment_cntr: 221 mmc_rx_fpe_fragment_cntr: 0 platform-2: mmc_tx_fpe_fragment_cntr: 0 mmc_rx_fpe_fragment_cntr: 221 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 26: Quick Start Test Guide

    # tc qdisc replace dev eth0 parent root mqprio num_tc 4 map 0 0 2 3 0 0 0 0 0 0 0 0 0 0 0 0 queues 1@0 1@1 1@2 1@3 hw 0 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 27: 802.1Qbv

    # check_clocks eth0 5. Get basetime + 2minutes by shell script # sh /etc/tsn-scripts/base-time.sh MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 28: 802.1Qbu

    # iperf3 -s -i 2 & platform-1: # iperf3 -c 192.168.0.10 -b 10M -i 2 -t 10 & MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 29 7. Get count of preempted packets on platform-1&2 by checking mmc_tx_fpe_fragment_cntr and mmc_rx_fpe_fragment_cntr # ethtool -S eth0 | grep fpe MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 30: Opc Ua

    USB Ethernet, on both boards is connected to a router, then we can use OPC UA Client from PC to observe the Data on both Publisher and Subscriber. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 31: Test Steps

    Run ptp4l for PTP time synchronization and run phc2sys to synchronize PHC clock to Linux system clock (Clock_REALTIME) on Publisher (platform 1), Publisher acts as master. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 32  and the system clock (CLOCK_REALTIME). If phc2sys consistently reports offset lower than 100 ns, the System clock is synchronized. Example phc2sys log below: MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 33 Then run the OPC UA PubSub Subscriber sample application. Run the Subscriber application before the Publisher application so that we won’t miss any packet sent by the Publisher. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 34 On the Publisher (platform 1), run the OPC UA PubSub Publisher sample application. # /home/root/open62541_example/opcua_pubsub_publisher -u opc.eth://01-00-5E-00-00-01 -d eth0 Logs on Publisher: MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 35  The URL of the OPC UA server on the Subscriber is below:  opc.tcp://<IP_of_eth1_on_Subscriber>:4801/ MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 36: Figure 5-2. Uaexpert Connected To The Publisher

    Example snapshot of UaExpert connected to the Publisher: Figure 5-2. UaExpert connected to the Publisher MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 37: Taprio Effects On Ptp/Best Effort Traffic

    Red block --> before pktgen script runs Yellow blocks --> after pktgen script quilts MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 38: More Experiment

    PTP traffic  priority 1  queue 1 Best effort traffic  priority 0  queue 0 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 39: Uaexpert Installation

    1. Open the UaExpert GUI. Click on the 'Add Server' button. Figure 5-4. Add Server MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 40: Figure 5-5. Enter Url

    'open62541-based OPC UA Application (opc.tcp)'. A 'Replaced Hostname' window will pop up. Click 'Yes'. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 41: Figure 5-6. New Server List

    Genio 700/1200 TSN Evaluation Guide Figure 5-6. New server list MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 42: Figure 5-7. Select None - None Option

    4. Click to select 'None – None (…)' and click OK. Figure 5-7. Select None – None option MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 43: Figure 5-8. Connect Servers

    5. Right click on the server listed under ‘Servers’ and click ‘Connect’. Figure 5-8. Connect servers MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 44: Figure 5-9. Monitor Server Object

    ‘Data Access View’ area. Figure 5-9. Monitor server object MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 45: Netconf/Yang

    NETCONF and YANG libraries - libyang and libnetconf2. The Netopeer2 server uses sysrepo as a NETCONF datastore implementation[9]. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 46: Tools In Meta-Mediatek-Tsn

    At the same time, check corresponding YANG modules are installed. These modules are installed by sysrepo-cfg.service when boot up. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 47: Ip Configuration

    Check the result on Genio board, the IPv4 address is same with that in xml. Snippet in ietf-ip-cfg.xml: MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 48: Qbv Configuration

    Check the result on Genio board, the default qdisc is replaced with taprio Qbv qdisc. Snippet in qbv-eth0.xml: MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 49 Edit the qbv-eth0.xml to set gate-enabled to false, and configure xml again, the qbv qdisc will be deleted. MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 50: Qbu Configuration

    The Qbu configuration is almost same with Qbv, use qbu-eth0.xml instead. // netopeer2-cli // configure Qbv with qbu-eth0.xml > edit-config --target running --config=/etc/sysrepo-tsn/Instances/qbu-eth0.xml MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 51: Installing Netopeer2-Cli On Ubuntu18.04

    $ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. $ make $ sudo make install  5. Install protobuf: MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 52 $ git checkout v0.7-r2 -b v0.7-r2 $ cd cli $ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . $ make $ sudo make install MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 53: Reference

    [3]. https://tsn.readthedocs.io/index.html [4]. https://www.spinics.net/lists/netdev/msg460869.html [5]. https://patchwork.ozlabs.org/project/netdev/cover/20180703224300.25300-1-jesus.sanchez-palencia@intel.com/ [6]. https://patchwork.ozlabs.org/project/netdev/cover/20180714000536.1008-1-vinicius.gomes@intel.com/ [7]. https://www.nxp.com/docs/en/user-guide/REALTIMEEDGEUG_REV2.2.pdf [8]. https://netopeer.liberouter.org/doc/sysrepo/master/html/ [9]. https://github.com/CESNET/netopeer2 MediaTek Proprietary and Confidential. © 2022 MediaTek Inc. All rights reserved. Unauthorized reproduction or disclosure of this document, in whole or in part, is strictly prohibited.
  • Page 54: Exhibit 1 Terms And Conditions

    MediaTek for any loss or damages suffered by MediaTek for Your unauthorized use or disclosure of this Document, in whole or in part. MediaTek and its licensors retain titles and all ownership rights in and to this Document and no license (express or implied, by estoppels or otherwise) to any intellectual propriety rights is granted hereunder.

This manual is also suitable for:

Genio 1200

Table of Contents