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

📄 mplste02.dml

📁 Java programming on optical network protection and restroation algorithms
💻 DML
📖 第 1 页 / 共 2 页
字号:
    _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
    _find .dictionary.TGServer.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
    nhi_route [dest 200(0) interface 0 next_hop 111(1)]
  ]
  
  host [ #Client
    id 102
    x 10
    y 90
    _find .dictionary.TGClient.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
    nhi_route [dest 203(0) interface 0 next_hop 112(0)]
  ]
  
  host [ #Server
    id 103
    x 750
    y 90
    _find .dictionary.TGServer.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
    nhi_route [dest 202(0) interface 0 next_hop 113(1)]
  ]
  
  host [ #Client
    id 200
    x 10
    y 150
    _find .dictionary.TGClient.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ] 
    nhi_route [dest 101(0) interface 0 next_hop 210(0)]
  ]
  
  host [ #Server
    id 201
    x 750
    y 150
    _find .dictionary.TGServer.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
    nhi_route [dest 100(0) interface 0 next_hop 211(1)]
  ]
  
  host [ #Client
    id 202
    x 10
    y 190
    _find .dictionary.TGClient.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ] 
    nhi_route [dest 103(0) interface 0 next_hop 212(0)]
  ]
  
  host [ #Server
    id 203
    x 750
    y 190
    _find .dictionary.TGServer.graph
    interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ] 
    nhi_route [dest 102(0) interface 0 next_hop 213(1)]
  ]
  
################################################################################
##                   L A B E L   S W I T C H   R O U T E R S                  ##
################################################################################
  # LER  110 -------------------------------------------------------------------
  LSR [ 
      id 110
      x 110
      y 50
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
    
  # LER  111 -------------------------------------------------------------------
  LSR [ 
      id 111
      x 640
      y 50
      _find .dictionary.LSRGraph.graph  
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.host_LER_bitrate.bitrate ]
    ]
    
  # LER  112 -------------------------------------------------------------------
  LSR [ 
      id 112
      x 110
      y 90
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
    
  # LER  113 -------------------------------------------------------------------
  LSR [ 
      id 113
      x 640
      y 90
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.host_LER_bitrate.bitrate ]
    ]
    
  # LER  210 -------------------------------------------------------------------
  LSR [ 
      id 210
      x 110 
      y 150
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
    
  # LER  211 -------------------------------------------------------------------
  LSR [ 
      id 211
      x 640
      y 150
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.host_LER_bitrate.bitrate ]
    ]
  
  # LER  212 -------------------------------------------------------------------
  LSR [ 
      id 212
      x 110
      y 190
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.host_LER_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
    
  # LER  213 -------------------------------------------------------------------
  LSR [ 
      id 213
      x 640
      y 190
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.host_LER_bitrate.bitrate ]
    ]
  
  # LSR  120 -------------------------------------------------------------------
  LSR [ 
      id 120
      x 242
      y 70
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 3 _find .dictionary.LSR_LSR_bitrate.bitrate ]
    ]
  
  # LSR  121 -------------------------------------------------------------------
  LSR [ 
      id 121
      x 508
      y 70
      _find .dictionary.LSRGraph.graph
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 2 _find .dictionary.LSR_LSR_bitrate.bitrate ]
      interface [ id 3 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
  
  # LSR  220 -------------------------------------------------------------------
  LSR [ 
      id 220
      x 242
      y 170
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 2 _find .dictionary.LSR_LSR_bitrate.bitrate ]
      interface [ id 3 _find .dictionary.LSR_LSR_bitrate.bitrate ]
    ]
  
  # LSR  221 -------------------------------------------------------------------
  LSR [ 
      id 221
      x 508
      y 170
      _find .dictionary.LSRGraph.graph
      interface [ id 0 _find .dictionary.LSR_LSR_bitrate.bitrate ]
      interface [ id 1 _find .dictionary.LER_LSR_bitrate.bitrate ]
      interface [ id 2 _find .dictionary.LSR_LSR_bitrate.bitrate ]
      interface [ id 3 _find .dictionary.LER_LSR_bitrate.bitrate ]
    ]
]


################################################################################
##                             D I C T I O N A R Y                            ##
################################################################################

