# UDP/TCP-IP for 1G/10G ethernet

**URL:** <https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89>\
**Category:** Sharable HDL Cores\
**Created:** [13 June 2024 14:22 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89 "2024-06-13T14:22:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbiesuz](https://fpga-developers-forum.web.cern.ch/user_avatar/fpga-developers-forum.web.cern.ch/nbiesuz/32/28_2.png) [@nbiesuz](https://fpga-developers-forum.web.cern.ch/u/nbiesuz)\
**Post date:** [13 June 2024 14:22 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/1 "2024-06-13T14:22:56Z")

</div>

Hi all,

recently I am developing a DAQ system that sends data to a server using UDP packets on a 10G ethernet line.  
By looking on the net for open source cores I stumbled on this library:

> **[GitHub - alexforencich/verilog-ethernet: Verilog Ethernet components for FPGA...](https://github.com/alexforencich/verilog-ethernet)**
>
> Verilog Ethernet components for FPGA implementation - alexforencich/verilog-ethernet

It seams to work well enough for my apllication, the only two issues I have at the moment are

- it does not support “jumbo frames”
- now my project is a mixed language project

Did anyone used this library? Do you have opinons/suggestions on other similar libraries?

If I am not mistaken someone was also planning to develop their own library maybe this can be a good staring point.

---

<div class="post-metadata">

**Author:** ![alperro](https://fpga-developers-forum.web.cern.ch/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@alperro](https://fpga-developers-forum.web.cern.ch/u/alperro)\
**Post date:** [13 June 2024 16:47 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/2 "2024-06-13T16:47:34Z")

</div>

Hi @nbiesuz,

Thanks for the link, the dev is also working on Corundum, which is an open source FPGA NIC.  
We’re planning to add full UDP/IP modules to colibri (the tx part is already available, but not yet published), using proprietary MAC/PCS we were able to push it to 40G/100G as well.

---

<div class="post-metadata">

**Author:** ![nbiesuz](https://fpga-developers-forum.web.cern.ch/user_avatar/fpga-developers-forum.web.cern.ch/nbiesuz/32/28_2.png) [@nbiesuz](https://fpga-developers-forum.web.cern.ch/u/nbiesuz)\
**Post date:** [14 June 2024 09:43 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/3 "2024-06-14T09:43:23Z")

</div>

Hi @alperro,  
do I understand correctly you have no plan to add MAC and PHY?  
is LHCb planning to have a common licence for these IPs?

Thanks,  
Nicolò

---

<div class="post-metadata">

**Author:** ![alperro](https://fpga-developers-forum.web.cern.ch/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@alperro](https://fpga-developers-forum.web.cern.ch/u/alperro)\
**Post date:** [17 June 2024 08:44 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/4 "2024-06-17T08:44:43Z")

</div>

For now, we don’t have plans to add MAC/PCS/PHY. We’re using vendors IPs of which CERN has licenses.

However, you’re welcome to add cores to colibri!

---

<div class="post-metadata">

**Author:** ![florian](https://fpga-developers-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/898d66/32.png) [@florian](https://fpga-developers-forum.web.cern.ch/u/florian)\
**Post date:** [18 June 2024 08:41 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/5 "2024-06-18T08:41:15Z")

</div>

Hi @nbiesuz ,

I’m using this library in my project (DAQ system for the PANDA Luminosity detector, not related to CERN).

It also makes my project a mixed language one, but so far I haven’t found an open source MAC core in VHDL.  
This library has worked well for me so far. I just had to make sure, to watch the tx busy flag in order to avoid buffer overflows in the transmit fifo.

---

<div class="post-metadata">

**Author:** ![nbiesuz](https://fpga-developers-forum.web.cern.ch/user_avatar/fpga-developers-forum.web.cern.ch/nbiesuz/32/28_2.png) [@nbiesuz](https://fpga-developers-forum.web.cern.ch/u/nbiesuz)\
**Post date:** [18 June 2024 12:06 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/6 "2024-06-18T12:06:18Z")

</div>

HI @florian,  
did you implement answers to IP ping?  
I was thinking about inserting this feature in my code but I never looked into it properly… do you know if there is an example I can borrow?

Thanks,  
Nicolò

---

<div class="post-metadata">

**Author:** ![florian](https://fpga-developers-forum.web.cern.ch/letter_avatar_proxy/v4/letter/f/898d66/32.png) [@florian](https://fpga-developers-forum.web.cern.ch/u/florian)\
**Post date:** [18 June 2024 15:32 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/7 "2024-06-18T15:32:45Z")

</div>

Hi,

so far I did not implement ping and I haven’t found any open core for it.  
I only implemented a _very_ simple DHCP client (things like lease time handling and renew/rebind are still missing).

Cheers,  
Florian

---

<div class="post-metadata">

**Author:** ![WZab](https://fpga-developers-forum.web.cern.ch/letter_avatar_proxy/v4/letter/w/ee7513/32.png) [@WZab](https://fpga-developers-forum.web.cern.ch/u/WZab)\
**Post date:** [2 July 2024 13:05 UTC](https://fpga-developers-forum.web.cern.ch/t/udp-tcp-ip-for-1g-10g-ethernet/89/8 "2024-07-02T13:05:29Z")

</div>

Some time ago I have developed a solution for reliable Ethernet transmission from FPGA to PC - [https://opencores.org/projects/fade\_ether\_protocol](https://opencores.org/projects/fade_ether_protocol) (described in [https://iopscience.iop.org/article/10.1088/1748-0221/10/07/T07005](https://iopscience.iop.org/article/10.1088/1748-0221/10/07/T07005)).  
It does not use TCP/IP to avoid latency introduced by the kernel network stack. Instead it registers its own Ethernet protocol. The solution was later on successfully extended to higher speed links (e.g. 25 Gb/s).
