LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-29-2014, 03:13 AM   #1
gabyz
LQ Newbie
 
Registered: Oct 2006
Posts: 21

Rep: Reputation: 0
How to Optimize Linux for Packet Switching?


I'm running 1Gb wirespeed 125B packets between 2 ports.

Code:
sudo brctl addbr br0
sudo brctl addif br0 eth1 eth2
sudo ip link set dev br0 up
Of the ~826,000 packets/sec I send to eth1 I get only ~216,000 pkts/sec out of eth2. If I activate tcpdump it drops to ~140,000 pkts/sec and I get
291300 packets captured
324048 packets received by filter
32748 packets dropped by kernel
1675952 packets dropped by interface
Most of the packets are dropped by the interface.

Using Ubuntu 13.04 with kernel 3.13 (latest)

Any ideas on how to reduce the packets dropped by the interface?

Thanks
Gaby
 
Old 02-03-2014, 08:13 AM   #2
akiuni
Member
 
Registered: Sep 2012
Location: France
Distribution: debian
Posts: 56

Rep: Reputation: Disabled
Hi
You should try to identify which device is involved in that bridge. ifconfig gives you the counter "dropped:" for each device.
There may be many reasons why a packet is dropped, I suggest that you have a look inside your tcpdump result, especially, try to search "TCP retransmission requests" sent by your server. The root cause may be bad fragmentation (mtu), unsolicited or malformed data, crc error or networking errors like a bad link negociation etc... you can also have a look at your switch logs to find other clues.
 
  


Reply

Tags
bridge, drop, networking, packet, switch


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ways to optimize Linux? S2k4ever Linux - General 2 09-16-2006 07:10 PM
Optimize linux and KDE 3.5 for Speed sunpascal Linux - Newbie 8 02-11-2006 12:26 AM
Optimize DSL on Linux? dhave Linux - Networking 10 12-04-2004 05:01 AM

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

All times are GMT -5. The time now is 02:25 PM.

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