| Parameter name | Required | Default value | Description |
|---|---|---|---|
host | yes | - | Target Host domain name or IP |
port | yes | - | Target port number |
content | no | null | The content of the data to be sent. Support hex: prefix to send binary data |
timeout | no | 22000 | Overall timeout in milliseconds |
wait | no | 5000 | Wait timeout when receiving data, in milliseconds |
recv | no | null | IDentification of the response content expected to be received. If empty, do not wait for response |
ipVersion | no | null | IP version: IPv4 forces IPv4, IPv6 forces IPv6, the name must be ipVersion |
protocol | no | TCP | Transmission protocol: TCP or UDP |
debug | no | false | Whether to enable debugging Log |
| Indicator index | Indicator name | Calculation method |
|---|---|---|
| 0 | Total time spent | The total elapsed time from the start of the task to the completion of reception or timeout |
| 1 | DNS Time | The time it takes to resolve a domain name to an IP |
| 2 | Connection Establishment Time | TCP three-way handshake time (0 in UDP mode) |
| 3 | Send time | The time taken to return from calling send/sendto |
| 4 | Time to First Byte (TTFB) | The time taken from the completion of sending to the receipt of the first response data |
| 5 | Time to Last Byte | The time taken from the first packet to the completion of reception (connection closed or timed out) |
protocol:TCP (default): Send data after establishing a connection, and produce full indicators of DNS, connection, sending, first packet, and remaining packets.UDP: No connection establishment process, indicator 2 (Connection Establishment Time) is 0.content: Determines the content of data sent. Supports sending hexadecimal data directly in hex:303132 format. If it is empty, no data will be sent and the data will be directly waited for reception.wait: Socket timeout in receiving phase (SO_RCVTIMEO). If recv is not set and wait is 0, the receiving phase is skipped, and the first packet and remaining packet indicators are 0.recv: After configuration, the plug-in will search for matching content in the received data for simple protocol verification.host / port: If the host is a domain name, DNS resolution is performed first, and the output indicator is 1; if it is an IP, the DNS Time is 0.| Error code | meaning |
|---|---|
| 699000 | BasicError/Exception |
| 699001 | Connection failed |
| 699002 | Data sending failed |
| 699003 | Data verification failed |
| 699004 | Data verification Exception |
| 699005 | Failed to receive data |