You can use this and find which NetworkInterface is used:
NetworkInterface.GetAllNetworkInterfaces Method (System.Net.NetworkInformation)
When you have done that you can call its GetIPv4Statistics method and read BytesReceived property before and after the webpage load and calculate total bytes received during this time.
on running the below code::
public static void DisplayDnsConfiguration()
{
NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface adapter in adapters)
{
IPInterfaceProperties properties = adapter.GetIPProperties();
Console.WriteLine(adapter.Description);
Console.WriteLine(" DNS suffix .............................. : {0}",
properties.DnsSuffix);
Console.WriteLine(" DNS enabled ............................. : {0}",
properties.IsDnsEnabled);
Console.WriteLine(" Dynamically configured DNS .............. : {0}",
properties.IsDynamicDnsEnabled);
}
Console.WriteLine();
}
im getting the below output,
please tell me which one is the correct nework interface
SSL Network Tunneling - Packet Scheduler Miniport
DNS suffix .............................. :
DNS enabled ............................. : False
Dynamically configured DNS .............. : True
NVIDIA nForce Networking Controller - Packet Scheduler Miniport
DNS suffix .............................. : ######
DNS enabled ............................. : False
Dynamically configured DNS .............. : True
MS TCP Loopback interface
DNS suffix .............................. :
DNS enabled ............................. : False
Dynamically configured DNS .............. : True