Difference between revisions of "pCDN:Logfile"

From NMSL
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
== Log Filename ==
 +
 
The pCDN server creates several log files:
 
The pCDN server creates several log files:
 
* server.log -- contains debugging info, access logs, and route info (gathered by ping and traceroute packets)
 
* server.log -- contains debugging info, access logs, and route info (gathered by ping and traceroute packets)
 
* squid_access.log -- contains squid-like downloading logs
 
* squid_access.log -- contains squid-like downloading logs
 
Upon a pCDN server is launched, a new server.log is created. We avoid name conflicts by suffixing an integer to the filenames, e.g., server.log.3. The squid_access files support log rotations: squid_access.log is the current log file, squid_access.log.1 (the most recent) through squid_access.log.6 (the least recent) are historical logs. The pCDN server, by default, keeps 7 historical log files and creates a new log file every 24-hr.
 
Upon a pCDN server is launched, a new server.log is created. We avoid name conflicts by suffixing an integer to the filenames, e.g., server.log.3. The squid_access files support log rotations: squid_access.log is the current log file, squid_access.log.1 (the most recent) through squid_access.log.6 (the least recent) are historical logs. The pCDN server, by default, keeps 7 historical log files and creates a new log file every 24-hr.
 +
 +
== Stats Log Format ==
 +
 +
In pCDN, several measurements are taken and logged for further analysis. We list all stat log format in the following, where time durations (e.g., session time) are in msecs and data amounts (e.g., total transer size) are in bytes.
 +
 +
The general log format is
 +
'''date_and_time | received_timestamp | stats_type | stats_message''',  where the stats_message contains type-dependent fields.
 +
 +
Four types of statistics are supported:
 +
# ''Session Info'': data transfer counters, '''media | media_length | receiver | sender | time | transfer_size | ctrl_msg_# | session_time | total_transfer_size'''
 +
# ''Host Info'': hop distance and round-trip time from a receiver to all its potential senders, '''media | receiver | sender | hop_ip | hop_dist | rtt'''
 +
# ''Path Info'': hop distance and round-trip time for all intermediate routers between a receiver and its potential senders", '''media | receiver | sender | hop_ip | hop_dist | rtt'''
 +
# ''NAT Device Info'': NAT device model and the result of UPnP port mapping, '''successful port mapping? | external port | fw version | make | model | model number | device type (include all child devices) |'''
 +
 +
Examples of statistics:
 +
* true | 8888 | Ambit OS/1.0 UPnP/1.0 AMBIT-UPNP/1.0 | NETGEAR, Inc. | Residential Gateway | null | urn:schemas-upnp-org:device:InternetGatewayDevice:1 ; urn:schemas-upnp-org:device:WANDevice:1 ; urn:schemas-upnp-org:device:WANConnectionDevice:1 ;  |
 +
* true | 8888 | Linux/2.4.20 UPnP/1.0 | Linksys | Linksys WRH54G | Linksys WRH54G-01 | urn:schemas-upnp-org:device:InternetGatewayDevice:1 ; urn:schemas-upnp-org:device:WANDevice:1 ; urn:schemas-upnp-org:device:WANConnectionDevice:1 ;  |
 +
* true | 8888 | Embedded UPnP/1.0 | D-Link | D-Link Router | null | urn:schemas-upnp-org:device:InternetGatewayDevice:1 ; urn:schemas-upnp-org:device:WANDevice:1 ; urn:schemas-upnp-org:device:WANConnectionDevice:1 ;  |

Latest revision as of 10:10, 1 March 2008

Log Filename

The pCDN server creates several log files:

  • server.log -- contains debugging info, access logs, and route info (gathered by ping and traceroute packets)
  • squid_access.log -- contains squid-like downloading logs

Upon a pCDN server is launched, a new server.log is created. We avoid name conflicts by suffixing an integer to the filenames, e.g., server.log.3. The squid_access files support log rotations: squid_access.log is the current log file, squid_access.log.1 (the most recent) through squid_access.log.6 (the least recent) are historical logs. The pCDN server, by default, keeps 7 historical log files and creates a new log file every 24-hr.

Stats Log Format

In pCDN, several measurements are taken and logged for further analysis. We list all stat log format in the following, where time durations (e.g., session time) are in msecs and data amounts (e.g., total transer size) are in bytes.

The general log format is date_and_time | received_timestamp | stats_type | stats_message, where the stats_message contains type-dependent fields.

Four types of statistics are supported:

  1. Session Info: data transfer counters, media | media_length | receiver | sender | time | transfer_size | ctrl_msg_# | session_time | total_transfer_size
  2. Host Info: hop distance and round-trip time from a receiver to all its potential senders, media | receiver | sender | hop_ip | hop_dist | rtt
  3. Path Info: hop distance and round-trip time for all intermediate routers between a receiver and its potential senders", media | receiver | sender | hop_ip | hop_dist | rtt
  4. NAT Device Info: NAT device model and the result of UPnP port mapping, successful port mapping? | external port | fw version | make | model | model number | device type (include all child devices) |

Examples of statistics: