As Seth has said, this is pretty much a perfect match for Netflow or IPFIX (which is more or less the "New" version of Netflow). You want a netflow probe to convert seen packet data to netflow records. And then a collector to grab the netflow records and save them to some form of database. The collector will normally have a means of displaying the data.
Many high end switches and routers have probe capability, so depending on your hardware, you might already have this.
If not, the following open-source software may be useful
ntop, has both a probe and a collector that can display the collected data in various formats. It has GUI to enable you to drive it.
fprobe is able to capture packets (using libpcap like wirehark) and create netflow records.
flow-tools is a set of tools that can capture netflow and process it to produce reports similar to what you require. (It is CLI only)