50.1.11 Nam Trace File Format Lookup Table

This is a listing of all possible nam trace event codes and the flags associated with them. It was taken from the source code in the file parser.cc. You can generate your own table by running nam -p.

# : comment - this line is ignored    

T : Dummy event to be used in time synchronization    
  -t <time> time

n : node    
  -t <time> time
  -s <int> node id
  -v <shape> shape (circle, box, hexagon)
  -c <color> color
  -z <double> size of node
  -a <int> address
  -x <double> x location
  -y <double> y location
  -i <color> label color
  -b <string> label
  -l <string> label
  -o <color> previous color
  -S <string> state (UP, DOWN, COLOR)
  -L <string> previous label
  -p <string> label location
  -P <string> previous label location
  -i <color> inside label color
  -I <color> previous inside label color
  -e <color> label color
  -E <color> previous label color
  -u <string> x velocity
  -U <string> x velocity
  -V <string> y velocity
  -T <double> node stop time
  -w <flag> wireless node

l : link    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -r <double> transmission rate
  -D <double> delay
  -h <double> length
  -O <orientation> orientation
  -b <string> label
  -c <color> color
  -o <color> previous color
  -S <string> state (UP, DOWN)
  -l <string l> label
  -L <string> previous label
  -e <color> label color
  -E <color> previous label color

+ : enqueue packet    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> packet color attribute id
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

- : dequeue packet    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

h : hop    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type
  -R <double> wireless broadcast radius
  -D <double> wireless broadcast duration

r : receive    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type
  -R <double> wireless broadcast radius
  -D <double> wireless broadcast duration

d : drop line    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

E : session enqueue    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

D : session dequeue    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

P : session drop    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -e <int> extent
  -a <int> attribute
  -i <int> id
  -l <int> energy
  -c <string> conversation
  -x <comment> comment
  -p <string> packet type
  -k <string> packet type

a : agent    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -x <flag> remove agent
  -n <string> agent name

f : feature    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -x <flag> remove feature
  -T <char> type
  -n <string> name
  -a <string> agent
  -v <string> value
  -o <string> previous value

G : group    
  -t <time> time
  -n <string> name
  -i <int> node id
  -a <int> group id
  -x <flag> remove from group

L : lan link    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -o <orientation> orientation
  -O <orientation> orientation

m : mark node    
  -t <time> time
  -n <string> name
  -s <int> node id
  -c <string> color
  -h <string> shape (circle, square, hexagon)
  -X <flag> remove mark

R : routing event    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -g <int> multicast group
  -p <packet source> packet source id or *
  -n <flag> negative cache
  -x <flag> this route timed out
  -T <double> timeout
  -m <string> mode (iif or oif)

v : execute tcl expression    
  -t <time> time
  -e <tcl expression> tcl script

V : set trace file version    
  -t <time> time
  -v <string> time
  -a <int> time

N : use nam graph    

W : wireless range    
  -t <time> time
  -x <int> X
  -y <int> Y

g : energy status - for future use    
  -t <time> time

A : hierarchical address space configuration - initilization only    
  -t <time> time
  -n <int> hierarchy
  -p <int> port shift
  -o <hex> port mask
  -c <int> mulitcast shift
  -a <int> multicast mask
  -h <int> hierarchy
  -m <int> node shift
  -s <int> node mask

c : color table configuration - initialization only    
  -t <time> time
  -i <int> id
  -n <string> color

q : create packet queue - initialization only    
  -t <time> time
  -s <int> source id
  -d <int> destination id
  -a <orientation> orientaion

X : layout lan    
  -t <time> time
  -n <string> name
  -r <double> rate
  -D <double> delay
  -o <orientation> orientation
  -O <orientation> orientation

Tom Henderson 2014-12-17