How to tune TCP/IP setting on i.MX6UL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to tune TCP/IP setting on i.MX6UL

777件の閲覧回数
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 返答(返信)

642件の閲覧回数
TammyTsai
Contributor III

Could anyone help me with this issue? 

0 件の賞賛
返信

739件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

721件の閲覧回数
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 件の賞賛
返信