Incrementing the Network Bytes Copied
If computer x's network device has not yet finished copying values to y, then increment the network bytes read by 1. More formally,
- byte at ID: x, cell #68 at time t = 1
- byte at ID: x, cell #67 at time t = y_decimal
- y in decimal = y_decimal
- network bytes read from computer: x at time t < byte at ID: x, cell #66 at time t
then network bytes read from computer: x at time (t + 1) = (network bytes read from computer: x at time t) + 1
If the network device has not yet finished, then that means it is still copying values (one at a time), so increment the network bytes read by 1.
For example, suppose that the following are true:
- network bytes read from computer: "B" at time 8 = 0
- byte at ID: "B", cell #50 at time 8 = 72
- byte at ID: "B", cell #66 at time 8 = 5
- byte at ID: "B", cell #67 at time 8 = 65
- byte at ID: "B", cell #68 at time 8 = 1
Network bytes read (0) is less than the data size (5).
Thus we conclude that:
network bytes read from computer: "B" at time (8 + 1) = (network bytes read from computer: "B" at time 8) + 1
Which simplifies to: network bytes read from computer: "B" at time 9 = 1
Click here for the full proof.
Try running the simulator below to see the NETWORK_A's "bytes read" count increase.
Comments
Please log in to add comments