网络拓扑:

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. C++中String字符串查找

    在写C++程序中,总会遇到要从一个字符串中查找一小段子字符串的情况,对于在C中,我们经常用到strstr()或者strchr()这两种方法.而对于C++的string,我们往往会用到find(). C ...

  2. hdu2149 巴什博奕

    n表示先手胜 p表示先手负 1~N N+1 N+2~2*N+1 2*N+2 2*N+3~3*N+2 ... n p n p n ... m总归个数 每次取1~N个根据前面的规律得到,如果m/N==m% ...

  3. C++之MD5加密(签名)

    md5.h : #include <stdio.h> #include <stdlib.h>#include <time.h> #include <strin ...

  4. HTTP请求模型

    HTTP请求模型 HTTP请求模型 一.连接至Web服务器一个客户端应用(如Web浏览器)打开到Web服务器的HTTP端口的一个套接字(缺省为80). 例如:http://www.myweb.com: ...

  5. sql —— having

    在 SQL 中增加 HAVING 子句原因是,WHERE 关键字无法与聚合函数一起使用.HAVING 子句可以让我们筛选分组后的各组数据. 原表: 我们可以对上面数据根据性别这个字段进行分组查询,分别 ...

  6. Python中基于socketserver实现并发的socket

    1.基于TCP协议: 服务端: import socketserver class MyHandler(socketserver.BaseRequestHandler): def handle(sel ...

  7. cocos2d-x 特效集合

    本文转载自:http://www.cnblogs.com/linux-ios/archive/2013/04/09/3009292.html bool HelloWorld::init() { /// ...

  8. Spring Data JPA 查询结果返回至自定义实体

    本人在实际工作中使用Spring Data Jpa框架时,一般查询结果只返回对应的Entity实体.但有时根据实际业务,需要进行一些较复杂的查询,比较棘手.虽然在框架上我们可以使用@Query注解执行 ...

  9. 2019-6-11-WPF-如何在应用程序调试启动

    title author date CreateTime categories WPF 如何在应用程序调试启动 lindexi 2019-06-11 09:32:35 +0800 2018-2-13 ...

  10. filter: grayscale(100%)滤镜属性

    效果图: filter滤镜属性