Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    MPLS Tunnel Extraction

    MPLS Tunnel Extraction retrieves the actual placement of the tunnel and the status (up or down) of the LSP paths by parsing the output of the tunnel_path command:

    Juniper:

    show mpls lsp statistics extensive

    Cisco:

    show mpls traffic-eng tunnels

    This feature shows the exact network view of tunnel paths. This is useful if the LSPs can be dynamic (as opposed to explicit). IP/MPLSView will display the current status and routing of the LSP tunnels within the defined network.

    1. To use this feature, you must specify a directory that contains the output of these commands, one file per router. With your network model already open, select File > Import Data to access the Import Wizard. Click Next > to go to the second page of the wizard.
    2. First, under Import Type, click on the drop-down selection box to choose Tunnel Path. Then, specify the import directory for the Tunnel Path directory. Note that there is also a directory for Transit Tunnels. This is used to collect additional information for Fast Reroute.
    3. Click Browse to open up a Directory Chooser window. Navigate to the directory that contains the files and click Select.

      Figure 1: Importing Tunnel Paths Into Existing Network Model

      Importing Tunnel Paths Into Existing Network Model
    4. Click Next > to begin the extraction.

      Note: In order to see the Tunnel Path import type option inside the Import Wizard, a network model should already be opened. You will be importing the tunnel path information into this network model.

      This should generate a IP/MPLSView format file of the tunnel paths and status called tunnelpath.runcode, where runcode is the file extension of your network model. This will also be automatically loaded into the network model.

    5. When the import action is complete, click Finish to close the wizard.
    6. As a result of the import of tunnel paths, the tunnel path information as well as tunnel status can be seen from Network > Elements > Tunnels.

      Figure 2: Imported Tunnels

      Imported Tunnels
    7. The status can be seen in the Misc field of the Properties tab:
      • LIVE_STAT=UP: The tunnel is up.
      • LIVE_STAT=DOWN: The tunnel is down.
      • LIVE_STAT=MISSING: The status of the tunnel has not been collected. LIVE_STAT does not get updated when importing tunnel path files, so the status is always MISSING.

      The path can be seen from the Current_Route column of the Tunnels table. Select a tunnel and click Show Path to view the tunnel graphically on the Standard Map.


    Command Line Tunnel Path: rdjpath


    The program /u/wandl/bin/rdjpath can be used to automate the tunnel info extraction. The command line options are as follows: /u/wandl/bin/rdjpath -r runcode tunnel_path_dir

    Substitute the runcode with the same file extension used by your network project and tunnel_path_dir with the directory containing the tunnel path files collected from the router.

    The resulting file, tunnelpath.runcode can be imported into the network via /u/wandl/bin/bbdsgn, option M. MPLSView, 3. Read MPLS Tunnel Path. This can also be automated via input trace file.

    Note: The tunnel path file must be in UNIX format.


    Command Line Tunnel Traffic (Juniper only): convjtraf


    The program /u/wandl/bin/convjtraf can be used to extract the tunnel traffic data from Juniper routers. The command line options are as follows:

    /u/wandl/bin/convjtraf
    Usage: /u/wandl/bin/convjtraf {[-start hh:mm] [-pct [avg|max|99|95|90|80]]}
    runcode tunnelfile duration traf1 traf2 ...
    Example1: /u/wandl/bin/convjtraf runcode tunnel.x 60 traf1
    groups traffic in traf1 into 60-min periods
    Example2: /u/wandl/bin/convjtraf runcode tunnel.x 5 traf1
    groups traffic in traf1 into 5-min periods
    If data spans more than 24 periods, the traffic
    of last two hours are displayed

    The resulting file can be imported into the network via File > Load Network Files > Tunnel Traffic > t_trafficload.

    Modified: 2017-06-01