Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to view/measure UDP socket buffer loss on Windows Server 2008 R2? I've tried 'netstat -s' and looking at available perfmon counters, but nothing jumps out to me as a measure of socket buffer size or loss.

If there's no way to view it via some mechanism provided by Windows, I should note that the NIC in this server is an Intel Gigabit ET Dual Port Server Adapter. Perhaps there is some utility provided by Intel that can show this information?

Thanks in advance

share|improve this question
    
There may be a way to measure some types of loss, but in general, there's no way to know what you've lost. –  David Schwartz Mar 20 '12 at 19:49

1 Answer 1

By "buffer loss", I assume that you mean losses caused by the buffer being full. (UDP losses in the network can only be detected by designing a session level algorithm to track and confirm receipt of all packets.)

Outgoing buffer losses will be reported at the socket API level by error returns from sendto() (or its equivalent) such as WSAENOBUFS, WSAEWOULDBLOCK, or WSAEMSGSIZE.

As far as I know, incoming losses are not explicitly reported anywhere. However, you can use ioctl(FIONREAD) to determine how much data is in the incoming buffer. If it is near full, and you are detecting losses, its a safe bet that those losses are the result of buffer overflow.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.