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 Create 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

  1. Open Command Prompt on a client in the region where the access point is located.
  2. 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 between the time when a request is sent and when a TCP connection is established.
    • time_starttransfer: the period between the time when a request is sent and when the client receives the first byte returned by the origin server. After this period, the system starts to transmit data packets.
    • time_total: the period between the time when a request is sent and when the client receives the last byte returned by the origin server. This is the total time consumed for the communication between the client and the origin server.
    Figure 1. Connection performance before GA is used
    Connection performance before GA is used
    Figure 2. Connection performance after GA is used
    Connection performance after GA is used