⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faultrest_mpls.dml

📁 Java programming on optical network protection and restroation algorithms
💻 DML
📖 第 1 页 / 共 2 页
字号:
#Fault Restoration in MPLS Network
#examples\gmpls\fault_restoration_mpls_net/FaultRest_mpls.dml
#
#
#Client      LER           Link Error at 250sec           LER        Server
#100(0)---(0)110(1)--+     LSR      |       LSR     +--(0)111(1)---(0)101
#            LER     +--(0)120(2)--------(0)121(1)--+     LSR
#102(0)---(0)112(1)-----(1)(3)              (2)(3)-----(0)113(1)---(0)103
#                           |                |
#                           |                |
#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
    x 10
    y 10
    graph [
      ProtocolSession [name ip use gov.nist.antd.ssf.os.IP] 
      ProtocolSession [name LSPCreator use gov.nist.antd.rsvp.te.LSP_Creator
          SignalingProtocol S_CRLDP
          #SignalingProtocol RSVP
          
            LSP_SETUP_INFO [
            # //////////////////////////////////////////////////////////
            # LSP between 210 and 111
            # //////////////////////////////////////////////////////////
          LSP [
            ID 0
            pathID LSP210-111
            SetupTime 17
            LSPType Normal
            Scheduler [
              Type WFQ
              Value 40
            ]
            FEC [
              Src [
                Grp[ID 200]
                Port[min 0 max 20000]
              ]
              Dst [
                Grp [ID 101]
                Port[min 0  max 20000 ]
              ]
            ]
            
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 210 ]
              Route [ ID 220 ]
              Route [ ID 120 ]
              Route [ ID 121 ]
              Route [ ID 111 ]
            ] 
          ]
          LSP [
            ID 1
            PathID LSP111-210
            SetupTime 17
            LSPType Normal
            Scheduler [
              Type WFQ
              Value 40
            ]
            FEC [
              Src [
                Grp[ID 101]
                Port[min 0 max 20000]
              ]
              Dst [
                Grp [ID 200] 
                Port[min 0 max 20000 ]
              ]
            ]
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 111 ]
              Route [ ID 121 ]
              Route [ ID 120 ]
              Route [ ID 220 ]
              Route [ ID 210 ]
            ]
          ]         
          # //////////////////////////////////////////////////////////
            # Backup LSP between 210 and 111
            # //////////////////////////////////////////////////////////
          LSP [
            ID 2
            PathID backup-LSP210-111
            SetupTime 18
            LSPType Backup
            Scheduler [
              Type WFQ
              Value 40
            ]
            BKLSP[
              InstanctSetup false
              ProtectedPath [ID 0]
            ]
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 210 ]
              Route [ ID 220 ]
              Route [ ID 221 ]
              Route [ ID 121 ]
              Route [ ID 111 ]
            ]
          ]
          LSP [
            ID 3
            PathID backup-LSP111-210
            SetupTime 18
            LSPType Backup
            Scheduler [
              Type WFQ
              Value 40
            ]
            BKLSP [
              InstanceSetup false
              ProtectedPath [ ID 1 ]
            ]
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 111 ]
              Route [ ID 121 ]
              Route [ ID 221 ]
              Route [ ID 220 ]
              Route [ ID 210 ]
            ]
          ]
          # //////////////////////////////////////////////////////////
          # LSP between 212 and 113
          # //////////////////////////////////////////////////////////
          LSP [
            ID 4
            PathID LSP212-113
            SetupTime 19
            LSPType Normal
            Scheduler [
              Type WFQ
              Value 40
            ]
            FEC [
              Src [
                Grp[ID 202]
                Port[min 0 max 20000]
              ]
              Dst [
                Grp [ID 103] 
                Port[min 0 max 20000 ]
              ]
            ]           
            
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 212 ]
              Route [ ID 220 ]
              Route [ ID 120 ]
              Route [ ID 121 ]
              Route [ ID 113 ]
            ]
          ]
          LSP [
            ID 5
            PathID LSP113-212
            SetupTime 19
            LSPType Normal
            Scheduler [
              Type WFQ
              Value 40
            ]
            FEC [
              Src [
                Grp[ID 103]
                Port[min 0 max 20000]
              ]
              Dst [
                Grp [ID 202] 
                Port[min 0 max 20000 ]
              ]
            ]
            
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 113 ]
              Route [ ID 121 ]
              Route [ ID 120 ]
              Route [ ID 220 ]
              Route [ ID 212 ]
            ]
          ]
          # //////////////////////////////////////////////////////////
          # Backup LSP between 212 and 113
          # //////////////////////////////////////////////////////////
          LSP [
            ID 6
            PathID backup-LSP212-113
            SetupTime 20
            LSPType Backup
            Scheduler [
              Type WFQ
              Value 40
            ]
            BKLSP [
              InstantSetup false
              ProtectedPath [ID 4]
            ]
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 212 ]
              Route [ ID 220 ]
              Route [ ID 221 ]
              Route [ ID 121 ]
              Route [ ID 113 ]
            ]
          ]
          LSP [
            ID 7
            PathID backup-LSP113-212
            SetupTime 20
            LSPType Backup
            Scheduler [
              Type WFQ
              Value 40
            ]
            BKLSP [
              InstantSetup false
              ProtectedPath [ID 5]
            ]
            TrafficParameters [PDR 2500000   PBS 30000   CDR 2000000   
              CBS 20000   EBS 10000]
            ERL [
              Route [ ID 113 ]
              Route [ ID 121 ]
              Route [ ID 221 ]
              Route [ ID 220 ]
              Route [ ID 212 ]
            ]
          ]
        ]
      ]
    ]
  ]
    # TrafficDuration handles traffic generation duration
    TrafficDuration
    [
      Duration[ ID 200 start_time 100 end_transmit_time 450]      
      Duration[ ID 202 start_time 150 end_transmit_time 400]
  ] 
  
  traffic [
      pattern [
          client 200          
          servers [nhi 101(0) port 10]          
      ]
      pattern [
          client 202
          servers [nhi 103(0) port 10]
      ]
    ]
  
    randomstream [
      generator "MersenneTwister"
      stream "seedstarter1"
      reproducibility_level "timeline"
    ]

