IPGlobalStatistics.PacketsReassembled 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取重新组合的 Internet 协议 (IP) 数据包数。
public:
abstract property long PacketsReassembled { long get(); };
public abstract long PacketsReassembled { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long PacketsReassembled { get; }
member this.PacketsReassembled : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.PacketsReassembled : int64
Public MustOverride ReadOnly Property PacketsReassembled As Long
属性值
Int64 值,它指定已成功重新组合的分段数据包的总数。
- 属性
示例
下面的代码示例显示 IP 数据包的重新组装统计信息。
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 );
}
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);
}
Public Shared Sub ShowFragmentationStatistics()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim ipstat As IPGlobalStatistics = 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)
End Sub
注解
超出 IP 传输最大大小的会话层数据包将分解为片段并在目标处重新组合。 如果某些片段丢失或未在设定时间内到达,则重新组装不会成功。