If you specify TCP as the protocol when you add a listener to your Global Accelerator
(GA) instance, you can run cURL commands to test the acceleration performance.
Prerequisites
Before the test, make sure that the following conditions are met:
You have added a Transmission Control Protocol (TCP) listener. For more information,
see Add a listener.
You have added the listening port to a whitelist, such as a security group, of the
origin server.
Background information
GA supports layer-4 protocols such as TCP and User Datagram Protocol (UDP) to forward
requests. You can run cURL commands to test the acceleration performance of the TCP
listener. You cannot use the Internet Control Message Protocol (ICMP) Ping and TCPing
tools in the test.
Procedure
Open Command Prompt on a client in the region where the access point is located.
Before and after you use the GA service, on the command line, run the following command
to check the network latency between the client and the origin server:
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http[s]://<IP address or domain name of the origin server>[:<Listening port>]"
Where:
time_connect: the period of time that it takes to establish a TCP connection. Unit: seconds.
time_starttransfer: the start time of data transfer. The start time refers to the amount of time from
when the client sends a request to the backend server to when the first byte is sent
to the client. Unit: seconds.
time_total: the total connection time. The total connection time refers to the amount of time
from when the client sends a request to when the client receives the last byte from
the backend server. Unit: seconds.
Figure 1. Connection performance before GA is used
Figure 2. Connection performance after GA is used