Measure Communication Costs in Flower Simulation

I want to do a comparison of the data exchanged between client server while using different algorithms.Is there any method i can measure/plot this out when running a flower simulation?