Connectivity test

last update 2017-03-22

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 Adsniper servers.

Latency test consists of 2 steps

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

❗️

You need to make latency test between your servers and Adsniper servers in Europe and also between your servers and Adsniper servers in Asia

❗️

You have to make latency test on your PRODUCTION SERVERS, not personal computer

❗️

Use the following IP addresses Adsniper balancers

IP addresses balancers in Europe

europe.dc.adcloud.org 31.172.81.154
europe.dc.adcloud.org 31.172.81.155
europe.dc.adcloud.org 31.172.81.161
europe.dc.adcloud.org 31.172.81.173

IP addresses balancers in Asia

asia.dc.adcloud.org 88.208.30.162
asia.dc.adcloud.org 88.208.30.161

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://europe.dc.adcloud.org/ ; \
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.adsniper.ru/ХХХ/

Checking DNS

🚧

DNS check

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

For checking DNS addreses you should use the command nslookup

nslookup sapi.adsniper.ru 8.8.8.8
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	sapi.adsniper.ru
Address: 31.172.81.154
Name:	sapi.adsniper.ru
Address: 31.172.81.155
Name:	sapi.adsniper.ru
Address: 31.172.81.161
Name:	sapi.adsniper.ru
Address: 31.172.81.173

We have prepared two groups balancers for test

The first group always responds with the http-code 204

http://sapi.adsniper.ru/204/

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

http://sapi.adsniper.ru/sandbox/