You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Auxiliary commands
Calculate connection time (connect)
Copy page
Download PDF
Calculate connection time (connect)
You can use the connect command to establish a network connection to a domain name or IP address via TCP, and then calculate the time it takes.​
Command syntax​
​
​
Linux/macOS
Windows
​
  • Calculate the time needed to connect to a domain name​
​
./tosutil connect domain ​
​
  • Calculate the time needed to connect to an IP address​
​
./tosutil connect ipaddress​
​
​
​
​
Description​
​
Parameter​
Type​
Description​
domain​
String​
The domain name of the host you want to check. For more information on TOS regions and endpoints, see Regions and endpoints.​
ipaddress​
String​
The IP address of the host you want to check.​
​
Examples​
Calculate the time needed to connect to a domain name​
Use the following command to calculate the time needed to establish a network connection to the TOS Beijing region host.​
  • Command​
​
./tosutil connect tos-cn-beijing.ivolces.com​
​
  • Output​
​
Resolve dns cost: 2 ms​
Build connection cost: 2 ms​
Total cost: 4 ms​
​
Resolved ip list:​
1: 100.64.**.**​
2: 100.64.**.**​
3: 100.64.**.**​
​
Calculate the time needed to connect to an IP address​
  • Command​
​
./tosutil connect 100.64.**.**​
​
  • Output​
​
Resolve dns cost: -1 ms​
Build connection cost: 1 ms​
Total cost: 1 ms​
​
​
Last updated: 2025.12.17 18:33:43