开发者

Is send/receive packet buffer the same preallocated memory

开发者 https://www.devze.com 2023-02-25 18:21 出处:网络
I have a开发者_开发知识库 windows app consuming large amounts of incoming udp traffic and sending a small number of udp packets \'keep alive\' messages. I\'m seeing a small amount of drops on both inc

I have a开发者_开发知识库 windows app consuming large amounts of incoming udp traffic and sending a small number of udp packets 'keep alive' messages. I'm seeing a small amount of drops on both incoming and outgoing. I was surprised that the small amount of outgoing data was experiencing drops so I captured the packets using netMon and see them all being sent though out of the server, 3 frames sent only 2 arrive at the linux server.

I'd like to know the following: 1. Is NetMon a clone on the sock_buffer and therefore the data may be dropped at the packet buffer and not actually be being sent of the server? 2. Is the packet buffer memory the same for both send and receive (ie. if receive packet buffers are using all the buffer memory preallocated could this cause packet loss on the small amount of outgoing traffic)?


First thing: The send and receive packet buffer have separate memory. Second thing: NetMon works on lower network layer, not the socket layer. third thing: Keep in mind that UDP is unreliable protocol and you can not ensure that all packets sent from one end will be received on other end. If you need reliability, you should consider TCP or some other reliable protocol.

By the way both sender and receiver are on same LAN or Internet?? How they are connected? if you can describe it then maybe someone can suggest something else to debug the issue further.

0

精彩评论

暂无评论...
验证码 换一张
取 消