Method of Lazy Evaluation
This method is used in two cases in the bridge model to decrease the number of simulation events and therefore increase simulation efficiency. The Filtering Database contains entries for MAC addresses, which are learned when frames arrive at the bridge ports. These entries are timed out and deleted when their timer expires. Modeling this would require an interrupt for every single entry. In order to prevent this, every time an entry lookup is done in this database, the entry is evaluated to see whether it has expired. If expired, the entry is deleted; otherwise, the packet is routed according to the spanning tree algorithm.
A similar process is followed for removing packets which have exceeded a certain delay value at the port queues. When a packet arrives for service, its time spent in the queue will be evaluated. If this exceeds the recommended delay, the packet is discarded. This will prevent having timer interrupts for each packet in every port queue of the bridge.