网络拓扑:

XRV1

=======================================================================

hostname XRV1
explicit-path name SRTE
index 10 next-address strict ipv4 unicast 10.10.2.2
index 20 next-address strict ipv4 unicast 10.10.3.2
index 30 next-address strict ipv4 unicast 10.10.4.1
index 40 next-address strict ipv4 unicast 10.10.5.2
!
interface Loopback0
ipv4 address 192.168.1.1 255.255.255.255
!
interface tunnel-te16
ipv4 unnumbered Loopback0
autoroute announce
!
destination 192.168.1.5
path-option 1 explicit name SRTE segment-routing
!
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.10.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.10.2.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
router ospf 100
router-id 192.168.1.1
segment-routing mpls
segment-routing forwarding mpls
area 0
mpls traffic-eng
interface Loopback0
passive enable
prefix-sid index 1
!
interface GigabitEthernet0/0/0/0
network point-to-point
!
interface GigabitEthernet0/0/0/1
network point-to-point
!
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
!
end

XRV2

=======================================================================

!
hostname XRV2
interface Loopback0
ipv4 address 192.168.1.2 255.255.255.255
!
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.10.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.10.5.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.10.4.1 255.255.255.252
!
router ospf 100
router-id 192.168.1.2
segment-routing mpls
segment-routing forwarding mpls
area 0
mpls traffic-eng
interface Loopback0
passive enable
prefix-sid index 2
!
interface GigabitEthernet0/0/0/0
network point-to-point
!
interface GigabitEthernet0/0/0/1
network point-to-point
!
interface GigabitEthernet0/0/0/2
network point-to-point
!
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
!
segment-routing
!
end

XRV3

=======================================================================

hostname XRV3
interface Loopback0
ipv4 address 192.168.1.3 255.255.255.255
!
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.10.3.1 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.10.2.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
router ospf 100
router-id 192.168.1.3
segment-routing mpls
segment-routing forwarding mpls
area 0
mpls traffic-eng
interface Loopback0
passive enable
prefix-sid index 3
!
interface GigabitEthernet0/0/0/0
network point-to-point
!
interface GigabitEthernet0/0/0/1
network point-to-point
!
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
!
segment-routing
!
end

XRV4

=======================================================================

hostname XRV4
interface Loopback0
ipv4 address 192.168.1.4 255.255.255.255
!
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.10.4.2 255.255.255.252
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.10.3.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.10.6.1 255.255.255.252
!
router ospf 100
router-id 192.168.1.4
segment-routing mpls
segment-routing forwarding mpls
area 0
mpls traffic-eng
interface Loopback0
passive enable
prefix-sid index 4
!
interface GigabitEthernet0/0/0/0
network point-to-point
!
interface GigabitEthernet0/0/0/1
network point-to-point
!
interface GigabitEthernet0/0/0/2
network point-to-point
!
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
!
segment-routing
!
end

XRV5

=======================================================================

hostname XRV5
explicit-path name SRTE
index 10 next-address strict ipv4 unicast 10.10.5.1
index 20 next-address strict ipv4 unicast 10.10.4.2
index 30 next-address strict ipv4 unicast 10.10.3.1
index 40 next-address strict ipv4 unicast 10.10.2.1
!
interface Loopback0
ipv4 address 192.168.1.5 255.255.255.255
!
interface tunnel-te16
ipv4 unnumbered Loopback0
autoroute announce
!
destination 192.168.1.1
path-option 1 explicit name SRTE segment-routing
!
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.10.5.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.10.6.2 255.255.255.252
!
router ospf 100
router-id 192.168.1.5
segment-routing mpls
segment-routing forwarding mpls
area 0
mpls traffic-eng
interface Loopback0
passive enable
prefix-sid index 5
!
interface GigabitEthernet0/0/0/1
network point-to-point
!
interface GigabitEthernet0/0/0/2
network point-to-point
!
!
mpls traffic-eng router-id Loopback0
!
mpls traffic-eng
!
segment-routing
!
end

做TE要求如下:

XRV1-----> XRV5

10.10.2.2 -> 10.10.3.2 ->10.10.4.1 ->10.10.5.2

XRV5----->XRV1

10.10.5.1 ->10.10.4.2 ->10.10.3.1 ->10.10.2.1

测试如下:

XRV1-----> XRV5

RP/0/0/CPU0:XRV1#traceroute 192.168.1.5
Mon Jul 22 07:43:31.705 UTC

Type escape sequence to abort.
Tracing the route to 192.168.1.5

1 10.10.2.2 [MPLS: Labels 24001/24001/24003 Exp 0] 19 msec 9 msec 9 msec
2 10.10.3.2 [MPLS: Labels 24001/24003 Exp 0] 19 msec 29 msec 19 msec
3 10.10.4.1 [MPLS: Label 24003 Exp 0] 29 msec 29 msec 29 msec
4 10.10.5.2 19 msec * 19 msec

XRV5----->XRV1

RP/0/0/CPU0:XRV5#traceroute 192.168.1.1
Mon Jul 22 07:44:16.853 UTC

Type escape sequence to abort.
Tracing the route to 192.168.1.1

1 10.10.5.1 [MPLS: Labels 24005/24003/24003 Exp 0] 9 msec 9 msec 9 msec
2 10.10.4.2 [MPLS: Labels 24003/24003 Exp 0] 9 msec 9 msec 9 msec
3 10.10.3.1 [MPLS: Label 24003 Exp 0] 9 msec 9 msec 9 msec
4 10.10.2.1 9 msec * 19 msec

