LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-03-2004, 03:57 PM   #16
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0

Nope those rules still dont work :/
 
Old 12-03-2004, 04:12 PM   #17
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
What does the ipfw show output look like now?
 
Old 12-03-2004, 04:17 PM   #18
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0
Router# ipfw show
30170 83302 4405918 count ip from 208.53.175.170 to any
31000 3931 915846 count ip from any to any out
31170 114659 168752428 count ip from any to 208.53.175.170
32000 312410 180665900 count ip from any to any in
65535 1704045 1085587420 allow ip from any to any
Router#
 
Old 12-03-2004, 04:29 PM   #19
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Well, you're getting counts now at least. Is the MRTG report inaccurate or just empty, and which rules are you basing the MRTG counts off of? The ones that have the 170 IP or the any any rules?

Last edited by sigsegv; 12-03-2004 at 04:30 PM.
 
Old 12-03-2004, 04:32 PM   #20
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0
im not looking at the entire total yet in looking at the mrtg output for the .170

I have a 1.63M/s wget session running on .170 right now
and mrtg on my bridge is saying this
Current In: 8198.8 kb/s

its being HIGHLY inaccurate.
 
Old 12-03-2004, 04:35 PM   #21
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
change kb to mb

meaning -- 8198.8 kb/s = ~1.X MB/sec

Last edited by sigsegv; 12-03-2004 at 04:38 PM.
 
Old 12-03-2004, 04:38 PM   #22
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0
Its pulling at 1.63Mbit per second which is 208 KB
1.63MB per second would be 1669KB

either way its no way near 8,000KB
 
Old 12-03-2004, 05:14 PM   #23
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
If wget is running 1.63M/sec (big M as in bytes) that's ~13000kb (little k as in bits). Due to the fact that wget isn't famous for being accurate (I've FTP'd at 160mbit on a 100mbit link before according to wget), I'd trust the kernel first. It's easy to test though. Put a big file on the other machine, run time wget file and see how long it takes. Divide filesize by seconds and that will give you bytes (multiply by 8 for bits of course). Then compare that to MRTG's output.

Last edited by sigsegv; 12-03-2004 at 05:15 PM.
 
Old 12-03-2004, 05:34 PM   #24
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0
Devin# time wget ftp://ftp6.freebsd.org/pub/FreeBSD/r...i386-disc2.iso
--18:27:37-- ftp://ftp6.freebsd.org/pub/FreeBSD/r...i386-disc2.iso
=> `5.3-RELEASE-i386-disc2.iso'
Resolving ftp6.freebsd.org... done.
Connecting to ftp6.freebsd.org[207.172.2.141]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/FreeBSD/releases/i386/ISO-IMAGES/5.3 ... done.
==> PASV ... done. ==> RETR 5.3-RELEASE-i386-disc2.iso ... done.
Length: 650,215,424 (unauthoritative)

100%[========================================================================================>] 650,215,424 1.60M/s ETA 00:00

18:34:04 (1.60 MB/s) - `5.3-RELEASE-i386-disc2.iso' saved [650215424]

14.240u 44.315s 6:27.18 15.1% 226+367k 4+4975io 0pf+0w
Devin#
 
Old 12-03-2004, 05:38 PM   #25
SIP2005
LQ Newbie
 
Registered: Dec 2004
Location: Miami, Florida
Distribution: FreeBSD 4.10-RELEASE-p3
Posts: 14

Original Poster
Rep: Reputation: 0
so
650,215,424 (size) divided by 387.18 (seconds) gives me 1679362.1158117671367322692287825 bytes?

times 8 gives me 13,434,896.92 bits
then divide by 1024 to get Kb which is 13,120.01 Kb/sec
then divide by 1024 to get KB which is 1,640KB/sec
then divide once more by 1024 to get Megabytes which is 1.60MB
which is equivilent to 12.8125 Mbit

that look right?

Last edited by SIP2005; 12-03-2004 at 05:44 PM.
 
Old 12-06-2004, 02:29 PM   #26
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
For benchmarking I've found ttcp to be pretty useful. I'm pretty sure it's in the ports tree (it is for OpenBSD).

Nice work sigsegv. It looks like you're handle might be a bit of a misnomer, since it's hard to find "fault" with your advice
 
  


Reply



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
IPFW/natd Problems BorgKiller *BSD 1 05-11-2005 03:07 PM
Stange Access error using BSD router. lil_drummaboy Linux - Networking 5 12-24-2004 10:03 PM
[ipfw/natd] forwarding (only) not working omnikron *BSD 1 10-25-2004 03:09 PM
Open BSD router zaicheke *BSD 5 08-19-2004 12:09 PM
Ipfw advances stateful rules and natd J_Szucs Linux - Networking 0 05-05-2003 01:41 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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