dictionary[
    host_LER_bitrate [ bitrate 3000000 ]
    LER_LSR_bitrate [ bitrate  3000000 ]
    LSR_LSR_bitrate [ bitrate  8800000 ]
  
    # /////////////////////////////////////////////////////////////////////////
    # MPLS Configuration
    # /////////////////////////////////////////////////////////////////////////
    mplsInit[
      debug false
      
      # Components Debug flag - true/false
    SigIntf_debug   false
    IntfMgmt_debug  false
    fwd_debug   false
    fwdTable_debug  false
    
      PacketScheduler [
        PrimaryScheduler [
          name Priority 
          use gov.nist.antd.mpls.mgmt.mpls_interface.PriorityScheduler
        ]
      ]
      Queue [ 
        name DropTail 
        use gov.nist.antd.mpls.mgmt.mpls_interface.MPLSDropTailQueue
        BufferSize 20000
        monitor [
          use gov.nist.antd.mpls.mgmt.mpls_interface.QueueMonitor
          probe_interval 1.0
          debug true
        ]
      ]
      BandwidthBorrowing off #on/off
    
      # LSP monitor
      lspMonitor [
        use gov.nist.antd.mpls.mgmt.lspMonitor
        probe_interval 1.0
        debug true
      ]
      # NIC Monitor
      nicMonitor [
        use gov.nist.antd.mpls.mgmt.NicMonitor
        probe_interval 1.0
        debug true
      ]
  ]
  #//////////////////////////////////////////////////////////////////////////
  #             RSVP Init
  #//////////////////////////////////////////////////////////////////////////
  rsvpInit [
    debug true
    ##############  Time Information  ########################
    R 30    # Refresh Time, Default 30sec
    K 3     # L >= (K + 0.5) * 1.5 * R default 3
    SlewMax 0.3   # Default 0.3 : Successive value R2/R1 < 1 + slew.max

    ##############  Hello Extension ##########################
    # If this description is not defined,
    # Hello Extesion is not used within simulation
    HelloExtension [
      Interval 0.005          # default 5ms
      LossHellMsgInterfval 3.5      # default 3.5
    ]

    ProcessingDelay 0.0
  ]
  
  udpinit [
      max_datagram_size 10000 # max UDP datagram size (payload bytes)
      debug false             # print verbose UDP diagnostics
    ]
    
    TGClientInit [ 
      start_time 30.0       # earliest time to send request to server
      start_window 1.0      # send request to server at randomly chosen time
              # in interval [start_time, start_time+start_window]
      file_size 1000000000    # requested file size (payload bytes)
      request_size  4         # client request datagram size (bytes)
      datagram_size 1000      # max server datagram payload size (virtual bytes, int)
      show_report false       # print client-server session summary report
      debug false             # print verbose client/server diagnostics
    ]
  
    TGServerInit [
      port 10               # server's well known port
      client_limit  10      # max number of contemporaneously allowed clients
      request_size  4             # client request datagram size (bytes)
      #end_transmit_time %d       # time to stop packet transmission
      show_report false           # print client-server session summary report
      debug false                 # print verbose client/server diagnostics
    
      packet_gen_rate 2000000         # packet generation rate of this server..
      packet_gen_rate_distribution Exponential  # packet generation rate distribution, Normal or Exponential

      datagram_size 1000            # max server datagram payload size (virtual bytes, int)
      datagram_size_distribution Normal     # datagram size distrubution, Normal or Exponential
      datagram_size_deviation 0.3         # datagram size deviation, only Normal distribution
                                        # unit : % of the datagram size, 0 <= packet_gen_rate_deviation < 1.0
    ]
  
    TGClient [
      graph [
        ProtocolSession [ name client use gov.nist.antd.traffic_generator.udpTGClient
          _find .dictionary.TGClientInit 
        ]
          ProtocolSession [name socket use SSF.OS.Socket.socketMaster]
          ProtocolSession [name udp use SSF.OS.UDP.udpSessionMaster
                        _find .dictionary.udpinit ]
      ProtocolSession [name ip use gov.nist.antd.ssf.os.IP] 
    ]
    ]
  
    TGServer [
      graph [
          ProtocolSession [ name server use gov.nist.antd.traffic_generator.udpTGServer
              _find .dictionary.TGServerInit
          ]
          ProtocolSession [name socket use SSF.OS.Socket.socketMaster]
          ProtocolSession [name udp use SSF.OS.UDP.udpSessionMaster
              _find .dictionary.udpinit ]
          ProtocolSession [name ip use gov.nist.antd.ssf.os.IP] 
      ]
    ]
  
    LSRGraph [ 
      graph [
        ProtocolSession [name S_CRLDP use gov.nist.antd.mpls.signaling.crldp.S_CRLDP 
          debug true ]
        #ProtocolSession [name rsvp use gov.nist.antd.rsvp.mgmt.Rsvp
        # _find .dictionary.rsvpInit
        #]
        ProtocolSession [name MPLSModule use gov.nist.antd.mpls.mgmt.MPLSMgmt
          _find .dictionary.mplsInit
        ]
        ProtocolSession [name te-app use gov.nist.antd.ospf_te.TEPath]
        ProtocolSession [name ospf-te use gov.nist.antd.ospf_te.sOSPF_TE]
        ProtocolSession [name ip use gov.nist.antd.ssf.os.IP] 
        ProtocolSession [ name ospf  use SSF.OS.OSPF.sOSPF ]
      
        ProtocolSession [name probe use SSF.OS.ProbeSession
            file "resultFile"     # output file prefix
            stream result         # stream name
          ] 
      ]
    ]
]

⌨️ 快捷键说明

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