IPGlobalStatistics.PacketReassembliesRequired Property

Gets the number of Internet Protocol (IP) packets that required reassembly.

Namespace:  System.Net.NetworkInformation
Assembly:  System (in System.dll)

public abstract long PacketReassembliesRequired { get; }

Property Value

Type: System.Int64
An Int64 value that specifies the total number of packet reassemblies required.

Packets that exceed the maximum size for IP transport are broken into fragments and reassembled at the destination.

The following code example displays reassembly statistics for IP packets.

public static void ShowFragmentationStatistics()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
    Console.WriteLine("  Reassembly Data:");
    Console.WriteLine("      Reassembly Timeout .................. : {0}", 
        ipstat.PacketReassemblyTimeout);
    Console.WriteLine("      Reassemblies Required ............... : {0}", 
        ipstat.PacketReassembliesRequired);
    Console.WriteLine("      Packets Reassembled ................. : {0}", 
        ipstat.PacketsReassembled);
    Console.WriteLine("      Packets Fragmented .................. : {0}", 
        ipstat.PacketsFragmented);
    Console.WriteLine("      Fragment Failures ................... : {0}", 
        ipstat.PacketFragmentFailures);
}
void ShowFragmentationStatistics()
{
    IPGlobalProperties* properties = IPGlobalProperties::GetIPGlobalProperties();
    IPGlobalStatistics* ipstat = properties->GetIPv4GlobalStatistics();
    Console::WriteLine(S"  Reassembly Data:");
    Console::WriteLine(S"      Reassembly Timeout .................. : {0}", __box(ipstat->PacketReassemblyTimeout));
    Console::WriteLine(S"      Reassemblies Required ............... : {0}", __box(ipstat->PacketReassembliesRequired));
    Console::WriteLine(S"      Packets Reassembled ................. : {0}", __box(ipstat->PacketsReassembled));
    Console::WriteLine(S"      Packets Fragmented .................. : {0}", __box(ipstat->PacketsFragmented));
    Console::WriteLine(S"      Fragment Failures ................... : {0}", __box(ipstat->PacketFragmentFailures));
}

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft