Performance degradation of gigabit ethernet port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Performance degradation of gigabit ethernet port

889 Views
xuehuili
Contributor I

Hello,

I use iperf to do ethernet port forwarding test on p1020rdb-pd (SDK1.9), eth0 connect PC1 and eth2 connect PC2, the p1020rdb receives packets from PC1 and sends it to PC2.

When PC1 and PC2 connect p1020rdb with gigabit port, iperf test from PC1 to PC2 via p1020rdb, the bandwidth is 8M bits/sec. The network transmission performance is very low.

When PC1 connect 100M switch to eth0 and PC2 connect p1020 with gigabit port, iperf test from PC1 to PC2 via p1020rdb, the bandwidth is 95M bits/sec. The network transmission performance is normal.

What parameters do I need to modify to improve the transmission performance of gigabit network port.

Thanks.

 

0 Kudos
Reply
3 Replies

878 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello xuehuili,

Would you please provide your Kernel configuration file (.config) to me to do more investigation?

 

Thanks,

Yiping

0 Kudos
Reply

867 Views
xuehuili
Contributor I

Hello yipinwang,

Attached is my Kernel configuration file.

Thanks.

0 Kudos
Reply

850 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello xuehuili,

Please use ethtool to check the status of eth0 with command "ethtool eth0".

Please refer to the following configuration to do IPFwd testing.

Please configure bootargs with the following command.

=> setenv othbootargs cache-sram=0xfff00000,0x8000

# ifconfig eth0 192.85.1.1 netmask 255.255.255.0
# ifconfig eth1 192.85.2.1 netmask 255.255.255.0

# arp -s 192.85.1.2 00:00:01:00:00:01
# arp -s 192.85.2.2 00:00:02:00:00:01

# echo 1 > /proc/sys/net/ipv4/ip_forward

# echo 0 > /sys/class/net/eth0/ptp_1588
# echo 0 > /sys/class/net/eth1/ptp_1588
# echo 0 > /sys/class/net/eth2/ptp_1588

# ethtool -C eth0 rx-frames 22
# ethtool -C eth0 rx-usecs 64
# ethtool -C eth1 rx-frames 22
# ethtool -C eth1 rx-usecs 64

# ethtool -G eth0 rx 32 tx 32
# ethtool -G eth1 rx 32 tx 32

 

Thanks,

Yiping

0 Kudos
Reply