From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



在高传输速率下丢失UDP包



主要软件:
主要软件版本: 8.2.1
主要软件修正版本: N/A
次要软件: LabVIEW Development Systems>>LabVIEW Full Development System
硬件: Instrument Connectivity Other>>Ethernet

问题:

当UDP包以很高的数据速度(大于2Mb/s)传入时,数据包开始丢失,尤其当CPU还需要处理其他的任务时。



解答: 当UDP数据包传输速率足够大时,Labview将无法维持UDP的套接字缓冲区。这个问题只有当labview把缓冲区中的数据转移到队列或者写入文件中时发生。那么,可以通过增加操作系统的套接字缓冲区的大小来解决这个问题,这样会提供更多的时间让labview来处理缓冲区的数据,保证在套接字缓冲区溢出之前读取数据。

相关链接:

附件:





报告日期: 06/22/2007
最近更新: 10/21/2007
文档编号: 4AL9NF2L