This project is aimed generate TCP packets during a load test. The idea is to generate TCP packets to consumes network traffic while a load test is running This project has 2 disctinct components :
tcpPacketSender
: Custom action to add in NeoLoad to send tcp packets.tcpmockserver
: Service that will receive the tcp traffic . this service would need to be deployed in the same network route than your application
This custom action will allow you to add all the project information required in XRAY :
Host
(Required) : Host of the tcpmockserver to interact withPort
(Required): Port of the Tcp mockserverSize
(Required) : Number of bytes to send to the mock server
Depending on your objective you will be able to deploy several mockserver and interact directly wit then in the custom action
Property | Value |
---|---|
Maturity | Experimental |
Author | Neotys Partner Team |
License | BSD Simplified |
NeoLoad | 7.0 (Enterprise or Professional Edition w/ Integration & Advanced Usage and NeoLoad Web option required) |
Bundled in NeoLoad | No |
Download Binaries |
|
- Download the latest release for NeoLoad from version 7.0
- Read the NeoLoad documentation to see How to install a custom Advanced Action.
Once installed, how to use in a given NeoLoad project:
- Create a
tcpPacketSender
User Path. - Insert
tcpPacketSender
in theAction
block.
- Create a NeoLoad Population tcpPacketSender having only the userPath tcpPacketSender
Name | Description |
---|---|
Host |
Host of one of the tcp mock server |
Port |
Port of on of the tcp mock server |
Size |
Number of bytes to send to the mock server |
###Configuration
The tcpmockserver tcp service package in a container : hrexed/tcpmockserver
The container will require to define the Environement variables :
SERVER_PORT
: listening port of the tcp mock serverlogging-level
: Logging level of the service ( DEBUG, INFO, ERROR)
Requirements : Server having :
- docker installed
- docker-compose installed
THe deployment will use :
/deploy/docker-compose.yml
Make sure to update the docker-compose file by replacing the value of PORT_TO_REPLACE with your desired port. the deployment will be done by running the following command :
docker-compose -f <docker file> up -d