Connectivity Test

1. Overview

Currently we have two data centers located in Europe and Asia:

2. Latency test

Before we start you need to measure latency between SSP servers and TerraTraf servers.

Latency test consists of few steps:

  1. measure the latency using MTR Software
  2. measure the response time using the special bash command
  3. share test results with TerraTraf team

👍

Use the following IP addresses TerraTraf balancers

IP addresses balancers in Europe

sapi.bumlam.com has address 31.172.81.154
sapi.bumlam.com has address 31.172.81.173
sapi.bumlam.com has address 31.172.81.155
sapi.bumlam.com has address 31.172.81.161
sapi.bumlam.com has address 31.172.81.59
sapi.bumlam.com has address 31.172.81.61

1.Test using MTR Software

Packets               Pings
 Host                                           Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. static.49.110.4.46.clients.your-server.de    0.0%   408    0.3   0.3   0.2  12.8   0.9
 2. core21.hetzner.de                            0.0%   408    0.3   0.8   0.2  23.8   2.9
 3. core1.hetzner.de                             0.0%   408    4.9   4.9   4.8  14.8   0.5
 4. ae1.cr02.fra1.de.first-colo.net              0.0%   408    5.0   5.3   4.9  20.8   1.6
 5. cr03.fra1.de.first-colo.net                  0.0%   407   24.9  13.9   5.2  69.0  11.5
 6. stde21-40.fornex.org                         0.0%   407    5.0   4.9   4.9   5.3   0.0

📘

Download Link

You can download software from http://www.bitwizard.nl/mtr/

2. Test using special bash command

Use the following bash command to make latency test

for i in {1..1000}; do echo -e "Trying #$i" ; \
curl  -X POST -d @post_test.txt --connect-timeout 3 -w \
%{time_connect}:%{time_starttransfer}:%{time_total} http://sapi.bumlam.com/ ; \
echo -e ''; done > out.txt

This script makes a request to the DSP server and logging the response time by components

  • time to connect
  • the time when the data started to go
  • total time

🚧

The file post_test.txt has to contains example of bid request in JSON format from this chapter: https://adsniper.readme.io/docs/openrtb-integration-example

3. Production end-point

After the making latency test we will provide you production end-point URL, where you will send bid requests.

For real bid requests you should use end-point URL of form specify below

XXX - SSP code, which is usually the same as the name of the SSP

http://sapi.bumlam.com/ХХХ/

Checking DNS

🚧

DNS check

Important: IP addresses can be changed. Check them before test

For checking DNS addreses you should use the command nslookup


host sapi.bumlam.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:

sapi.bumlam.com has address 31.172.81.154
sapi.bumlam.com has address 31.172.81.173
sapi.bumlam.com has address 31.172.81.155
sapi.bumlam.com has address 31.172.81.161
sapi.bumlam.com has address 31.172.81.59
sapi.bumlam.com has address 31.172.81.61

We have prepared two groups balancers for test

The first group always responds with the http-code 204

http://sapi.bumlam.com/204/

The second group can deal with the real requests described on the documentation page

http://sapi.bumlam.com/sandbox/