LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 04-11-2008, 04:26 PM   #1
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 20
Thanked: 0
analyzing network traffic


[Log in to get rid of this advertisement]
Is there a standard linux command that can be used to analyze network traffic coming in and out of your computer?

I am looking for something similar to "top," but for network traffic instead of processor/memory usage.
guttersnipe is offline  
Tag This Post , , ,
Reply With Quote
Old 04-11-2008, 04:34 PM   #2
mpier
LQ Newbie
 
Registered: Jan 2008
Location: Poland
Distribution: Slackware
Posts: 10
Thanked: 0
Maybe iptraf?
mpier is offline     Reply With Quote


Old 04-12-2008, 02:58 AM   #3
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 20
Thanked: 0

Original Poster
That application is really great, but it isn't quite what I need.

Is there a way that I can get the functionality of iptraf specific to each process running?
guttersnipe is offline     Reply With Quote


Old 04-12-2008, 04:22 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 1,885
Thanked: 88
Quote:
Originally Posted by guttersnipe View Post
I am looking for something similar to "top," but for network traffic instead of processor/memory usage.
Something 'similar to top but for network traffic' is 'ntop'. (The cunning disguise is in the name :-) )


Don't know whether it does exactly what you want, but I'd bet the man page does.
salasi is offline     Reply With Quote


Old 04-12-2008, 09:02 AM   #5
froggy060768
LQ Newbie
 
Registered: Apr 2008
Location: Netherlands
Distribution: Centos 4.x & Fedora 9
Posts: 8
Thanked: 0
another great tool where you can analyze multiple things like you network traffic and so on is nmon.

Look here for a nice wiki for this tool:

http://www-941.ibm.com/collaboration...nmon+for+Linux
froggy060768 is offline     Reply With Quote


Old 04-12-2008, 10:40 AM   #6
sri_ram1982
LQ Newbie
 
Registered: Jul 2005
Posts: 14
Thanked: 0
Thumbs down network traffic

you can use netstat -a or tcpdump to analyze network traffic.
sri_ram1982 is offline     Reply With Quote


Old 04-13-2008, 03:41 PM   #7
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 20
Thanked: 0

Original Poster
Code:
ntop
This really is a great program. It gives a beautiful overview of all your traffic in pretty rrd graphs from a user-friendly web browser over port 3000. That being said, the name is misleading. It displays similar to top in that it sorts based on the most demanding resource. While top sorts by each process, ntop sorts by each host. Again, this isn't what I need.

Code:
nmon
Another great tool, but--again--it only shows the traffic coming in and out. It does not record which PROCESS is using that traffic.

Code:
netstat -a
and
Code:
tcpdump
Were not quite what I was looking for, but they sure provide a TON of useful information!

What I'm looking for is something that sorts based on process ids. I need to know which PROCESS is chewing up x amount of bandwidth at any given time. This is different from the results of applications like ntop because a single process (such as azureus--a bittorrent client, for example) can simultaneously connect to multiple, external hosts.

Does such a program exist?
guttersnipe is offline     Reply With Quote


Old 04-13-2008, 05:56 PM   #8
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Slackware 12.2, Ubuntu 9.04, Fedora 11
Posts: 250
Thanked: 1
Perhaps there is a wireshark branch...?
chickenlinux is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

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 06:45 PM
Network tool to detect network traffic? cucolin@ Linux - Networking 2 07-30-2007 05:28 PM
Using python for analyzing network protocol mohtasham1983 Programming 1 09-21-2006 12:23 AM
LXer: Darkstat - Network Traffic Analyzer or Network Monitor LXer Syndicated Linux News 0 07-04-2006 09:33 AM
When the network traffic increase over some limit network works interruptedly therrman Linux - Hardware 0 11-15-2005 03:23 AM


All times are GMT -5. The time now is 09:45 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration