📄 diffserv.dml
字号:
#examples\gmpls\diffserv_over_mpls_te\DiffServ.dml with WFQ Scheduler
#
#
#Client LER LER Server
#100(0)---(0) (1)---(0)101
#102(0)---(1)110(3)--+ +--(0)111(2)---(0)103
#104(0)---(2) | LSR LSR | (3)---(0)105
# LER +--(0)120 121(1)--+ LSR
#150(0)---(0) +--(1)(3) (2)(3)--+ (1)---(0)151
#152(0)---(1)112(3)--+ | | +--(0)113(2)---(0)153
#154(0)---(2) | | (3)---(0)155
# | |
# | |
#Client LER | | LER Server
#200(0)---(0)210(1)--+ (3) (2) +--(0)211(1)---(0)201
# LER +--(0)220(2)--------(0)221(1)--+ LSR
#202(0)---(0)212(1)-----(1)LSR LSR(3)-----(0)213(1)---(0)203
Net [
frequency 20000000
ospf_area 0
AS_status boundary
lsaoptions [
unreserved_bandwidth "true"
]
host [
id 1000
graph [
ProtocolSession [name ip use gov.nist.antd.ssf.os.IP]
ProtocolSession [name TEManager use gov.nist.antd.mpls.mgmt.traffic_eng.TEManager
CRLDPInfo [
#LSP between 210 and 211
LSP [
pathID LSP210-211-WFQ
SetUpTime 15
Weight 150
FEC [ SrcTGId 200 SrcPortMin 0 SrcPortMax 20000
DestTGId 201 DestPortMin 0 DestPortMax 20000 ]
TrafficParameters [PDR 200000 PBS 30000 CDR 150000 CBS 20000 EBS 0]
# PDR, CDR : bps PBS, CBS, EBS : bytes
TEPath [
SrcID 210
DestID 211
]
]
LSP [
pathID LSP211-210-WFQ
SetUpTime 15
Weight 150
FEC [ SrcTGId 201 SrcPortMin 0 SrcPortMax 20000
DestTGId 200 DestPortMin 0 DestPortMax 20000 ]
TrafficParameters [PDR 200000 PBS 30000 CDR 150000 CBS 20000 EBS 0]
TEPath [
SrcID 211
DestID 210
]
]
#LSP between 212 and 213
LSP [
pathID LSP212-213-WFQ
SetUpTime 16
Weight 150
FEC [ SrcTGId 202 SrcPortMin 0 SrcPortMax 20000
DestTGId 203 DestPortMin 0 DestPortMax 20000 ]
TrafficParameters [PDR 200000 PBS 30000 CDR 150000 CBS 20000 EBS 0]
TEPath [
SrcID 212
DestID 213
]
]
LSP [
pathID LSP213-212-WFQ
SetUpTime 16
Weight 150
FEC [ SrcTGId 203 SrcPortMin 0 SrcPortMax 20000
DestTGId 202 DestPortMin 0 DestPortMax 20000 ]
TrafficParameters [PDR 200000 PBS 30000 CDR 150000 CBS 20000 EBS 0]
TEPath [
SrcID 213
DestID 212
]
]
]
]
]
]
traffic [
pattern [
client 100
servers [nhi 101(0) port 10]
]
pattern [
client 102
servers [nhi 103(0) port 10]
]
pattern [
client 104
servers [nhi 105(0) port 10]
]
pattern [
client 150
servers [nhi 151(0) port 10]
]
pattern [
client 152
servers [nhi 153(0) port 10]
]
pattern [
client 154
servers [nhi 155(0) port 10]
]
pattern [
client 200
servers [nhi 201(0) port 10]
]
pattern [
client 202
servers [nhi 203(0) port 10]
]
]
randomstream [
generator "MersenneTwister"
stream "seedstarter1"
reproducibility_level "timeline"
]
# ------------------------------------------------------------- LINKS
# client link connection
link [attach 100(0) attach 110(0) delay 0.005]
link [attach 102(0) attach 110(1) delay 0.005]
link [attach 104(0) attach 110(2) delay 0.005]
link [attach 150(0) attach 112(0) delay 0.005]
link [attach 152(0) attach 112(1) delay 0.005]
link [attach 154(0) attach 112(2) delay 0.005]
link [attach 200(0) attach 210(0) delay 0.005]
link [attach 202(0) attach 212(0) delay 0.005]
# server link connection
link [attach 101(0) attach 111(1) delay 0.005]
link [attach 103(0) attach 111(2) delay 0.005]
link [attach 105(0) attach 111(3) delay 0.005]
link [attach 151(0) attach 113(1) delay 0.005]
link [attach 153(0) attach 113(2) delay 0.005]
link [attach 155(0) attach 113(3) delay 0.005]
link [attach 201(0) attach 211(1) delay 0.005]
link [attach 203(0) attach 213(1) delay 0.005]
#LER110
link [attach 110(3) attach 120(0) delay 0.005]
#LSR111
link [attach 111(0) attach 121(1) delay 0.005]
#LER112
link [attach 112(3) attach 120(1) delay 0.005]
#LER113
link [attach 113(0) attach 121(3) delay 0.005]
#LER210
link [attach 210(1) attach 220(0) delay 0.005]
#LER211
link [attach 211(0) attach 221(1) delay 0.005]
#LER212
link [attach 212(1) attach 220(1) delay 0.005]
#LER213
link [attach 213(0) attach 221(3) delay 0.005]
#LSR120
link [attach 120(3) attach 220(3) delay 0.005]
#LSR121
link [attach 121(2) attach 221(2) delay 0.005]
#LSR220
link [attach 220(2) attach 221(0) delay 0.005]
# ------------------------------------------------------------- Client-Server
host [ #Client
id 100
_find .dictionary.TGClient_s50.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 101(0) interface 0 next_hop 110(0)]
]
host [ #Server
id 101
_find .dictionary.TGServer_e450.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 100(0) interface 0 next_hop 111(1)]
]
host [ #Client
id 102
_find .dictionary.TGClient_s50.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 103(0) interface 0 next_hop 110(1)]
]
host [ #Server
id 103
_find .dictionary.TGServer_e400.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 102(0) interface 0 next_hop 111(2)]
]
host [ #Client
id 104
_find .dictionary.TGClient_s50.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 105(0) interface 0 next_hop 110(2)]
]
host [ #Server
id 105
_find .dictionary.TGServer_e450.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 104(0) interface 0 next_hop 111(3)]
]
host [ #Client
id 150
_find .dictionary.TGClient_s50.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 151(0) interface 0 next_hop 112(0)]
]
host [ #Server
id 151
_find .dictionary.TGServer_e400.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 150(0) interface 0 next_hop 113(1)]
]
host [ #Client
id 152
_find .dictionary.TGClient_s50.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 153(0) interface 0 next_hop 112(1)]
]
host [ #Server
id 153
_find .dictionary.TGServer_e400.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 152(0) interface 0 next_hop 113(2)]
]
host [ #Client
id 154
_find .dictionary.TGClient_s100.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 155(0) interface 0 next_hop 112(2)]
]
host [ #Server
id 155
_find .dictionary.TGServer_e450.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 154(0) interface 0 next_hop 113(3)]
]
host [ #Client
id 200
_find .dictionary.TGClient_s100.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 201(0) interface 0 next_hop 210(0)]
]
host [ #Server
id 201
_find .dictionary.TGServer_e500.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 200(0) interface 0 next_hop 211(1)]
]
host [ #Client
id 202
_find .dictionary.TGClient_s150.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
nhi_route [dest 203(0) interface 0 next_hop 212(0)]
]
host [ #Server
id 203
_find .dictionary.TGServer_e500.graph
interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -