How to tune TCP/IP setting on i.MX6UL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to tune TCP/IP setting on i.MX6UL

771 Views
TammyTsai
Contributor III

Hi NXP team,

I want to manage TCP sessions to comply with the following requirements.

  1. The i.MX6UL custom board keeps track of all connections and restricts the number of sessions that can remain active on the device to the minimum necessary number.
  2. The i.MX6UL custom board sets time limits for sessions and ensures that sessions are not left open for longer than necessary.

How to configure TCP/IP settings?

Labels (3)
0 Kudos
Reply
3 Replies

636 Views
TammyTsai
Contributor III

Could anyone help me with this issue? 

0 Kudos
Reply

733 Views
Harvey021
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

715 Views
TammyTsai
Contributor III

Hi @Harvey021 ,

I assume that the i.MX6UL custom board establishes no more than four connections, the idle connection would be closed after 90 seconds.

So, I try to modify two TCP variables below.

tcp_fin_timeout

path: kernel-source/include/net/tcp.h

change TCP_TIMEWAIT_LEN  from (60*HZ) to (90*HZ)

tcp_max_orphans

path: kernel-source/net/ipv4/tcp.c

change sysctl_tcp_max_orphans from (cnt/2) to 4

However, the i.MX6UL custom board can still connect to more than four servers.

Which variables should be modified?

How to change the value to comply with the requirements?

 

Best Regards,

Tammy

 

0 Kudos
Reply