LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-03-2013, 07:51 AM   #1
MortenOnDebian
LQ Newbie
 
Registered: Aug 2010
Posts: 14

Rep: Reputation: 1
How to use all IP-adresses


Hi,

I have just setup a captive portal using pfSense 2.0.2 (newest version). The goal is for the system to require authentication before granting clients internet access. This works as it should.

The system is going to handle around 400 clients and I need some way to stress test the system. One way I though about was to use some kind of software which asks for an IP-adress, changes mac and asks for a new one. This way one computer should be able to reserve as many IP's as wanted while providing me with information about
a) what happens when there are many almost simultaneous requests for IP adresses and
b) what happens when we reach 255+ clients

Unfortunately I do not know of any software running linux nor windows, which is able to do this. A change of the MAC-adresse will probably not be necessary, if the program just sends a random value for this field.

I have looked briefly at the DHCP protocol, but I must admit that it goes beyond my skills to create a client implementing all features. And I guess there must be some existing software which can do this.

Regards
 
Old 02-04-2013, 11:19 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,330
Blog Entries: 33

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
Before anyone would be able to assist you with your problem you must first know what your own problem is. Stress testing a system implies you know what you want to test. What are you actually trying to stress test?

Is it DHCP? Not a problem it's designed to handle millions of clients so 400 is barely a load spike (if any). No tools to benchmark on Linux? False... Google. DHCPTest-python would work on any system including Linux and was one of the first results for me.

Is it the web interface? There are plenty of stress testing tools and writing your own in Python would be easy. (Capybara, Selenium, PhantomJS, and others. Google. Quality Assurance tools comes to mind.)

What are the specs of the system managing the services? That would help determining your ability to handle the load (which I highly doubt is an issue at all).

Quote:
Originally Posted by MortenOnDebian View Post
a) what happens when there are many almost simultaneous requests for IP adresses and
Probably nothing. DHCP (the protocol) and dhcpd (the daemon) is designed to handle millions of clients.

Quote:
Originally Posted by MortenOnDebian View Post
b) what happens when we reach 255+ clients
This question is too ambiguous. What is the IP address range you're giving your clients (i.e. subnet)? If it's 192.168.1.0/24 then no, you will not be able to handle more than 254 clients and realistically not more than 253 clients because one of them is your DHCP server. You need to provide more information. If you're not sure about your networking abilities then just set your IP farm to be a 10.0.0.0/8 private network which supports 16,777,216 addresses. Google.

There are plenty of tools out there to test the components you suggest need testing. You just have to type a web search. Also, I'm not sure you even need to test considering the amount of clients you plan on supporting with your system. Instability of the system will likely come from another part of the system with such a light load. That's where you need to implement monitoring (something like Icinga, Zabbix, or other monitoring alternative). To get a real understanding of the system you must graph performance trends. This involves installing something like PNP4Nagios (works with Icinga) or munin. When you're stress testing how will you know what's going on if you don't record any data? Those are my suggestions.

SAM

Last edited by sag47; 02-04-2013 at 11:33 AM.
 
  


Reply


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
adresses in array vbx_wx Programming 3 11-12-2010 11:05 PM
how to sshd-syslog ip-adresses only womd Linux - Networking 2 04-18-2008 06:36 AM
2 NICS, 2 IP adresses.... howto? derekn Linux - Networking 1 11-03-2004 02:55 PM
Network IP Adresses greggery Linux - General 1 12-01-2003 03:30 PM
How do I forward IP Adresses? teeno Linux - Networking 2 07-16-2001 09:38 AM


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