So, further to our discussion today about having measure bits in the definition of packet_t, I started working on my router test bench and was thinking about the packet structure.
I think the two extra fields that could be used are a measure bit, to indicate whether or not the packet has entered the network after the required warm up time, and a timestamp. Are there any more?
My packet_t definitions now looks something like this
I think Z_NODES may cause issues if it is not >1, but I will cross that bridge when I come to it. I guess it just needs surrounding with an if statement. But the second packet structure, which is similar to the one used by NEMU, is good.
Would any other fields be useful?
Obviously, anyone who wanted to use the network in a different situation would define there own packet_t, so I don't think it matters if we have fields specific to test?
So, further to our discussion today about having measure bits in the definition of
packet_t
, I started working on my router test bench and was thinking about the packet structure.I think the two extra fields that could be used are a measure bit, to indicate whether or not the packet has entered the network after the required warm up time, and a timestamp. Are there any more?
My packet_t definitions now looks something like this
I think Z_NODES may cause issues if it is not >1, but I will cross that bridge when I come to it. I guess it just needs surrounding with an if statement. But the second packet structure, which is similar to the one used by NEMU, is good.
Would any other fields be useful?
Obviously, anyone who wanted to use the network in a different situation would define there own packet_t, so I don't think it matters if we have fields specific to test?