Forum Discussion

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

IP packet rate using DE2 and Nios2

Hello,

My goal is to send video over IP using the DE2 kit with nios-2/f.

I tried to use Altera's CD demonstration called DE2_NET.

I managed to send packets to a directly connected PC using the DM9000A and the driver supplied in the demo: DM9000A.C.

My problem is that the maximum number of received packets,which are 1518 Bytes each, is only 30 per second, that is about 45KBps.

I noticed that DM9000A.C TransmitPacket() function contains a sleep() routine before copying each byte to the DM9000A TX buffer.

My questions are:

1. What is the reason for this poor rate and how can I acheive a rate of ~80Mbit/s?

2.Are the 20 micro-sec sleep() routines needed?

Thank you very much,

tr.

8 Replies

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

    I see you've overwritten some of the DM9000A.C functions.

    I will try using your code.

    Thank you very much.

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

    There's an Altera application note AN440 discussing the bootlenecks and potential improvements with NIOS II ethernet communication. According to this literature, the intended 80 Mbps data rate seems to be illusional with a 10/100 Mbps interface.

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

    @suitcase

    Yes, I´ve modified the DM9000.C and more, I´ve reduce the delays times, testing them carrefully.

    I´ve also add a UDP header, and checking it with the wireshark software. Just only try it, and let me know if you´ve got some improvements. Ideas, etc.

    Maybe between us we could get a better aproximation of the target.

    @Frank.

    Thanks so much for the application note data, sounds interesting.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello and thank you very much for your answers.

    BTXSistemas, I used your code and it seems like I got an impoovement!

    According to Ethereal, the packet rate is now about 28Mbit/sec.

    I'll keep updating you,

    Thank you,

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

    Hey man !!

    That is more I get testing with wireshark !! good.

    Did you do some modifications to my code or ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No. Now I am going to test the rate in a windows UDP server, I'll tell you if this is the actual rate.

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

    I use DE2 kit, room, web editor 6.0 Nios II IDE version 6.0 for my project "Control over Ethernet."

    but I failed so far eviar package or any data. I thank I might work with some sort of structure in Nios II to work, because until now I'm starting to ncursionar on this issue.

    Thank you