Receiving 16k messages via tcp on p2020 via Linux sometimes delays

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

Receiving 16k messages via tcp on p2020 via Linux sometimes delays

1,230 次查看
calpage
Contributor I

I am running kernel

Linux freescale 2.6.32-svn1457 #178 SMP Thu Jul 7 10:40:12 EDT 2011 ppc unknown

If I send 10,000 16k packets over TCP, the P2020 will receive most of them in about 1.5 microseconds. However,

about 500 times in this test, not all characters are received and it takes about 300 milliseconds for the

packet to come in.

Probably what's happening is that the linux tcp stack is timing out at 200 ms before continuing to receive the

packet stream.

I can ameliorate the problem by sending back a \0 byte ever time I receive a partial packet. Then all runs well,

as the stack is piggy-backing the ACK/NAK on this packet.

But, is there either:

1. A patch to the linux kernel to resolve this issue?

2. Or, is that a network parameter I can change to do same?

Thank You,

Cal Page

Teradyne

标签 (1)
标记 (4)
0 项奖励
回复
2 回复数

1,063 次查看
calpage
Contributor I

I resolved this problem by back-porting net/ipv4 from linux-2.6.32.60 into the current tree.

Two modules didn't compile: devinet.c and fib_frontend.c. These involved features my current client did not use, so these two files were left alone.

0 项奖励
回复

1,063 次查看
calpage
Contributor I

Actually, I am still seeing the problem, so am still searching for a solution.

0 项奖励
回复