# FreeRTOS Plus TCP vs FreeRTOS + lwip

**URL:** <https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910>\
**Category:** Libraries\
**Created:** [March 9, 2023, 6:36pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910 "2023-03-09T18:36:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://forums.freertos.org/u/addi)\
**Post date:** [March 9, 2023, 6:36pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/1 "2023-03-09T18:36:13Z")

</div>

Hello!

Can anybody explain the difference between FreeRTOS Plus TCP and from linking FreeRTOS and lwip?, please

The question caused of necessity to realize TCP based on FreeRTOS  
And I do not know which way to choose(as it at first time)

---

<div class="post-metadata">

**Author:** ![hs2](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hs2](https://forums.freertos.org/u/hs2)\
**Post date:** [March 9, 2023, 8:49pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/2 "2023-03-09T20:49:56Z")

</div>

FreeRTOS+TCP provides its own TCP stack. lwIP is an other TCP stack implementation which can also be used with FreeRTOS (with a thin porting layer to FreeRTOS) but probably also on other platforms or bare metal.

---

<div class="post-metadata">

**Author:** ![Shub](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Shub](https://forums.freertos.org/u/Shub)\
**Post date:** [March 10, 2023, 3:03pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/3 "2023-03-10T15:03:33Z")

</div>

Hi addi,  
Just wanted to add a few more things.  
FreeRTOS-Plus-TCP is a scalable, open source and thread safe TCP/IP stack for FreeRTOS maintained by Amazon Web Services.  
The stack is misra compliant, unit tested, CBMC proofed and Protocol Tested for IPv4 using the Maxwell Pro Tester.  
It has 2 main branches:

1. main:
  1. supports IPv4
  2. has a LTS(Long Term Support) release

2. dev/ipv6\_integration:
  1. supports both IPv4 and IPv6
  2. This is a work in progress branch with Release Candidates coming up soon.

---

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://forums.freertos.org/u/addi)\
**Post date:** [March 10, 2023, 4:21pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/4 "2023-03-10T16:21:35Z")

</div>

Thanks!!, now I choosed FreeRTOS-Plus-TCP!

---

<div class="post-metadata">

**Author:** ![xerox](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/xerox/32/3382_2.png) [@xerox](https://forums.freertos.org/u/xerox)\
**Post date:** [April 17, 2023, 4:53pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/5 "2023-04-17T16:53:04Z")

</div>

Hi @Shub

Is there any timeline for merging dev/ipv6\_integration branch with the main branch?

I noticed the demo project is empty for dev/ipv6\_integration. Does anyone from Amazon have a working demo for Windows simulator?

I’m also curious to know about IGMP protocol support, to know if it will be added to the implementation?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Shub](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Shub](https://forums.freertos.org/u/Shub)\
**Post date:** [April 18, 2023, 6:23am UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/6 "2023-04-18T06:23:21Z")

</div>

Hi Saeed,  
Welcome to the FreeRTOS community.  
We are planning to merge dev/ipv6\_integration branch to main this summer. Keep a close watch.  
However, we already have a RC1 (release candidate) available and the page ([rc1-page](https://forums.freertos.org/t/freertos-plus-tcp-release-candidate-available-for-preview/17063)) has all the details.

All the demos(including IPv4 and IPv6 WinSIM demos) are working with dev/ipv6\_integartion and the above page has the details.

Can you share a few more details on the IGMP support ? Is it IGMP packet parsing, or IGMP group creation, join , leave etc. It will also be great if you can share some details on the IGMP use-case.

---

<div class="post-metadata">

**Author:** ![xerox](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/xerox/32/3382_2.png) [@xerox](https://forums.freertos.org/u/xerox)\
**Post date:** [April 19, 2023, 6:11pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/7 "2023-04-19T18:11:56Z")

</div>

Thanks for the update! Working with rc1 will be very helpful.

As for the IGMP support, there will be some devices joining the multicast group and waiting to receive data from a server. They will also receive unicast packets as well at the same time with multicast packets. They need to stay in multicast group as long as they are doing their job.

Having this in mind I’m still not sure if the devices need to have packet parsing based on what you said. Do they?

Do you think FreeRTOS+TCP will support IGMP protocol in a near future?

I’ve found basic [implementation](https://github.com/evpopov/FreeRTOS-Plus-TCP/tree/Multicasts_Draft_2) for IGMP support by @epopov. Do you have a plan to work on this and merge it to the main branch before the next +TCP release?

---

<div class="post-metadata">

**Author:** ![epopov](https://avatars.discourse-cdn.com/v4/letter/e/97f17d/32.png) [@epopov](https://forums.freertos.org/u/epopov)\
**Post date:** [April 19, 2023, 8:32pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/8 "2023-04-19T20:32:53Z")

</div>

Hey @xerox ,  
Just a side note, I started experimenting with rc1 as well and am currently moving my IGMP code to that codebase. I don’t know if my code will ever get integrated into the official repository, but even if it doesn’t I’m actively using it and will soon push a version based on dev/IPv6\_integration

---

<div class="post-metadata">

**Author:** ![Shub](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Shub](https://forums.freertos.org/u/Shub)\
**Post date:** [April 21, 2023, 9:12am UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/9 "2023-04-21T09:12:13Z")

</div>

Thanks @epopov . It will be great if we can have a PR for dev/ipv6\_integration branch. We will be happy to help you in every possible way in the process and merge the same in the branch.

Hi @xerox  
For the use case that you specified, we will need IGMP parsing, Group create, join and leave functionalities.  
Yes, The changes for @epopov at [GitHub - evpopov/FreeRTOS-Plus-TCP at Multicasts\_Draft\_2](https://github.com/evpopov/FreeRTOS-Plus-TCP/tree/Multicasts_Draft_2) support the same.

---

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://forums.freertos.org/u/addi)\
**Post date:** [April 26, 2023, 2:45pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/10 "2023-04-26T14:45:08Z")

</div>

Sorry for getting up already closed topic, but maybe somebody knows, what is less memory usage realization of TCP/IP stack with link of FreeRTOS?

I run out of memory of “my” mips

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [April 26, 2023, 3:09pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/11 "2023-04-26T15:09:06Z")

</div>

Hello @addi,

You wrote:

> what is less memory usage realization of TCP/IP stack with link of FreeRTOS?

I am not sure what you are asking for here? Are you asking for the “memory footprint” of FreeRTOS and FreeRTOS+TCP?

> I run out of memory of “my” mips

MIPS stands for processing speed.

Are you worried about the speed or about the usage of memory? RAM or flash memory?

---

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://forums.freertos.org/u/addi)\
**Post date:** [April 26, 2023, 3:28pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/12 "2023-04-26T15:28:02Z")

</div>

Im asking about memroy footpront of TCP/IP stack what suitable for intergration with FreeRTOS  
I have 256K RAM only and I have to locate all only in RAM  
I tried to locate also with optimization level but with optimization I have got another problem)

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [April 27, 2023, 6:02am UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/13 "2023-04-27T06:02:40Z")

</div>

> [@addi](#):
>
> I have 256K RAM only and I have to locate all only in RAM

You want to put data in RAM or do you want to execute out of RAM? When you say, you are running out of memory, what are the symptoms do you see? Is it a link failure? Can you share complete logs?

> [@addi](#):
>
> I tried to locate also with optimization level but with optimization I have got another problem)

What is the problem that you see with optimization enabled?

---

<div class="post-metadata">

**Author:** ![addi](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@addi](https://forums.freertos.org/u/addi)\
**Post date:** [April 27, 2023, 2:32pm UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/14 "2023-04-27T14:32:18Z")

</div>

Thank you for your replay!  
Yes I want to put all, - data and code into RAM and execute from RAM 256 KB  
When I do optimization I have some problem with operation, and I have got the reason yet  
And the question is in Lightweight, - does lwip more lightweight rather TCP stack that comes with FreeRTOS plus??

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [May 2, 2023, 4:10am UTC](https://forums.freertos.org/t/freertos-plus-tcp-vs-freertos-lwip/16910/15 "2023-05-02T04:10:56Z")

</div>

> [@addi](#):
>
> When I do optimization I have some problem with operation, and I have got the reason yet

Can you describe what problem do you see? Do you see compilation failure or run time failure?
