2 # we need to know (usual) packet size to convert byte numbers
8 # print out per-packet data in the form:
19 tim = t[1]*3600 + t[2]*60 + t[3]
22 strtSeq = substr($6,1,i-1)
23 id = 1.5 + (strtSeq - 1) / packetsize
27 if (firstSend[id] == 0) {
35 id = 1 + ($7 - 2) / packetsize
38 if (firstAck[id] == 0)
45 print "# " maxId " chunks. " totalPackets " packets sent. " \
47 # for packets that were implicitly acked, make the ack time
48 # be the ack time of next explicitly acked packet.
49 for (i = maxId-1; i > 0; --i)
50 while (i > 0 && firstAck[i] == 0) {
51 lastAck[i] = firstAck[i] = firstAck[i+1]
55 for (i = 1; i <= maxId; i++)
56 printf "%d\t%d\t%.2f\t%.2f\t%.2f\t%.2f\t%d\t%d\n",\
58 firstSend[i] - tzero, lastSend[i] - tzero,\
59 firstAck[i] - tzero, lastAck[i] - tzero,\
60 timesSent[i], timesAcked[i]