The expected packets are stored in scored board by driver.
When ever the receiver sends a actual packet on to score board, the score board gets the expected packet out from the storage, where the driver has stored expected packets, using the packet id.
Then both expected packet and actual packet re compared. If any mismatch ,then the test failed is reported.
CODE: scoreboard.vr
class scoreboard{
//Declare a queue of packet to store the expected packets
packet exp_pkt[$];