网络拓扑:

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. 使用php实现单点登录实例详解

    1.首先准备两个虚拟域名 127.0.0.1 www.openpoor.com 127.0.0.1 www.myspace.com 2.在openpoor的根目录下创建以下文件 index.php文件 ...

  2. HTML之HTML标签

    前端的三把利器:                      (1)HTML就像一个赤裸裸的人                      (2)css就好比一件衣服                   ...

  3. poj 2236【并查集】

    poj 2236 Description An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical t ...

  4. ELK2之ELK的语法学习

    1.回顾 (1)es是什么? es是基于Apache Lucene的开源分布式(全文)搜索引擎,提供简单的RESTful API来隐藏Lucene的复杂性. es除了全文搜索引擎之外,还可以这样描述它 ...

  5. APP UI设计趋势:为好设计而动

    http://www.cocoachina.com/design/20150703/12029.html 作者:bone9 善心悦目的动效已然成为一个app的必备,作为设计师自然要跟随趋势学习.APP ...

  6. HZOJ Weed

    作者的题解: 如果一段操作被执行,会对整个栈有什么影响呢? 把栈弹出若干个数后再插入若干个数. 线段树: 每个点纪录三个值:执行完这段操作后会删多少个,再插多少个,插的和一共是多少. 合并值时再用一个 ...

  7. js+canvas黑白棋

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  8. @codeforces - 618G@ Combining Slimes

    目录 @description@ @solution@ @part - 0@ @part - 1@ @part - 2@ @part - 3@ @accepted code@ @details@ @d ...

  9. Tyvj-1338 QQ农场

    P1338 QQ农场 时间: 1000ms / 空间: 131072KiB / Java类名: Main 背景 Sandytea前段时间沉迷于QQ农场中……一天夜里,他梦见来到好友X的农场上…… 描述 ...

  10. iphone开发中调用系统打电话功能

    iphone开发中调用打电话功能,一般有2种: 1.系统的打电话代码,不返回当前程序: Java代码 [[UIApplication sharedApplication] openURL:[NSURL ...