A flexible router for on-fly dynamic packet management in NetFPGA platform