Simulation of IBSS Base Station Server Load
Download the NTRIP_Server_Load system.
While it is not a common thing that people would want, there is some times when you want to simulate load on a NTRIP caster, there is the system for NTRIP client load which is generally more useful but for some cases you want to be able to simulate GPS/GNSS base stations.
The system is implemented as a bash script, which was mainly done since it was to be run on a LINUX host, it is an interesting example of what can be done in a script.
USAGE: Just run NTRIP_Server_Load.sh from the command line.
The system is controlled by environment variables, which are set in the
configuration file. (If you need to run multiple at the same time pass a parameter)
Note that while it is called NTRIP load, it is is really a Trimble IBSS tester, the only difference being how the username and URL’s are formed.
Configuration File Settings
The parameters are as follows.
Data Source Information
0 : Use a real source of GPS data
1 : Generate Fake data load.
Fake load is useful to just load up the server, but has the down side in that it means you can not use a GPS receiver as a test. You might want to use a combination of fake and real load.
Faked Load is human readable and of fixed length with a single line per second which makes checking for the number of records received as simple as a line count
n : Bytes per second of data to send when generating a fake load.
SOURCE_SERVER & SOURCE_PORT
The Server and port of a raw TCP socket that will provide the data that is sent to the caster. This source can be from any TCP connection, generally a CMR stream from a real receiver is used. There is only a single connection to the source server, it is recommended that this be a local connection.
When sending data
0 : Send as a standard un-chunked stream
1 : Send the data in chunks
I believe that NTRIP2 servers should be chunked, but depending on the caster or proxy it may not be supported. It shouldn’t make any real difference. Chunking is designed so that the server knows when a full packet of data has been sent. Without chunking then the caster will just decent what is a packet
IBSS Caster Connection Settings
User name for the NTRIP server
Password for the NTRIP server.
Not used at the moment
NOTE: User and password are not currently supported today.
The user name is fixed at SPS852-GAMELC1003
The password is fixed as password
The organization that the user belongs to
The base part of the DNS name, name suffix for the caster. ibss.trimbleos.com
When Server load is being generated you will have a number of simultaneous connections the number of connections defined by the FIRST_SERVER and LAST_SERVER, with the number of servers being Last-First.
The server number should be unique among all simultaneous connections, as some files are created for each server connection and having two with the same number will confuse the reporting.
FIRST_SERVER and LAST_SERVER
Integer: THe number for the server, servers will be between FIRST_SERVER and LAST_SERVER
0: Leave Temporary Files after test.
1: Delete Temporary Files after test, recommended
Test Time in Seconds
The delay, in seconds between NTRIP Server simulated loads
Directory location that temp files shold be stored in /tmp is generally best or .
This generates a lot of processes, which a modern computer doesn’t have a lot of problems with, standard Linux installations can easily support 100 simulated NTRIP servers in a single test.
Mac OS X has limits that means you can simulate about 40 connections per test, you CAN have multiple tests running at once, or change the limits