Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 42 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"request": "launch",
"program": "${workspaceFolder}/build/scratch/ns3.40-rdma-simulator-debug",
"args": [
"config/demos/cc-tree4/cc-swift.json"
"config/demos/leaky-bucket.json"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand All @@ -118,9 +118,36 @@
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
}
]
},
{
"name": "(gdb) Launch rdma-simulator with config selection",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/scratch/ns3.40-rdma-simulator-debug",
"args": [
"${input:configFile}"
],
}
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"preLaunchTask": "Build",
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "${workspaceFolder}/build/lib/"
}
],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
],
"inputs": [
{
Expand All @@ -135,6 +162,18 @@
"minsizerel"
],
"default": "default"
},
{
"type": "pickString",
"id": "configFile",
"description": "Select configuration file",
"options": [
"config/demos/cc-tree4/cc-dcqcn.json",
"config/demos/cc-tree4/cc-swift.json",
"config/demos/cc-tree4/cc-ledbat.json",
"config/demos/cc-tree4/cc-harvest.json"
],
"default": "config/demos/cc-tree4/cc-dcqcn.json"
}
]
}
2 changes: 1 addition & 1 deletion config/demos/cc-tree4/cc-dcqcn.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"CongestionType": "ns3::RoCEv2Dcqcn",
"SendEnabled": true,
"TrafficPattern": "SendOnce",
"TrafficSizeBytes": 10000000,
"TrafficSizeBytes": 1000000,
"TrafficLoad": 0.0,
"DestFixed": true,
"DestinationNode": 4
Expand Down
154 changes: 154 additions & 0 deletions config/demos/leaky-bucket.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"inputFile": {
"topo": "config/topo/1to1.txt"
},
"outputFile": {
"resultFile": "output/*.json"
},
"runtimeConfig": {
"seed": 5,
"runningTime": "1s",
"stopTime": "10s"
},
"defaultConfig": {
"TcpL4Protocol": {
"SocketType": "ns3::TcpNewReno"
},
"TcpSocket": {
"DelAckCount": 1,
"InitialCwnd": 1,
"SndBufSize": 1073741823,
"RcvBufSize": 1073741823,
"SegmentSize": 1500
},
"TcpSocketBase": {
"Timestamp": false
},
"RoCEv2Timely": {
"Tlow": "32us",
"Thigh": "16us"
},
"RoCEv2Socket": {
"RetxMode": "GBN"
},
"RoCEv2SocketState": {
"MinRateRatio": 0.01
}
},
"globalConfig": {
"detailedSenderStats": false,
"detailedRetxStats": false,
"detailedQlengthStats": false,
"qlengthRecordInterval": "1000us",
"detailedThroughputStats": false,
"deviceThroughputRecordInterval": "10us"
},
"topologyConfig": {
"flowControlConfig": [
{
"nodes": "host",
"trafficControlLayer": "ns3::TrafficControlLayer",
"trafficControlLayerConfig": {},
"flowControlPort": "ns3::DcbPfcPort",
"flowControlPortConfig": {
"EnableIngressControl": true,
"EnableEgressControl": true,
"EnableVec": 255
},
"outerQueueDisc": "ns3::PausableQueueDisc",
"outerQueueDiscConfig": {
"FcEnabled": true
},
"innerQueueDisc": "ns3::FifoQueueDiscEcn",
"innerQueueDiscConfig": {
"MaxSize": "10MiB"
}
},
{
"nodes": "switch",
"bufferSize": "32MiB",
"bufferPerPort": "0.675MiB",
"numQueuePerPort": 8,
"numLosslessQueue": 2,
"trafficControlLayer": "ns3::DcbTrafficControl",
"trafficControlLayerConfig": {},
"flowControlPort": "ns3::DcbHpccPort",
"flowControlPortConfig": {
"EnableIngressControl": true,
"EnableEgressControl": true,
"EnableVec": 255
},
"flowControlMmuQueue": "ns3::DcbPfcMmuQueue",
"flowControlMmuQueueConfig": {
"ReserveSize": "4KiB",
"ResumeOffset": "3KiB",
"IsDynamicThreshold": true,
"DtShift": 2
},
"outerQueueDisc": "ns3::PausableQueueDisc",
"outerQueueDiscConfig": {
"FcEnabled": true
},
"innerQueueDisc": "ns3::FifoQueueDiscEcn",
"innerQueueDiscConfig": {
"EcnKMin": "400KiB",
"EcnKMax": "1600KiB",
"EcnPMax": 0.2
},
"prioRateLimits" :[
{"priority": 0, "rate": "5Gbps", "burstSize": 10000},
{"priority": 1, "rate": "5Gbps", "burstSize": 10000},
{"priority": 2, "rate": "5Gbps", "burstSize": 10000},
{"priority": 3, "rate": "5Gbps", "burstSize": 10000},
{"priority": 4, "rate": "5Gbps", "burstSize": 10000},
{"priority": 5, "rate": "5Gbps", "burstSize": 10000}, {"priority": 6, "rate": "5Gbps", "burstSize": 10000},
{"priority": 7, "rate": "5Gbps", "burstSize": 10000}
]
}
],
"linkConfig": [
{
"links": "0",
"rate": "10Gbps",
"delay": "3us"
}
]
},
"applicationConfig": [
{
"appType": "ns3::DcbTrafficGenApplication",
"nodes": "[0]",
"protocolGroup": "RoCEv2",
"applicationConfig":{
"CongestionType": "ns3::RoCEv2Dcqcn",
"SendEnabled": true,
"TrafficPattern": "SendOnce",
"TrafficSizeBytes": 10000000,
"FixedFlowArrive": true,
"DestFixed": true,
"DestinationNode": 1
},
"cdf": {
"cdfFile": "config/trace/WebSearch_distribution.txt",
"avgSize": 0,
"scaleFactor": 0
},
"socketConfig": {
"InnerPriority": 0
},
"startTime": "0.100s",
"stopTime": "0.11s",
"flowInterval": "0.0000s"
},
{
"NOTE": "Recevier side applciation",
"appType": "ns3::DcbTrafficGenApplication",
"nodes": "[1]",
"protocolGroup": "RoCEv2",
"applicationConfig":{
"SendEnabled": false
},
"startTime": "0.1s"
}
]
}
145 changes: 145 additions & 0 deletions config/demos/symmetric-hashing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"inputFile": {
"topo": "config/topo/1-1-4-1-1multipath.txt"
},
"outputFile": {
"resultFile": "output/*.json"
},
"runtimeConfig": {
"seed": 5,
"runningTime": "1s",
"stopTime": "10s"
},
"defaultConfig": {
"TcpL4Protocol": {
"SocketType": "ns3::TcpNewReno"
},
"TcpSocket": {
"DelAckCount": 1,
"InitialCwnd": 1,
"SndBufSize": 1073741823,
"RcvBufSize": 1073741823,
"SegmentSize": 1500
},
"TcpSocketBase": {
"Timestamp": false
},
"RoCEv2Timely": {
"Tlow": "32us",
"Thigh": "16us"
},
"RoCEv2Socket": {
"RetxMode": "GBN"
},
"RoCEv2SocketState": {
"MinRateRatio": 0.01
}
},
"globalConfig": {
"detailedSenderStats": false,
"detailedRetxStats": false,
"detailedQlengthStats": false,
"qlengthRecordInterval": "1000us",
"detailedThroughputStats": true,
"deviceThroughputRecordInterval": "10us"
},
"topologyConfig": {
"flowControlConfig": [
{
"nodes": "host",
"trafficControlLayer": "ns3::TrafficControlLayer",
"trafficControlLayerConfig": {},
"flowControlPort": "ns3::DcbPfcPort",
"flowControlPortConfig": {
"EnableIngressControl": true,
"EnableEgressControl": true,
"EnableVec": 255
},
"outerQueueDisc": "ns3::PausableQueueDisc",
"outerQueueDiscConfig": {
"FcEnabled": true
},
"innerQueueDisc": "ns3::FifoQueueDiscEcn",
"innerQueueDiscConfig": {
"MaxSize": "10MiB"
}
},
{
"nodes": "switch",
"bufferSize": "32MiB",
"bufferPerPort": "0.675MiB",
"numQueuePerPort": 8,
"numLosslessQueue": 2,
"trafficControlLayer": "ns3::DcbTrafficControl",
"trafficControlLayerConfig": {},
"flowControlPort": "ns3::DcbHpccPort",
"flowControlPortConfig": {
"EnableIngressControl": true,
"EnableEgressControl": true,
"EnableVec": 255
},
"flowControlMmuQueue": "ns3::DcbPfcMmuQueue",
"flowControlMmuQueueConfig": {
"ReserveSize": "4KiB",
"ResumeOffset": "3KiB",
"IsDynamicThreshold": true,
"DtShift": 2
},
"outerQueueDisc": "ns3::PausableQueueDisc",
"outerQueueDiscConfig": {
"FcEnabled": true
},
"innerQueueDisc": "ns3::FifoQueueDiscEcn",
"innerQueueDiscConfig": {
"EcnKMin": "400KiB",
"EcnKMax": "1600KiB",
"EcnPMax": 0.2
}
}
],
"linkConfig": [
{
"links": "0",
"rate": "10Gbps",
"delay": "3us"
}
]
},
"applicationConfig": [
{
"appType": "ns3::DcbTrafficGenApplication",
"nodes": "[0]",
"protocolGroup": "RoCEv2",
"applicationConfig":{
"CongestionType": "ns3::RoCEv2CreditSpary",
"SendEnabled": true,
"TrafficPattern": "SendOnce",
"TrafficSizeBytes": 1000000,
"FixedFlowArrive": true,
"DestFixed": true,
"DestinationNode": 7
},
"cdf": {
"cdfFile": "config/trace/WebSearch_distribution.txt",
"avgSize": 0,
"scaleFactor": 0
},
"socketConfig": {
"InnerPriority": 0
},
"startTime": "0.100s",
"stopTime": "0.11s",
"flowInterval": "0.0000s"
},
{
"NOTE": "Recevier side applciation",
"appType": "ns3::DcbTrafficGenApplication",
"nodes": "[7]",
"protocolGroup": "RoCEv2",
"applicationConfig":{
"SendEnabled": false
},
"startTime": "0.1s"
}
]
}
12 changes: 12 additions & 0 deletions config/topo/1-1-4-1-1multipath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
8 6 10
1 2 3 4 5 6
0 1 0
1 2 0
1 3 0
1 4 0
1 5 0
2 6 0
3 6 0
4 6 0
5 6 0
6 7 0
Loading