LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 08-12-2008, 03:42 AM   #1
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Rep: Reputation: 15
Unhappy TCP on mrtg


hello..can anyone explain to me about tcp as i am trying to map a mrtg on tcp..how do i create mrtg on tcp total bandwidth.is it the sum of tcp in segment & tcp out segment are the total tcp bandwidth?i am really confuse..i do a snmpwalk to get the mib for my dell switch powerconnect3424 and got these:

tcpRtoAlgorithm.0
tcpRtoMin.0
tcpRtoMax.0
tcpMaxConn.0
tcpActiveOpens.0
tcpPassiveOpens.0
tcpAttemptFails.0
tcpEstabResets.0
tcpCurrEstab.0
tcpInSegs.0
tcpOutSegs.0
tcpRetransSegs.0

by using one or two from above, i can make a total tcp bandwidth graph with mrtg right?!
 
Old 08-13-2008, 12:33 AM   #2
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 181
Blog Entries: 1

Rep: Reputation: 35
not from those stats. the best you'll get is an approximation of packet count. approximate because it probably doesn't count fragments and may not include retransmits (in tcpIn/OutSegs).

not too familiar with mrtg, though, so I don't know if there are other methods it can use to get your data.
 
Old 08-13-2008, 03:38 AM   #3
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
tcp packet?!how to i get the tcp packet?!..emm..its really getting confusing.
 
Old 08-13-2008, 12:54 PM   #4
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 181
Blog Entries: 1

Rep: Reputation: 35
tcpInSegs.0
tcpOutSegs.0
tcpRetransSegs.0

segments are packets, loosely speaking
 
Old 08-13-2008, 08:11 PM   #5
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
so..does it mean by adding the values of in and out segment, it total up the tcp bandwidth?!..
 
Old 08-13-2008, 10:45 PM   #6
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 181
Blog Entries: 1

Rep: Reputation: 35
no. packet count will not give you bandwidth. packets are generally of different sizes. for example, you could generate 1000 packets in a telnet session averaging 2-3 bytes of tcp payload, or 1000 in a file transfer averaging 1400 bytes of tcp payload. packet count won't tell you which case has occurred.

make sense?
 
Old 08-13-2008, 11:44 PM   #7
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
ok...any idea on capturing the bandwidth for tcp?!..packet is not the same as bandwidth..i get it..how do it get the packet size and total it up to orm a bandwidth graph?
 
Old 08-13-2008, 11:52 PM   #8
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 181
Blog Entries: 1

Rep: Reputation: 35
I don't know mrtg well, but i'm not convince that it can do this.

try looking here, maybe

http://www.ubuntugeek.com/bandwidth-...for-linux.html
 
Old 08-14-2008, 01:00 AM   #9
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
thanks anyway..i really need to use mrtg on this.

when there's a will..there's a way.
 
  


Reply

Tags
mrtg


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
Accessing TCP flags in TCP packets on Linux using C !! vishamr2000 Programming 2 10-16-2006 09:46 AM
Linux change TCP kernel Parameter for TCP DELAY ACK TICKS linux_mando Linux - Networking 5 08-22-2006 08:20 AM
Woody 3.0 Open Ports 1470/tcp/uaiact 1518/tcp/vpvd What for?How can I remove them? alexxxis Debian 5 07-05-2004 05:18 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM


All times are GMT -5. The time now is 01:29 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration