Forum Discussion

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

loss of icmp packets

Hi,

I'm using iniche stack with "default" set-up ( I have not done any type of update/modification or similar).

I've two thread :

1) one empty

2) second one stack standard init:

alt_iniche_init();

netmain();

while (!iniche_net_ready)

tk_sleep(1);

after the init (iniche_net_ready==1), I send continuous icmp request (from laptod with WinXp to target ) and observe the correct response from target but also several icmp "time-out" ( note: not message as "host unreachable")

Tips on how to investigate the problem?

Thanks

10 Replies

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

    Install a Ethernet scanner such as Wireshark to check out exactly what kind of packets go in and out of the PC.

    Do you have any error messages written in the Nios console?

    Do you get those timeouts between good answers, or do you have only good answers first and then only timeouts after a certain point?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, wireshark doesn't show error and Nios console also.

    I've checked the IP/ICMP statistic data structures and seems that I recieve n packets, send n packets (response) and I don't have error.

    I've this time out (1 or more) between sequence of good response.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    are there any other packets on the network that are received by the Nios system? Even if they don't make it answer, they could fill up a fifo and some icmp requests could be dropped.

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

    Hi, I thinks the problem is this.

    The connection is pont-to-point but the laptop is configured to works inside a LAN, so is possible that NIOS received no icmp traffic.

    How can I expand the rx buffer?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What do You mean connection is point-to-point but then telling that it's configured for LAN? What LAN? Another connection?

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

    Hi,

    point-to-point means: connection from PC to Nios with a ethernet cable, without ethernet hub/switch/router and via fixed IP address on both peer.

    When I said the PC was able to works inside LAN I said the PC had a DHCP client, antivirus SW (with automatic update) and maybe several service due to atoher application (e.g. outlook).So, the laptop could generate traffic and to congest the Iniche stack.It's only a idea.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Nah, it should work fine. Are the timing constrains of the design are ok? What's the frequency You're clocking Nios?

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

    Hi,

    I'm working at 50MHZ and I didn't see any problem due to synch/clock anomaly