This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8127网络丢包



8127单板,在播放视频时,偶尔会出现花屏卡顿现象。用ifconfig看,接收和发送均有大量的dropped,请问这个是正常现象还是异常?是真的丢了吗?有什么方法优化网络性能?

admin@dm814x-evm:/vtrack# ifconfig
eth0 Link encap:Ethernet HWaddr 20:CD:39:EB:2E:8E
inet addr:192.168.2.19 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9407967 errors:0 dropped:5242 overruns:0 frame:0
TX packets:5656189 errors:0 dropped:177810 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2232994860 (2.0 GiB) TX bytes:3668886693 (3.4 GiB)
Interrupt:40

admin@dm814x-evm:/sys/devices/platform/cpsw.0/net/eth0# cat hw_stats
CPSW Statistics:
rxgoodframes ............................ 51294918
rxbroadcastframes ....................... 179783
rxmulticastframes ....................... 44875
rxpauseframes ........................... 0
rxcrcerrors ............................. 0
rxaligncodeerrors ....................... 0
rxoversizedframes ....................... 0
rxjabberframes .......................... 0
rxundersizedframes ...................... 0
rxfragments ............................. 0
rxoctets ................................ 252884673
txgoodframes ............................ 23641652
txbroadcastframes ....................... 62039
txmulticastframes ....................... 4
txpauseframes ........................... 0
txdeferredframes ........................ 0
txcollisionframes ....................... 0
txsinglecollframes ...................... 0
txmultcollframes ........................ 0
txexcessivecollisions ................... 0
txlatecollisions ........................ 0
txunderrun .............................. 0
txcarriersenseerrors .................... 0
txoctets ................................ 668962255
octetframes64 ........................... 24567322
octetframes65t127 ....................... 261591
octetframes128t255 ...................... 22087031
octetframes256t511 ...................... 452201
octetframes512t1023 ..................... 687950
octetframes1024tup ...................... 26880475
netoctets ............................... 921846928
rxsofoverruns ........................... 0
rxmofoverruns ........................... 0
rxdmaoverruns ........................... 0

RX DMA Statistics:
head_enqueue ............................ 1
tail_enqueue ............................ 51294976
pad_enqueue ............................. 0
misqueued ............................... 0
desc_alloc_fail ......................... 0
pad_alloc_fail .......................... 0
runt_receive_buff ....................... 0
runt_transmit_buff ...................... 0
empty_dequeue ........................... 0
busy_dequeue ............................ 48583615
good_dequeue ............................ 51294913
teardown_dequeue ........................ 0

TX DMA Statistics:
head_enqueue ............................ 22688061
tail_enqueue ............................ 953591
pad_enqueue ............................. 0
misqueued ............................... 84467
desc_alloc_fail ......................... 234646
pad_alloc_fail .......................... 0
runt_receive_buff ....................... 0
runt_transmit_buff ...................... 21106977
empty_dequeue ........................... 47505504
busy_dequeue ............................ 1078111
good_dequeue ............................ 23641652
teardown_dequeue ........................ 0

  • 各位大神,帮忙分析一下哦。

  • 你好,

    和PC对联,会有同样的问题么?

  • 你好,

    和PC直接接也是一样。如果视频码率低一点(2M及以下),同时取2到3路码流,基本工作正常,看不到花屏。如果把码率升到6M及以上,视频卡顿花屏就会出现,在PC机上抓包,的确有丢包。在单板上抓包,则显示没丢包。网卡模式确认过是100M,CPU一般都小于40%。

    另外一个现象是:在相同的网络情况下(多级交换机),没有视频上传等网络交互,PING大包(如32K),交换机下其它设备没有任何丢包,我们设备1分钟总是会超时1~2次,8127单板CPU也小于20%。

  • 你好,

    用单独的网络测试软件例如iperf测试也丢包么?你们使用的是udp还是tcp?

    你们网口部分硬件设计,布线等是否有排查过?

  • 我们使用UDP。下面是PC与单板直连的测试结果。如果要查硬件设计或布线,该从哪些方面查?

    D:\iperf3.exe -c 192.168.2.19 -u -b50M -R
    Connecting to host 192.168.2.19, port 5201
    Reverse mode, remote host 192.168.2.19 is sending
    [ 4] local 192.168.2.10 port 65502 connected to 192.168.2.19 port 5201
    [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
    [ 4] 0.00-1.00 sec 6.03 MBytes 50.6 Mbits/sec 0.752 ms 147/919 (16%)
    [ 4] 1.00-2.00 sec 5.95 MBytes 49.9 Mbits/sec 0.833 ms 0/762 (0%)
    [ 4] 2.00-3.00 sec 4.48 MBytes 37.6 Mbits/sec 0.878 ms 189/763 (25%)
    [ 4] 3.00-4.00 sec 5.96 MBytes 50.0 Mbits/sec 0.817 ms 0/763 (0%)
    [ 4] 4.00-5.02 sec 5.25 MBytes 43.3 Mbits/sec 2.898 ms 88/760 (12%)
    [ 4] 5.02-6.00 sec 5.98 MBytes 50.9 Mbits/sec 0.807 ms 1/766 (0.13%)
    [ 4] 6.00-7.00 sec 5.03 MBytes 42.2 Mbits/sec 0.801 ms 119/763 (16%)
    [ 4] 7.00-8.00 sec 5.95 MBytes 49.9 Mbits/sec 0.859 ms 0/762 (0%)
    [ 4] 8.00-9.00 sec 4.65 MBytes 39.0 Mbits/sec 5.135 ms 24/619 (3.9%)
    [ 4] 9.00-10.00 sec 4.67 MBytes 39.2 Mbits/sec 1.081 ms 309/907 (34%)
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
    [ 4] 0.00-10.00 sec 60.8 MBytes 51.0 Mbits/sec 1.081 ms 877/7784 (11%)
    [ 4] Sent 7784 datagrams