LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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

Reply
 
LinkBack Search this Thread
Old 04-11-2008, 03:26 PM   #1
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 23

Rep: Reputation: 0
analyzing network traffic


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.
 
Old 04-11-2008, 03:34 PM   #2
mpier
Member
 
Registered: Jan 2008
Location: Poland
Distribution: Slackware, Arch
Posts: 38

Rep: Reputation: 17
Maybe iptraf?
 
Old 04-12-2008, 01:58 AM   #3
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
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?
 
Old 04-12-2008, 03:22 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,860

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
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.
 
Old 04-12-2008, 08:02 AM   #5
froggy060768
LQ Newbie
 
Registered: Apr 2008
Location: Netherlands
Distribution: Centos 4.x & Fedora 9
Posts: 8

Rep: Reputation: 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
 
Old 04-12-2008, 09:40 AM   #6
sri_ram1982
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Thumbs down network traffic

you can use netstat -a or tcpdump to analyze network traffic.
 
Old 04-13-2008, 02:41 PM   #7
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 0
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?
 
Old 04-13-2008, 04:56 PM   #8
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
Perhaps there is a wireshark branch...?
 
  


Reply

Tags
network, processes, top, traffic


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Network tool to detect network traffic? cucolin@ Linux - Networking 2 07-30-2007 04:28 PM
Using python for analyzing network protocol mohtasham1983 Programming 1 09-20-2006 11:23 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


All times are GMT -5. The time now is 09:58 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