SNMP devices emulation
Asked Answered
D

5

5

We have network management system under linux, C/C++, perl and we need to test performance of this system. Is there a tool or way that would allow us to emulate 50 000 SNMP devices?

I don't know what more to say here... Please let me know if I should provide more information.

Any idea is appreciated.

Thank you Bogdan

Daric answered 7/4, 2009 at 17:49 Comment(0)
D
2

Thank you for your answers. Here's the way we solve this problem right now:

  1. We have a linux VM up with 1 interface (eth0).
  2. We add 50'000 virtual interfaces (eth0:1, eth0:2 etc).
  3. An SNMP daemon is up and replies on requests through all the ip addresses.

This way we have 50K IP adresses in the network that reply to SNMP requests.

Though, I'm investigating Raddle. Maybe if it suits we'll switch to this solution.

Thanks, Bogdan

Daric answered 19/6, 2009 at 15:1 Comment(2)
I have recently tried this approach, but it has a drawback: the SNMP agent (net-snmp) running on this machine provides information about all the virtual interfaces (in mib-2 ifTable, ipAddrTable, ipRouteTable,...), which can have some serious effects on the way the NMS handles these virtual hosts. So this approach is OK, as long as you do not use the above mentioned information to do some actions in NMS.Limousin
You'll also run into performance problems since it's single-threaded.Knighten
S
3

There are a few tools out there that will let you do that, however what I've seen is usually commercial software.

Seethrough answered 7/4, 2009 at 17:57 Comment(0)
L
3

You can try Raddle - it is open-source, written in Perl and based on honeyd, which should be able to emulate up to 65536 hosts.

Limousin answered 9/6, 2009 at 21:0 Comment(0)
D
2

Thank you for your answers. Here's the way we solve this problem right now:

  1. We have a linux VM up with 1 interface (eth0).
  2. We add 50'000 virtual interfaces (eth0:1, eth0:2 etc).
  3. An SNMP daemon is up and replies on requests through all the ip addresses.

This way we have 50K IP adresses in the network that reply to SNMP requests.

Though, I'm investigating Raddle. Maybe if it suits we'll switch to this solution.

Thanks, Bogdan

Daric answered 19/6, 2009 at 15:1 Comment(2)
I have recently tried this approach, but it has a drawback: the SNMP agent (net-snmp) running on this machine provides information about all the virtual interfaces (in mib-2 ifTable, ipAddrTable, ipRouteTable,...), which can have some serious effects on the way the NMS handles these virtual hosts. So this approach is OK, as long as you do not use the above mentioned information to do some actions in NMS.Limousin
You'll also run into performance problems since it's single-threaded.Knighten
H
1

If the devices are sending traps, you could use Net-SNMP's snmptrap to simulate the effects of that many traps being sent.

Hornbeck answered 7/4, 2009 at 17:58 Comment(0)
C
0

The snmpsim tool reportedly can sustain the simulation of ~50K agents. It can simulate different agents by responding at different IPs or to distinct SNMPv1/v2c community names or SNMPv3 context names.

There are also the hints on performance optimization.

Cockalorum answered 2/8, 2017 at 23:29 Comment(2)
All performance testing needs to consider many factors, including NMS-side power (eg. number of threads), query frequency, query makeyp (variables, type of request), simulator resources (CPUs, RAM, interfaces, ...), etc. Process context-switching is exceedingly expensive vs. threading. That's why there are commercial solutions for the most demanding simulations.Knighten
Absolutely, snmpsim is not the fastest SNMP simulator ever. On the other hand, you can roll out as many instances of snmpsim as you need on the cloud for a performance testing phase of your product. I'm not arguing with @GambitSupport over performance merits, just noting the options we've got. ;-)Cockalorum

© 2022 - 2024 — McMap. All rights reserved.