pktrace

Abstract

Sets a trace for the specified packet. Packet traces consist of statements indicating Kernel Procedures and selected Simulation Kernel actions applied to the specified packet.

Syntax

pktrace <pk_id>

Argument Type Description
<pk_id> integer numeric ID of the packet-of-interest
A packet ID can be obtained by using one of several methods: (1) estimating the index of packet creation (e.g., “the 100th packet”); (2) issuing the ODB command “pkmap all”; (3) observing a packet ID argument or return value in KP trace messages; (4) observing a packet ID during a previous run of the same simulation.

Details

A packet trace does not display any information about the KPs and actions which occur within the scope of the same event or process invocation as KPs and actions applied to the specified packet. An event which is associated with traced KPs and actions is indicated by an event banner which precedes the trace messages. Multiple packet traces can be active at the same time. A packet trace is active from the time it is set until it is suspended or deleted; it is not automatically deleted when its associated packet is destroyed. It is possible to define traces that will never generate output, either because the specified packet ID refers to a packet that is never created or that is destroyed prior to the invocation of this command. Traces can be suspended by the command susptrace, reactivated by acttrace, or deleted by deltrace.

Example

ODB> pktrace 42
Added trace #0: trace on packet with ID (42) (packet not in system)

ODB> cont

___________________________ (ODB 18.6.0: Event) ____________________________

    * Time   :  15.0 sec, [15s]
    * Event  :  execution ID (595), schedule ID (#485), type (self intrpt)
    * Source :  execution ID (474), top.pksw1.node_3.src [Objid=85] (processor)
    * Data   :  code (1)
    > Module :  top.pksw1.node_3.src [Objid=85] (processor) [process id: 5]

        +- op_pk_create_fmt (format_name)
        |       format name      (pksw2_format_ref)
        |       packet ID        (42)
        +-------

        +- op_pk_total_size_set (pkptr, total_size)
        |       packet ID        (42)
        |       total size       (1,024)
        |       completion code  (success)
        +-------

        +- op_pk_send (pkptr, outstrm_index)
        |       packet ID        (42)
        |       stream index     (0)
        |       event ID         (605)
         +-------

    ...

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com