Link Speed ​​/ Bandwidth Detection in .net / WCF

I write client and server code using WCF, where I need to know the "perceived" bandwidth of the traffic between the client and server. I could use ping statistics to collect this information separately, but I am wondering if there is a way to configure channel stacks in WCF so that the same statistics can be collected at the same time when performing my web service requests. This would be especially useful when ICMP is disabled (for example, ping does not work).

In short, when making my usual business-related web services calls (more precisely, REST calls), is there a way to collect connection speed data implicitly?

Of course, I could take the time to travel in a web service compared to the size of the data used around the world to give me an idea of ​​the bandwidth - but I won’t know how much of this perceived bandwidth is connected to the network, or just due to server processing delay. I could possibly solve this if the server returns a time delta representing the server latency so that the client can calculate the actual time of network traffic. If a more sophisticated approach is not available, this may be my answer ...

+3
source share
1 answer

ICMP , , .

, , REST- ICMP-, / .

, , Windows XP. .

0

Source: https://habr.com/ru/post/1746636/


All Articles