简体   繁体   中英

Is there a way to convert a ping (icmp) packet to a TCP packet?

I want the PING package to go through the proxy program, but the program only supports forwarding packets from the TCP layer and does not support forwarding ICMP packets.

Is there any solution?

If you need a tool, you can use a software like psping , paping and tcping . They test time response similar as ICMP Ping but over TCP.

If you need to implement by hand, you may use SYN package and its response (SYN ACK) to measure. For C#, this thread is discussing the implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM