I'm trying to send the first K packets of each newly arrival flow to the SDN controller, e.g. pox or ryu. Currently, the packet-in method seems to be triggered at the moment of a new flow arrives to an OpenFlow switch, however, it can only send the first packet to the controller.
Is there any solution that makes the packet-in able to send the first K packets from each new flow to the network controller?
Any suggestion will be highly appreciated.