This directory contains comprehensive examples demonstrating the capabilities and usage of the Soft-UE Ultra Ethernet protocol stack implementation.
File: first-soft-ue.cc
Purpose: Basic Soft-UE device installation and configuration
Demonstrates:
Usage:
./ns3 run first-soft-ue
./ns3 run "first-soft-ue --nNodes=4 --maxPdcCount=1024"
Expected Output:
File: performance-benchmark.cc
Purpose: Comprehensive performance testing and analysis
Demonstrates:
Usage:
./ns3 run performance-benchmark
Generated Outputs:
soft-ue-throughput.pngsoft-ue-latency.pngKey Metrics:
File: ai-network-simulation.cc
Purpose: High-performance AI training cluster simulation
Demonstrates:
Configuration Options:
./ns3 run "ai-network-simulation --numNodes=8 --modelSize=1000000000"
./ns3 run "ai-network-simulation --numNodes=16 --linkDataRate=40Gbps --operation=1"
Collective Operations:
0: AllReduce (default)1: AllGather2: Broadcast3: Reduce-ScatterPerformance Targets:
Coming Soon: custom-topology.cc
Planned Features:
Coming Soon: protocol-optimization.cc
Planned Features:
# Build Soft-UE module
./ns3 build soft-ue
# Verify installation
./ns3 test soft-ue
# Run specific example
./ns3 run <example-name>
# Run with verbose logging
./ns3 run "<example-name> --verbose=true"
# Run with custom parameters
./ns3 run "<example-name> --parameter=value"
--dataRate=10Gbps: Set link data rate--delay=10us: Set link delay--packetSize=1024: Set packet size in bytes--numFlows=10: Set number of concurrent flows--numNodes=8: Number of AI nodes--modelSize=1000000000: Model parameter size in bytes--operation=0: Collective operation type--linkDataRate=40Gbps: High-speed interconnect--simulationTime=30s: Total simulation duration--verbose=true: Enable detailed logging--enableTracing=true: Enable PCAP/ASCII tracesExamples generate comprehensive trace files for analysis:
PCAP Traces:
*.pcap: Wireshark-compatible packet captureswireshark *.pcap or tcpdump -r *.pcapASCII Traces:
*.tr: Detailed packet-level tracesPerformance Plots:
soft-ue-throughput.png: Throughput performance visualizationsoft-ue-latency.png: Latency performance visualization# Filter Soft-UE specific logs
./ns3 run first-soft-ue 2>&1 | grep "SoftUe"
# Performance summary extraction
./ns3 run performance-benchmark 2>&1 | grep "Performance Metrics"
# Enable specific component logging
./ns3 run "first-soft-ue --log-level=SoftUeNetDevice=debug"
# Enable all Soft-UE debugging
./ns3 run "first-soft-ue --log-level=debug"
# Clean build
./ns3 clean
./ns3 build soft-ue
# Check dependencies
./ns3 configure --enable-examples --enable-tests
# Check for missing modules
./ns3 run first-soft-ue --print-attributes
# Enable verbose error messages
./ns3 run first-soft-ue --log-level=error
Based on Soft-UE’s 6.25x performance advantage:
| Metric | Soft-UE | Traditional TCP/IP | Improvement |
|---|---|---|---|
| Throughput | 6.25 Gbps | 1.0 Gbps | 6.25x ⬆️ |
| Latency | 12.8 μs | 80 μs | 84% reduction ⬇️ |
| PDC Concurrency | 1000+ | 160 | 6.25x ⬆️ |
| Memory Efficiency | 747KB | 2.1MB | 64% reduction ⬇️ |
.cc file in examples/ directory/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright 2025 Soft-UE Project Team
*/
#include "ns3/core-module.h"
#include "ns3/soft-ue-helper.h"
using namespace ns3;
NS_LOG_COMPONENT_DEFINE ("ExampleName");
int main (int argc, char *argv[])
{
// Configuration
CommandLine cmd (__FILE__);
// Add parameters
// Setup
SoftUeHelper helper;
// Configure and install
// Simulation
Simulator::Run ();
// Results
// Print performance metrics
// Cleanup
Simulator::Destroy ();
return 0;
}
We welcome contributions of new examples! Please ensure:
Submit example contributions through GitHub Issues or Pull Requests.
If you encounter issues with examples:
Happy simulating with Soft-UE! 🚀