MPLS Traffic Engineering automatic LSP


В отличии от других протоколов, в MPLS не заложено автообнаружение MPLS-маршрутизаторов. Построение LSP лежит целиком на Операторе. Ели, например, вы добавляете BGP-маршрутизатор в сеть, то достаточно создать BGP-сессии с RR. В RSVP нет аналогов RR, поэтому вы, по идее, должны строить LSP со всеми MPLS-маршрутизаторами - трудоёмкая работа.
Поэтому производители сетевого оборудования, в частности Cisco и Juniper, разработали средства по автоматизации построения LSP.


    Cisco IOS configuration example

    MPLS TE autotunnel (Primary/Backup) and Automesh

    !
    mpls traffic-eng tunnels
    mpls traffic-eng logging lsp setups
    mpls traffic-eng logging lsp teardowns
    ! 
    mpls traffic-eng auto-tunnel backup
    mpls traffic-eng auto-tunnel backup config unnumbered-interface Loopback1
    ! 
    mpls traffic-eng auto-tunnel primary onehop
    mpls traffic-eng auto-tunnel primary config unnumbered-interface Loopback1
    mpls traffic-eng auto-tunnel primary timers removal rerouted 900
    !Enables LDP on primary autotunnels (required for xconnect)
    mpls traffic-eng auto-tunnel primary config mpls ip
    mpls traffic-eng auto-tunnel primary tunnel-num min 1000 max 1999
    ! 
    mpls traffic-eng auto-tunnel mesh
    mpls traffic-eng auto-tunnel mesh tunnel-num min 20000 max 29999
    !
    access-list 99 permit XX.219.128.96 0.0.0.31
    access-list 99 permit host XX.219.128.2
    !
    ip rsvp signalling hello
    ip rsvp signalling hello bfd
    ip rsvp signalling hello statistics
    !
    !
    interface Auto-Template1
     ip unnumbered Loopback1
     no ip redirects
     load-interval 30
     mpls ip
     mpls traffic-eng tunnels
     tunnel mode mpls traffic-eng
     tunnel destination access-list 99
     tunnel mpls traffic-eng autoroute announce
     tunnel mpls traffic-eng priority 7 6
     tunnel mpls traffic-eng bandwidth 50000
     tunnel mpls traffic-eng path-option 1 dynamic
     tunnel mpls traffic-eng record-route
     tunnel mpls traffic-eng fast-reroute
     tunnel mpls traffic-eng auto-bw max-bw 5000000 min-bw 1000 
    !
    router ospf 1
     mpls traffic-eng mesh-group 1 loopback 1 area 0
    end
    !

    debug

    debug mpls traffic-eng auto-tunnel mesh
    debug mpls traffic-eng tunnels signalling
    debug mpls traffic-eng tunnels errors

    show mpls traffic-eng tunnels brief

    show mpls traffic-eng auto-tunnel mesh
    show mpls traffic-eng tunnels property auto-tunnel mesh brief

    sh mpls traffic-eng tunnels protection

    sh mpls traffic-eng tunnels backup
    sh mpls traffic-eng fast-reroute database role middle detail
    show ip rsvp fast-reroute

    JunOS configuration example

    configure


    set groups rsvp_interfaces protocols rsvp interface <*> aggregate
    set groups rsvp_interfaces protocols rsvp interface <*> subscription 95
    set groups rsvp_interfaces protocols rsvp interface <*> link-protection

    # common config for static LSPs
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> ldp-tunneling
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> bandwidth 500m
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> record
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> adaptive
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> fast-reroute bandwidth 0
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> auto-bandwidth adjust-interval 3600
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> auto-bandwidth adjust-threshold 5
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> auto-bandwidth minimum-bandwidth 500m
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> auto-bandwidth maximum-bandwidth 2g
    set groups p2p-mpls-lsp-settings protocols mpls label-switched-path <p2p-*> auto-bandwidth adjust-threshold-overflow-limit 3

    set protocols ospf traffic-engineering shortcuts ignore-lsp-metrics

    set protocols rsvp apply-groups rsvp_interfaces
    set protocols rsvp load-balance bandwidth
    # http://networkengineering.stackexchange.com/questions/19367/why-are-my-equal-cost-lsps-not-load-balancing-equally-when-using-auto-bandwidth
    deactivate protocols rsvp load-balance
    set protocols rsvp traceoptions file rsvp.log
    set protocols rsvp traceoptions file size 10000000
    set protocols rsvp traceoptions file files 3
    set protocols rsvp traceoptions file world-readable
    set protocols rsvp traceoptions flag error detail
    set protocols rsvp interface lo0.0

    # common config for static LSPs
    set protocols mpls apply-groups p2p-mpls-lsp-settings
    set protocols mpls path-mtu rsvp mtu-signaling
    set protocols mpls statistics file mpls-auto-statistics.log
    set protocols mpls statistics file size 3m
    set protocols mpls statistics file files 3
    set protocols mpls statistics interval 900
    set protocols mpls statistics auto-bandwidth
    set protocols mpls log-updown syslog
    set protocols mpls log-updown trap
    set protocols mpls log-updown trap-path-down
    set protocols mpls log-updown trap-path-up
    set protocols mpls traffic-engineering mpls-forwarding
    set protocols mpls traceoptions file mpls.log
    set protocols mpls traceoptions file size 1000000
    set protocols mpls traceoptions file files 3
    set protocols mpls traceoptions file world-readable
    set protocols mpls traceoptions flag error
    set protocols mpls no-propagate-ttl
    set protocols mpls optimize-timer 900

    set protocols mpls label-switched-path rsvp-te-template template
    set protocols mpls label-switched-path rsvp-te-template ldp-tunneling
    set protocols mpls label-switched-path rsvp-te-template bandwidth 250m
    set protocols mpls label-switched-path rsvp-te-template record
    set protocols mpls label-switched-path rsvp-te-template adaptive
    set protocols mpls label-switched-path rsvp-te-template fast-reroute bandwidth 0
    set protocols mpls label-switched-path rsvp-te-template auto-bandwidth adjust-interval 3600
    set protocols mpls label-switched-path rsvp-te-template auto-bandwidth adjust-threshold 5
    set protocols mpls label-switched-path rsvp-te-template auto-bandwidth minimum-bandwidth 250m
    set protocols mpls label-switched-path rsvp-te-template auto-bandwidth maximum-bandwidth 1g
    set protocols mpls label-switched-path rsvp-te-template auto-bandwidth adjust-threshold-overflow-limit 3

    set routing-options dynamic-tunnels auto-tunnel rsvp-te auto-template1 label-switched-path-template rsvp-te-template
    set routing-options dynamic-tunnels auto-tunnel rsvp-te auto-template1 destination-networks XX.219.128.96/27
    set routing-options dynamic-tunnels auto-tunnel rsvp-te auto-template1 destination-networks XX.219.128.2/32

    debug

    show dynamic-tunnels database
    show mpls lsp
    show mpls lsp statistics transit

    Комментарии

    Популярные сообщения из этого блога

    streaming multicast IPTV to HLS (nginx+RTMP)

    using pg_partman to help partitioning postgresql for zabbix