forked from emmericp/MoonGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.lua
59 lines (54 loc) · 1.11 KB
/
examples.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
-- some flows from MoonGen/examples
Flow{"load-latency", Packet.Udp{
ethSrc = txQueue(),
ethDst = arp("10.1.0.10"),
ip4Src = range(ip"10.0.0.10", ip"10.0.0.14"),
ip4Dst = ip"10.1.0.10",
udpSrc = 1234,
udpDst = 319,
pktLength = 60
},
timestamp = true
}
Flow{"quality-of-service", Packet.Udp{
ethSrc = txQueue(),
ethDst = mac"10:11:12:13:14:15",
ip4Src = range(ip"192.168.0.1", ip"192.168.0.255"),
ip4Dst = ip"10.0.0.1",
udpSrc = 1234,
pktLength = 124
},
timestamp = true
}
Flow{"qos-foreground", Packet.Udp{
udpDst = 42
},
parent = "quality-of-service",
rate = 1000
}
Flow{"qos-background", Packet.Udp{
udpDst = 43
},
parent = "quality-of-service",
rate = 4000
}
Flow{"tcp-syn-flood4", Packet.Tcp4{
ethSrc = txQueue(),
ethDst = mac"12:34:56:78:90:00",
ip4Src = range(ip"10.0.0.1", ip"10.0.0.101"),
tcpSyn = 1,
tcpSeqNumber = 1,
tcpWindow = 10,
pktLength = 60
}
}
Flow{"tcp-syn-flood6", Packet.Tcp6{
ethSrc = txQueue(),
ethDst = mac"12:34:56:78:90:00",
ip6Src = range(ip"fe80::1", ip"fe80::101"),
tcpSyn = 1,
tcpSeqNumber = 1,
tcpWindow = 10,
pktLength = 74
}
}