Hi David, To collect port data, such as number of bytes, take a look at OF 'Port-status" message, which in Pox it is implemented by the ' 'ofp_stats_request' class. At wiki there is a example about it.
-- Att Lucas Brasilino MSc Student @ Federal University of Pernambuco (UFPE) / Brazil twitter: @lucas_brasilino