- #This program is used to calculate the packet loss rate for CBR program
- BEGIN {
- # Initialization. Set two variables. fsDrops: packets drop. numFs: packets sent
- fsDrops = 0;
- numFs = 0;
- }
- {
- action = $1;
- time = $2;
- #from = $4;
- #to = $5;
- # node_1=$4;
- # node_2=$5;
- type = $7;
- pktsize = $8;
- # flow_id = $8;
- # node_1_address=$10;
- # node_2_address=$11;
- # src = $4;
- # dst = $5;
- # seq_no = $11;
- packet_id = $8;
- #缁熻