Ethernet / TCP-IP - Training Suite
01 - LWIP Introduction
LwIP Distribution protocols
Application protocols
• SNMP,
• DNS client,
• DHCP client,
Transport protocols
• UDP,
• TCP,
Internet Protocols
• ICMP,
• IGMP,
Datalink Protocols
• ARP,
• PPP
2
Application
Layer
Transport
Layer
Internet
Layer
Network
Interface Layer
ICMP
Domain Names
DNS (c)
Configuration
DHCP (c)
ARP
UDP TCP
IP
PHY
STM32F407
Ethernet
Network mgt
SNMP
IGMP
PPP
LwIP Architecture
3
netif.c
ip.c
udp.c
tcp.c
dhcp.c, dns.c
Network
Interface layer
Internet layer
Transport layer
Application layer
LwIP APIs
RAW API Netconn / Socket API
RTOS
No need Need
Control based on
Pcb socket
Calling methods
Callback
Close to the windows or Linux
socket APIs
Structure
Core APIs Higher level APIs
Application
Lower memory devices
Application without RTOS
Developers has more control
Higher memory devices
Porting of protocols or
application coming from
Linux/windows
complexity
++ +
Memory
-- +
4
LwIP Architecture
5
netif.c
ip.c
udp.c
tcp.c
dhcp.c, dns.c
Network
Interface layer
Internet layer
Transport layer
Application layer