AM273x MCU+ SDK  09.02.00
Ethernet Performance on AM273x

Introduction

This section provides the performance numbers of Ethernet drivers using CPSW peripheral in MCU+ SDK

Setup Details

SOC Details Values
Core R5F
Core Operating Speed 400 MHz
Memory Type MSS L2 RAM
Cache status Enabled

Layer 2 Performance

Latency defination

Configuration Details

Configuration Value
Processing Core Main R5F0 Core 0
Core Frequency 400 MHz
Ethernet Interface Type RGMII at 100 mbps
Packet buffer memory MSS L2 RAM (un-cached)
Scatter-gather TX Yes
Scatter-gather RX Yes
CPDMA interrupt pacing Yes
RTOS FreeRTOS
RTOS application Modified Enet CPSW Loopback Example
example
Host PC tool version nload
Rx packet length 200 B
Tx packet length 200 B


Layer 2 Latency

Parameter CPU<->CPSW
Latency Value (ns)
PHY latency
(from datasheet) in ns
Total Latency
(ns)
RX Latency 4000 193 4193
TX Latency 14000 384 14384

Layer 2 Throughput

Test Bandwidth
(Mbps)
CPU Load
(%)
Packet Size
(bytes)
Layer 2 Transmission950241500

TCP/IP Performance

Configuration Details

Configuration Value
Processing Core Main R5F0 Core 0
Core Frequency 400 MHz
Ethernet Interface Type RGMII at 100 Mbps
Packet buffer memory MSS L2 RAM (cached)
Hardware checksum offload Disabled on Tx side
Disabled on Rx Side
Scatter-gather TX Yes
Scatter-gather RX Yes
CPDMA interrupt pacing Yes
RTOS FreeRTOS
RTOS application Enet Lwip CPSW Example example
TCP/IP stack LwIP version STABLE-2_2_0_RELEASE
Host PC tool version iperf v2.0.10
Number of Rx packet buffers 32
Number of Tx packet buffers 16


TCP Throughput

Test Bandwidth
(Mbps)
CPU Load
(%)
TCP RX9574.7
TCP TX9579.5
TCP BidirectionalRX=63
TX=63
100

Host PC commands:

  • TCP Rx and Tx (Sequential):
    $iperf -c <evm_ip> -r
  • TCP Rx and Tx (Bidirectional):
    $iperf -c <evm_ip> -d

UDP Throughput

Test Datagram Length = 256B Datagram Length = 512B Datagram Length = 1470B
Bandwidth (Mbps)CPU Load (%)Packet Loss (%) Bandwidth (Mbps)CPU Load (%)Packet Loss (%) Bandwidth (Mbps)CPU Load (%)Packet Loss (%)
UDP RX 25990.0 25560.0 25250.0
5010064 501003.4 50460.0
9610080 96100100 96810.0
UDP RX (Max) Not Tested-- Not Tested-- 96810.0
UDP TX (Max) Not Tested-- Not Tested-- 95.7550.0

Host PC commands:

  • Test with datagram length of 64B:
    $iperf -c <evm_ip> -u -l64 -b<bw> -r
    where <bw> is 25M, 50M, 100M, etc
  • Test with datagram length of 256B:
    $iperf -c <evm_ip> -u -l256 -b<bw> -r
    where <bw> is 25M, 50M, 100M, etc
  • Test with datagram length of 512B:
    $iperf -c <evm_ip> -u -l512 -b<bw> -r
    where <bw> is 25M, 50M, 100M, etc
  • Test with datagram length of 1470B (max):
    $iperf -c <evm_ip> -u -b<bw> -r
    where <bw> is 25M, 50M, 100M, etc

See Also

Ethernet And Networking Enet Lwip CPSW Example