IPGlobalStatistics.PacketReassemblyTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得網際協定(IP)封包所有片段必須在內抵達的最長時間。
public:
abstract property long PacketReassemblyTimeout { long get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long PacketReassemblyTimeout { get; }
public abstract long PacketReassemblyTimeout { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.PacketReassemblyTimeout : int64
member this.PacketReassemblyTimeout : int64
Public MustOverride ReadOnly Property PacketReassemblyTimeout As Long
屬性值
一個 Int64 指定封包所有片段必須在多大毫秒內抵達以避免被丟棄的數值。
- 屬性
範例
以下程式碼範例顯示 IP 封包的重組統計數據。
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傳輸最大容量的封包會被拆分成碎片,並在目的地重新組合。 若組成分段 IP 封包的所有片段未在允許時間內抵達,則封包將被丟棄。