Common test methods for Ossim systems

Source: Internet
Author: User

Common test methods for Ossim systems

Ossim system consists of a number of open source security systems, for such a complex system, after deployment, the system exactly how, how stable? A series of questions that we need to test to know. In general, there are rigorous testing methods and procedures for testing and evaluating firewalls, intrusion detection tests, and I will only emulate the common log traffic and network packet traffic in the Ossim system, and also include the MySQL stress test The main purpose is to demonstrate the use of open source tools in both the log generator and the packet generator.

  First, the log generator

To test whether the Ossim system is able to accurately receive and parse syslog messages, we use an emulated syslog Server tool Syslog-slogger to send syslog messages to the system. Syslog-slogger is a Java-based command-line tool that allows users to set the destination address, sending interval, number of messages, etc. through its properties file, which is a simple, easy-to-use syslog Server. : http://chenguang.blog.51cto.com/350944/1580937 .

Several Syslog messages generated by the Syslog-slogger simulator are shown below.

#syslogs generated [email protected] espmessage Stats

%pix-3-211001:memory allocation Error [1]

%pix-5-106100:access-list acl-inside permitted UDP inside/192.168.120.2<101>-out side/192.168.150.20< 137> hit-cnt 1 <first hit> [1]

%pix-5-106100:access-list acl-inside permitted UDP inside/192.168.120.3<100>->out side/<192.168.150.21 <137> hit-cnt <first hit> [1]

%pix-1-101004 (Primary) Failover cable not connected (other unit) [1]

%pix-3-105006 (Primary) Link status Down interface inside [2]

%pix-5-109012:authen Session end:user abc,sid session_num,elapsed num seconds [1]

The above log is a syslog message generated by the Syslog-slogger simulator.

  Second, the packet generator

  1). Hyenae

Here is an open source tool that automatically generates a variety of packets, hyenae, a highly flexible and platform independent network packet generator: http://packetstormsecurity.com/UNIX/scanners/hyenae-0.35-2.tar.gz

It also supports a QT-based front end Hyenaefe support. It can be directly compiled and run under Backtrack 4/5, which is easier to install than a Debian Linux system. We use this tool to simulate large amounts of network traffic. If your unit is rich, you can purchase a fluke and ES network pass to test, and this open source tool and fluke Tester can be used to test the seven-tier application.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/30/wKiom1STxQLxXR3CAAUvyafCKnM003.jpg "title=" 1.png " alt= "Wkiom1stxqlxxr3caauvyafcknm003.jpg"/>

  2). MySQL Test

Mysqlslap is MySQL's own benchmark tool, it is written in Perl, similar to Apache bench load generation tool, generate schema, load data, execute Benckmark and query data, simple syntax, easy to use. The tool can simulate multiple clients concurrently issuing query updates to the server, giving performance test data and providing performance comparisons for multiple engines.

① using auto-generated script tests

  Example one:

  #mysqlslap –uroot–pxhsksvpjkj–concurrency=1000–iterations=1–auto-generate-sql–auto-generate-sql-load-type=mixed –auto-generate-sql-add-autoincrement–engine=myisam–number-of-queries=10–debug-info

This test with 1000 concurrent threads, test 1 times, automatically generate SQL test script, read and write update hybrid test, self-growth field, test engine for MyISAM, run 10 queries, output CPU resource information display results as follows (the meaning of the command parameter can be used Mysqlslap- Help to show):

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/30/wKiom1STxXeghMKGAAIzAOranGk126.jpg "title=" 2.png " alt= "Wkiom1stxxeghmkgaaizaorangk126.jpg"/>

  Example two:

Using the system's own script test, add auto_increment column, int4 column and char35 column, test the performance of 2 kinds of engine Myisam,innodb read 50, 200, 400 client to test the server for a total of 200 query statements to execute 20 queries.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/2D/wKioL1STxiPBagNiAAGp6PEQG-c341.jpg "title=" 3.png " alt= "Wkiol1stxipbagniaagp6peqg-c341.jpg"/>

From the first result shown, 50 concurrent clients averaged 4 queries per client for 20 queries with a minimum time of 0.170 seconds, up to 0.124 seconds, and an average of 0.263 seconds.

  Example three:

Here we can use the SQL script that comes with the Ossim system, for example

  #mysqlslap –create=/usr/share/doc/ossim-mysql/contrib./plugins/sap.sql–query=/usr/share/doc/ossim-mysql/contrib /plugins/sap.sql–concurrency=50,100,200–iterations=20–engine=myisam,innodb–socket=/var/run/mysqld/mysqld.sock– Uroot-pxhsksvpjkj

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/30/wKiom1STxYmSsg2RAAGXhf5CCOw955.jpg "title=" 4.png " alt= "Wkiom1stxymssg2raagxhf5ccow955.jpg"/>


More Ossim content, you can refer to the "Unix/linux Network log analysis and traffic monitoring" a book.

This article is from the "Lee Chenguang Original Technology blog" blog, please be sure to keep this source http://chenguang.blog.51cto.com/350944/1591718

Common test methods for Ossim systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.