LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2004, 04:16 AM   #1
shrike_912
LQ Newbie
 
Registered: Jun 2004
Location: nepal
Posts: 26

Rep: Reputation: 15
know something about IP sniffing?


HI,
I AM DEVELOPING A BANDWIDTH MANAGEMENT SYSTEM AS PART OF MY FINAL YEAR PROJECT AND I NEED ALL OF YOUR SUGGESTION AND HELP. FIRST OF ALL I WANT TO SHARE MY IDEA OF THE BMS WITH YOU SO THAT YOU CAN DECIDE WHETHER THIS IDEA WORKS OR NOT.

THE PROBLEM:
THE CLIENT PLACE HAS 10 TERMINALS. THE CLIENT IS USING A BROADBAND CONNECTION TO THE INTERNET. THE CLIENT WANTS TO MANAGE HIS BANDWIDTH UTILIZATION AND WANTS TO PRIORITIZE HIS BANDWIDTH ALLOCATIONS SO AS TO SET MAXIMUM FOR VOICE APPLICATIONS.

HERE'S THE WAY I SEE IT:
WE SET UP A SERVER THROUGH WHICH ALL TRAFFIC TO THE INTERNET SHALL PASS. WE EXAMINE EACH AND EVERY IP HEADER TO DETERMINE WHAT KIND OF APPLICATION IT ORIGINATED FROM. WE MAINTAIN A PRIORITY QUEUE IN WHICH WE PUT THE IP PACKETS. THIS PRIORITY QUEUE GIVES HIGHEST PRIORITY TO VOICE DATA BUT ALSO SEES TO IT THAT OTHER DATA DONOT SUFFER. IN ANY CASE, THE APPLICATON MUST ENSURE THAT VOICE DATA NEVER HAVE A LOW BANDWIDTH PROBLEM.

METHODOLOGY:
1. SET THE SERVER TO PROMISCUS MODE
2. EXAMINE EACH IP PACKET HEADER AND DETERMINE ITS APPLICATION TYPE
3. MAINTAIN A PRIORITY LIST OF ALL THE APPLICATIONS IN USE
4. MAINTAIN A PRIORITY QUEUE WITH REGARD TO THE PRIORITY LIST OR USE A CBQ.
5. FORWARD THE IP PACKETS

GLITCHES:
1. FIRST OF ALL I DON'T HAVE MUCH EXPERIENCE IN LINUX PROGRAMMING BUT I DO UNDERSTAND PROGRAMMING (C AND C++)
2. I DONOT KNOW ALL THE LIBRARY FILES THAT SHOULD BE USED
3. I DONOT KNOW WHETHER THIS IDEA IS FEASIBLE OR NOT

I WOULD VERY MUCH APPERICIATE IF YOU GURUS CAN SUGGEST ME WITH YOUR EXPERTISE AND HELP ME DO R&D WITH THE PROJECT. I WELCOME ANY SUGGESTION AND COMMENTS REGARDING MY PROBLEM. AND IF ANYBODY CAN GO ALONG WITH ME IN THIS PROJECT, GIVING ME FEEDBACKS AT EVERY MILESTONE, TELLING ME WHERE TO LOOK FOR RELATED TOPICS, I WOULD BE INDEBTED AND GRATEFUL. I CAN'T PAY MONEY BUT THE WAY I SEE IT IT'S A OPEN COMMUNITY AND WHATEVER WE DO WE CARE TO MAKE IT OPEN ENOUGH FOR THE WORLD TO SEE AND THINK.

WITH REGARDS
BIKASH SHRESTHA.

Last edited by shrike_912; 06-02-2004 at 06:55 AM.
 
Old 06-03-2004, 10:05 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
HI,

First of all, what you try to do has already been done... so you can have a look in linux kernel internal (netfilter modules) and in iproute2 (tc programm).
So about your method, be careful with the algorithm you use... For a broadband network (>1Mbit/s), I don't think that CBQ is a good choice... HTB should give you better results Moreover, you don't need maximum bandwidth for VoIP but a minimum latency (that's why it should be the queue with the higher priority)... And don't forget to put interactive services like ssh, telnet... in a queue with high priority to keep a low latency and so a good interactivity... It would be a shame to wait 3sec before displaying a character.

Oliv'
 
Old 06-03-2004, 02:08 PM   #3
shrike_912
LQ Newbie
 
Registered: Jun 2004
Location: nepal
Posts: 26

Original Poster
Rep: Reputation: 15
hi Oliv',

thanx for replying, i was getting desperate. is this netfilter and iproute2 widely in use? how does it works inside? i understand we donot need maximum bandwidth allocated for VoIP and the minimum latency theory works. okay for it. what is HBT? is it similar to CBQ..how do i use it?

hope those are not too much of questions?

i appericiate ur concern,,

with regards,
bikash shrestha.
 
Old 06-04-2004, 03:44 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Quote:
is this netfilter and iproute2 widely in use?
If you've already use iptables for firewalling purpose, you have also used netfilter project... To be simple, it's the kernel part of iptables.
And I can't explain you how it works inside as it's a big and complex projetc, but here is a link which should help you a lot... It's not about coding but more about general concept
About HTB, it's another algorithm for QoS (Sorry, I don't remember exactly how it works) like CBQ. More info here and a comparison test with CBQ here

here are links which may help you:
http://www.cisco.com/univercd/cc/td/...to_doc/qos.htm
http://luxik.cdi.cz/~devik/qos/qos.htm
http://www.netfilter.org/

Oliv'
 
Old 06-04-2004, 01:40 PM   #5
shrike_912
LQ Newbie
 
Registered: Jun 2004
Location: nepal
Posts: 26

Original Poster
Rep: Reputation: 15
huh..so every machine that runs on a network uses it. by the way can it be configured to get what i am trying to achieve? what do u think? this Qos thing..i need a li'l bit of more tutorial in it.. post me some links..

thanx for everything..
with regards,
bikash shrestha
 
Old 06-05-2004, 08:20 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Not all machines use it... only these which are configured to do it But you can configure (easily or not... everything depends on your skills) a gateway to do that. Personnaly, I have still tried to set up QoS mechanisms and it was quite easy... the real problem is to found the project/script which will fit your requirements. Because, there are csripts which can ease you the work, have a look at these links:
http://www.tldp.org/HOWTO/ADSL-Bandw...agement-HOWTO/ a very useful script if you have an ADSL connection... Of course, you can easily adapt it to fit your own requirements
http://sourceforge.net/projects/htbinit/ if you want to use an HTB based solution (According to me, for high rates only)
http://sourceforge.net/projects/cbqinit/ I never test it... but must be the equivalent of HTB for lower rates.

Hope this help you
Oliv'
 
  


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
IP bandwidth management RandomLinuxNewb Linux - Networking 1 07-23-2005 11:48 PM
Bandwidth management in a linux bridge abhinay Linux - Networking 1 04-16-2004 05:56 AM
bandwidth management in linux basbosco Linux - Networking 5 12-31-2003 03:18 PM
bandwidth management in linux basbosco Linux - Networking 1 11-06-2003 07:30 AM
Bandwidth management sunil_lc Linux - Networking 1 10-30-2003 10:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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