LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-20-2010, 03:16 PM   #1
vahu002
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
NIC packet loss


Hi All,

I have two machines connected back to back over a 1 Gbps link, and am doing some file transfer experiments over UDP. The receiver is running a few cpu bound processes. As expected, the receiver incurs losses because the CPU is busy. My understanding was that these losses could occur at the following three places:

1. UDP application's socket buffer.
2. NIC's buffer.
3. During protocol processing in the kernel.

But in my experiments I see only losses due to the socket buffer overflow. Could anyone please tell me the conditions under which the NIC's buffer overflows, and when does the kernel drop packets.

Since I saw losses only at the socket buffer, I thought that it could be happening because the NIC interrupts must be issued at a higher priority, so they would cause any user process to yield the CPU. To see if this was correct, I thought of raising the priority of the UDP receiver application using the nice command. I set its priority to the maximum possible, but even then I notice losses only at the socket buffer. Is there a way to have a user level process not be preempted by the NIC interrupts?

Thank you,
Vish
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRE Packet loss prolfe Linux - Networking 2 04-26-2010 12:26 AM
packet loss. bruse Linux - Networking 1 09-01-2005 08:24 AM
70% packet loss bingviini Linux - Networking 5 11-18-2004 11:35 AM
50% packet loss only with Linux alexdanoob Linux - Networking 2 04-21-2004 05:24 AM
What can cause packet loss? Micah Linux - Hardware 8 03-15-2004 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration