inet-tub / ns3-datacenter

104 stars 32 forks source link

Incast experiment #18

Open guirenbenxin opened 1 month ago

guirenbenxin commented 1 month ago

Hello, I want to simulate the incast 255:1 scene. Can you provide the corresponding flow file, or how should I set my flow?

vamsiDT commented 1 month ago

Hi,

Please refer to the format in flow-burstExp.txt, each line is as follows:

srcNode DstNode pg port flowsize startTime and the first line in the file corresponds to the number of flows.

To simulate 255:1, you could specify 255 at the top of the file and generate 255 flows towards the same receiver:

#!/bin/bash

N=255
RECEIVER=16

echo $N

for SENDER in $(seq 1 $N);do
    if [ $SENDER -eq $RECEIVER ]; then
        continue
    fi
    echo "$SENDER $RECEIVER 3 $(( 10000+$SENDER )) 1000000000000 0.15"
done