Condividi tramite


IPGlobalStatistics.PacketReassemblyFailures Proprietà

Definizione

Ottiene il numero di pacchetti IP (Internet Protocol) il cui reassembly non è riuscito.

public:
 abstract property long PacketReassemblyFailures { long get(); };
public abstract long PacketReassemblyFailures { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract long PacketReassemblyFailures { get; }
member this.PacketReassemblyFailures : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.PacketReassemblyFailures : int64
Public MustOverride ReadOnly Property PacketReassemblyFailures As Long

Valore della proprietà

Valore Int64 che specifica il numero totale di pacchetti che non è stato possibile riassemblare.

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. Se alcuni frammenti vengono persi o non arrivano entro un determinato periodo di tempo, il riassemblaggio non riesce.

Si applica a