I am using C# Ping class to ping a server.
If I send the ping with a buffer (say 10240 bytes), will the server come back with also the original 10240 bytes?
I ask this because I am measuring the latency between two endpoints, together with the data size (to see how much impact of the data size on the latency in Ping).
If I ping with 10240 bytes, will the server send the reply back with 10240 bytes, or just tell me that it receives, not with 10240 bytes?
the icmp reply should contain all the data.
Note that when you’re sending packets that big – it’ll likely get fragmented at the IP layer – and that can typically be expensive. e.g. TCP will try to not send packets that gets fragmented but slice the data up in segments fitting the MTU.