Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

TSE and Simple Socket Server - lost packets

Hello Altera Forums,

After much struggle, I have managed to get the simple socket server running on my Arria V starter kit.

I'm still having some problems:

  • I can connect to the DCHP sometimes, but not consistently.

  • I can ping, but I get a high packet loss:

--- xxx.xxx.60.71 ping statistics ---
100 packets transmitted, 25 received, 75% packet loss, time 98999ms
rtt min/avg/max/mdev = 0.381/0.452/0.880/0.099 ms 

  • I can telnet to the server, but it's very slow.

I assume these are all symptoms of the same problem: Either packets aren't making it to the device, or aren't leaving the device.

I've done some testing with signaltap.

Near as I can tell, everytime I send a ping, it shows up in signal tap on the RX, but not on the TX.

So it seems that packets aren't being sent by the device.

I'm not sure how to debug further.

Attached is my sdc file

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    When you say it shows on the RX on signal tap, are you talking about the PHY side, or the avalon stream interface to the DMA?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm not sure (I'm still quite new to this)

    For the RX, I'm listening to this node:

    nios_system:inst2|nios_system_tse:tse|altera_eth_tse_mac:i_tse_mac|altera_tse_top_w_fifo_10_100_1000:U_MAC_TOP|altera_tse_gmii_io:U_GMIF|gm_rx_d_i_reg

    The mac address of the computer I'm sending the ping from shows up there.

    For RX, I'm listening to

    nios_system:inst2|nios_system_tse:tse|altera_eth_tse_mac:i_tse_mac|altera_tse_top_w_fifo_10_100_1000:U_MAC_TOP|altera_tse_gmii_io:U_GMIF|gm_tx_d_reg

    The mac address shows up here too, but not every time I send a ping
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have fixed this issue. I had been using the schematic design method for writing the program. I switched to using verilog HDL without the block diagram file, and now I can ping the board with no packet loss as well as telnet in.