Difference between revisions of "Multichannel RF Reference Architecture"
(→Connecting the LO Distribution) |
m (→System Characteristics: fix low end frequency valid for LO sharing) |
||
(30 intermediate revisions by one other user not shown) | |||
Line 15: | Line 15: | ||
<!-- NOTE: DO NOT update this AppNote without the knowledge and approval of an NI technical write such as Susan Collier and a leader such as Abhay Samant. --> | <!-- NOTE: DO NOT update this AppNote without the knowledge and approval of an NI technical write such as Susan Collier and a leader such as Abhay Samant. --> | ||
− | This document provides guidance for designing a system that uses the NI Multichannel RF Reference Architecture version 1. | + | This document provides guidance for designing a system that uses the NI Multichannel RF Reference Architecture version 1.2. |
This document describes how to design a system that enables synchronization between Receive (Rx) channels, Transmit (Tx) channels, and Transmit-Receive (Tx-Rx) channels, as well as high-throughput data sample transport from the software-defined radio (SDR) to a server system over 10 GbE data links. This document provides a starting point in the creation of your specific system configuration. A basic understanding of Linux, command line, C++, Git, and networking is required to build and develop on the NI Multichannel RF Reference Architecture system. | This document describes how to design a system that enables synchronization between Receive (Rx) channels, Transmit (Tx) channels, and Transmit-Receive (Tx-Rx) channels, as well as high-throughput data sample transport from the software-defined radio (SDR) to a server system over 10 GbE data links. This document provides a starting point in the creation of your specific system configuration. A basic understanding of Linux, command line, C++, Git, and networking is required to build and develop on the NI Multichannel RF Reference Architecture system. | ||
Line 22: | Line 22: | ||
= Architecture Overview = | = Architecture Overview = | ||
− | The Multichannel RF Reference Architecture allows engineers to quickly scale from software simulation to hardware demonstration. It features direct conversion RF sampling (200 MHz instantaneous bandwidth) with NI USRPs for | + | The Multichannel RF Reference Architecture allows engineers to quickly scale from software simulation to hardware demonstration. It features direct conversion RF sampling (200 MHz instantaneous bandwidth) with NI USRPs for multiple RF applications, enabling coherent operation through shared local oscillator (LO), PPS, and 10 MHz reference clock signals. |
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
Line 38: | Line 38: | ||
* Documentation that lists installation and configuration information for a 32x32 system, as well as best practices for development and validation of the system. ''N''x''M'' refers to systems, where ''N'' is the number of transmit channels and ''M'' is the number of receive channels. | * Documentation that lists installation and configuration information for a 32x32 system, as well as best practices for development and validation of the system. ''N''x''M'' refers to systems, where ''N'' is the number of transmit channels and ''M'' is the number of receive channels. | ||
* Documentation that lists performance benchmarks with validated results for systems with up to 32 channels for the following specifications: | * Documentation that lists performance benchmarks with validated results for systems with up to 32 channels for the following specifications: | ||
− | :o Synchronization between 32 Rx-Rx channels, | + | :o Synchronization between 32 Rx-Rx channels, 16 Tx-Tx channels, and 32 Tx-Rx channels |
:o Bidirectional streaming of IQ data between 32 channels and server | :o Bidirectional streaming of IQ data between 32 channels and server | ||
* Bill of materials for systems with up to 32 channels. | * Bill of materials for systems with up to 32 channels. | ||
Line 83: | Line 83: | ||
* Server | * Server | ||
:o '''Supermicro 4124GS-TNR'''—Server with dual AMD EPYC processors and 10 PCIe 4 x16 slots. Numerous PCIe lanes from the CPU support many 10 GbE connections and the PCIe processing required for high-channel-count systems. | :o '''Supermicro 4124GS-TNR'''—Server with dual AMD EPYC processors and 10 PCIe 4 x16 slots. Numerous PCIe lanes from the CPU support many 10 GbE connections and the PCIe processing required for high-channel-count systems. | ||
− | :o '''Trenton Systems | + | :o '''Trenton Systems 3U BAM'''—Server with Intel dual 3rd generation Xeon Ice Lake processors, 11 Gen 4.0 PCIe slots (5 x16 slots, 6 x8 slots), and 24x DDR4-3200 ECC RDIMM slots for high-channel-count systems. |
* Network Interface Cards (NIC) | * Network Interface Cards (NIC) | ||
:o '''Intel X710-DA4'''—Network card that supports x4 10 GbE connections. | :o '''Intel X710-DA4'''—Network card that supports x4 10 GbE connections. | ||
:o '''Intel E810-CQDA2'''—Network card that supports two 100 GbE connections, or, with a breakout cable, x8 10 GbE connections. | :o '''Intel E810-CQDA2'''—Network card that supports two 100 GbE connections, or, with a breakout cable, x8 10 GbE connections. | ||
+ | :o '''NVIDIA MCX4121A-ACAT ConnectX-4 Lx EN'''—Network card that supports two 25 GbE connections. | ||
* Storage | * Storage | ||
:o '''HighPoint SSD7505'''—PCIe carrier board that holds x4 M.2 drives and supports either a software or hardware RAID configuration. | :o '''HighPoint SSD7505'''—PCIe carrier board that holds x4 M.2 drives and supports either a software or hardware RAID configuration. | ||
Line 103: | Line 104: | ||
== Software Overview == | == Software Overview == | ||
− | The reference software, shown in Figure 2, consists of a C++ reference library and examples, using USRP Hardware Driver (UHD) version 4. | + | The reference software, shown in Figure 2, consists of a C++ reference library and examples, using USRP Hardware Driver (UHD) version 4.2. The reference software is supported on Ubuntu Linux 20.04. It demonstrates how to assemble multi-USRP systems through the UHD RFNoC API and replay block. It contains a Python-based binary int16 data file (.dat) generator and viewer. The reference software is written to be scalable for systems 2x2 to 32x32 and beyond, as well as Tx or Rx only (2 to 32 channels and beyond). |
The software provides examples that stream data from the replay block as well as the host, as shown in the following figures. | The software provides examples that stream data from the replay block as well as the host, as shown in the following figures. | ||
Line 163: | Line 164: | ||
== Cabling the Hardware == | == Cabling the Hardware == | ||
− | The following topics describe the connections for 8x8, 16x16, and 32x32 | + | The following topics describe the connections for 8x8, 16x16, and 32x32 systems. |
:: '''Note''' Ensure that you use a calibrated torque wrench for all cabling connections. NI recommends the RF Torque Screwdriver and SMA Driver Bit (NI part number 780895-01). | :: '''Note''' Ensure that you use a calibrated torque wrench for all cabling connections. NI recommends the RF Torque Screwdriver and SMA Driver Bit (NI part number 780895-01). | ||
Line 248: | Line 249: | ||
<ul> | <ul> | ||
− | <li><p>Tx and Rx must share the same LO connection. The LO sharing configuration for USRP N321s and USRP N320s in this system differs slightly from the LO sharing diagram on the Ettus Knowledge Base<ref | + | <li><p>Tx and Rx must share the same LO connection. The LO sharing configuration for USRP N321s and USRP N320s in this system differs slightly from the LO sharing diagram on the Ettus Knowledge Base<ref>The [https://kb.ettus.com/USRP_N320/N321_LO_Distribution ''USRP N320/N321 LO Distribution''] Knowledge Base article does not show one LO signal shared across Tx and Rx.</ref>. Distributing the LO from one channel to all other channels results in phase coherence across all channels, and there will be a constant non-zero phase offset between any two channels. This phase offset can be empirically measured and compensated for in software, thus resulting in all channels being phase aligned. The overall system is phase synchronous under a wide range of conditions; refer to ''[https://kb.ettus.com/Multichannel_RF_Reference_Architecture#Synchronization Synchronization]'' for more information about measured synchronization performance.</p></li> |
<li><p>Configure all USRPs, including the LO Source USRP, to use external LO inputs. ''Refer to'' <code>sync.cpp</code> in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/lib/] folder for information about how the reference software configures the LOs on the USRPs.</p></li> | <li><p>Configure all USRPs, including the LO Source USRP, to use external LO inputs. ''Refer to'' <code>sync.cpp</code> in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/lib/] folder for information about how the reference software configures the LOs on the USRPs.</p></li> | ||
<li><p>Use tiered LO signal distribution and identical cable lengths between any specific tiers.</p></li> | <li><p>Use tiered LO signal distribution and identical cable lengths between any specific tiers.</p></li> | ||
<li><p>Connect the RX LO OUT and TX LO OUT cabling from Distribution Tier of USRP N321s to the nearest USRP N320s, as shown in the following figures.</p></li> | <li><p>Connect the RX LO OUT and TX LO OUT cabling from Distribution Tier of USRP N321s to the nearest USRP N320s, as shown in the following figures.</p></li> | ||
− | <li><p>Use | + | <li><p>Use minimum identical cable length between tiers.</p> |
<p>The following table lists the tiers for all system configurations.</p></li></ul> | <p>The following table lists the tiers for all system configurations.</p></li></ul> | ||
Line 437: | Line 438: | ||
* Label the NICs and 10 GbE cables to identify each USRP connection. | * Label the NICs and 10 GbE cables to identify each USRP connection. | ||
* Create a document for tracking USRP serial numbers with assigned network address. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/docs/] folder for a customizable template. | * Create a document for tracking USRP serial numbers with assigned network address. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/docs/] folder for a customizable template. | ||
+ | ::'''Note''' For maximum streaming rates with DPDK, both SFP+0 and SFP+1 must be configured and connected. Dual port streaming can also be used without DPDK for enhanced streaming capability. | ||
<span id="connecting-to-power"></span> | <span id="connecting-to-power"></span> | ||
Line 442: | Line 444: | ||
Plug the USRPs, OctoClocks, server, and switch into the system PDU. | Plug the USRPs, OctoClocks, server, and switch into the system PDU. | ||
+ | |||
+ | <span id="installing-and-configuring-dpdk"></span> | ||
+ | === (Optional) Installing and Configuring DPDK === | ||
+ | If you want to improve streaming performance for your system, you can install Data Plane Development Kit (DPDK) 20.11. Streaming rates to disk are limited by the write speed of the chosen storage medium. Refer to ''[https://kb.ettus.com/Multichannel_RF_Reference_Architecture#streaming-simultaneously-with-dpdk-tofrom-disk-rates Streaming with DPDK Simultaneously to/from Disk Rates]'' for information on the streaming rates. | ||
+ | |||
+ | ::'''Note''' This reference architecture has been tested using DPDK 20.11 with NVIDIA MCX4121A-ACAT ConnectX-4 Lx EN Adapter Cards. The following steps may only apply to the NVIDIA ConnectX-4. | ||
+ | |||
+ | # Ensure that you install the proper drivers for your NIC prior to installing DPDK and UHD. | ||
+ | # Install and configure the DPDK software according to the ''[https://doc.dpdk.org/guides-20.11/linux_gsg/intro.html Data Plane Development Kit Getting Started Guide for Linux.]'' | ||
+ | # Configure huge pages by opening the grub configuration file, | ||
+ | #: <code>/etc/default/grub</code>. | ||
+ | # Add the following parameters to <code>GRUB_CMDLINE_LINUX_DEFAULT</code>: | ||
+ | #: <code>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash</code> | ||
+ | #: <code>default_hugepagesz=2048M hugepagesz=2048M hugepages=10000"</code> | ||
+ | # Close <code>/etc/default/grub</code>. | ||
+ | # At the command prompt, update your grub configuration with the following command: | ||
+ | #: <code>sudo update-grub</code> | ||
+ | # Reboot the host machine for these settings to take effect. | ||
+ | # Create a UHD configuration file to interface with DPDK. | ||
+ | #:# Run the following command to list the MAC addresses for your NICs: | ||
+ | #:#: <code>ip a</code> | ||
+ | #:# Use the following commands to create the UHD configuration file at the location <code>/etc/uhd/</code>: | ||
+ | #:#: <code>sudo su</code> | ||
+ | #:#: <code>mkdir -p /etc/uhd</code> | ||
+ | #:#: <code>nano /etc/uhd/uhd.conf</code> | ||
+ | # Update the following fields of your UHD configuration file. | ||
+ | #:o Update the <code>dpdk_mac</code> field to match your NIC MAC address variables | ||
+ | #:o Update the <code>dpdk_driver</code> field if the location is different on your system. | ||
+ | #:o Update the <code>dpdk_corelist</code> and <code>dpdk_lcore</code> fields. In this example, a two-port NIC is used. There should be one core for the main DPDK thread (in this example, core #2), and separate cores assigned to each NIC (in this example, core #3 for the first port on the NIC, core #4 for the second port on the NIC). | ||
+ | #:o Update the <code>dpdk_ipv4</code> fields to your IP range. | ||
+ | Refer to the following <code>uhd.conf</code> file for an example of how you should update the fields in your configuration file. | ||
+ | <nowiki> | ||
+ | [use_dpdk=1] | ||
+ | dpdk_mtu=9000 | ||
+ | dpdk_driver=/usr/local/lib/dpdk-pmds | ||
+ | dpdk_corelist=2,3,4 | ||
+ | dpdk_num_mbufs=8192 | ||
+ | dpdk_mbuf_cache_size=64 | ||
+ | |||
+ | [dpdk_mac=50:6b:4b:3b:3c:d8] | ||
+ | dpdk_lcore = 3 | ||
+ | dpdk_ipv4 = 192.168.50.1/24 | ||
+ | dpdk_num_desc = 4096 | ||
+ | |||
+ | [dpdk_mac=50:6b:4b:3b:3c:d9] | ||
+ | dpdk_lcore = 4 | ||
+ | dpdk_ipv4 = 192.168.51.1/24 | ||
+ | dpdk_num_desc = 4096 | ||
+ | </nowiki> | ||
+ | Refer to [https://kb.ettus.com/Multichannel_RF_Reference_Architecture#Running_the_Examples ''Running the Examples''] to verify successful installation of DPDK on your system. | ||
+ | |||
+ | ::'''Note''' Refer to ''[https://kb.ettus.com/Getting_Started_with_DPDK_and_UHD Getting Started with DPDK and UHD]'' for more information about DPDK and UHD. | ||
<span id="installing-and-configuring-the-software"></span> | <span id="installing-and-configuring-the-software"></span> | ||
Line 456: | Line 510: | ||
#: <code>sudo ./setup_script.sh</code> | #: <code>sudo ./setup_script.sh</code> | ||
− | The | + | The <code>refarch-multich</code> repository contains the following folders: |
− | * | + | * <code>config</code>—Contains script files that assist with the software installation process. |
− | * | + | * <code>docs</code>—Contains system bill of materials and reference architecture template. |
− | * | + | * <code>examples</code>—Contains reference architecture examples and configuration files. |
− | * | + | * <code>lib</code>—Contains the library source files. |
− | * | + | * <code>tools</code>—Contains Python-based data file generator and viewer. |
<span id="setting-up-the-first-usrp"></span> | <span id="setting-up-the-first-usrp"></span> | ||
Line 470: | Line 524: | ||
The following procedure references the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide ''USRP N300/N310/N320/N321 Getting Started Guide'']. Follow the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide] procedure with the specific steps below. | The following procedure references the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide ''USRP N300/N310/N320/N321 Getting Started Guide'']. Follow the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide] procedure with the specific steps below. | ||
− | ::'''Note''' When you run the scripts in this section, ''all'' USRPs connected to the host are updated. Run the uhd_find_devices example for a list of USRPs that are connected to the host. | + | ::'''Note''' When you run the scripts in this section, ''all'' USRPs connected to the host are updated. Run the <code>uhd_find_devices</code> example for a list of USRPs that are connected to the host. |
# Follow the ''Connecting to the ARM via SSH'' procedure in ''Connecting the Device''. You do not need to set up the USRPs for a serial console connection. | # Follow the ''Connecting to the ARM via SSH'' procedure in ''Connecting the Device''. You do not need to set up the USRPs for a serial console connection. | ||
# Follow the procedure in ''Updating the Linux File System''. | # Follow the procedure in ''Updating the Linux File System''. | ||
− | :: '''Note''' If the procedure in ''Updating the file system with Mender'' fails, you must follow the process in ''Updating the files system by writing the disk image''. For a script that updates all USRPs connected to the system, refer to ''<REFARCH>''/config/usrp_filesystem.sh in the GitHub repository. | + | :: '''Note''' If the procedure in ''Updating the file system with Mender'' fails, you must follow the process in ''Updating the files system by writing the disk image''. For a script that updates all USRPs connected to the system, refer to <code>''<REFARCH>''/config/usrp_filesystem.sh</code> in the GitHub repository. |
<ol start="3" style="list-style-type: decimal;"> | <ol start="3" style="list-style-type: decimal;"> | ||
− | <li><p>Follow the procedure in ''Updating the Network Configurations''. Set the MTU to 9000. Every USRP SFP+ ports IP address must have a unique subnet. Change the subnet by replacing ''XXX'' in the address, for example, 192.168.''XXX''.2. If you make any changes to the network configurations, NI recommends that you restart the USRP for those changes to take effect.</p></li></ol> | + | <li><p>Follow the procedure in ''Updating the Network Configurations''. Set the MTU to <code>9000</code>. Every USRP SFP+ ports IP address must have a unique subnet. Change the subnet by replacing ''XXX'' in the address, for example, <code>192.168.''XXX''.2</code>. If you make any changes to the network configurations, NI recommends that you restart the USRP for those changes to take effect.</p></li></ol> |
+ | |||
+ | :: '''Note''' For maximum streaming rates with DPDK, dual port streaming must be configured. Follow the procedure in Updating the Network Configurations for configuring both SFP+0 and SFP+1 ports on the USRP. Ensure that the IP addresses are unique. | ||
:: '''Note''' NI recommends that you create a document for tracking USRP serial numbers with assigned network addresses. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/]docs/ folder for a customizable template. For network addresses, NI recommends that you assign static IP addresses for the management port IPs. Refer to the procedure in ''Updating the Network Configurations'' to update eth0.network file on the USRP. | :: '''Note''' NI recommends that you create a document for tracking USRP serial numbers with assigned network addresses. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/]docs/ folder for a customizable template. For network addresses, NI recommends that you assign static IP addresses for the management port IPs. Refer to the procedure in ''Updating the Network Configurations'' to update eth0.network file on the USRP. | ||
Line 487: | Line 543: | ||
<ol start="4" style="list-style-type: decimal;"> | <ol start="4" style="list-style-type: decimal;"> | ||
<li><p>Follow the ''Network Mode FPGA Image Update'' procedure in ''Updating the FPGA Image'' to update to the XG image. Use the following command to configure both SFP ports to 10 Gb links:<br /> | <li><p>Follow the ''Network Mode FPGA Image Update'' procedure in ''Updating the FPGA Image'' to update to the XG image. Use the following command to configure both SFP ports to 10 Gb links:<br /> | ||
− | uhd_image_loader --args "type=n3xx,addr''=<N3xx_IP_ADDR>'',fpga=XG"<br /> | + | <code>uhd_image_loader --args "type=n3xx,addr''=<N3xx_IP_ADDR>'',fpga=XG"</code><br /> |
− | where ''<N3xx_IP_ADDR>'' is the actual IP address of the USRP being updated. You can find this address by correlating the serial number on the device with the IP address returned by the command uhd_find_devices.</p></li></ol> | + | where <code>''<N3xx_IP_ADDR>''</code> is the actual IP address of the USRP being updated. You can find this address by correlating the serial number on the device with the IP address returned by the command <code>uhd_find_devices</code>.</p></li></ol> |
− | ::'''Note''' For a script to update the FPGA images on all USRPs connected to the system, refer to ''<REFARCH>''/config/usrp_image_loader.sh on the GitHub repository. | + | ::'''Note''' For a script to update the FPGA images on all USRPs connected to the system, refer to [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/]/config/usrp_image_loader.sh on the GitHub repository. |
<ol start="5" style="list-style-type: decimal;"> | <ol start="5" style="list-style-type: decimal;"> | ||
<li><p>Follow the ''Dual 10Gb Streaming SFP Ports 0/1'' procedure in ''Setting Up a Streaming Connection'' to configure the host Ethernet adapters for 10 GbE connection to the USRP.</p></li></ol> | <li><p>Follow the ''Dual 10Gb Streaming SFP Ports 0/1'' procedure in ''Setting Up a Streaming Connection'' to configure the host Ethernet adapters for 10 GbE connection to the USRP.</p></li></ol> | ||
− | ::'''Note''' Ubuntu Linux uses Netplan to manage IP addresses of network cards, however, other operating systems may configure the network interfaces differently. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/config/''] folder to find a customizable template .yaml file. Each host port and the USRP to which it is paired must have a matching subnet. After the .yaml file is configured, copy it to the <code>/etc/netplan</code> directory—overwriting <code>01-network-manager-all.yaml</code>, if necessary. Then use the following command to apply the network configuration:<br /> | + | ::'''Note''' Ubuntu Linux uses Netplan to manage IP addresses of network cards, however, other operating systems may configure the network interfaces differently. Visit the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/config/''] folder to find a customizable template <code>.yaml</code> file. Each host port and the USRP to which it is paired must have a matching subnet. After the <code>.yaml</code> file is configured, copy it to the <code>/etc/netplan</code> directory—overwriting <code>01-network-manager-all.yaml</code>, if necessary. Then use the following command to apply the network configuration:<br /> |
::<code>$ sudo netplan apply</code> | ::<code>$ sudo netplan apply</code> | ||
Line 510: | Line 566: | ||
* For subsequent devices, you may choose to execute the following procedures in parallel: | * For subsequent devices, you may choose to execute the following procedures in parallel: | ||
− | + | :o ''Updating the Linux File System'' | |
− | + | :o ''Updating the Network Configurations''—Each USRP port must be configured to have a different subnet. | |
− | + | :o Updating the FPGA Image | |
− | * Update the .yaml file on the host computer after configuring each remaining USRP. | + | * Update the <code>.yaml</code> file on the host computer after configuring each remaining USRP. |
<span id="optimizing-the-host-system"></span> | <span id="optimizing-the-host-system"></span> | ||
+ | |||
== Optimizing the Host System == | == Optimizing the Host System == | ||
Line 521: | Line 578: | ||
* Increase the ring buffer for each interface by executing the following command in a terminal<br /> | * Increase the ring buffer for each interface by executing the following command in a terminal<br /> | ||
− | <code>sudo ethtool -G ''<interface>'' tx 4096 rx 4096</code><br /> | + | : <code>sudo ethtool -G ''<interface>'' tx 4096 rx 4096</code><br /> |
− | where <code>''<interface>''</code> is the network interface of the specific USRP. You can find this interface through the Network Manager or by executing the following command in a terminal <code>ifconfig</code>. | + | : where <code>''<interface>''</code> is the network interface of the specific USRP. You can find this interface through the Network Manager or by executing the following command in a terminal <code>ifconfig</code>. |
:: '''Note''' Increasing the ring buffer of an interface results in more memory reserved. When setting the ring buffer, make sure to monitor your memory usage. A large number of interfaces can result in hundreds of GB of memory usage. You may need to restart the host system to clear the allocated memory. | :: '''Note''' Increasing the ring buffer of an interface results in more memory reserved. When setting the ring buffer, make sure to monitor your memory usage. A large number of interfaces can result in hundreds of GB of memory usage. You may need to restart the host system to clear the allocated memory. | ||
− | :: '''Note''' This command is executed once for each interface being used. For example, a system with 16 USRPs and 16 interfaces runs 16 times and results in around 65 GB of memory usage. A script has been provided to assist with these settings. The user is required to insert the names of the host interfaces. Refer to nicrb.sh in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/config/] folder for more information. This script may need to be run after each host reboot. You can reference the interface names in the .yaml file configured in ''Setting Up the First USRP Device''. | + | :: '''Note''' This command is executed once for each interface being used. For example, a system with 16 USRPs and 16 interfaces runs 16 times and results in around 65 GB of memory usage. A script has been provided to assist with these settings. The user is required to insert the names of the host interfaces. Refer to <code>nicrb.sh</code> in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/config/] folder for more information. This script may need to be run after each host reboot. You can reference the interface names in the <code>.yaml</code> file configured in ''Setting Up the First USRP Device''. |
* Enable hyperthreading on the server to improve multi-threaded performance. Refer to the server BIOS settings for information. | * Enable hyperthreading on the server to improve multi-threaded performance. Refer to the server BIOS settings for information. | ||
Line 539: | Line 596: | ||
Multichannel RF Reference Architecture is built using the RFNoC API that ships with the USRP Hardware Driver (UHD). | Multichannel RF Reference Architecture is built using the RFNoC API that ships with the USRP Hardware Driver (UHD). | ||
− | * '''UHD RFNoC Example Source Code'''— NI recommends that users who are new to UHD or the RFNoC API begin with the following UHD RFNoC examples, located in the uhd/host/examples directory: | + | * '''UHD RFNoC Example Source Code'''— NI recommends that users who are new to UHD or the RFNoC API begin with the following UHD RFNoC examples, located in the <code>uhd/host/examples</code> directory: |
− | :o rfnoc_radio_loopback. | + | :o <code>rfnoc_radio_loopback.cpp</code>—This example uses the RFNoC API to connect an Rx radio to a Tx radio and run a loopback. |
− | :o rfnoc_replay_samples_from_file. | + | :o <code>rfnoc_replay_samples_from_file.cpp</code>—This example uses the replay block to replay data from a file. |
− | :o rfnoc_rx_to_file. | + | :o <code>rfnoc_rx_to_file.cpp</code>— This example uses the RFNoC API to demonstrate the radio receiving and writing to file. |
* '''Reference Architecture Example Source Code'''— The following examples, located in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/examples/] folder, demonstrate synchronized Tx-Rx operation scalable from 2x2 up to 32x32 systems: | * '''Reference Architecture Example Source Code'''— The following examples, located in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/examples/] folder, demonstrate synchronized Tx-Rx operation scalable from 2x2 up to 32x32 systems: | ||
− | :o Arch_iterative_loopback. | + | :o <code>Arch_iterative_loopback.cpp</code>—This example cycles through each Tx channel to all Rx channels. |
− | :o Arch_multifreq_loopback. | + | :o <code>Arch_multifreq_loopback.cpp</code>—This example cycles through different frequencies and calls <code>rfnoc_txrx_loopback.cpp</code>. |
− | :o Arch_rfnoc_txrx_loopback. | + | :o <code>Arch_rfnoc_txrx_loopback.cpp</code>—This example demonstrates a single Tx to all Rx loopback file using a multithreaded implementation. |
− | :o Arch_rfnoc_txrx_loopback_mem. | + | :o <code>Arch_rfnoc_txrx_loopback_mem.cpp</code>—This example demonstrates a single Tx to all Rx loopback to memory using a multithreaded implementation. |
− | :o Arch_rx_to_mem. | + | :o <code>Arch_rx_to_mem.cpp</code>—This example demonstrates receiving on all channels to memory. |
− | :o Arch_txrx_fullduplex. | + | :o <code>Arch_txrx_fullduplex.cpp</code>—This example demonstrates simultaneously transmitting to and receiving from the host. |
− | :o Arch_dynamic_tx. | + | :o <code>Arch_txrx_fullduplex_dpdk_mem.cpp</code>—This example demonstrates simultaneously transmitting to and receiving from the host memory using DPDK. |
+ | :o <code>Arch_txrx_fullduplex_dpdk.cpp</code>—This example demonstrates simultaneously transmitting to and receiving from the host storage using DPDK | ||
+ | :o <code>Arch_dynamic_tx.cpp</code>—This example is written for a four-channel system. It demonstrates the ability to stream different files and/or have different logic in each transmit thread. Four (potentially) different transmit threads are spawned, one to each USRP channel. Each thread can be customized as needed. You can apply this example to higher channel count systems, as well as receive threads if needed. | ||
:: '''Note''' The provided examples use the same LO and Tx frequency transmitted across all channels and devices. You must modify this reference architecture if you want to transmit different frequencies across channels. | :: '''Note''' The provided examples use the same LO and Tx frequency transmitted across all channels and devices. You must modify this reference architecture if you want to transmit different frequencies across channels. | ||
<span id="building-examples"></span> | <span id="building-examples"></span> | ||
+ | |||
== Building Examples == | == Building Examples == | ||
− | The reference architecture examples are compiled when you run the following setup script | + | The reference architecture examples are compiled when you run the following setup script: <code>setup_script.sh</code>. |
If you need to make changes to the examples, you must recompile the code. | If you need to make changes to the examples, you must recompile the code. | ||
− | # Navigate to ''<REFARCH>/build/'' to recompile the provided examples. | + | # Navigate to [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/build/''] to recompile the provided examples. |
# Execute the following commands in the terminal: | # Execute the following commands in the terminal: | ||
− | <code>cmake .. | + | : <code>cmake ..</code> |
+ | : <code>make –j</code><br /> | ||
+ | If a custom example needs to be compiled, you must modify [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/CMakeLists.txt] to be used with <code>cmake</code>. To build a new example titled <code>new_example.cpp</code>, complete the following steps. | ||
− | + | # Add the following lines to [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/CMakeLists.txt]: | |
− | + | ||
− | + | ||
− | + | : <code>add_executable(new_example ''{relative File Location}''/new_example.cpp)</code> | |
− | <code> | + | : <code>message(STATUS "New Example")</code> |
− | + | : <code>target_link_libraries(new_example PRIVATE UHD_BOOST Arch_lib)</code> | |
− | + | ||
− | target_link_libraries(new_example PRIVATE UHD_BOOST Arch_lib) | + | |
− | </code> | + | |
<ol start="2" style="list-style-type: decimal;"> | <ol start="2" style="list-style-type: decimal;"> | ||
− | <li><p>Navigate to ''<REFARCH>/''build/.</p></li> | + | <li><p>Navigate to [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/''build/.]</p></li> |
<li><p>Execute the command <code>make –j </code>in the terminal to compile the custom examples.</p></li></ol> | <li><p>Execute the command <code>make –j </code>in the terminal to compile the custom examples.</p></li></ol> | ||
<span id="configuration-files"></span> | <span id="configuration-files"></span> | ||
+ | |||
== Configuration Files == | == Configuration Files == | ||
The reference architecture examples use configuration files instead of input arguments to configure the application. The configuration files are located in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/examples/] folder. | The reference architecture examples use configuration files instead of input arguments to configure the application. The configuration files are located in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/examples/] folder. | ||
− | * Refer to the example runconfig.cfg file for a detailed explanation of each argument. | + | * Refer to the example <code>runconfig.cfg</code> file for a detailed explanation of each argument. |
− | * The reference architecture uses a multiple RAID 0 system to increase the number of parallel writes and, thus, achieve higher data rates. You must configure the rx-file-location variable in the runconfig.cfg file. Refer to the configuration file for more information. | + | * The reference architecture uses a multiple RAID 0 system to increase the number of parallel writes and, thus, achieve higher data rates. You must configure the <code>rx-file-location</code> variable in the <code>runconfig.cfg</code> file. Refer to the configuration file for more information. |
− | :: '''Note''' Ensure that the management address for each USRP is specified in the configuration file as demonstrated in the runconfig.cfg example. Not specifying a management address can lead to loss of performance. | + | :: '''Note''' Ensure that the management address for each USRP is specified in the configuration file as demonstrated in the <code>runconfig.cfg</code> example. Not specifying a management address can lead to loss of performance. |
<span id="running-the-examples"></span> | <span id="running-the-examples"></span> | ||
+ | |||
== Running the Examples == | == Running the Examples == | ||
+ | :: '''Note''' If dual port streaming is configured, it must be enabled in the Reference Architecture configuration file. Uncomment <code>second_addr#</code> for each USRP and replace with the correct USRP number and SFP+1 IP address as configured in [https://kb.ettus.com/Multichannel_RF_Reference_Architecture#setting-up-the-first-usrp ''Setting Up the First USRP'']. | ||
+ | # If you are running a DPDK example, you must alter the configuration file. Add <code>use_dpdk=1</code> to the following line in the configuration file: | ||
+ | #:<code>args = type=n3xx,master_clock_rate=250e6,use_dpdk=1</code> | ||
+ | #:: '''Note''' Ensure that you remove <code>use_dpdk=1</code> when running non-DPDK examples. | ||
# Open a terminal in the build folder. | # Open a terminal in the build folder. | ||
− | # Run an example using the <code>--cfgFile=runconfig.cfg</code> command. For example, run | + | # Run an example using the <code>--cfgFile=runconfig.cfg</code> command. For example, run <code>rfnoc_txrx_loopback.cpp</code> by executing the following command in a terminal:<br /> |
− | <code>./rfnoc_txrx_loopback --cfgFile=../examples/runconfig.cfg</code> | + | #:<code>./rfnoc_txrx_loopback --cfgFile=../examples/runconfig.cfg</code> |
<span id="generating-waveform-data-files"></span> | <span id="generating-waveform-data-files"></span> | ||
== Generating Waveform Data Files == | == Generating Waveform Data Files == | ||
− | * The replay block works as a playback buffer that uses DRAM to store samples on the USRP. Refer to the importData function in replaycontrol.cpp in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/lib/''] folder to observe how data is sent from the host to store on the USRP DRAM. | + | * The replay block works as a playback buffer that uses DRAM to store samples on the USRP. Refer to the importData function in <code>replaycontrol.cpp</code> in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/lib/''] folder to observe how data is sent from the host to store on the USRP DRAM. |
* Sample data files should contain sc16 data samples and should be a multiple of two samples (8 bytes) in size because the replay block records and plays back in multiples of 8 bytes. Refer to samples_generator.py in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/tools/''] folder for an example of a sine wave generation. Refer to the [https://kb.ettus.com/Using_the_RFNoC_Replay_Block ''Using the RFNoC Replay Block''] Knowledge Base article for more information. | * Sample data files should contain sc16 data samples and should be a multiple of two samples (8 bytes) in size because the replay block records and plays back in multiples of 8 bytes. Refer to samples_generator.py in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>/tools/''] folder for an example of a sine wave generation. Refer to the [https://kb.ettus.com/Using_the_RFNoC_Replay_Block ''Using the RFNoC Replay Block''] Knowledge Base article for more information. | ||
<span id="viewing-data-files"></span> | <span id="viewing-data-files"></span> | ||
+ | |||
== Viewing Data Files == | == Viewing Data Files == | ||
− | Received data files consist of interleaved int16 IQ data (IQIQI...). You can view data and helpful phase information with the python-based | + | Received data files consist of interleaved int16 IQ data (IQIQI...). You can view data and helpful phase information with the python-based <code>readDatFile.py</code> example, located in the [https://github.com/EttusResearch/refarch-multich ''<REFARCH>''/tools/dat_analysis] folder. Refer to the comments in <code>readDatFile.py</code> for more information about the use of the program. |
<span id="measured-performance"></span> | <span id="measured-performance"></span> | ||
Line 614: | Line 678: | ||
= Measured Performance = | = Measured Performance = | ||
− | NI has validated the performance specifications, described in this section, using a 32x32 test system configured as described in [https://kb.ettus.com/Multichannel_RF_Reference_Architecture | + | NI has validated the performance specifications, described in this section, using a 32x32 test system configured as described in [https://kb.ettus.com/Multichannel_RF_Reference_Architecture#Building_the_System ''Building the System'']. NI used the reference software to determine the specifications in this document. |
<span id="definitions"></span> | <span id="definitions"></span> | ||
Line 642: | Line 706: | ||
|- | |- | ||
| RF frequency coverage | | RF frequency coverage | ||
− | | | + | | 450 MHz to 6 GHz |
|- | |- | ||
| RF bandwidth | | RF bandwidth | ||
Line 656: | Line 720: | ||
| | | | ||
|- | |- | ||
− | | On USRP | + | |style="padding-left: 36px" | On USRP |
| FPGA | | FPGA | ||
|- | |- | ||
− | | On server | + | |style="padding-left: 36px" | On server |
| CPU | | CPU | ||
|- | |- | ||
Line 665: | Line 729: | ||
| | | | ||
|- | |- | ||
− | | Format | + | |style="padding-left: 36px" | Format |
| Binary | | Binary | ||
|- | |- | ||
− | | Type | + | |style="padding-left: 36px" | Type |
| Complex interleaved U16 | | Complex interleaved U16 | ||
|- | |- | ||
Line 676: | Line 740: | ||
<span id="synchronization"></span> | <span id="synchronization"></span> | ||
+ | |||
== Synchronization == | == Synchronization == | ||
Line 703: | Line 768: | ||
* Measurement window: 4 ms (2,500 samples) | * Measurement window: 4 ms (2,500 samples) | ||
* Configuration: | * Configuration: | ||
− | + | :o Single device: Stimulus simultaneously received at two Rx channels on the same USRP | |
− | + | :o System: Stimulus simultaneously received at two Rx channels on arbitrary separate USRPs | |
* Analysis: | * Analysis: | ||
− | + | :o Where ''µ<sub>n</sub>'' is average skew between two channels in measurement window ''n'' | |
− | + | :o ''µ<sub>n</sub>'' - ''µ<sub>0</sub>'' is the average skew relative to ''t<sub>0</sub>'' | |
− | * Range{''µ<sub>0</sub>'', ''µ<sub>1</sub>'', | + | * Range{''µ<sub>0</sub>'', ''µ<sub>1</sub>'', ... , ''µ<sub>N</sub>''} is the range |
:: '''Note''' Rx channels on the same USRP internally share the RX LO input to that device as shown in the following figure. | :: '''Note''' Rx channels on the same USRP internally share the RX LO input to that device as shown in the following figure. | ||
Line 717: | Line 782: | ||
| style="border-style: none;" | [[File:AN822-RF_Configuration_Stability_Diagram.png|431x239px|center]] | | style="border-style: none;" | [[File:AN822-RF_Configuration_Stability_Diagram.png|431x239px|center]] | ||
|} | |} | ||
+ | |||
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
Line 723: | Line 789: | ||
| style="border-style: none;" | [[File:AN822-Phase_Coherence_Stability Graph_Device.png|611x224px|center]] | | style="border-style: none;" | [[File:AN822-Phase_Coherence_Stability Graph_Device.png|611x224px|center]] | ||
|} | |} | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 728: | Line 795: | ||
|width="50%"| 0.139° | |width="50%"| 0.139° | ||
|} | |} | ||
+ | |||
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
Line 742: | Line 810: | ||
<span id="short-term-rx-rx-phase-coherence"></span> | <span id="short-term-rx-rx-phase-coherence"></span> | ||
+ | |||
=== Short-Term Rx-Rx Phase Coherence<ref>''Short-term'' describes variation in channel-to-channel phase skew over a short duration (<100 µs).</ref> === | === Short-Term Rx-Rx Phase Coherence<ref>''Short-term'' describes variation in channel-to-channel phase skew over a short duration (<100 µs).</ref> === | ||
Line 751: | Line 820: | ||
* Measurement window: 8 µs (2,000 samples at 250 MSample/s) | * Measurement window: 8 µs (2,000 samples at 250 MSample/s) | ||
* Analysis: | * Analysis: | ||
− | + | :o Where ''µ<sub>nx</sub>'' is the average skew between channel ''n'' and reference channel in measurement window x | |
− | + | :o ''sd<sub>n</sub>'' = σ{''µ<sub>n0</sub>'', ''µ<sub>n1</sub>'',..., ''µ<sub>n6</sub>''} is the standard deviation of average skew for channel n using all measurement windows | |
− | + | :o Average over 32 channels is µ{''sd<sub>1</sub>''...} | |
− | + | :o Maximum of 32 channels is max{''sd<sub>1</sub>''...} | |
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
Line 763: | Line 832: | ||
<span id="repeatability-of-rx-rx-phase-coherence"></span> | <span id="repeatability-of-rx-rx-phase-coherence"></span> | ||
+ | |||
=== Repeatability of Rx-Rx Phase Coherence === | === Repeatability of Rx-Rx Phase Coherence === | ||
Line 774: | Line 844: | ||
* Analysis: | * Analysis: | ||
* Where ''m<sub>nx</sub>'' is Rx n-to-Rx 0 average skew in run ''x'' | * Where ''m<sub>nx</sub>'' is Rx n-to-Rx 0 average skew in run ''x'' | ||
− | + | :o ''sd<sub>n</sub>'' = σ{''m<sub>n0</sub>'', ''m<sub>n1</sub>'',..., ''m<sub>n9</sub>''} is the standard deviation from run to run of Rx-Rx skew for channel ''n'' | |
− | + | :o ''r<sub>n</sub>'' = Max(Abs({''m<sub>n0</sub>'', ''m<sub>n1</sub>'',..., ''m<sub>n9</sub>''} – ''m<sub>n0</sub>'')) is the range from run to run of Rx-Rx skew for channel ''n'' | |
− | + | :o µ{''sd<sub>1</sub>'', ''sd<sub>2</sub>'',...,''sd<sub>32</sub>''} is the system average standard deviation of Rx-Rx skew | |
− | + | :o Maximum{''sd<sub>1</sub>'', ''sd<sub>2</sub>'',...,''sd<sub>32</sub>''} is the system maximum standard deviation of Rx-Rx skew | |
− | + | :o µ{''r<sub>1</sub>'', ''r<sub>2</sub>'',...,''r<sub>32</sub>''} is the system average range of Rx-Rx skew | |
− | + | :o Maximum{''r<sub>1</sub>'', ''r<sub>2</sub>'',...,''r<sub>32</sub>''} is the system maximum range of Rx-Rx skew | |
<span id="resetting-session-between-runs"></span> | <span id="resetting-session-between-runs"></span> | ||
Line 785: | Line 855: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | !colspan="2" style="text-align:left;"| Run-to-run, standard deviation of channel-to-channel skew (sd<sub>n</sub>) |
− | + | ||
|- | |- | ||
− | | Average over 32 channels | + | |style="padding-left: 36px" | Average over 32 channels |
| 0.021° | | 0.021° | ||
|- | |- | ||
− | | Maximum of 32 channels | + | |style="padding-left: 36px" | Maximum of 32 channels |
| 0.145° | | 0.145° | ||
|- | |- | ||
!colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 10 runs (r<sub>n</sub>) | !colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 10 runs (r<sub>n</sub>) | ||
− | |||
|- | |- | ||
− | | Average of 32 channels | + | |style="padding-left: 36px" | Average of 32 channels |
| 0.070° | | 0.070° | ||
|- | |- | ||
− | | Maximum of 32 channels | + | |style="padding-left: 36px" | Maximum of 32 channels |
| 0.483° | | 0.483° | ||
|} | |} | ||
<span id="resetting-configuration-between-runs"></span> | <span id="resetting-configuration-between-runs"></span> | ||
+ | |||
==== Resetting Configuration between Runs<ref>A ''USRP configuration'' is a period in which the digital path within the USRP is configured and not changed. Configuration reset is accomplished by changing carrier frequency from 2.0 GHz to 2.1 GHz and back to 2.0 GHz between runs.</ref> ==== | ==== Resetting Configuration between Runs<ref>A ''USRP configuration'' is a period in which the digital path within the USRP is configured and not changed. Configuration reset is accomplished by changing carrier frequency from 2.0 GHz to 2.1 GHz and back to 2.0 GHz between runs.</ref> ==== | ||
Line 810: | Line 879: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | !colspan="2" style="text-align:left;" | Run-to-run, standard deviation of channel-to-channel skew (sd<sub>n</sub>) |
− | + | ||
|- | |- | ||
− | | Average over 32 channels | + | |style="padding-left: 36px" | Average over 32 channels |
| 0.025° | | 0.025° | ||
|- | |- | ||
− | | Maximum of 32 channels | + | |style="padding-left: 36px" | Maximum of 32 channels |
| 0.066° | | 0.066° | ||
|- | |- | ||
!colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 10 runs (r<sub>n</sub>) | !colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 10 runs (r<sub>n</sub>) | ||
− | |||
|- | |- | ||
− | | Average of 32 channels | + | |style="padding-left: 36px" | Average of 32 channels |
| 0.067° | | 0.067° | ||
|- | |- | ||
− | | Maximum of 32 channels | + | |style="padding-left: 36px" | Maximum of 32 channels |
| 0.169° | | 0.169° | ||
|} | |} | ||
<span id="tx-phase-coherence-one-hour-stability"></span> | <span id="tx-phase-coherence-one-hour-stability"></span> | ||
+ | |||
=== Tx Phase Coherence One-Hour Stability === | === Tx Phase Coherence One-Hour Stability === | ||
Line 838: | Line 906: | ||
* Measurement window: 35 ms (120,000 samples) | * Measurement window: 35 ms (120,000 samples) | ||
* Configuration: | * Configuration: | ||
− | + | :o Transmitters: Stimulus simultaneously transmitted from any two channels | |
− | + | :o Receivers: Stimulus simultaneously received at two Rx channels on external acquisition device | |
* Analysis: | * Analysis: | ||
− | + | :o Where ''µ<sub>n</sub>'' is average skew between two channels in measurement window ''n'' | |
− | + | :o ''µ<sub>n</sub>'' - ''µ<sub>0</sub>'' is the average skew relative to ''t<sub>0</sub>'' | |
− | + | :o Range{''µ<sub>0</sub>'', ''µ<sub>1</sub>'', ... , ''µ<sub>N</sub>''} is the range | |
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
Line 874: | Line 942: | ||
* 50 runs | * 50 runs | ||
− | * Transmit from | + | * Transmit from 16 Tx |
* Configured carrier frequency: 1 GHz | * Configured carrier frequency: 1 GHz | ||
* Configured baseband stimulus: 35 µs, sampled at 3.4 GSample/s | * Configured baseband stimulus: 35 µs, sampled at 3.4 GSample/s | ||
* Measurement window: 35 µs (120,000: samples) | * Measurement window: 35 µs (120,000: samples) | ||
* Analysis: | * Analysis: | ||
− | + | :o Where ''m<sub>nx</sub>'' is Tx ''n''-to-Tx 0 average skew in run ''x'' | |
− | + | :o ''sd<sub>n</sub>'' = σ{''m<sub>n0</sub>'', ''m<sub>n1</sub>'',..., ''m<sub>n9</sub>''} is the standard deviation from run to run of Tx-Tx skew for channel ''n'' | |
− | + | :o ''r<sub>n</sub>'' = Max(Abs({''m<sub>n0</sub>'', ''m<sub>n1</sub>'',..., ''m<sub>n9</sub>''} - ''m<sub>n0</sub>'')) is the range from run to run of Tx-Tx skew for channel ''n'' | |
− | + | :o µ{''sd<sub>1</sub>'', ''sd<sub>2</sub>'',...,''sd<sub>32</sub>''} is the system average standard deviation of Tx-Tx skew | |
− | + | :o Maximum{ ''sd<sub>1</sub>'', ''sd<sub>2</sub>'',...,''sd<sub>32</sub>''} is the system maximum standard deviation of Tx-Tx skew | |
− | + | :o µ{''r<sub>1</sub>'', ''r<sub>2</sub>'',...,''r<sub>32</sub>''} is the system average range of Tx-Tx skew | |
− | + | :o Maximum{ ''r<sub>1</sub>'', ''r<sub>2</sub>'',...,''r<sub>32</sub>''} is the system maximum range of Tx-Tx skew | |
<span id="resetting-session-between-runs-1"></span> | <span id="resetting-session-between-runs-1"></span> | ||
− | ====== Resetting Session between Runs | + | ====== Resetting Session between Runs <ref>Measurements were taken with a two-port direct sampling analyzer. The analyzer port 0 was directly connected to USRP 0 Channel 0. Port 1 of the analyzer was connected to the output of a 16-channel RF multiplexer. All other USRP channels were connected to the input of the 16-channel RF multiplexer. USRP 0 Channel 0 was compared to each other channel sequentially.</ref> ====== |
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | !colspan="2" style="text-align:left;" | Run-to-run, standard deviation of channel-to-channel skew (sd<sub>n</sub>) |
− | + | ||
|- | |- | ||
− | | Average over | + | |style="padding-left: 36px" | Average over 16 channels |
− | | 0. | + | | 0.009° |
|- | |- | ||
− | | Maximum of | + | |style="padding-left: 36px" | Maximum of 16 channels |
− | | 0. | + | | 0.019° |
|- | |- | ||
!colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 50 runs (r<sub>n</sub>) | !colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 50 runs (r<sub>n</sub>) | ||
− | |||
|- | |- | ||
− | | Average of | + | |style="padding-left: 36px" | Average of 16 channels |
− | | 0. | + | | 0.034° |
|- | |- | ||
− | | Maximum of | + | |style="padding-left: 36px" | Maximum of 16 channels |
− | | 0. | + | | 0.070° |
|} | |} | ||
<span id="resetting-configuration-between-runs-1"></span> | <span id="resetting-configuration-between-runs-1"></span> | ||
+ | |||
====== Resetting Configuration between Runs ====== | ====== Resetting Configuration between Runs ====== | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! | + | !colspan="2" style="text-align:left;" | Run-to-run, standard deviation of channel-to-channel skew (sd<sub>n</sub>) |
− | + | ||
|- | |- | ||
− | | Average over | + | | Average over 16 channels |
− | | 0. | + | | 0.008° |
|- | |- | ||
− | | Maximum of | + | | Maximum of 16 channels |
− | | 0. | + | | 0.018° |
|- | |- | ||
!colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 50 runs (r<sub>n</sub>) | !colspan="2" style="text-align:left;" | Range of average channel-to-channel skew over 50 runs (r<sub>n</sub>) | ||
− | |||
|- | |- | ||
− | | Average of | + | | Average of 16 channels |
− | | 0. | + | | 0.033° |
|- | |- | ||
− | | Maximum of | + | | Maximum of 16 channels |
− | | 0. | + | | 0.070° |
|} | |} | ||
Line 937: | Line 1,002: | ||
== Streaming == | == Streaming == | ||
− | <span id="streaming-to-memory-data-transfer- | + | <span id="streaming-to-memory-data-transfer-rates"></span> |
− | === Streaming to Memory Data Transfer | + | === Streaming to Memory Data Transfer Rates<ref>''Streaming to memory'' is measured as the sustained data transfer rate without any overflows.</ref> === |
Measurements are valid under the following conditions: | Measurements are valid under the following conditions: | ||
Line 950: | Line 1,015: | ||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 5. Streaming to Memory Data Transfer Rate | ||
!width="33%"| Streaming Rate (MSample/s per Channel) | !width="33%"| Streaming Rate (MSample/s per Channel) | ||
!width="33%"| Number of Channels | !width="33%"| Number of Channels | ||
Line 969: | Line 1,035: | ||
:: '''Note''' For more information about supported sampling and master clock rates, refer to the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide ''USRP N300/N310/N320/N321 Getting Started Guide'']. | :: '''Note''' For more information about supported sampling and master clock rates, refer to the [https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide ''USRP N300/N310/N320/N321 Getting Started Guide'']. | ||
− | <span id="streaming-to-disk-data-transfer- | + | <span id="streaming-to-disk-data-transfer-rates"></span> |
− | === Streaming to Disk Data Transfer | + | === Streaming to Disk Data Transfer Rates<ref>''Streaming to disk'' is measured as the sustained data transfer rate without any overflows.</ref> === |
Measurements are valid under the following conditions: | Measurements are valid under the following conditions: | ||
Line 977: | Line 1,043: | ||
* Configured stimulus: Single-tone | * Configured stimulus: Single-tone | ||
* Number of channels: Varied | * Number of channels: Varied | ||
− | |||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 6. Streaming to Disk Data Transfer Rate | ||
!width="33%"| Streaming Rate (MSample/s per Channel) | !width="33%"| Streaming Rate (MSample/s per Channel) | ||
!width="33%"| Number of Channels | !width="33%"| Number of Channels | ||
Line 999: | Line 1,065: | ||
|} | |} | ||
− | <span id="streaming-simultaneously-tofrom-disk- | + | <span id="streaming-simultaneously-tofrom-disk-rates"></span> |
− | === Streaming Simultaneously to/from Disk | + | === Streaming Simultaneously to/from Disk Rates<ref>''Streaming simultaneously to/from disks'' is defined as streaming from the host to the radio for transmission, while simultaneously receiving on the radio to a file on the host. The rates are measured as sustained data transfer rates without any overflows.</ref> === |
Measurements are valid under the following conditions: | Measurements are valid under the following conditions: | ||
Line 1,007: | Line 1,073: | ||
* Configured stimulus: Single-tone | * Configured stimulus: Single-tone | ||
* Number of channels: Varied | * Number of channels: Varied | ||
− | |||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 7. Streaming Simultaneously to/from Disk Rate | ||
!width="33%"| Streaming Rate (MSample/s per Channel) | !width="33%"| Streaming Rate (MSample/s per Channel) | ||
!width="33%"| Number of Channels | !width="33%"| Number of Channels | ||
Line 1,030: | Line 1,096: | ||
| 62.5 | | 62.5 | ||
| 4 | | 4 | ||
+ | | 10 | ||
+ | |} | ||
+ | |||
+ | <span id="streaming-simultaneously-with-dpdk-tofrom-disk-rates"></span> | ||
+ | === Streaming Simultaneously with DPDK to/from Disk Rates<ref>''Streaming Simultaneously with DPDK to/from Disk Rates'' Streaming simultaneously with DPDK to/from disk is defined as streaming from the host to the radio for transmission, while simultaneously receiving on the radio to a file on the host. The rates are measured as sustained data transfer rates without any overflows using the Trenton Systems 3U BAM.</ref> === | ||
+ | |||
+ | Measurements are valid under the following conditions: | ||
+ | |||
+ | * Configured frequency: 2.5 GHz (S-band) | ||
+ | * Configured stimulus: Single-tone | ||
+ | * Number of channels: Varied | ||
+ | |||
+ | |||
+ | |||
+ | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 8. Streaming Simultaneously from Host to Host Memory Rate | ||
+ | !width="33%"| Streaming Rate (MSample/s per Channel) | ||
+ | !width="33%"| Number of Channels | ||
+ | !width="33%"| Measurement Time (s) | ||
+ | |- | ||
+ | | 250 | ||
+ | | 8 | ||
+ | | 7200 | ||
+ | |} | ||
+ | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 9. Streaming Simultaneously from Host to Host Disk Rate | ||
+ | !width="33%"| Streaming Rate (MSample/s per Channel) | ||
+ | !width="33%"| Number of Channels | ||
+ | !width="33%"| Measurement Time (s) | ||
+ | |- | ||
+ | | 125 | ||
+ | | 8 | ||
| 10 | | 10 | ||
|} | |} | ||
Line 1,059: | Line 1,157: | ||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
+ | |+ Table 8. 64x64 LO Sources and Tiers | ||
!width="24%"| System | !width="24%"| System | ||
!width="25%"| Tiers | !width="25%"| Tiers | ||
Line 1,072: | Line 1,171: | ||
The following diagram represents LO distribution signal connections. | The following diagram represents LO distribution signal connections. | ||
− | For the 64x64 system, all RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 1 USRP N321s must be the same length. All RX LO OUT and TX LO | + | For the 64x64 system, all RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 1 USRP N321s must be the same length. All RX LO OUT and TX LO IN cables originating from the Tier 2 USRP N321s must be the same length. Note that you cannot combine LO signals. |
{| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | {| class="wikitable" style="text-align: center; border-style: none; background-color:#ffffff;" | ||
− | |+ Figure | + | |+ Figure 28. LO Sharing (64x64) |
|- | |- | ||
| style="border-style: none;" | [[File:AN822-LO_Dist_64X64.png|587x323px|center]] | | style="border-style: none;" | [[File:AN822-LO_Dist_64X64.png|587x323px|center]] | ||
Line 1,082: | Line 1,181: | ||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
− | |+ Table | + | |+ Table 9. LO Sharing Cabling (64x64) |
!width="33%"| Cable Color in Diagram | !width="33%"| Cable Color in Diagram | ||
!width="33%"| Cable Tier | !width="33%"| Cable Tier | ||
Line 1,123: | Line 1,222: | ||
* ''USRP N320/N321 LO Distribution''—Describes LO distribution connections and commands. Visit https://kb.ettus.com/USRP_N320/N321_LO_Distribution. | * ''USRP N320/N321 LO Distribution''—Describes LO distribution connections and commands. Visit https://kb.ettus.com/USRP_N320/N321_LO_Distribution. | ||
* ''Using the RFNoC Replay Block''—Describes the basic use of the RFNoC Replay block in UHD and how to run the UHD Replay example. Visit https://kb.ettus.com/Using_the_RFNoC_Replay_Block. | * ''Using the RFNoC Replay Block''—Describes the basic use of the RFNoC Replay block in UHD and how to run the UHD Replay example. Visit https://kb.ettus.com/Using_the_RFNoC_Replay_Block. | ||
+ | * ''Data Plane Development Kit Getting Started Guide for Linux''—Describes how to install and configure DPDK software in a Linux environment. Visit https://doc.dpdk.org/guides-20.11/linux_gsg/intro.html. | ||
<span id="training-resources"></span> | <span id="training-resources"></span> |
Latest revision as of 10:45, 14 September 2023
Contents
- 1 Application Note Number and Authors
- 2 Architecture Overview
- 3 Building the System
- 4 Using the Software
- 5 Measured Performance
- 5.1 Definitions
- 5.2 System Characteristics
- 5.3 Synchronization
- 5.4 Streaming
- 6 Appendix: Creating High‑Channel‑Count Systems
- 7 Additional Resources
- 8 Footnotes
Application Note Number and Authors
AN-822 by Dylan Baros, Michael Dickens, Joseph Paller, Neel Pandeya, and Jovian Wysocki
This document provides guidance for designing a system that uses the NI Multichannel RF Reference Architecture version 1.2.
This document describes how to design a system that enables synchronization between Receive (Rx) channels, Transmit (Tx) channels, and Transmit-Receive (Tx-Rx) channels, as well as high-throughput data sample transport from the software-defined radio (SDR) to a server system over 10 GbE data links. This document provides a starting point in the creation of your specific system configuration. A basic understanding of Linux, command line, C++, Git, and networking is required to build and develop on the NI Multichannel RF Reference Architecture system.
Architecture Overview
The Multichannel RF Reference Architecture allows engineers to quickly scale from software simulation to hardware demonstration. It features direct conversion RF sampling (200 MHz instantaneous bandwidth) with NI USRPs for multiple RF applications, enabling coherent operation through shared local oscillator (LO), PPS, and 10 MHz reference clock signals.
The architecture features the following components:
- Document, bill of materials, and interconnect diagrams that describe how to set up a system with up to 32 channels of Rx-Rx, Tx-Rx, and Tx-Tx synchronization.
- Reference library that contains functions to configure and control the USRP N321s and USRP N320s to maintain phase coherence between multiple channels.
- Reference library that contains functions to configure and control the USRP N321s and USRP N320s for high-rate data transfer from multiple channels to memory or storage.
- C++ examples that demonstrate how to use reference library functions to configure and control a multichannel system.
- Documentation that lists installation and configuration information for a 32x32 system, as well as best practices for development and validation of the system. NxM refers to systems, where N is the number of transmit channels and M is the number of receive channels.
- Documentation that lists performance benchmarks with validated results for systems with up to 32 channels for the following specifications:
- o Synchronization between 32 Rx-Rx channels, 16 Tx-Tx channels, and 32 Tx-Rx channels
- o Bidirectional streaming of IQ data between 32 channels and server
- Bill of materials for systems with up to 32 channels.
The reference architecture demonstrates using RFNoC to transmit from both the replay block as well as the host.
Hardware Overview
The reference architecture uses USRP N321s and USRP N320s that scale from 2 to 32 phase-coherent transmit and receive channels.
The following diagram provides an overview of the topography of the connections and primary hardware components.
For a complete list of required hardware for the Multichannel RF Reference Architecture, refer to the bill of materials in the <REFARCH>/docs/ folder, where <REFARCH> is an alias for the following GitHub file folder location:
https://github.com/EttusResearch/refarch-multich
Required NI/Ettus Research Hardware
This section describes the NI/Ettus Research products required for generating and acquiring RF signals as well as the synchronization signals—PPS, 10 MHz, and Local Oscillator (LO)—shown in Figure 3:
- USRP N321—Networked software-defined radio with 2-channel RF front end and 250 MSample/s on both Tx and Rx. Features a power splitter for LO distribution, 10 MHz shared reference clock for coherent MIMO functionality, shared PPS for enabling shared triggering, dual 10 GbE ports for data transfer, and an RJ45 management port for device management.
- USRP N320—Networked software-defined radio with 2-channel RF front end and 250 MSample/s on both Tx and Rx. Features LO sharing and 10 MHz shared reference clock for coherent MIMO functionality, shared PPS for enabling shared triggering, dual 10 GbE ports for data transfer, and an RJ45 management port for device management.
- CDA-2990 with GPSDO—Clock distribution device called an OctoClock that generates and distributes the GPSDO signals—10 MHz reference (REF) and 1 Hz (PPS)—and features a management port.
- NI RF Torque Screwdriver and SMA Driver Bit (NI part number 780895-01)—A torque screwdriver is strongly recommended to securely tighten all connections to/from the USRPs in the system. You can also order the RF SMA Driver Bit Only (NI part number 780894-01).
Validated Hardware
Testing and deploying a system requires hardware from both NI and third-party vendors. The following component options have been validated and are recommended for most Multichannel RF Reference Architecture systems:
- Server
- o Supermicro 4124GS-TNR—Server with dual AMD EPYC processors and 10 PCIe 4 x16 slots. Numerous PCIe lanes from the CPU support many 10 GbE connections and the PCIe processing required for high-channel-count systems.
- o Trenton Systems 3U BAM—Server with Intel dual 3rd generation Xeon Ice Lake processors, 11 Gen 4.0 PCIe slots (5 x16 slots, 6 x8 slots), and 24x DDR4-3200 ECC RDIMM slots for high-channel-count systems.
- Network Interface Cards (NIC)
- o Intel X710-DA4—Network card that supports x4 10 GbE connections.
- o Intel E810-CQDA2—Network card that supports two 100 GbE connections, or, with a breakout cable, x8 10 GbE connections.
- o NVIDIA MCX4121A-ACAT ConnectX-4 Lx EN—Network card that supports two 25 GbE connections.
- Storage
- o HighPoint SSD7505—PCIe carrier board that holds x4 M.2 drives and supports either a software or hardware RAID configuration.
- o Sabrent 2TB Rocket 4 PLUS—NVME M.2 SSD drive that supports consecutive writes rates of over 6 GB/s.
- Power Splitter/Combiners
- o Mini-Circuits 8-Way ZN8PD1-63W-S+—DC pass, 8-way -0°, 50 Ω, 500 MHz to 6,000 MHz power splitter/combiner.
- o Mini-Circuits 4-Way ZN4PD1-63HP-S+—High power, DC pass, 4-way -0°, 50 Ω, 30 W, 500 MHz to 6,000 MHz power splitter/combiner.
- Cabling
- o SMA Cable, Loop Back Cable Kit (NI part number 782781-01)—Loopback cable kit includes 2 SMA-M to SMA-M cables (60 cm/2 ft) and 2 SMA-F to SMA-M Attenuators (30 dB, 50 Ohm, DC-6 GHz).
- o SFP+ Cable, 10 Gigabit Ethernet Cable w/ SFP+ Terminations (1 Meter) (NI part number 783343-01)—SFP+ cable recommended for USRPs with 10 GigE interfaces. It can be used to connect the USRP to a 10 GigE switch or network adapter.
- Rack Accessories
- o Tripp Lite Rackmount Rack Extension Bracket (B018-000-1P5)—Bracket required to mount the USRPs in a rack.
- o Z-Bracket—Bracket required to mount the USRPs in a rack to meet environmental specifications.
Software Overview
The reference software, shown in Figure 2, consists of a C++ reference library and examples, using USRP Hardware Driver (UHD) version 4.2. The reference software is supported on Ubuntu Linux 20.04. It demonstrates how to assemble multi-USRP systems through the UHD RFNoC API and replay block. It contains a Python-based binary int16 data file (.dat) generator and viewer. The reference software is written to be scalable for systems 2x2 to 32x32 and beyond, as well as Tx or Rx only (2 to 32 channels and beyond).
The software provides examples that stream data from the replay block as well as the host, as shown in the following figures.
Building the System
The following figures show a 32x32 system layout. NI recommends using a rack for this system to simplify connections between the different hardware components.
System Assembly Best Practices
Adhere to the following best practices when installing, setting up, and connecting components to your system:
- Number and label the USRPs with serial numbers on the front of the devices. Visit <REFARCH>/docs/32_Channel_Template_layout_BOM_and_wiring.ods for a customizable template.
- While running the system in loopback, attach 30 dB attenuators to all output channels to prevent damage to the USRPs.
- Arrange the equipment in the rack to optimize proper airflow. USRP N321s and USRP N320s facilitate airflow from right to left, and the server facilitates airflow from front to back. NI recommends using Z-brackets to vertically stagger installation of USRPs.
- Position the lowest USRP in the rack a few units up from the floor to allow for adequate device connector accessibility.
- NI recommends positioning the USRPs halfway to 2/3 toward the rear of the rack to allow easier bundling of cables.
- Label the NICs and 10 GbE cables to identify each USRP connection, as described in Connecting the SFP+ Ports.
- Connect the RX LO OUT and TX LO OUT cabling from Distribution Tier of USRP N321s to the nearest USRP N320 devices, as described in Connecting the LO Distribution
- Keep the end-to-end path of each Rx, Tx, LO, PPS, and 10 MHz signal identical in length, using the shortest cable possible per tier, as described in Cabling the Hardware.
- Use a calibrated torque wrench to connect all SMA connections to industry standard torque measurements.
- Periodically check all cabling to ensure a secure connection.
Cabling the Hardware
The following topics describe the connections for 8x8, 16x16, and 32x32 systems.
- Note Ensure that you use a calibrated torque wrench for all cabling connections. NI recommends the RF Torque Screwdriver and SMA Driver Bit (NI part number 780895-01).
(Optional) Connecting the RF RX-TX Ports for a MIMO Loopback
You can use the MIMO loopback to validate the setup of the system and provide a baseline for synchronization calibration. Create the MIMO loopback by connecting the USRP TX/RX connectors (used for transmitting signals) to a combiner, connecting the combiner to a splitter, and connecting the splitter to the USRP RX2 connectors (used for receiving signals).
- Notice 30 dB attenuators must be used on every TX to ensure safe use of the MIMO loopback. Using the system without attenuators will overload the RX and will permanently damage the USRPs.
- Note NI recommends keeping all cables in the same tier the same length to reduce skew.
The 8x8 system requires one 8-way splitter and one 8-way combiner. To set up the MIMO loopback, connect the RF 0/1 TX/RX and RX2 connectors on the USRP to an 8-way splitter and an 8-way combiner, as shown in the following figure. All cables connecting between tiers must be the same length and type.
The 16x16 system requires two 8-way splitters, one 2-way splitter, two 8-way combiners, and one 2-way combiner. To set up the MIMO loopback, connect the RF 0/1 TX/RX and RX2 connectors on the USRP to an 8-way combiner and an 8-way splitter. Then connect the two 8-way combiners to a 2-way combiner and the two 8-way splitters to a 2-way splitter. All cables connecting between tiers, shown in the following figure, must be the same length and type.
The 32x32 system requires four 8-way splitters, one 4-way splitter, four 8-way combiners, and one 4-way combiner. To set up the MIMO loopback, connect the RF 0/1 TX/RX and RX2 connectors on the USRP to an 8-way combiner and an 8-way splitter. Then connect the four 8-way combiners to a 4-way combiner and the four 8-way splitters to a 4-way splitter. All cables connecting between tiers, shown in the following figure, must be the same length and type.
Connecting 10 MHz and PPS
Connect a 10 MHz OUT connector on the OctoClock to the REF IN connector on the USRP. Connect a PPS OUT connector on the OctoClock to the PPS connector on the USRP.
The 4x4 system requires one OctoClock with GPSDO, two USRPs, and uses two 10 MHz and two PPS OUT SMA connectors. Ensure that the source selection switch is set to internal on OctoClock 0 prior to power up.
The 8x8 system requires one OctoClock with GPSDO, four USRPs, and uses four 10 MHz and four PPS OUT SMA connectors. Ensure that the source selection switch is set to internal on OctoClock 0 prior to power up.
The 16x16 system setup requires one OctoClock with GPSDO, eight USRPs, and uses eight 10 MHz and eight PPS OUT SMA connectors. Ensure that the source selection switch is set to internal on OctoClock 0 prior to power up.
Scaling to a 32x32 system requires one OctoClock with GPSDO (OctoClock 0, shown in the following figure), two additional OctoClocks (OctoClocks 1 and 2), and 16 USRPs. The source 10 MHz and PPS signals originate from OctoClock 0, which drives the OctoClock 1 and 2 inputs. OctoClock 1 and 2 each distribute all eight output 10 MHz and PPS signals to USRPs, 16 in aggregate. All cables connected from OctoClock 0 must be the same length. All cables connected to the USRPs must be the same length. Ensure that the source selection switch is set to internal on OctoClock 0, and that the source selection switch is set to external on OctoClocks 1 and 2. The selection switches must be set prior to power up.
Connecting the LO Distribution
Connect the TX LO OUT, RX LO IN, and TX LO IN connectors on the USRPs for LO distribution.
- Note This configuration is used to synchronize both the Rx and Tx to the same LO resulting in the same center frequencies for both Tx and Rx. To synchronize different frequencies, connect RX LO OUT to RX LO IN and TX LO OUT to TX LO IN. Refer to USRP N320/N321 LO Distribution for connection diagrams.
While connecting the LO distribution, adhere to the following best practices:
Tx and Rx must share the same LO connection. The LO sharing configuration for USRP N321s and USRP N320s in this system differs slightly from the LO sharing diagram on the Ettus Knowledge Base[1]. Distributing the LO from one channel to all other channels results in phase coherence across all channels, and there will be a constant non-zero phase offset between any two channels. This phase offset can be empirically measured and compensated for in software, thus resulting in all channels being phase aligned. The overall system is phase synchronous under a wide range of conditions; refer to Synchronization for more information about measured synchronization performance.
Configure all USRPs, including the LO Source USRP, to use external LO inputs. Refer to
sync.cpp
in the <REFARCH>/lib/ folder for information about how the reference software configures the LOs on the USRPs.Use tiered LO signal distribution and identical cable lengths between any specific tiers.
Connect the RX LO OUT and TX LO OUT cabling from Distribution Tier of USRP N321s to the nearest USRP N320s, as shown in the following figures.
Use minimum identical cable length between tiers.
The following table lists the tiers for all system configurations.
System | Tier(s) | USRP N321 Minimum Quantity | USRP N320 Maximum Quantity |
---|---|---|---|
2x2 | LO Source (0) | 1 | — |
4x4 | LO Source (0), 1 | 1 | 1 |
8x8 | LO Source (0), 1, 2 | 2 | 2 |
16x16 | LO Source (0), 1, 2 | 3 | 5 |
32x32 | LO Source (0), 1, 2, 3 | 6 | 10 |
The following diagrams represent LO distribution signal connections.
The 2x2 system requires two cables of identical length. Note that you cannot combine LO signals. NI recommends that all LO distribution cables originating from the same tier are the same length.
The 4x4 system requires four cables of identical length. Note that you cannot combine LO signals. NI recommends that all LO distribution cables originating from the same tier are the same length.
For the 8x8 system, both RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 1 USRP N321 must be the same length. Note that you cannot combine LO signals.
Cable Color in Diagram | Cable Tier | Number of Cables in Tier |
---|---|---|
LO Source Tier 0 | 2 | |
Distribution Tier 1, RX LO OUT | 4 | |
Distribution Tier 1, TX LO OUT | 4 |
For the 16x16 system, all RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from Tier 1 USRP N321s must be the same length. Note that you cannot combine LO signals.
Cable Color in Diagram | Cable Tier | Number of Cables in Tier |
---|---|---|
LO Source Tier 0 | 4 | |
Distribution Tier, RX LO OUT | 8 | |
Distribution Tier, TX LO OUT | 8 |
For the 32x32 system, both RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 1 USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 2 USRP N321s must be the same length. Note that you cannot combine LO signals.
Connecting the USRP Management Port
Make the following RJ45 connections to allow USRP file system configuration and updates later in the process.
- Note The network port on the USRPs in this system use DHCP by default. You must either have a DHCP server running on an upstream networked device or set a static IP address for each USRP.
- Connect an RJ45 cable between the server and the switch.
- Connect an RJ45 cable between the Management Port on each USRP and a port on one of the switches.
- (Optional) Connect a cable between the network switch and external internet for network management.
- Note NI recommends that you create a document for tracking USRP serial numbers with assigned network address. Visit the <REFARCH>/docs/ folder for a customizable template.
Connecting the SFP+ Ports
The server contains multiple network interface cards (NIC), each supporting multiple SFP+ ports.
Each USRP has two SFP+ ports, SFP+ 0 and SPF+ 1; however, the reference architecture assumes the use of SFP+ 0.
Connect an SFP+ cable between the SFP+ 0 port on each USRP and a port on one of the NICs in the server.
Assign each USRP to a particular network address. NI recommends that you organize your network in the following ways:
- Label the NICs and 10 GbE cables to identify each USRP connection.
- Create a document for tracking USRP serial numbers with assigned network address. Visit the <REFARCH>/docs/ folder for a customizable template.
- Note For maximum streaming rates with DPDK, both SFP+0 and SFP+1 must be configured and connected. Dual port streaming can also be used without DPDK for enhanced streaming capability.
Connecting to Power
Plug the USRPs, OctoClocks, server, and switch into the system PDU.
(Optional) Installing and Configuring DPDK
If you want to improve streaming performance for your system, you can install Data Plane Development Kit (DPDK) 20.11. Streaming rates to disk are limited by the write speed of the chosen storage medium. Refer to Streaming with DPDK Simultaneously to/from Disk Rates for information on the streaming rates.
- Note This reference architecture has been tested using DPDK 20.11 with NVIDIA MCX4121A-ACAT ConnectX-4 Lx EN Adapter Cards. The following steps may only apply to the NVIDIA ConnectX-4.
- Ensure that you install the proper drivers for your NIC prior to installing DPDK and UHD.
- Install and configure the DPDK software according to the Data Plane Development Kit Getting Started Guide for Linux.
- Configure huge pages by opening the grub configuration file,
-
/etc/default/grub
.
-
- Add the following parameters to
GRUB_CMDLINE_LINUX_DEFAULT
:-
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash
-
default_hugepagesz=2048M hugepagesz=2048M hugepages=10000"
-
- Close
/etc/default/grub
. - At the command prompt, update your grub configuration with the following command:
-
sudo update-grub
-
- Reboot the host machine for these settings to take effect.
- Create a UHD configuration file to interface with DPDK.
- Run the following command to list the MAC addresses for your NICs:
-
ip a
-
- Use the following commands to create the UHD configuration file at the location
/etc/uhd/
:-
sudo su
-
mkdir -p /etc/uhd
-
nano /etc/uhd/uhd.conf
-
- Run the following command to list the MAC addresses for your NICs:
- Update the following fields of your UHD configuration file.
- o Update the
dpdk_mac
field to match your NIC MAC address variables - o Update the
dpdk_driver
field if the location is different on your system. - o Update the
dpdk_corelist
anddpdk_lcore
fields. In this example, a two-port NIC is used. There should be one core for the main DPDK thread (in this example, core #2), and separate cores assigned to each NIC (in this example, core #3 for the first port on the NIC, core #4 for the second port on the NIC). - o Update the
dpdk_ipv4
fields to your IP range.
- o Update the
Refer to the following uhd.conf
file for an example of how you should update the fields in your configuration file.
[use_dpdk=1] dpdk_mtu=9000 dpdk_driver=/usr/local/lib/dpdk-pmds dpdk_corelist=2,3,4 dpdk_num_mbufs=8192 dpdk_mbuf_cache_size=64 [dpdk_mac=50:6b:4b:3b:3c:d8] dpdk_lcore = 3 dpdk_ipv4 = 192.168.50.1/24 dpdk_num_desc = 4096 [dpdk_mac=50:6b:4b:3b:3c:d9] dpdk_lcore = 4 dpdk_ipv4 = 192.168.51.1/24 dpdk_num_desc = 4096
Refer to Running the Examples to verify successful installation of DPDK on your system.
- Note Refer to Getting Started with DPDK and UHD for more information about DPDK and UHD.
Installing and Configuring the Software
Complete the following steps to install the software and necessary dependencies on your host machine.
- Navigate to the GitHub repository, located at https://github.com/EttusResearch/refarch-multich, to get the reference software.
- Clone the repository to your computer using standard GitHub commands or download the repository directly.
- In a terminal, navigate to the top-level refarch-multich directory and issue the following command to make the setup script executable:
-
chmod +x setup_script.sh
-
- Run the script with the following command:
-
sudo ./setup_script.sh
-
The refarch-multich
repository contains the following folders:
-
config
—Contains script files that assist with the software installation process. -
docs
—Contains system bill of materials and reference architecture template. -
examples
—Contains reference architecture examples and configuration files. -
lib
—Contains the library source files. -
tools
—Contains Python-based data file generator and viewer.
Setting Up the First USRP
The following procedure references the USRP N300/N310/N320/N321 Getting Started Guide. Follow the https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide procedure with the specific steps below.
- Note When you run the scripts in this section, all USRPs connected to the host are updated. Run the
uhd_find_devices
example for a list of USRPs that are connected to the host.
- Note When you run the scripts in this section, all USRPs connected to the host are updated. Run the
- Follow the Connecting to the ARM via SSH procedure in Connecting the Device. You do not need to set up the USRPs for a serial console connection.
- Follow the procedure in Updating the Linux File System.
- Note If the procedure in Updating the file system with Mender fails, you must follow the process in Updating the files system by writing the disk image. For a script that updates all USRPs connected to the system, refer to
<REFARCH>/config/usrp_filesystem.sh
in the GitHub repository.
- Note If the procedure in Updating the file system with Mender fails, you must follow the process in Updating the files system by writing the disk image. For a script that updates all USRPs connected to the system, refer to
Follow the procedure in Updating the Network Configurations. Set the MTU to
9000
. Every USRP SFP+ ports IP address must have a unique subnet. Change the subnet by replacing XXX in the address, for example,192.168.XXX.2
. If you make any changes to the network configurations, NI recommends that you restart the USRP for those changes to take effect.
- Note For maximum streaming rates with DPDK, dual port streaming must be configured. Follow the procedure in Updating the Network Configurations for configuring both SFP+0 and SFP+1 ports on the USRP. Ensure that the IP addresses are unique.
- Note NI recommends that you create a document for tracking USRP serial numbers with assigned network addresses. Visit the <REFARCH>/docs/ folder for a customizable template. For network addresses, NI recommends that you assign static IP addresses for the management port IPs. Refer to the procedure in Updating the Network Configurations to update eth0.network file on the USRP.
- For a script to update the SFP ports on all USRPs automatically, refer to <REFARCH>/config/usrp_ip_config.sh in the GitHub repository. The script changes the sfp1 port by default but can be modified to change the sfp0 port. You still need to manually configure the host as listed in step 5.
Follow the Network Mode FPGA Image Update procedure in Updating the FPGA Image to update to the XG image. Use the following command to configure both SFP ports to 10 Gb links:
uhd_image_loader --args "type=n3xx,addr=<N3xx_IP_ADDR>,fpga=XG"
where<N3xx_IP_ADDR>
is the actual IP address of the USRP being updated. You can find this address by correlating the serial number on the device with the IP address returned by the commanduhd_find_devices
.
- Note For a script to update the FPGA images on all USRPs connected to the system, refer to <REFARCH>//config/usrp_image_loader.sh on the GitHub repository.
Follow the Dual 10Gb Streaming SFP Ports 0/1 procedure in Setting Up a Streaming Connection to configure the host Ethernet adapters for 10 GbE connection to the USRP.
- Note Ubuntu Linux uses Netplan to manage IP addresses of network cards, however, other operating systems may configure the network interfaces differently. Visit the <REFARCH>/config/ folder to find a customizable template
.yaml
file. Each host port and the USRP to which it is paired must have a matching subnet. After the.yaml
file is configured, copy it to the/etc/netplan
directory—overwriting01-network-manager-all.yaml
, if necessary. Then use the following command to apply the network configuration: $ sudo netplan apply
- Note Ubuntu Linux uses Netplan to manage IP addresses of network cards, however, other operating systems may configure the network interfaces differently. Visit the <REFARCH>/config/ folder to find a customizable template
Follow the procedure in Verifying Device Operation.
(Optional) Follow the procedure in USRP N3xx Device Specific Operations to configure USRP settings.
Setting Up Additional USRPs
After setting up the first USRP, follow the procedure in Setting Up the First USRP for the remaining USRPs with the specific details listed below.
- For subsequent devices, you may choose to execute the following procedures in parallel:
- o Updating the Linux File System
- o Updating the Network Configurations—Each USRP port must be configured to have a different subnet.
- o Updating the FPGA Image
- Update the
.yaml
file on the host computer after configuring each remaining USRP.
Optimizing the Host System
Adjust certain settings to optimize the host system. Most of these settings are completed for you through the setup script. NI recommends that you manually configure the following optimizations:
- Increase the ring buffer for each interface by executing the following command in a terminal
-
sudo ethtool -G <interface> tx 4096 rx 4096
- where
<interface>
is the network interface of the specific USRP. You can find this interface through the Network Manager or by executing the following command in a terminalifconfig
.
- Note Increasing the ring buffer of an interface results in more memory reserved. When setting the ring buffer, make sure to monitor your memory usage. A large number of interfaces can result in hundreds of GB of memory usage. You may need to restart the host system to clear the allocated memory.
- Note This command is executed once for each interface being used. For example, a system with 16 USRPs and 16 interfaces runs 16 times and results in around 65 GB of memory usage. A script has been provided to assist with these settings. The user is required to insert the names of the host interfaces. Refer to
nicrb.sh
in the <REFARCH>/config/ folder for more information. This script may need to be run after each host reboot. You can reference the interface names in the.yaml
file configured in Setting Up the First USRP Device.
- Note This command is executed once for each interface being used. For example, a system with 16 USRPs and 16 interfaces runs 16 times and results in around 65 GB of memory usage. A script has been provided to assist with these settings. The user is required to insert the names of the host interfaces. Refer to
- Enable hyperthreading on the server to improve multi-threaded performance. Refer to the server BIOS settings for information.
Using the Software
Example Source Code
Multichannel RF Reference Architecture is built using the RFNoC API that ships with the USRP Hardware Driver (UHD).
- UHD RFNoC Example Source Code— NI recommends that users who are new to UHD or the RFNoC API begin with the following UHD RFNoC examples, located in the
uhd/host/examples
directory:
- o
rfnoc_radio_loopback.cpp
—This example uses the RFNoC API to connect an Rx radio to a Tx radio and run a loopback. - o
rfnoc_replay_samples_from_file.cpp
—This example uses the replay block to replay data from a file. - o
rfnoc_rx_to_file.cpp
— This example uses the RFNoC API to demonstrate the radio receiving and writing to file.
- Reference Architecture Example Source Code— The following examples, located in the <REFARCH>/examples/ folder, demonstrate synchronized Tx-Rx operation scalable from 2x2 up to 32x32 systems:
- o
Arch_iterative_loopback.cpp
—This example cycles through each Tx channel to all Rx channels. - o
Arch_multifreq_loopback.cpp
—This example cycles through different frequencies and callsrfnoc_txrx_loopback.cpp
. - o
Arch_rfnoc_txrx_loopback.cpp
—This example demonstrates a single Tx to all Rx loopback file using a multithreaded implementation. - o
Arch_rfnoc_txrx_loopback_mem.cpp
—This example demonstrates a single Tx to all Rx loopback to memory using a multithreaded implementation. - o
Arch_rx_to_mem.cpp
—This example demonstrates receiving on all channels to memory. - o
Arch_txrx_fullduplex.cpp
—This example demonstrates simultaneously transmitting to and receiving from the host. - o
Arch_txrx_fullduplex_dpdk_mem.cpp
—This example demonstrates simultaneously transmitting to and receiving from the host memory using DPDK. - o
Arch_txrx_fullduplex_dpdk.cpp
—This example demonstrates simultaneously transmitting to and receiving from the host storage using DPDK - o
Arch_dynamic_tx.cpp
—This example is written for a four-channel system. It demonstrates the ability to stream different files and/or have different logic in each transmit thread. Four (potentially) different transmit threads are spawned, one to each USRP channel. Each thread can be customized as needed. You can apply this example to higher channel count systems, as well as receive threads if needed.
- Note The provided examples use the same LO and Tx frequency transmitted across all channels and devices. You must modify this reference architecture if you want to transmit different frequencies across channels.
Building Examples
The reference architecture examples are compiled when you run the following setup script: setup_script.sh
.
If you need to make changes to the examples, you must recompile the code.
- Navigate to <REFARCH>/build/ to recompile the provided examples.
- Execute the following commands in the terminal:
-
cmake ..
-
make –j
If a custom example needs to be compiled, you must modify <REFARCH>/CMakeLists.txt to be used with cmake
. To build a new example titled new_example.cpp
, complete the following steps.
- Add the following lines to <REFARCH>/CMakeLists.txt:
-
add_executable(new_example {relative File Location}/new_example.cpp)
-
message(STATUS "New Example")
-
target_link_libraries(new_example PRIVATE UHD_BOOST Arch_lib)
Navigate to <REFARCH>/build/.
Execute the command
make –j
in the terminal to compile the custom examples.
Configuration Files
The reference architecture examples use configuration files instead of input arguments to configure the application. The configuration files are located in the <REFARCH>/examples/ folder.
- Refer to the example
runconfig.cfg
file for a detailed explanation of each argument. - The reference architecture uses a multiple RAID 0 system to increase the number of parallel writes and, thus, achieve higher data rates. You must configure the
rx-file-location
variable in therunconfig.cfg
file. Refer to the configuration file for more information.
- Note Ensure that the management address for each USRP is specified in the configuration file as demonstrated in the
runconfig.cfg
example. Not specifying a management address can lead to loss of performance.
- Note Ensure that the management address for each USRP is specified in the configuration file as demonstrated in the
Running the Examples
- Note If dual port streaming is configured, it must be enabled in the Reference Architecture configuration file. Uncomment
second_addr#
for each USRP and replace with the correct USRP number and SFP+1 IP address as configured in Setting Up the First USRP.
- Note If dual port streaming is configured, it must be enabled in the Reference Architecture configuration file. Uncomment
- If you are running a DPDK example, you must alter the configuration file. Add
use_dpdk=1
to the following line in the configuration file:args = type=n3xx,master_clock_rate=250e6,use_dpdk=1
- Note Ensure that you remove
use_dpdk=1
when running non-DPDK examples.
- Note Ensure that you remove
- Open a terminal in the build folder.
- Run an example using the
--cfgFile=runconfig.cfg
command. For example, runrfnoc_txrx_loopback.cpp
by executing the following command in a terminal:
./rfnoc_txrx_loopback --cfgFile=../examples/runconfig.cfg
Generating Waveform Data Files
- The replay block works as a playback buffer that uses DRAM to store samples on the USRP. Refer to the importData function in
replaycontrol.cpp
in the <REFARCH>/lib/ folder to observe how data is sent from the host to store on the USRP DRAM. - Sample data files should contain sc16 data samples and should be a multiple of two samples (8 bytes) in size because the replay block records and plays back in multiples of 8 bytes. Refer to samples_generator.py in the <REFARCH>/tools/ folder for an example of a sine wave generation. Refer to the Using the RFNoC Replay Block Knowledge Base article for more information.
Viewing Data Files
Received data files consist of interleaved int16 IQ data (IQIQI...). You can view data and helpful phase information with the python-based readDatFile.py
example, located in the <REFARCH>/tools/dat_analysis folder. Refer to the comments in readDatFile.py
for more information about the use of the program.
Measured Performance
NI has validated the performance specifications, described in this section, using a 32x32 test system configured as described in Building the System. NI used the reference software to determine the specifications in this document.
Definitions
Warranted specifications describe the performance of the system under stated operating conditions and are covered by the system warranty. Warranted specifications account for measurement uncertainties, temperature drift, and aging. Warranted specifications are ensured by design or verified during production and calibration.
Characteristics describe values that are relevant to the use of the system under stated operating conditions, but are not covered by the model warranty.
Typical specifications describe the performance met by a majority of systems.
Nominal specifications describe an attribute that is based on design, conformance testing, or supplemental testing.
Measured specifications describe the measured performance of a representative system.
Specifications are Measured unless otherwise noted.
System Characteristics
Transmit channel count | Up to 32 |
Receive channel count | Up to 32 |
RF frequency coverage | 450 MHz to 6 GHz |
RF bandwidth | Up to 200 MHz instantaneous bandwidth per channel |
Configuration plane | 1 GbE |
Data plane | 10 GbE |
Processing nodes | |
On USRP | FPGA |
On server | CPU |
Data storage and streaming | |
Format | Binary |
Type | Complex interleaved U16 |
Acquisition mode | Streaming, finite records |
Synchronization
Synchronization Terminology
In the context of this reference architecture, a phase-coherent system is interpreted as a system operating at the same frequency with a consistent phase relationship between any two channels in the system. Phase coherence is defined as the attribute of two or more waves where the relative phase between waves is constant during the time of the measurement.
Phase coherence performance of the test system is described using the following metrics:
- Average channel-to-channel phase skew—The average phase offset between two channels. Described by how it varies over time or from run to run.
- Standard deviation of channel-to-channel skew—One number that describes the variation of phase offset between channels around the average skew over time or from run to run.
- Rx-Rx—Channel-to-channel specifically referring to Rx channels.
Synchronization Methodology
Skew measurements are made based on IQ data files generated using the reference software provided as part of the Multichannel RF Reference Architecture. The measured system uses the MIMO loopback configuration, described in Connecting the RF RX-TX Ports for a MIMO Loopback, to route signals from all Tx ports to all Rx ports with a consistent path length. To measure the phase skew, the Angle-FFT method is used, wherein the IQ data generated from each channel is measured against the relevant reference signal for each measurement. The FFT method is used to extract the frequency and phase components of each signal in the vicinity of the signal’s fundamental frequency. This information is used to determine the magnitude of the phase offset between two signals in each measurement period. To compare signals throughout their entire duration, each signal is split into shorter measurement windows in which the instantaneous phase is calculated using the method described above.
Rx Phase Coherence One-Hour Stability[2]
Measurements are valid under the following conditions:
- Configured carrier frequency: 2 GHz (S-band/L-band)
- Configured baseband stimulus: 500 kHz sine wave, continuously transmitted for 1 hour, sampled at 6.25 MSample/s at receiver (250 MSample/s clock rate with decimation rate of 40)
- Measurement window: 4 ms (2,500 samples)
- Configuration:
- o Single device: Stimulus simultaneously received at two Rx channels on the same USRP
- o System: Stimulus simultaneously received at two Rx channels on arbitrary separate USRPs
- Analysis:
- o Where µn is average skew between two channels in measurement window n
- o µn - µ0 is the average skew relative to t0
- Range{µ0, µ1, ... , µN} is the range
- Note Rx channels on the same USRP internally share the RX LO input to that device as shown in the following figure.
Range, single device | 0.139° |
Range, system | 0.167° |
Short-Term Rx-Rx Phase Coherence[3]
Measurements are valid under the following conditions:
- Sample data generation: 32 Rx receiving simultaneously at each carrier frequency
- Carrier frequency range: 1.0 GHz to 5.5 GHz, steps of 100 MHz
- Configured baseband stimulus: 500 kHz sine wave, continuously transmitted for 56 µs, sampled at 250 MSample/s
- Measurement window: 8 µs (2,000 samples at 250 MSample/s)
- Analysis:
- o Where µnx is the average skew between channel n and reference channel in measurement window x
- o sdn = σ{µn0, µn1,..., µn6} is the standard deviation of average skew for channel n using all measurement windows
- o Average over 32 channels is µ{sd1...}
- o Maximum of 32 channels is max{sd1...}
Repeatability of Rx-Rx Phase Coherence
Measurements are valid under the following conditions:
- 10 runs
- Transmit from one Tx to all 32 Rx, repeat 32 times, once with each Tx
- Configured carrier frequency: 2 GHz
- Configured baseband stimulus: 56 µs, sampled at 250 MSample/s
- Measurement window: 8 µs (2,000: samples)
- Analysis:
- Where mnx is Rx n-to-Rx 0 average skew in run x
- o sdn = σ{mn0, mn1,..., mn9} is the standard deviation from run to run of Rx-Rx skew for channel n
- o rn = Max(Abs({mn0, mn1,..., mn9} – mn0)) is the range from run to run of Rx-Rx skew for channel n
- o µ{sd1, sd2,...,sd32} is the system average standard deviation of Rx-Rx skew
- o Maximum{sd1, sd2,...,sd32} is the system maximum standard deviation of Rx-Rx skew
- o µ{r1, r2,...,r32} is the system average range of Rx-Rx skew
- o Maximum{r1, r2,...,r32} is the system maximum range of Rx-Rx skew
Resetting Session between Runs[4]
Run-to-run, standard deviation of channel-to-channel skew (sdn) | |
---|---|
Average over 32 channels | 0.021° |
Maximum of 32 channels | 0.145° |
Range of average channel-to-channel skew over 10 runs (rn) | |
Average of 32 channels | 0.070° |
Maximum of 32 channels | 0.483° |
Resetting Configuration between Runs[5]
- Note In each run analyzed here, the carrier frequency is 2.0 GHz. Users must recharacterize channel-to-channel skew when using different carrier frequencies, because average channel-to-channel skew in the system deviates by >>1° per channel.
Run-to-run, standard deviation of channel-to-channel skew (sdn) | |
---|---|
Average over 32 channels | 0.025° |
Maximum of 32 channels | 0.066° |
Range of average channel-to-channel skew over 10 runs (rn) | |
Average of 32 channels | 0.067° |
Maximum of 32 channels | 0.169° |
Tx Phase Coherence One-Hour Stability
Measurements are valid under the following conditions:
- Configured carrier frequency: 1 GHz
- Configured baseband stimulus: 500 kHz sine wave, continuously transmitted at 250 MSample/s for 1 hour, sampled at 3.2 GSample/s in finite windows
- Measurement window: 35 ms (120,000 samples)
- Configuration:
- o Transmitters: Stimulus simultaneously transmitted from any two channels
- o Receivers: Stimulus simultaneously received at two Rx channels on external acquisition device
- Analysis:
- o Where µn is average skew between two channels in measurement window n
- o µn - µ0 is the average skew relative to t0
- o Range{µ0, µ1, ... , µN} is the range
Range, single device | 0.128° |
Range, system | 0.115° |
Repeatability of Tx-Tx Phase Coherence
Measurements are valid under the following conditions:
- 50 runs
- Transmit from 16 Tx
- Configured carrier frequency: 1 GHz
- Configured baseband stimulus: 35 µs, sampled at 3.4 GSample/s
- Measurement window: 35 µs (120,000: samples)
- Analysis:
- o Where mnx is Tx n-to-Tx 0 average skew in run x
- o sdn = σ{mn0, mn1,..., mn9} is the standard deviation from run to run of Tx-Tx skew for channel n
- o rn = Max(Abs({mn0, mn1,..., mn9} - mn0)) is the range from run to run of Tx-Tx skew for channel n
- o µ{sd1, sd2,...,sd32} is the system average standard deviation of Tx-Tx skew
- o Maximum{ sd1, sd2,...,sd32} is the system maximum standard deviation of Tx-Tx skew
- o µ{r1, r2,...,r32} is the system average range of Tx-Tx skew
- o Maximum{ r1, r2,...,r32} is the system maximum range of Tx-Tx skew
Resetting Session between Runs [6]
Run-to-run, standard deviation of channel-to-channel skew (sdn) | |
---|---|
Average over 16 channels | 0.009° |
Maximum of 16 channels | 0.019° |
Range of average channel-to-channel skew over 50 runs (rn) | |
Average of 16 channels | 0.034° |
Maximum of 16 channels | 0.070° |
Resetting Configuration between Runs
Run-to-run, standard deviation of channel-to-channel skew (sdn) | |
---|---|
Average over 16 channels | 0.008° |
Maximum of 16 channels | 0.018° |
Range of average channel-to-channel skew over 50 runs (rn) | |
Average of 16 channels | 0.033° |
Maximum of 16 channels | 0.070° |
Streaming
Streaming to Memory Data Transfer Rates[7]
Measurements are valid under the following conditions:
- Configured frequency: 2.5 GHz (S-band)
- Configured stimulus: Single-tone
- Number of channels: Varied
- Duration: Single run, 10 s
Streaming Rate (MSample/s per Channel) | Number of Channels | Measurement Time (s) |
---|---|---|
33.33 | 32 | 10 |
50 | 16 | 10 |
122.88 | 8 | 10 |
- Note For more information about supported sampling and master clock rates, refer to the USRP N300/N310/N320/N321 Getting Started Guide.
Streaming to Disk Data Transfer Rates[8]
Measurements are valid under the following conditions:
- Configured frequency: 2.5 GHz (S-band)
- Configured stimulus: Single-tone
- Number of channels: Varied
Streaming Rate (MSample/s per Channel) | Number of Channels | Measurement Time (s) |
---|---|---|
33.33 | 32 | 10 |
50 | 16 | 10 |
62.5 | 8 | 10 |
Streaming Simultaneously to/from Disk Rates[9]
Measurements are valid under the following conditions:
- Configured frequency: 2.5 GHz (S-band)
- Configured stimulus: Single-tone
- Number of channels: Varied
Streaming Rate (MSample/s per Channel) | Number of Channels | Measurement Time (s) |
---|---|---|
11.11 | 32 | 10 |
25 | 16 | 10 |
62.5 | 8 | 10 |
62.5 | 4 | 10 |
Streaming Simultaneously with DPDK to/from Disk Rates[10]
Measurements are valid under the following conditions:
- Configured frequency: 2.5 GHz (S-band)
- Configured stimulus: Single-tone
- Number of channels: Varied
Streaming Rate (MSample/s per Channel) | Number of Channels | Measurement Time (s) |
---|---|---|
250 | 8 | 7200 |
Streaming Rate (MSample/s per Channel) | Number of Channels | Measurement Time (s) |
---|---|---|
125 | 8 | 10 |
Appendix: Creating High‑Channel‑Count Systems
NI tested and configured the Multichannel RF Reference Architecture for a 32x32 system. It is possible to build a 64x64 (or greater) system.
Connection Considerations for High‑Channel‑Count Systems
When the system channel count increases to 64 channels and greater, consider the following:
- The MIMO loopback, 10 MHz and PPS, and LO distribution connections require additional tiers.
- Drift increases for typical measurements.
LO Distribution for High‑Channel‑Count Systems
Refer to Connecting the LO Distribution for information about LO distribution connections and best practices.
- Note This configuration is used to synchronize both the Rx and Tx to the same LO resulting in the same center frequencies for both Tx and Rx. To synchronize different frequencies, connect RX LO OUT to RX LO IN and TX LO OUT to TX LO OUT. Refer to USRP N320/N321 LO Distribution for connection diagrams.
The following table lists the tiers for the 64x64 system configuration.
System | Tiers | USRP N321 Minimum Quantity | USRP N320 Maximum Quantity |
---|---|---|---|
64x64 | LO Source (0), 1, 2, 3 | 11 | 21 |
The following diagram represents LO distribution signal connections.
For the 64x64 system, all RX LO OUT cables originating from the LO Source USRP N321 must be the same length. All RX LO OUT and TX LO OUT cables originating from the Tier 1 USRP N321s must be the same length. All RX LO OUT and TX LO IN cables originating from the Tier 2 USRP N321s must be the same length. Note that you cannot combine LO signals.
Additional Resources
Related Documentation
Refer to the following documents to learn more about the Multichannel RF Reference Architecture, software, and hardware components:
- GitHub repository—Contains the system bill of materials and reference software example and library files needed to set up, install, and run your Multichannel RF Reference Architecture system. Visit https://github.com/EttusResearch/refarch-multich.
- USRP N300/N310/N320/N321 Getting Started Guide—Describes how to install software, how to set up your USRP, and confirm that your device is operating properly. Visit https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide.
- N320/N321 specifications—Lists specifications for the USRP N321 and USRP N320. Visit https://kb.ettus.com/N320/N321.
- USRP Hardware Driver and USRP Manual—Describes how to use the USRP N321 and USRP N320 and how to use the API to connect to devices through your own software. Visit https://files.ettus.com/manual/index.html.
- USRP N320/N321 LO Distribution—Describes LO distribution connections and commands. Visit https://kb.ettus.com/USRP_N320/N321_LO_Distribution.
- Using the RFNoC Replay Block—Describes the basic use of the RFNoC Replay block in UHD and how to run the UHD Replay example. Visit https://kb.ettus.com/Using_the_RFNoC_Replay_Block.
- Data Plane Development Kit Getting Started Guide for Linux—Describes how to install and configure DPDK software in a Linux environment. Visit https://doc.dpdk.org/guides-20.11/linux_gsg/intro.html.
Training Resources
- Using Open-Source Tools with USRP Hardware for SDR Applications—Visit learn.ni.com, select View Library, and search for
using open-source tools with USRP
. - Open-Source SDR Knowledge Base—Visit https://kb.ettus.com/Knowledge_Base.
- SDR-Academy Informal Getting Started Videos—Visit the SDR Academy at www.ettus.com/support/sdr-academy/.
- RFNoC Workshop from GRCon 2020—Visit https://kb.ettus.com/Training_Workshops to find RFNoC video links and workshop materials.
Footnotes
- ↑ The USRP N320/N321 LO Distribution Knowledge Base article does not show one LO signal shared across Tx and Rx.
- ↑ Stability reports variation in the value of average channel-to-channel phase skew over a long (>>1 s) duration.
- ↑ Short-term describes variation in channel-to-channel phase skew over a short duration (<100 µs).
- ↑ A USRP session is a period in which communication links between chips in the USRP are established and not changed. Session reset is accomplished by restarting the reference software for each run.
- ↑ A USRP configuration is a period in which the digital path within the USRP is configured and not changed. Configuration reset is accomplished by changing carrier frequency from 2.0 GHz to 2.1 GHz and back to 2.0 GHz between runs.
- ↑ Measurements were taken with a two-port direct sampling analyzer. The analyzer port 0 was directly connected to USRP 0 Channel 0. Port 1 of the analyzer was connected to the output of a 16-channel RF multiplexer. All other USRP channels were connected to the input of the 16-channel RF multiplexer. USRP 0 Channel 0 was compared to each other channel sequentially.
- ↑ Streaming to memory is measured as the sustained data transfer rate without any overflows.
- ↑ Streaming to disk is measured as the sustained data transfer rate without any overflows.
- ↑ Streaming simultaneously to/from disks is defined as streaming from the host to the radio for transmission, while simultaneously receiving on the radio to a file on the host. The rates are measured as sustained data transfer rates without any overflows.
- ↑ Streaming Simultaneously with DPDK to/from Disk Rates Streaming simultaneously with DPDK to/from disk is defined as streaming from the host to the radio for transmission, while simultaneously receiving on the radio to a file on the host. The rates are measured as sustained data transfer rates without any overflows using the Trenton Systems 3U BAM.