Пример #1
0
    def _register_traces(cls):

        mactxrtsfailed = Trace(
            "MacTxRtsFailed",
            "The transmission of a RTS by the MAC layer has failed")

        cls._register_trace(mactxrtsfailed)

        mactxdatafailed = Trace(
            "MacTxDataFailed",
            "The transmission of a data packet by the MAC layer has failed")

        cls._register_trace(mactxdatafailed)

        mactxfinalrtsfailed = Trace(
            "MacTxFinalRtsFailed",
            "The transmission of a RTS has exceeded the maximum number of attempts"
        )

        cls._register_trace(mactxfinalrtsfailed)

        mactxfinaldatafailed = Trace(
            "MacTxFinalDataFailed",
            "The transmission of a data packet has exceeded the maximum number of attempts"
        )

        cls._register_trace(mactxfinaldatafailed)
Пример #2
0
    def _register_traces(cls):

        mactx = Trace(
            "MacTx",
            "Trace source indicating a packet has arrived for transmission by this device"
        )

        cls._register_trace(mactx)

        mactxdrop = Trace(
            "MacTxDrop",
            "Trace source indicating a packet has been dropped by the device before transmission"
        )

        cls._register_trace(mactxdrop)

        macpromiscrx = Trace(
            "MacPromiscRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a promiscuous trace,"
        )

        cls._register_trace(macpromiscrx)

        macrx = Trace(
            "MacRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,"
        )

        cls._register_trace(macrx)
Пример #3
0
    def _register_traces(cls):
        ping = Trace("ping", "Ping to the peer end")
        mtr = Trace("mtr", "Mtr to the peer end")
        traceroute = Trace("traceroute", "Tracerout to the peer end")

        cls._register_trace(ping)
        cls._register_trace(mtr)
        cls._register_trace(traceroute)
Пример #4
0
    def _register_traces(cls):

        tx = Trace("Tx", "Send DSR packet.")

        cls._register_trace(tx)

        drop = Trace("Drop", "Drop DSR packet")

        cls._register_trace(drop)
Пример #5
0
    def _register_traces(cls):

        enqueue = Trace("Enqueue", "Enqueue a packet in the queue.")

        cls._register_trace(enqueue)

        dequeue = Trace("Dequeue", "Dequeue a packet from the queue.")

        cls._register_trace(dequeue)

        drop = Trace("Drop", "Drop a packet stored in the queue.")

        cls._register_trace(drop)
Пример #6
0
    def _register_traces(cls):

        assoc = Trace("Assoc", "Associated with an access point.")

        cls._register_trace(assoc)

        deassoc = Trace("DeAssoc", "Association with an access point lost.")

        cls._register_trace(deassoc)

        txokheader = Trace("TxOkHeader",
                           "The header of successfully transmitted packet")

        cls._register_trace(txokheader)

        txerrheader = Trace("TxErrHeader",
                            "The header of unsuccessfully transmitted packet")

        cls._register_trace(txerrheader)

        mactx = Trace(
            "MacTx",
            "A packet has been received from higher layers and is being processed in preparation for queueing for transmission."
        )

        cls._register_trace(mactx)

        mactxdrop = Trace(
            "MacTxDrop",
            "A packet has been dropped in the MAC layer before being queued for transmission."
        )

        cls._register_trace(mactxdrop)

        macpromiscrx = Trace(
            "MacPromiscRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a promiscuous trace,"
        )

        cls._register_trace(macpromiscrx)

        macrx = Trace(
            "MacRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,"
        )

        cls._register_trace(macrx)

        macrxdrop = Trace(
            "MacRxDrop",
            "A packet has been dropped in the MAC layer after it has been passed up from the physical layer."
        )

        cls._register_trace(macrxdrop)
Пример #7
0
    def _register_traces(cls):
        pcap = Trace(
            "pcap",
            "Dump traffic sniffed on the network device in Pcap format")
        promisc_pcap = Trace(
            "promiscPcap",
            "Dump traffic sniffed in promiscuous mode on the network device in Pcap format"
        )
        ascii = Trace(
            "ascii",
            "Dump traffic sniffed on the network device in Ascii format")

        cls._register_trace(pcap)
        cls._register_trace(promisc_pcap)
        cls._register_trace(ascii)
Пример #8
0
    def _register_traces(cls):

        coursechange = Trace(
            "CourseChange",
            "The value of the position and/or velocity vector changed")

        cls._register_trace(coursechange)
Пример #9
0
    def _register_traces(cls):

        phytxbegin = Trace(
            "PhyTxBegin",
            "Trace source indicating a packet has begun transmitting over the channel medium"
        )

        cls._register_trace(phytxbegin)

        phytxend = Trace(
            "PhyTxEnd",
            "Trace source indicating a packet has been completely transmitted over the channel. NOTE: the only official WifiPhy implementation available to this date (YansWifiPhy) never fires this trace source."
        )

        cls._register_trace(phytxend)

        phytxdrop = Trace(
            "PhyTxDrop",
            "Trace source indicating a packet has been dropped by the device during transmission"
        )

        cls._register_trace(phytxdrop)

        phyrxbegin = Trace(
            "PhyRxBegin",
            "Trace source indicating a packet has begun being received from the channel medium by the device"
        )

        cls._register_trace(phyrxbegin)

        phyrxend = Trace(
            "PhyRxEnd",
            "Trace source indicating a packet has been completely received from the channel medium by the device"
        )

        cls._register_trace(phyrxend)

        phyrxdrop = Trace(
            "PhyRxDrop",
            "Trace source indicating a packet has been dropped by the device during reception"
        )

        cls._register_trace(phyrxdrop)

        monitorsnifferrx = Trace(
            "MonitorSnifferRx",
            "Trace source simulating a wifi device in monitor mode sniffing all received frames"
        )

        cls._register_trace(monitorsnifferrx)

        monitorsniffertx = Trace(
            "MonitorSnifferTx",
            "Trace source simulating the capability of a wifi device in monitor mode to sniff all frames being transmitted"
        )

        cls._register_trace(monitorsniffertx)
Пример #10
0
    def _register_traces(cls):

        drop = Trace(
            "Drop",
            "Packet dropped because not enough room in pending queue for a specific cache entry."
        )

        cls._register_trace(drop)
Пример #11
0
    def _register_traces(cls):

        phyrxdrop = Trace(
            "PhyRxDrop",
            "Trace source indicating a packet has been dropped by the device during reception"
        )

        cls._register_trace(phyrxdrop)
Пример #12
0
    def _register_traces(cls):

        txrxpointtopoint = Trace(
            "TxRxPointToPoint",
            "Trace source indicating transmission of packet from the PointToPointChannel, used by the Animation interface."
        )

        cls._register_trace(txrxpointtopoint)
Пример #13
0
    def _register_traces(cls):

        pathloss = Trace(
            "PathLoss",
            "This trace is fired whenever a new path loss value is calculated. The first and second parameters to the trace are pointers respectively to the TX and RX SpectrumPhy instances, whereas the third parameters is the loss value in dB. Note that the loss value reported by this trace is the single-frequency loss value obtained by evaluating only the TX and RX AntennaModels and the PropagationLossModel. In particular, note that SpectrumPropagationLossModel (even if present) is never used to evaluate the loss value reported in this trace. "
        )

        cls._register_trace(pathloss)
Пример #14
0
    def _register_traces(cls):

        tx = Trace("Tx", "Send ipv4 packet to outgoing interface.")

        cls._register_trace(tx)

        rx = Trace("Rx", "Receive ipv4 packet from incoming interface.")

        cls._register_trace(rx)

        drop = Trace("Drop", "Drop ipv4 packet")

        cls._register_trace(drop)

        sendoutgoing = Trace(
            "SendOutgoing",
            "A newly-generated packet by this node is about to be queued for transmission"
        )

        cls._register_trace(sendoutgoing)

        unicastforward = Trace(
            "UnicastForward",
            "A unicast IPv4 packet was received by this node and is being forwarded to another node"
        )

        cls._register_trace(unicastforward)

        localdeliver = Trace(
            "LocalDeliver",
            "An IPv4 packet was received by/for this node, and it is being forward up the stack"
        )

        cls._register_trace(localdeliver)
Пример #15
0
    def _register_traces(cls):

        tx = Trace(
            "Tx",
            "Send - packet (including 6LoWPAN header), SixLoWPanNetDevice Ptr, interface index."
        )

        cls._register_trace(tx)

        rx = Trace(
            "Rx",
            "Receive - packet (including 6LoWPAN header), SixLoWPanNetDevice Ptr, interface index."
        )

        cls._register_trace(rx)

        drop = Trace(
            "Drop",
            "Drop - DropReason, packet (including 6LoWPAN header), SixLoWPanNetDevice Ptr, interface index."
        )

        cls._register_trace(drop)
Пример #16
0
    def _register_traces(cls):

        mactx = Trace(
            "MacTx",
            "Trace source indicating a packet has arrived for transmission by this device"
        )

        cls._register_trace(mactx)

        macpromiscrx = Trace(
            "MacPromiscRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a promiscuous trace,"
        )

        cls._register_trace(macpromiscrx)

        macrx = Trace(
            "MacRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,"
        )

        cls._register_trace(macrx)

        sniffer = Trace(
            "Sniffer",
            "Trace source simulating a non-promiscuous packet sniffer attached to the device"
        )

        cls._register_trace(sniffer)

        promiscsniffer = Trace(
            "PromiscSniffer",
            "Trace source simulating a promiscuous packet sniffer attached to the device"
        )

        cls._register_trace(promiscsniffer)
Пример #17
0
    def _register_traces(cls):

        bstx = Trace(
            "BSTx",
            "A packet has been received from higher layers and is being processed in preparation for queueing for transmission."
        )

        cls._register_trace(bstx)

        bstxdrop = Trace(
            "BSTxDrop",
            "A packet has been dropped in the MAC layer before being queued for transmission."
        )

        cls._register_trace(bstxdrop)

        bspromiscrx = Trace(
            "BSPromiscRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a promiscuous trace,"
        )

        cls._register_trace(bspromiscrx)

        bsrx = Trace(
            "BSRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,"
        )

        cls._register_trace(bsrx)

        bsrxdrop = Trace(
            "BSRxDrop",
            "A packet has been dropped in the MAC layer after it has been passed up from the physical layer."
        )

        cls._register_trace(bsrxdrop)

        rx = Trace("Rx", "Receive trace")

        cls._register_trace(rx)

        tx = Trace("Tx", "Transmit trace")

        cls._register_trace(tx)
Пример #18
0
    def _register_traces(cls):

        tx = Trace("Tx", "A new packet is created and is sent")

        cls._register_trace(tx)
Пример #19
0
    def _register_traces(cls):
        log = Trace("log", "CCND log output")

        cls._register_trace(log)
Пример #20
0
    def _register_traces(cls):
        
        rx = Trace("Rx", "A packet has been received")

        cls._register_trace(rx)
Пример #21
0
    def _register_traces(cls):
        log = Trace("log", "CCND log output")
        status = Trace("status", "ccndstatus output")

        cls._register_trace(log)
        cls._register_trace(status)
Пример #22
0
    def _register_traces(cls):

        mactx = Trace(
            "MacTx",
            "Trace source indicating a packet has arrived for transmission by this device"
        )

        cls._register_trace(mactx)

        mactxdrop = Trace(
            "MacTxDrop",
            "Trace source indicating a packet has been dropped by the device before transmission"
        )

        cls._register_trace(mactxdrop)

        macpromiscrx = Trace(
            "MacPromiscRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a promiscuous trace,"
        )

        cls._register_trace(macpromiscrx)

        macrx = Trace(
            "MacRx",
            "A packet has been received by this device, has been passed up from the physical layer and is being forwarded up the local protocol stack.  This is a non-promiscuous trace,"
        )

        cls._register_trace(macrx)

        phytxbegin = Trace(
            "PhyTxBegin",
            "Trace source indicating a packet has begun transmitting over the channel"
        )

        cls._register_trace(phytxbegin)

        phytxend = Trace(
            "PhyTxEnd",
            "Trace source indicating a packet has been completely transmitted over the channel"
        )

        cls._register_trace(phytxend)

        phytxdrop = Trace(
            "PhyTxDrop",
            "Trace source indicating a packet has been dropped by the device during transmission"
        )

        cls._register_trace(phytxdrop)

        phyrxend = Trace(
            "PhyRxEnd",
            "Trace source indicating a packet has been completely received by the device"
        )

        cls._register_trace(phyrxend)

        phyrxdrop = Trace(
            "PhyRxDrop",
            "Trace source indicating a packet has been dropped by the device during reception"
        )

        cls._register_trace(phyrxdrop)

        sniffer = Trace(
            "Sniffer",
            "Trace source simulating a non-promiscuous packet sniffer attached to the device"
        )

        cls._register_trace(sniffer)

        promiscsniffer = Trace(
            "PromiscSniffer",
            "Trace source simulating a promiscuous packet sniffer attached to the device"
        )

        cls._register_trace(promiscsniffer)
Пример #23
0
    def _register_traces(cls):
        stdout = Trace("stdout", "Standard output stream", enabled = True)
        stderr = Trace("stderr", "Standard error stream", enabled = True)

        cls._register_trace(stdout)
        cls._register_trace(stderr)
Пример #24
0
    def _register_traces(cls):

        rtt = Trace("Rtt", "The rtt calculated by the ping.")

        cls._register_trace(rtt)