cisco 3548x 低延时交换机erspan获取ns时间戳

cisco 3548x 低延时交换机erspan获取ns时间戳

背景

项目中需要测试网卡进出口数据的延时情况,要求ns级别

设备

Cisco Nexus 3548-X 交换机
设备信息
https://www.cisco.com/c/zh_cn/support/switches/nexus-3548-x-switch/model.html

测试原理

使用erspan远程镜像功能,在交换机设置一个erspan-source 镜像,通过erspan协议version3 中的硬件时间戳来计算ns级时间戳

配置

配置一个erspan-sourse的镜像

monitor session 1 type erspan-source 
  erspan-id 100
  vrf default
  destination ip 100.1.1.8	//镜像目的地址
  header-type 3				//erspan version 3 只有ver3 才有硬件时间戳
  source interface Ethernet1/1 both
  source interface Ethernet1/2 both
  no shut

monitor erspan origin ip-address 100.1.1.1 global
monitor erspan granularity ns //设置时间戳的时间粒度

将1/1和1/2的数据转发到100.1.1.8(1/4),对端可以连接交换机,或连接pc,使用tcpdump抓包

在100.1.18 机器上抓包

tcpdump  -i em2 -w outfile.pcap

使用wireshark查看抓包内容
在这里插入图片描述

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值