obliv-c icon indicating copy to clipboard operation
obliv-c copied to clipboard

Oblivious transfer Communication Traffic

Open mahmoudnabil opened this issue 7 years ago • 1 comments

Can I call some function that can report the total traffic sent and received during the protocol execution?

mahmoudnabil avatar Dec 04 '18 16:12 mahmoudnabil

There is a way to measure the total number of bytes sent at any given point in time. You can use that before and after any piece of code to figure out the traffic volume between those two points. Two steps:

  1. In your .c file, replace protocolConnectTcp2P with protocolConnectTcp2PProfiled. This will enable the counting logic.
  2. Use tcp2PBytesSent to get the number of bytes sent so far. Use from both ends to get both directions.

samee avatar Dec 07 '18 07:12 samee