SRTE测试的更多相关文章

  1. SRv6规模部署,离不开测试技术保驾护航!

    什么是SRv6? SRv6技术就是采用现有的IPv6转发技术,通过扩展IPv6报文的头域,实现类似标签转发的处理.SRv6将一些IPv6地址定义成实例化的SID(Segment ID),每个SID有着 ...

  2. SignalR系列续集[系列8:SignalR的性能监测与服务器的负载测试]

    目录 SignalR系列目录 前言 也是好久没写博客了,近期确实很忙,嗯..几个项目..头要炸..今天忙里偷闲.继续我们的小系列.. 先谢谢大家的支持.. 我们来聊聊SignalR的性能监测与服务器的 ...

  3. Apache Ignite之集群应用测试

    集群发现机制 在Ignite中的集群号称是无中心的,而且支持命令行启动和嵌入应用启动,所以按理说很简单.而且集群有自动发现机制感觉对于懒人开发来说太好了,抱着试一试的心态测试一下吧. 在Apache ...

  4. 测试一下StringBuffer和StringBuilder及字面常量拼接三种字符串的效率

    之前一篇里写过字符串常用类的三种方式<java中的字符串相关知识整理>,只不过这个只是分析并不知道他们之间会有多大的区别,或者所谓的StringBuffer能提升多少拼接效率呢?为此写个简 ...

  5. TechEmpower 13轮测试中的ASP.NET Core性能测试

    应用性能直接影响到托管服务的成本,因此公司在开发应用时需要格外注意应用所使用的Web框架,初创公司尤其如此.此外,糟糕的应用性能也会影响到用户体验,甚至会因此受到相关搜索引擎的降级处罚.在选择框架时, ...

  6. .NET Core系列 :4 测试

    2016.6.27 微软已经正式发布了.NET Core 1.0 RTM,但是工具链还是预览版,同样的大量的开源测试库也都是至少发布了Alpha测试版支持.NET Core, 这篇文章 The Sta ...

  7. 渗透测试工具BurpSuite做网站的安全测试(基础版)

    渗透测试工具BurpSuite做网站的安全测试(基础版) 版权声明:本文为博主原创文章,未经博主允许不得转载. 学习网址: https://t0data.gitbooks.io/burpsuite/c ...

  8. 在ubuntu16.10 PHP测试连接MySQL中出现Call to undefined function: mysql_connect()

    1.问题: 测试php7.0 链接mysql数据库的时候发生错误: Fatal error: Uncaught Error: Call to undefined function mysqli_con ...

  9. 【初学python】使用python调用monkey测试

    目前公司主要开发安卓平台的APP,平时测试经常需要使用monkey测试,所以尝试了下用python调用monkey,代码如下: import os apk = {'j': 'com.***.test1 ...

随机推荐

  1. 如何在“代码”视图中工作并充分利用 Dreamweaver 的编码功能。如 Emmet 缩写

    可通过多种方式在 Dreamweaver 中处理代码. 您可以使用“新建文档”对话框打开新的代码文件,然后开始键入您的代码. 在 Dreamweaver 中创建新的代码文件 键入时,会显示代码提示以帮 ...

  2. 微信开发之web开发者工具

    web开发者工具. 有任何疑问或建议请私信我,或者在评论区大家一起探讨. 概述 为帮助开发者更方便.更安全地开发和调试基于微信的网页,我们推出了 web 开发者工具.它是一个桌面应用,通过模拟微信客户 ...

  3. hdu1536 sg打表

    标记数组用bool型防止超时.输入的f[ ]要排序. #include<stdio.h> #include<string.h> #include<algorithm> ...

  4. java中URLEncode和URLDecode

    URLEncode和URLDecode用于完成普通字符串和 application/x-www-from-urlencoded MIME字符串之间的相互转化 如果传递的字符串中包含非西欧字符的字符串, ...

  5. Mybatis通过工具类根据用户名查找用户列表

    抽取SqlSessionFactoryUtils工具类,共享SqlSessionFactory创建过程 /** * SqlSessionFactory工具类 * @author:Mr.Tan * @C ...

  6. Java练习 SDUT-1588_圆的面积

    圆的面积 Time Limit: 1000 ms Memory Limit: 32768 KiB Problem Description Give you the radius of a circle ...

  7. 从零学React Native之03页面导航

    之前我们介绍了RN相关的知识: 是时候了解React Native了 从零学React Native之01创建第一个程序 从零学React Native之02状态机 本篇主要介绍页面导航 上一篇文章给 ...

  8. [USACO07JAN]区间统计Tallest Cow

    前缀和 sum[i]表示前i个数的和 每次读入a[i]的时候 sum[i] = sum[i - 1] + a[i]; 查询l ~ r区间的和: sum[r] - sum[l - 1] 差分 即前缀和的 ...

  9. Python深入:setuptools简介

    Setuptools是Python Distutils的加强版,使开发者构建和发布Python包更加容易,特别是当包依赖于其他包时.用setuptools构建和发布的包与用Distutils发布的包是 ...

  10. CDQ分治 三维偏序

    这应该是一道CDQ分治的入门题目 我们知道,二维度的偏序问题直接通过,树状数组就可以实现了,但是三维如何实现呢? 我记得以前了解过一个小故事,应该就是分治的. 一个皇帝,想给部下分配任务,但是部下太多 ...