How to tune TCP/IP setting on i.MX6UL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to tune TCP/IP setting on i.MX6UL

495 次查看
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?

标签 (3)
0 项奖励
回复
3 回复数

360 次查看
TammyTsai
Contributor III

Could anyone help me with this issue? 

0 项奖励
回复

457 次查看
Harvey021
NXP TechSupport
NXP TechSupport
0 项奖励
回复

439 次查看
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 项奖励
回复