Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to count number of hosts through a mirror port

Reply
Thread Tools Display Modes

How to count number of hosts through a mirror port

 
 
Dovelet
Guest
Posts: n/a

 
      08-17-2007, 06:24 AM
Hi all,

I just setup a linux (RH 9) and install the Ethereal to capture the
network traffics. It connects to a switch mirror port that mirror the
traffics of Corporate users to access the Internet. I would like to
count the numbers of hosts that access the Internet. Is there any
tools (for Linux RH 9) that can do so? Please note that my Linux only
support TEXT mode only. Thanks.

Regards,
Dovelet

 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      08-17-2007, 12:16 PM
Dovelet wrote:
> I just setup a linux (RH 9) and install the Ethereal to capture the
> network traffics. It connects to a switch mirror port that mirror the
> traffics of Corporate users to access the Internet. I would like to
> count the numbers of hosts that access the Internet. Is there any
> tools (for Linux RH 9) that can do so? Please note that my Linux only
> support TEXT mode only.


You can use either tethereal or tcpdump to capture traffic, then either
custom code or tethereal/tcpdump + perl to do the analysis. You should
take a look at the CAIDA website for tools you could use/adapt for this
purpose.

You need to think hard about privacy issues before you start doing this.
You might want to consider using tcpdpriv (with appropriate arguments)
to do the traffic capture. You also need to give some thought to issues
like notifying your users and limiting access to the data.
 
Reply With Quote
 
Dovelet
Guest
Posts: n/a

 
      08-18-2007, 10:02 AM
On 8 17 , 8 16 , Allen McIntosh <nos...@mouse-potato.com> wrote:
> Doveletwrote:
> > I just setup a linux (RH 9) and install the Ethereal to capture the
> > network traffics. It connects to a switch mirror port that mirror the
> > traffics of Corporate users to access the Internet. I would like to
> > count the numbers of hosts that access the Internet. Is there any
> > tools (for Linux RH 9) that can do so? Please note that my Linux only
> > support TEXT mode only.

>
> You can use either tethereal or tcpdump to capture traffic, then either
> custom code or tethereal/tcpdump + perl to do the analysis. You should
> take a look at the CAIDA website for tools you could use/adapt for this
> purpose.
>
> You need to think hard about privacy issues before you start doing this.
> You might want to consider using tcpdpriv (with appropriate arguments)
> to do the traffic capture. You also need to give some thought to issues
> like notifying your users and limiting access to the data.


Hi,

Thank you of your information. I want to count the numbers of users
access the Internet per day but my harddisk is not large enough to
capture all traffics for a whole day. Do you have any other idea?
Thanks.

Thank you of your remind, I will consider the privacy issues.

Regards,
Dovelet

 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      08-18-2007, 01:12 PM
>>> I just setup a linux (RH 9) and install the Ethereal to capture the
>>> network traffics. It connects to a switch mirror port that mirror the
>>> traffics of Corporate users to access the Internet. I would like to
>>> count the numbers of hosts that access the Internet. Is there any
>>> tools (for Linux RH 9) that can do so? Please note that my Linux only
>>> support TEXT mode only.

>> You can use either tethereal or tcpdump to capture traffic, then either
>> custom code or tethereal/tcpdump + perl to do the analysis. You should
>> take a look at the CAIDA website for tools you could use/adapt for this
>> purpose.

> Thank you of your information. I want to count the numbers of users
> access the Internet per day but my harddisk is not large enough to
> capture all traffics for a whole day. Do you have any other idea?



1) See previous advice re. CAIDA

2) Run output of tcpdump/tethereal through a program that does the counting.

3) Modify tcpdump or similar program to do what you want.
 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      08-21-2007, 02:51 PM
Dovelet wrote:
> On 8 17 , 8 16 , Allen McIntosh <nos...@mouse-potato.com> wrote:
>> Doveletwrote:
>>> I just setup a linux (RH 9) and install the Ethereal to capture the
>>> network traffics. It connects to a switch mirror port that mirror the
>>> traffics of Corporate users to access the Internet. I would like to
>>> count the numbers of hosts that access the Internet. Is there any
>>> tools (for Linux RH 9) that can do so? Please note that my Linux only
>>> support TEXT mode only.

>> You can use either tethereal or tcpdump to capture traffic, then either
>> custom code or tethereal/tcpdump + perl to do the analysis. You should
>> take a look at the CAIDA website for tools you could use/adapt for this
>> purpose.
>>
>> You need to think hard about privacy issues before you start doing this.
>> You might want to consider using tcpdpriv (with appropriate arguments)
>> to do the traffic capture. You also need to give some thought to issues
>> like notifying your users and limiting access to the data.

>
> Hi,
>
> Thank you of your information. I want to count the numbers of users
> access the Internet per day but my harddisk is not large enough to
> capture all traffics for a whole day. Do you have any other idea?
> Thanks.
>
> Thank you of your remind, I will consider the privacy issues.


(I thought I posted a reply, but it seems to have disappeared.)

If you don't have enough disk space, then you will need to run output
from tcpdump/tethereal directly through your tool of choice to do the
counting. The alternative is something you build/modify yourself.
Check the tools taxonomy on the CAIDA website for tools that will do
some (or all, if your are lucky) of the work for you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
include port in hosts file John A Grandy Windows Networking 1 04-15-2009 01:04 PM
e1000 driver -- NAPI --- How to count number of packets fetched? Azeem Linux Networking 0 04-15-2009 12:04 PM
throughput VS number of hosts blueice Wireless Internet 0 01-24-2005 03:42 PM
throughput VS number of hosts blueice Wireless Internet 1 01-19-2005 05:59 PM
Count number of times file access and printed xzyeena Windows Networking 1 08-11-2003 02:19 PM



1 2 3 4 5 6 7 8 9 10 11