Nodjoy

只做了一点微小的工作


  • 首页

  • 技术

  • 笔记

  • 杂记

  • 分享

  • 归档

  • 关于

  • 站点监控

  • 服务监控

  • 搜索

  • GitHub

  • Instagram

  • Weibo

  • Email

  • Bilibili

  • Bento

  • 抖音

  • 打赏

  • 在线笔记

  • 在线文档

  • 域名证书管理

  • 云盘

  • Download Hub

  • DockerHub Mirror

  • Harbor

  • Quick Reference

  • Linux 命令查询

  • Mock 模拟数据

  • 文档预览服务
友链
  • milu杰克
  • 小菜
close

使用tcconfig为ipv6限速实践

时间: 2024-03-06   |   分类: 技术     |   阅读: 284 字 ~1分钟

环境准备

  • OS: Ubuntu
  • 软件: iperf tcconfig

安装iperf和tcconfig

  • 在服务端A 安装iperf和tcconfig
  • 在客户端B 安装iperf

iperf

apt install iperf

tcconfig

下载tcconfig: https://github.com/thombashi/tcconfig/releases

参考文档: https://tcconfig.readthedocs.io/en/latest/index.html

使用ping6测试ipv6地址,保证客户端与服务端可以互通

ping6 -I ens33 ipv6

使用iperf连接

在客户端B 开启iperf服务

iperf -s -V

在服务端A 向客户端B发送数据

iperf -c [客户端B IPv6地址]%[当前设备的网卡]  -V -t 60 -i 1 -b 20M -r

这将在服务器与客户端之间执行带宽测试,发送20M的数据,并且测试时间为60秒

限速

在服务端A使用tcconfig执行限速

tcset ens33 --rate 1Mbps --network [ipv6_addr] --ipv6

重新发送数据测试,并观察网络带宽


喜欢这篇文章的话 打赏一下吧!

Wechat Alipay

#tc# #网络# #iperf# #ipv6#
Proxmox虚拟机配置NAT网络
Proxmox升级openssh版本
  • 文章目录
  • 站点概览
Nodjoy

Nodjoy

Developer & Acceleration Engineer⏩

GitHub Instagram Weibo Email Bilibili Bento 抖音 打赏
52 日志
4 分类
64 标签
工具站
在线笔记 在线文档 域名证书管理 云盘 Download Hub DockerHub Mirror Harbor Quick Reference Linux 命令查询 Mock 模拟数据 文档预览服务
友情链接
  • milu杰克
  • 小菜
  • iperf
  • tcconfig
  • 在客户端B 开启iperf服务
  • 在服务端A 向客户端B发送数据
  • 在服务端A使用tcconfig执行限速
  • 重新发送数据测试,并观察网络带宽
京ICP备17004223号 © 2020 - NODJOY.
Powered by - HUGO
Theme by - NexT
访客量 -
0%