IPGlobalStatistics.PacketsFragmented Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene il numero di pacchetti IP (Internet Protocol) frammentati.
public:
abstract property long PacketsFragmented { long get(); };
public abstract long PacketsFragmented { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long PacketsFragmented { get; }
member this.PacketsFragmented : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.PacketsFragmented : int64
Public MustOverride ReadOnly Property PacketsFragmented As Long
Valore della proprietà
Valore Int64 che specifica il numero totale di pacchetti frammentati.
- Attributi
Esempio
Nell'esempio di codice seguente vengono visualizzate le statistiche di riassemblaggio per i pacchetti 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
Commenti
I pacchetti che superano le dimensioni massime per il trasporto IP vengono suddivisi in frammenti e riassemblati nella destinazione.