LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-18-2008, 05:47 AM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 346

Rep: Reputation: 31
2p2 traffic and network performance


Hi all,

I frequently have a p2p application running in the background, either Azureus or aMule -- sometimes both -- but I am careful never to allocate more than 80% of my upload speed to them to ensure that network latency remains optimal. Nonetheless, I find that p2p traffic tends to slow down browsing; sites take longer to load and even timeout.

I am pretty sure my router is not a bottleneck; I am using a 1.6 GHZ Pentium IV as a home router/gateway/WAP running FreeBSD. My ADSL modem is in so-called ZIPB-mode, a kind of half-bridge setup whereby it is not doing any NAT.

At the moment, my F8 client has around a thousand connections open:
Code:
$ netstat -n | wc -l
961
As many of you will know, this is typical with p2p. My network should be able to handle it -- or not?

Can anyone recommend techniques for analyzing network latency and so forth? I'd like to optimize my browsing experience, if need be at the cost of p2p throughput.

Thanks.

Last edited by Kropotkin; 01-18-2008 at 05:52 AM.
 
Old 01-18-2008, 06:02 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
if you want the router to be able to allocate enough bandwidth to browsing, you need to set up QoS on the router
 
Old 01-18-2008, 06:20 AM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Fedora, Mint, FreeBSD, Android
Posts: 346

Original Poster
Rep: Reputation: 31
Ok, I anticipated this answer. Unfortunately, the FreeBSD kernel doesn't support traffic shaping out of the box; I need to recompile it, which I will do, as soon as I sort out another unrelated issue.

In the meantime, can you give me an idea, schematically speaking, of what the general approach would be? Would one prioritize by type of packet, ie BT, or outgoing ACK? Incoming HTTP? I'm new to QoS, so any tips would be appreciated.
 
Old 01-18-2008, 07:06 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
I recently configured a checkpoint splat server with the following settings:
20% p2p for specified clients
30% VoIP
10% FTP
40% HTTP(+S)

basically just went with my own needs, filtering by protocol type (ed2k/http/https/voip/etc)

there was a good tutorial on how to do that on kadets.info, if you understand Russian
 
  


Reply

Tags
p2p


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
Network Traffic Stops After High Traffic windisch Linux - Networking 6 12-17-2007 05:45 PM
2p2 killing me again yawe_frek Linux - Security 6 06-24-2007 05:18 PM
LXer: Darkstat - Network Traffic Analyzer or Network Monitor LXer Syndicated Linux News 0 07-04-2006 08:33 AM
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 02:23 AM
Samba performance, traffic control sokol Linux - Newbie 1 10-30-2003 07:41 AM


All times are GMT -5. The time now is 10:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration