Changes between Version 4 and Version 5 of 802.11/wlan_exp/log/entry_types


Ignore:
Timestamp:
Apr 16, 2014, 5:18:49 PM (10 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/log/entry_types

    v4 v5  
    2424# Copy and Paste Python Output Below
    2525}}}
    26 
    2726=== Entry Type NODE_INFO ===
    2827Details about the node hardware and its configuration. Node info values are static after boot.
     
    3231||=  Field Name  =||=  DataType  =||=  Description  =||
    3332|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    34 || node_type ||  uint32  || Node type as 4 byte value: [b0 b1 b2 b3]:[[BR]] b0: Always 0x00[[BR]] b1: Always 0x01 for 802.11 ref design nodes[[BR]] b2: CPU High application: 0x1 = AP, 0x2 = STA[[BR]] b3: CPU Low application: 0x1 = DCF ||
     33|| node_type ||  uint32  || Node type as 4 byte value: ![b0 b1 b2 b3]:![![BR]] b0: Always 0x00![![BR]] b1: Always 0x01 for 802.11 ref design nodes![![BR]] b2: CPU High application: 0x1 = AP, 0x2 = STA![![BR]] b3: CPU Low application: 0x1 = DCF ||
    3534|| node_id ||  uint32  || Node ID, as set during wlan_exp init ||
    3635|| hw_generation ||  uint32  || WARP hardware generation: 3 for WARP v3 ||
    37 || wn_ver ||  uint32  || WARPnet version, as packed bytes [0 major minor rev] ||
     36|| wn_ver ||  uint32  || WARPnet version, as packed bytes ![0 major minor rev] ||
    3837|| fpga_dna ||  uint64  || DNA value of node FPGA ||
    3938|| serial_num ||  uint32  || Serial number of WARP board ||
    40 || wlan_exp_ver ||  uint32  || wlan_exp version, as packed values [(u8)major (u8)minor (u16)rev] ||
     39|| wlan_exp_ver ||  uint32  || wlan_exp version, as packed values ![(u8)major (u8)minor (u16)rev] ||
    4140|| wlan_max_associations ||  uint32  || Maximum number of wireless associations allowed by node ||
    4241|| wlan_log_max_size ||  uint32  || Maximum size in bytes of node's event log ||
     
    7574|| rx_last_seq ||  uint16  || Sequence number of last packet received from device ||
    7675|| rx_last_power ||  int8  || Rx power in dBm of last packet received from device ||
    77 || rx_last_rate ||  uint8  || PHY rate index in [1:8] of last packet received from device ||
    78 || tx_phy_rate ||  uint8  || Current PHY rate index in [1:8] for new transmissions to device ||
    79 || tx_phy_antenna_mode ||  uint8  || Current PHY antenna mode in [1:4] for new transmissions to device ||
     76|| rx_last_rate ||  uint8  || PHY rate index in ![1:8] of last packet received from device ||
     77|| tx_phy_rate ||  uint8  || Current PHY rate index in ![1:8] for new transmissions to device ||
     78|| tx_phy_antenna_mode ||  uint8  || Current PHY antenna mode in ![1:4] for new transmissions to device ||
    8079|| tx_phy_power ||  int8  || Current Tx power in dBm for new transmissions to device ||
    8180|| tx_phy_flags ||  uint8  || Flags for Tx PHY config for new transmissions to deivce ||
     
    141140|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
    142141|| length ||  uint16  || Length of payload in bytes ||
    143 || rate ||  uint8  || PHY rate index, in [1:8] ||
     142|| rate ||  uint8  || PHY rate index, in ![1:8] ||
    144143|| power ||  int8  || Rx power in dBm ||
    145144|| fcs_result ||  uint8  || Checksum status, 0 = no errors ||
    146145|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
    147146|| chan_num ||  uint8  || Channel (center frequency) index ||
    148 || ant_mode ||  uint8  || Antenna mode: [1,2,3,4] for SISO Rx on RF [A,B,C,D] ||
    149 || rf_gain ||  uint8  || AGC RF gain setting: [1,2,3] for [0,15,30]dB gain ||
    150 || bb_gain ||  uint8  || AGC BB gain setting: [0:31] for approx [0:63]dB gain ||
     147|| ant_mode ||  uint8  || Antenna mode: ![1,2,3,4] for SISO Rx on RF ![A,B,C,D] ||
     148|| rf_gain ||  uint8  || AGC RF gain setting: ![1,2,3] for ![0,15,30]dB gain ||
     149|| bb_gain ||  uint8  || AGC BB gain setting: ![0:31] for approx ![0:63]dB gain ||
    151150|| flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
    152151|| mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
     
    169168|| tx_power ||  int8  || Tx power in dBm of final Tx attempt ||
    170169|| chan_num ||  uint8  || Channel (center frequency) index of transmission ||
    171 || rate ||  uint8  || PHY rate index in [1:8] of final Tx attempt ||
     170|| rate ||  uint8  || PHY rate index in ![1:8] of final Tx attempt ||
    172171|| length ||  uint16  || Length in bytes of MPDU; includes MAC header, payload and FCS ||
    173172|| result ||  uint8  || Tx result; 0 = ACK received or not required ||
     
    190189|| timestamp ||  uint64  || Microsecond timer value at time packet transmission actually started (PHY TX_START time) ||
    191190|| uniq_seq ||  uint64  || Unique sequence number of original MPDU ||
    192 || rate ||  uint8  || PHY rate index in [1:8] ||
    193 || ant_mode ||  uint8  || PHY antenna mode in [1:4] ||
     191|| rate ||  uint8  || PHY rate index in ![1:8] ||
     192|| ant_mode ||  uint8  || PHY antenna mode in ![1:4] ||
    194193|| tx_power ||  int8  || Tx power in dBm ||
    195194|| flags ||  uint8  || Tx PHY flags ||
     
    244243|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
    245244|| length ||  uint16  || Length of payload in bytes ||
    246 || rate ||  uint8  || PHY rate index, in [1:8] ||
    247 || power ||  int8  || Rx power in dBm ||
    248 || fcs_result ||  uint8  || Checksum status, 0 = no errors ||
    249 || pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
    250 || chan_num ||  uint8  || Channel (center frequency) index ||
    251 || ant_mode ||  uint8  || Antenna mode: [1,2,3,4] for SISO Rx on RF [A,B,C,D] ||
    252 || rf_gain ||  uint8  || AGC RF gain setting: [1,2,3] for [0,15,30]dB gain ||
    253 || bb_gain ||  uint8  || AGC BB gain setting: [0:31] for approx [0:63]dB gain ||
    254 || flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
    255 || chan_est ||  (64,2)i2  || OFDM Rx channel estimates, packed as [(uint16)I (uint16)Q] values, one per subcarrier ||
    256 || mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
    257 || mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
    258 
    259 ----
    260 
    261 
    262 >>>
    263 murphpo:~/svn_work/WARP/ReferenceDesigns/w3_802.11/python> python
    264 Python 2.7.6 |Anaconda 1.9.1 (x86_64)| (default, Jan 10 2014, 11:23:15)
    265 [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
    266 Type "help", "copyright", "credits" or "license" for more information.
    267 My python startup!
    268 >>> from wlan_exp.log.entry_types import log_entry_types as log_entry_types
    269 >>>
    270 >>> for lid in log_entry_types.keys():
    271 ...     if(type(lid) is int and lid != 0):
    272 ...         print(log_entry_types[lid].generate_entry_wiki_doc())
    273 ...
    274 === Entry Type NODE_INFO ===
    275 Details about the node hardware and its configuration. Node info values are static after boot.
    276 
    277 Entry type ID: 1
    278 
    279 ||=  Field Name  =||=  DataType  =||=  Description  =||
    280 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    281 || node_type ||  uint32  || Node type as 4 byte value: ![b0 b1 b2 b3]:![![BR]] b0: Always 0x00![![BR]] b1: Always 0x01 for 802.11 ref design nodes![![BR]] b2: CPU High application: 0x1 = AP, 0x2 = STA![![BR]] b3: CPU Low application: 0x1 = DCF ||
    282 || node_id ||  uint32  || Node ID, as set during wlan_exp init ||
    283 || hw_generation ||  uint32  || WARP hardware generation: 3 for WARP v3 ||
    284 || wn_ver ||  uint32  || WARPnet version, as packed bytes ![0 major minor rev] ||
    285 || fpga_dna ||  uint64  || DNA value of node FPGA ||
    286 || serial_num ||  uint32  || Serial number of WARP board ||
    287 || wlan_exp_ver ||  uint32  || wlan_exp version, as packed values ![(u8)major (u8)minor (u16)rev] ||
    288 || wlan_max_associations ||  uint32  || Maximum number of wireless associations allowed by node ||
    289 || wlan_log_max_size ||  uint32  || Maximum size in bytes of node's event log ||
    290 || wlan_mac_addr ||  uint64  || Node MAC address, 6 bytes in lower 48-bits of u64 ||
    291 || wlan_max_stats ||  uint32  || Maximum number of statistics structs maintained by node ||
    292 || ltg_resolution ||  uint32  || Minimum interval in microseconds of LTG schedules ||
    293 
    294 ----
    295 
    296 
    297 === Entry Type EXP_INFO ===
    298 Header for generic experiment info entries created by the user application. The payload of the EXP_INFO entry is not described by the Python entry type. User code must access the payload in the binary log data directly.
    299 
    300 Entry type ID: 2
    301 
    302 ||=  Field Name  =||=  DataType  =||=  Description  =||
    303 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    304 || info_type ||  uint16  || Exp info type (arbitrary value supplied by application ||
    305 || length ||  uint16  || Exp info length (describes arbitrary payload supplied by application ||
    306 
    307 ----
    308 
    309 
    310 === Entry Type STATION_INFO ===
    311 Information about an 802.11 association. At the AP one STATION_INFO is created for each associated STA and is logged whenever the STA association state changes. At the STA one STATION_INFO is logged whenever the STA associaiton state changes.
    312 
    313 Entry type ID: 3
    314 
    315 ||=  Field Name  =||=  DataType  =||=  Description  =||
    316 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    317 || mac_addr ||  6uint8  || MAC address of associated device ||
    318 || aid ||  uint16  || Association ID (AID) of device ||
    319 || host_name ||  20uint8  || String hostname (19 chars max), taken from DHCP DISCOVER packets ||
    320 || flags ||  uint32  || Association state flags: ??? ||
    321 || rx_last_timestamp ||  uint64  || Microsecond timer value at time of last successful Rx from device ||
    322 || rx_last_seq ||  uint16  || Sequence number of last packet received from device ||
    323 || rx_last_power ||  int8  || Rx power in dBm of last packet received from device ||
    324 || rx_last_rate ||  uint8  || PHY rate index in ![1:8] of last packet received from device ||
    325 || tx_phy_rate ||  uint8  || Current PHY rate index in ![1:8] for new transmissions to device ||
    326 || tx_phy_antenna_mode ||  uint8  || Current PHY antenna mode in ![1:4] for new transmissions to device ||
    327 || tx_phy_power ||  int8  || Current Tx power in dBm for new transmissions to device ||
    328 || tx_phy_flags ||  uint8  || Flags for Tx PHY config for new transmissions to deivce ||
    329 || tx_mac_num_tx_max ||  uint8  || Maximum number of transmissions (original Tx + re-Tx) per MPDU to device ||
    330 || tx_mac_flags ||  uint8  || Flags for Tx MAC config for new transmissions to device ||
    331 || padding ||  uint16  ||  ||
    332 
    333 ----
    334 
    335 
    336 === Entry Type NODE_TEMPERATURE ===
    337 Record of the FPGA system monitor die temperature. This entry is only created when directed by a wlan_exp command. Temperature values are stored as 32-bit unsigned integers. To convert to degrees Celcius, apply (((float)temp_u32)/(65536.0*0.00198421639)) - 273.15
    338 
    339 Entry type ID: 4
    340 
    341 ||=  Field Name  =||=  DataType  =||=  Description  =||
    342 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    343 || node_id ||  uint32  || wlan_exp node ID ||
    344 || serial_num ||  uint32  || Node serial number ||
    345 || temp_current ||  uint32  || Current FPGA die temperature ||
    346 || temp_min ||  uint32  || Minimum FPGA die temperature since FPGA configuration or sysmon reset ||
    347 || temp_max ||  uint32  || Maximum FPGA die temperature since FPGA configuration or sysmon reset ||
    348 
    349 ----
    350 
    351 
    352 === Entry Type WN_CMD_INFO ===
    353 Record of a WARPnet / wlan_exp command received by the node. The full command payload is logged, including any (possibly personal-info-carrying) parameters like MAC addresses.
    354 
    355 Entry type ID: 5
    356 
    357 ||=  Field Name  =||=  DataType  =||=  Description  =||
    358 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    359 || command ||  uint32  || WARPnet / wlan_exp command ID ||
    360 || src_id ||  uint16  || Node ID of device sending command ||
    361 || num_args ||  uint16  || Number of arguments supplied in command ||
    362 || args ||  10uint32  || Command arguments ||
    363 
    364 ----
    365 
    366 
    367 === Entry Type TIME_INFO ===
    368 Record of a time base event at the node. This log entry is used to enable parsing of log data recored before and after changes to the node's microsecond timer. This entry also allows a wlan_exp controler to write the current absolute time to the node log without affecting the node's timer value. This enables adjustment of log entry timestamps to real timestamps in post-proessing.
    369 
    370 Entry type ID: 6
    371 
    372 ||=  Field Name  =||=  DataType  =||=  Description  =||
    373 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    374 || time_id ||  uint32  || Random ID value included in wlan_exp TIME_INFO command; used to find common entries across nodes ||
    375 || reason ||  uint32  || Reason code for TIME_INFO log entry creation ||
    376 || new_time ||  uint64  || New value of microsecond timer value; 0xFFFFFFFFFFFFFFFF if timer was not changed ||
    377 || abs_time ||  uint64  || Absolute time in microseconds-since-epoch; 0xFFFFFFFFFFFFFFFF if unknown ||
    378 
    379 ----
    380 
    381 
    382 === Entry Type RX_DSSS ===
    383 
    384 
    385 Entry type ID: 11
    386 
    387 ||=  Field Name  =||=  DataType  =||=  Description  =||
    388 || timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
    389 || length ||  uint16  || Length of payload in bytes ||
    390 || rate ||  uint8  || PHY rate index, in ![1:8] ||
    391 || power ||  int8  || Rx power in dBm ||
    392 || fcs_result ||  uint8  || Checksum status, 0 = no errors ||
    393 || pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
    394 || chan_num ||  uint8  || Channel (center frequency) index ||
    395 || ant_mode ||  uint8  || Antenna mode: ![1,2,3,4] for SISO Rx on RF ![A,B,C,D] ||
    396 || rf_gain ||  uint8  || AGC RF gain setting: ![1,2,3] for ![0,15,30]dB gain ||
    397 || bb_gain ||  uint8  || AGC BB gain setting: ![0:31] for approx ![0:63]dB gain ||
    398 || flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
    399 || mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
    400 || mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
    401 
    402 ----
    403 
    404 
    405 === Entry Type TX ===
    406 Tx events in CPU High, logged for each MPDU frame created and enqueued in CPU High. See TX_LOW for log entries of actual Tx events, including re-transmissions. The time values in this log entry can be used to determine time in queue (time_to_accept), time taken by CPU Low for all Tx attempts (time_to_done) and total time from creation to completion (time_to_accept+time_to_done).
    407 
    408 Entry type ID: 20
    409 
    410 ||=  Field Name  =||=  DataType  =||=  Description  =||
    411 || timestamp ||  uint64  || Microsecond timer value at time packet was created, immediately before it was enqueued ||
    412 || time_to_accept ||  uint32  || Time duration in microseconds between packet creation and packet acceptance by CPU Low ||
    413 || time_to_done ||  uint32  || Time duration in microseconds between packet acceptance by CPU Low and Tx completion in CPU Low ||
    414 || uniq_seq ||  uint64  || Unique sequence number for Tx packet; 12 LSB of this used for 802.11 MAC header sequence number ||
    415 || num_tx ||  uint8  || Number of actual PHY Tx events which were used to transmit the MPDU (first Tx + all re-Tx) ||
    416 || tx_power ||  int8  || Tx power in dBm of final Tx attempt ||
    417 || chan_num ||  uint8  || Channel (center frequency) index of transmission ||
    418 || rate ||  uint8  || PHY rate index in ![1:8] of final Tx attempt ||
    419 || length ||  uint16  || Length in bytes of MPDU; includes MAC header, payload and FCS ||
    420 || result ||  uint8  || Tx result; 0 = ACK received or not required ||
    421 || pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
    422 || ant_mode ||  uint8  || PHY antenna mode of final Tx attempt ||
    423 || queue_id ||  uint8  || Tx queue ID from which the packet was retrieved ||
    424 || padding ||  2uint8  ||  ||
    425 || mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
    426 || mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
    427 
    428 ----
    429 
    430 
    431 === Entry Type TX_LOW ===
    432 Record of actual PHY transmission. At least one TX_LOW will be logged for every TX entry. Multiple TX_LOW entries may be created for the same TX entry if the low-level MAC re-transmitted the frame. The uniq_seq fields can be match between TX and TX_LOW entries to find records common to the same MPUD.
    433 
    434 Entry type ID: 21
    435 
    436 ||=  Field Name  =||=  DataType  =||=  Description  =||
    437 || timestamp ||  uint64  || Microsecond timer value at time packet transmission actually started (PHY TX_START time) ||
    438 || uniq_seq ||  uint64  || Unique sequence number of original MPDU ||
    439 || rate ||  uint8  || PHY rate index in ![1:8] ||
    440 || ant_mode ||  uint8  || PHY antenna mode in ![1:4] ||
    441 || tx_power ||  int8  || Tx power in dBm ||
    442 || flags ||  uint8  || Tx PHY flags ||
    443 || tx_count ||  uint8  || Transmission index for this attempt; 0 = initial Tx, 1+ = subsequent re-transmissions ||
    444 || chan_num ||  uint8  || Channel (center frequency) index ||
    445 || length ||  uint16  || Length in bytes of MPDU; includes MAC header, payload and FCS ||
    446 || num_slots ||  uint16  || Number of backoff slots allotted prior to this transmission; may not have been used for initial Tx (tx_count==0) ||
    447 || cw ||  uint16  || Contention window value at time of this Tx ||
    448 || pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
    449 || padding ||  3uint8  ||  ||
    450 || mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
    451 || mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
    452 
    453 ----
    454 
    455 
    456 === Entry Type TXRX_STATS ===
    457 Copy of the Tx/Rx statistics struct maintained by CPU High. If promiscuous statistics mode is Tx/Rx stats structs will be maintained for every unique source MAC address, up to the max_stats value. Otherwise statistics are maintaind only associated nodes.
    458 
    459 Entry type ID: 30
    460 
    461 ||=  Field Name  =||=  DataType  =||=  Description  =||
    462 || timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
    463 || last_timestamp ||  uint64  || Microsecond timer value at time of last Tx or Rx event to node with address mac_addr ||
    464 || mac_addr ||  6uint8  || MAC address of remote node whose statics are recorded here ||
    465 || associated ||  uint8  || Boolean indicating whether remote node is currently associated with this node ||
    466 || padding ||  uint8  ||  ||
    467 || data_num_rx_bytes ||  uint64  || Total number of bytes received in DATA packets from remote node ||
    468 || data_num_tx_bytes_success ||  uint64  || Total number of bytes successfully transmitted in DATA packets to remote node ||
    469 || data_num_tx_bytes_total ||  uint64  || Total number of bytes transmitted (successfully or not) in DATA packets to remote node ||
    470 || data_num_rx_packets ||  uint32  || Total number of DATA packets received from remote node ||
    471 || data_num_tx_packets_success ||  uint32  || Total number of DATA packets successfully transmitted to remote node ||
    472 || data_num_tx_packets_total ||  uint32  || Total number of DATA packets transmitted (successfully or not) to remote node ||
    473 || data_num_tx_packets_low ||  uint32  || Total number of PHY transmissions of DATA packets to remote node (includes re-transmissions) ||
    474 || mgmt_num_rx_bytes ||  uint64  || Total number of bytes received in management packets from remote node ||
    475 || mgmt_num_tx_bytes_success ||  uint64  || Total number of bytes successfully transmitted in management packets to remote node ||
    476 || mgmt_num_tx_bytes_total ||  uint64  || Total number of bytes transmitted (successfully or not) in management packets to remote node ||
    477 || mgmt_num_rx_packets ||  uint32  || Total number of management packets received from remote node ||
    478 || mgmt_num_tx_packets_success ||  uint32  || Total number of management packets successfully transmitted to remote node ||
    479 || mgmt_num_tx_packets_total ||  uint32  || Total number of management packets transmitted (successfully or not) to remote node ||
    480 || mgmt_num_tx_packets_low ||  uint32  || Total number of PHY transmissions of management packets to remote node (includes re-transmissions) ||
    481 
    482 ----
    483 
    484 
    485 === Entry Type RX_OFDM ===
    486 
    487 
    488 Entry type ID: 10
    489 
    490 ||=  Field Name  =||=  DataType  =||=  Description  =||
    491 || timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
    492 || length ||  uint16  || Length of payload in bytes ||
    493245|| rate ||  uint8  || PHY rate index, in ![1:8] ||
    494246|| power ||  int8  || Rx power in dBm ||
     
    506258----
    507259
     260