You are on page 1of 3

The GTP replayer utility tool can be found here:

http://archiva:9001/#artifact-details-download-content/
com.evolvedintelligence.engine.sigfirewall.gtp/sig-firewall-gtp-pcap-replayer/1.1.4

#-server -Xms128m -Xmx512m -Djava.io.tmpdir=$INSTALL_DIR/tmp -XX:+UseG1GC -


Dlog4j2.configurationFile==sig-firewall-gtp-pcap-replayer-log4j2.xml -
Djavax.net.ssl.trustStore="$SIG_FIREWALL_GTP_TRUSTSTORE_PATH" -
Djavax.net.ssl.trustStorePassword="$SIG_FIREWALL_GTP_TRUSTSTORE_PASSWORD" \

Installation –

1. Copy the tar artefact onto a NIF or APP node.


2. Extract the tar artefact
$cd /opt/engine/
$ tar xvf <path-to-tar-file>/sig-firewall-gtp-pcap-replayer-1.1.4.tar

3. Configure the EWOK load director settings

$ cd /opt/engine/conf
$ cp examples/sig-firewall-gpt-pcap-replayer-ewok.properties .

Edit the provide sig-firewall-gtp-pcap-replayer-ewok.properties file to set site


specific values of the load director(s)
# Comma separated list of load director hosts
ewok.peer.clientHosts=127.0.0.1

# Comma separated list of load director ports


ewok.peer.clientPorts=13580
4. Configure the log file location

$ cd /opt/engine/conf
$ cp examples/sig-firewall-gpt-pcap-replayer-log4j.xml .

Edit the provide sig-firewall-gtp-pcap-replayer-log4j.xml file to set site specific


log file location
<!-- ************************************************************************** -->

<!-- * FILE - Application Messages * -->


<!-- ************************************************************************** -->
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="target/signalling-firewall-gtp-pcap-replayer.log" /> <!--
FIXME -->
<param name="Append" value="true" />
<param name="MaxFileSize" value="20MB" />
<param name="MaxBackupIndex" value="20" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd/MM/yyyy HH:mm:ss,SSS} %c{1} %p - %m%n"
/>
</layou

Running the Utility Application –

The application is called sigfirewallgtppcapreplayer and is installed in


/opt/engine/bin:
$ /opt/engine/bin/sigfirewallgtppcapreplayer

The following command line arguments are supported


-r <pcap file name> - Specifices the input pcap file. Multiple input files can be
specified, i.e. -r file1.pcap -r file2.pcap
-v0 - Only replay GTP V0 messages.
-v1 - Only replay GTP V1 messages.
-v2 - Only replay GTP V2 messages.
Note that these flags can be used in combination, i.e. '-v0 -v1' replays both V0
and V1 messages. If neither -v0, -v1, nor -v2 is specified then all packets
regardless of GTP version are replayed.

-m <messagetype> - Only replay GTP message of type <messagetype>. Multiple message


types can be specified, I.e. -m 32 - m 33
-p <port> - Only replay GTP message whose destination port is <port>. Multiple
message ports can be specified.
-s <ipAddress> - Only replay GTP message source IP is <ipAddress>. Multiple source
IP addresses can be specified
-d <ipAddress> - Only replay GTP message destination IP is <ipAddress>. Multiple
destination IP addresses can be specified
-b <burst> - Replay the GTP traffic in bursts of <burst> packets at a time
(defaults to 1)
-g <delay> - Inter burst gap in millseconds between sent traffic (default to 1000)
-g 5000 -b 10 -r pcap

So, for example the options -b10 -g 10 would send 10 packets in bursts of 10 every
10 milliseconds, i.e at an overall TPS of 1000
-l <loop> - Number of times to loop through the input pcap files (default 1)

/opt/engine/bin/sigfirewallgtppcapreplayer -r /opt/engine/bin/test_2G.pcap -l 1 -
v0

Example:

$ /opt/engine/bin/sigfirewallgtppcapreplayer -r gtp-traffic.pcap -b 20 -g 100 -l


1000
Would replay all the traffic from gtp-traffic.pcap 1000 times at a TPS of 200.
[engine@tcbrs1-app01 bin]$ ./launch_propertyencrypter.sh -op:e -val:engine
PropertyEncryptionHelper{_bUseDefaultValues=true, _sKeyValue='Mobileum',
_sKeyValueLength='128', _sSaltValue='mueliboM', _sPropertyValue='null',
_nIterationCount=40000}
[Property] Original: engine --> Encrypted:
QKUVH9U0s2pq9J/o2ueq2g==:h7Y8j1VK1a22eaSt2wkN9w==
[engine@tcbrs1-app01 bin]$

You might also like