lattepanda-sigma2-10gbe-throughput-test-7.ino
Uses iperf3 to validate the bandwidth of the integrated 10GbE network interfaces on the board.
Hardware: LattePanda Sigma 2 and another 10GbE-capable machine. Wiring: Cat6a minimum. Software: iperf3 and ethtool installed via apt. The script first checks for 10Gbps link negotiation, then runs TCP and UDP tests. Adjust TARGET_IP and INTERFACE according to your network configuration.
lattepanda-sigma2-10gbe-throughput-test-7.ino
#!/bin/bash
# Script de test de débit 10GbE pour LattePanda Sigma 2
# À exécuter sur deux machines connectées via câble Cat6a ou fibre
TARGET_IP="192.168.1.50" # IP de la machine distante
INTERFACE="enp1s0" # Vérifier le nom de l'interface avec 'ip link' (souvent enp...)
# 1. Vérification des liens à 10Gbps
sudo ethtool $INTERFACE | grep "Speed:"
# 2. Démarrage du serveur iperf3 sur la machine distante (à faire avant)
# iperf3 -s
# 3. Lancement du client iperf3 pour tester le débit TCP
# -t 30 : durée 30 secondes
# -P 4 : 4 flux parallèles pour saturer le lien
# -f g : affichage en Gbit
echo "Lancement du test de débit TCP sur 10GbE (30s, 4 flux)..."
iperf3 -c $TARGET_IP -t 30 -P 4 -f g
# 4. Test UDP pour vérifier la perte de paquets à haute vitesse
echo "Test UDP (5Gbit cible, 30s)..."
iperf3 -c $TARGET_IP -u -b 5G -t 30 -P 4 -f g