Forum Discussion

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

Maximum ethernet speed available with NiosII + Linux

Hello,

I plane to built a system with a niosII mmu and linux on an Cyclone III device.

I will use an IP ethernet core with an dp83848 phy.

I need to use ethernet TCP communication.

What is the maximum speed of data throughput I could hope to get?

What MAC IP should I use?

16 Replies

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

    --- Quote Start ---

    We DMA from and adc data directly into a zero copy buffer and DMA straight out. We also use a HDL checksum component.

    --- Quote End ---

    In your case what is your best data rate?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    OK, so jumbo frame will change nothing.

    Work is to do in the software/driver part. I'm correct?

    --- Quote End ---

    Software, yes. Driver, not so much. A relatively small part of the time it takes to send a packet from an application is the time spent in driver code.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    The iniche stack does provide a zero copy interface.

    --- Quote End ---

    I don't suppose this works together with Linux system (the theme of this forum).

    Of course it should be possible to implement a dual NIOS system, one with niche, one with Linux.

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

    I am also interested in knowing the results of how the performance changes with tcp zero_copy enabled. I am currently seeing no difference, so I am wondering if I have something else set that is disabling it.

    jcnhal - Any chance you can post the difference in performance you are seeing?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    with tcp zero_copy enabled. I am currently seeing no difference,

    --- Quote End ---

    How did you "enable zero copy" with Linux ?

    I decently doubt that this is easily possible. You need to (1) port a zero-copy IP stack to NIOS and (2) create a zero-copy enabled Ethernet driver vor yo9ur hardware.

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

    Sorry Michael, I was doing this in Windows with the 9.1 software...

    I mixed two points of conversation and shouldn't have done that for confusion's sake and been a bit clearer. I am interested in just finding out the maximum performance using TCP that anyone has been able to achieve.