################################################################################
##                                L I N K S                                   ##
################################################################################
  # client link connection
  link [attach 100(0) attach 110(0) delay 0.005]
  link [attach 102(0) attach 112(0) 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 113(1) delay 0.005]
  link [attach 201(0) attach 211(1) delay 0.005]
  link [attach 203(0) attach 213(1) delay 0.005]
   
  #LER 110   AND   120
  link [attach 110(1) attach 120(0) delay 0.005]
 
  #LSR 111   AND   221
  link [attach 111(0) attach 121(1) delay 0.005]
  
  #LER 112   AND   120  
  link [attach 112(1) attach 120(1) delay 0.005]
 
  #LER 113   AND   121
  link [attach 113(0) attach 121(3) delay 0.005]
 
  #LER 210   AND   220
  link [attach 210(1) attach 220(0) delay 0.005]
 
  #LER 211   AND   221
  link [attach 211(0) attach 221(1) delay 0.005]
  
  #LER 212   AND   220
  link [attach 212(1) attach 220(1) delay 0.005]
 
  # LER 213   AND   221
  link [attach 213(0) attach 221(3) delay 0.005]
 
  #LSR 120   AND   121
  link [ id 1 attach 120(2) attach 121(0) delay 0.005]
  
  #LSR 120   AND   220
  link [attach 120(3) attach 220(3) delay 0.005]
  
  #LSR 121   AND   221
  link [attach 121(2) attach 221(2) delay 0.005]
  
  #LSR 220   AND   221
  link [attach 220(2) attach 221(0) delay 0.005]
     
################################################################################
##                         C L I E N T  -  S E R V E R                        ##
################################################################################
  host [ #Client
    id 100
    x 10
    y 50
    _find .dictionary.TGClient.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
    nhi_route [dest 201(0) interface 0 next_hop 110(0)]   
  ]
  
  host [ #Server
    id 101
    x 750
    y 50

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -