juniper EX系列交换机COS配置

流分类、流量监管、流量整形、拥塞管理和拥塞避免是构造有区别地实施服务的基石,它们主要完成如下功能:

流分类:依据一定的匹配规则识别出对象。流分类是有区别地实施服务的前提。

流量监管:对进入设备的特定流量的规格进行监管。当流量超出规格时,可以采取限制或惩罚措施,以保护运营商的商业利益和网络资源不受损害。

流量整形:一种主动调整流的输出速率的流控措施,通常是为了使流量适配下游设备可供给的网络资源,避免不必要的报文丢弃和拥塞。

拥塞管理:拥塞管理是必须采取的解决资源竞争的措施。通常是将报文放入队列中缓存,并采取某种调度算法安排报文的转发次序。

拥塞避免:过度的拥塞会对网络资源造成损害。拥塞避免监督网络资源的使用情况,当发现拥塞有加剧的趋势时采取主动丢弃报文的策略,通过调整流量来解除网络的过载。

在这些流量管理技术中,流分类是基础,它依据一定的匹配规则识别出报文,是有区别地实施服务的前提;而流量监管、流量整形、拥塞管理和拥塞避免从不同方面对网络流量及其分配的资源实施控制,是有区别地提供服务思想的具体体现。

Juniper EX交换机支持每端口8个队列的划分。

如图所示:EX3200交换机的ge-0/0/0和ge-0/0/1端口连接2部VOIP话机,分配到voice-vlan中,ge-0/0/2连接一个摄像头划分到camera-vlan中,ge-0/0/3,ge-0/0/4,ge-0/0/5和ge0/0/6端口分别连接4台服务器,分配到server-vlan中。针对这3个vlan定义3个COS处理。

相应的接口地址如下:

配置如下:

[edit]

set class-of-service forwarding-classes class app queue-num 5

set class-of-service forwarding-classes class mail queue-num 1

set class-of-service forwarding-classes class db queue-num 2

set class-of-service forwarding-classes class erp queue-num 3

set class-of-service forwarding-classes class video queue-num 4

set class-of-service forwarding-classes class best-effort queue-num 0

set class-of-service forwarding-classes class voice queue-num 6

set class-of-service forwarding-classes class network-control queue-num 7

set firewall family ethernet-switching filter voip_class term voip from source-address 192.168.1.1/32

set firewall family ethernet-switching filter voip_class term voip from source-address 192.168.1.2/32

set firewall family ethernet-switching filter voip_class term voip from protocol udp

set firewall family ethernet-switching filter voip_class term voip from source-port 2698

set firewall family ethernet-switching filter voip_class term voip then forwarding-class voice loss-priority low

set firewall family ethernet-switching filter voip_class term network_control from precedence [net-control internet-control]

set firewall family ethernet-switching filter voip_class term network_control then forwarding-class network-control loss-priority low

set firewall family ethernet-switching filter voip_class term best_effort_traffic then forwarding-class best-effort loss-priority low

set interfaces ge-0/0/0 description phone1voip-ingress-port 

set interfaces ge-0/0/0 unit 0 family ethernet-switching filter input voip_class

set interfaces ge-0/0/1 description phone2voip-ingress-port

set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input voip_class

set firewall family ethernet-switching filter video_class term video from source-address 192.168.1.14/32

set firewall family ethernet-switching filter video_class term video from protocol udp

set firewall family ethernet-switching filter video_class term video from source-port 2979

set firewall family ethernet-switching filter video_class term video then forwarding-class video loss-priority low

set firewall family ethernet-switching filter video_class term network_control from precedence [net-control internet-control]

set firewall family ethernet-switching filter video_class term network_control then forwarding-class network-control loss-priority low

set firewall family ethernet-switching filter video_class term  best_effort_traffic then forwarding-class best-effort loss-priority low

set interfaces ge-0/0/2 description video-ingress-port

set interfaces ge-0/0/2 unit 0 family ethernet-switching filter input video_class

set firewall family ethernet-switching filter app_class term app from source-address 192.168.1.23/32

set firewall family ethernet-switching filter app_class term app from protocol tcp

set firewall family ethernet-switching filter app_class term app from source-port [1494 2512 2513 2598 2897]

set firewall family ethernet-switching filter app_class term app then forwarding-class app loss-priority low

set firewall family ethernet-switching filter app_class term mail from source-address 192.168.1.24/32

set firewall family ethernet-switching filter app_class term mail from protocol tcp

set firewall family ethernet-switching filter app_class term mail from source-port [25 143 389 691 993 3268 3269]

set firewall family ethernet-switching filter app_class term mail then forwarding-class mail loss-priority low

set firewall family ethernet-switching filter app_class term db from  source-address 192.168.1.25/32

set firewall family ethernet-switching filter app_class term db from protocol tcp

set firewall family ethernet-switching filter app_class term db from source-port [1521 1525 1527 1571 1810 2481]

set firewall family ethernet-switching filter app_class term db then forwarding-class db loss-priority low

set firewall family ethernet-switching filter app_class term erp from source-address 192.168.1.26/32

set firewall family ethernet-switching filter app_class term erp from protocol tcp

set firewall family ethernet-switching filter app_class term erp from source-port [3200 3300 3301 3600]

set firewall family ethernet-switching filter app_class term erp then forwarding-class erp loss-priority low

set firewall family ethernet-switching filter app_class term network_control from precedence [net-control internet-control]

set firewall family ethernet-switching filter app_class term network_control then forwarding-class network-control loss-priority low

set firewall family ethernet-switching filter app_class term best_effort_traffic then forwarding-class best-effort loss-priority low

set interfaces ge-0/0/3 unit 0 family ethernet-switching filter input app_class

set interfaces ge-0/0/4 unit 0 family ethernet-switching filter input app_class

set interfaces ge-0/0/5 unit 0 family ethernet-switching filter input app_class

set interfaces ge-0/0/6 unit 0 family ethernet-switching filter input app_class

set class-of-service schedulers voice-sched buffer-size percent 10

set class-of-service schedulers voice-sched priority strict-high

set class-of-service schedulers voice-sched transmit-rate percent 10

set class-of-service schedulers video-sched buffer-size percent 15

set class-of-service schedulers video-sched priority low

set class-of-service schedulers video-sched transmit-rate percent 15

set class-of-service schedulers app-sched buffer-size percent 10

set class-of-service schedulers app-sched priority low

set class-of-service schedulers app-sched transmit-rate percent 10

set class-of-service schedulers mail-sched buffer-size percent 5

set class-of-service schedulers mail-sched priority low

set class-of-service schedulers mail-sched transmit-rate percent 5

set class-of-service schedulers db-sched buffer-size percent 10

set class-of-service schedulers db-sched priority low

set class-of-service schedulers db-sched transmit-rate percent 10

set class-of-service schedulers erp-sched buffer-size percent 10

set class-of-service schedulers erp-sched priority low

set class-of-service schedulers erp-sched transmit-rate percent 10

set class-of-service schedulers nc-sched buffer-size percent 5

set class-of-service schedulers nc-sched priority strict-high

set class-of-service schedulers nc-sched transmit-rate percent 5

set class-of-service schedulers be-sched buffer-size percent 35

set class-of-service schedulers be-sched priority low

set class-of-service schedulers be-sched transmit-rate percent 35

set class-of-service scheduler-maps ethernet-cos-map forwarding-class voice scheduler voice-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class video scheduler video-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class app scheduler app-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class mail scheduler mail-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class db scheduler db-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class erp scheduler erp-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class network-control scheduler nc-sched

set class-of-service scheduler-maps ethernet-cos-map forwarding-class best-effort scheduler be-sched

set class-of-service interfaces ge-0/0/20 scheduler-map ethernet-cos-map

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/233907.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Vue-4、单向数据绑定与双向数据绑定

1、单向数据绑定 <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title>数据绑定</title><!--引入vue--><script type"text/javascript" src"https://cdn.jsdelivr.net/npm/…

【QML COOK】- 004-添加动画

1. 编辑main.qml import QtQuickWindow {width: 800height: 800visible: truetitle: qsTr("Hello World")Image {id: backgroudanchors.fill: parentsource: "qrc:/Resources/Images/arrow.png"Behavior on rotation {NumberAnimation {duration: 1000}}}…

如何用UE5 的小白人替换成自己的 metahumen 数字人

1、用QuixelBridge 插件导入制作好的metahumen数字人 2、创建项目时如有选择第三人称游戏&#xff0c;在内容目录中找到第三人称游戏小白人的蓝图类&#xff0c;对其进行复制一个&#xff0c;重命名&#xff0c;我这里命名为BP_METAHUMEN&#xff0c; 并移到Metahumen目录下方便…

前端常用的几种算法的特征、复杂度、分类及用法示例演示

算法&#xff08;Algorithm&#xff09;可以理解为有基本运算及规定的运算顺序所构成的完整的解题步骤&#xff0c;或者看成按照要求设计好的有限的确切的计算序列&#xff0c;并且这样的步骤和序列可以解决一类问题。算法代表着用系统的方法描述解决问题的策略机制&#xff0c…

Unity中URP下开启和使用深度图

文章目录 前言一、在Unity中打开URP下的深度图二、在Shader中开启深度图1、使用不透明渲染队列才可以使用深度图2、半透明渲染队列深度图就会关闭 三、URP深度图 和 BRP深度图的区别四、在Shader中&#xff0c;使用深度图1、定义纹理和采样器2、在片元着色器对深度图采样并且输…

初识 Elasticsearch 应用知识,一文读懂 Elasticsearch 知识文集(1)

文章目录 &#x1f3c6; 初识 Elasticsearch 应用知识&#x1f50e; 初识 Elasticsearch 应用知识(1)&#x1f341;&#x1f341; 01、什么是 Elasticsearch&#xff1f;&#x1f341;&#x1f341; 02、能列出 10 个使用 Elasticsearch 作为其搜索引擎或数据库的公司吗&#x…

IntelliJ IDEA远程查看修改Ubuntu上AOSP源码

IntelliJ IDEA远程查看修改Ubuntu上的源码 本人操作环境windows10,软件版本IntelliJ IDEA 2023.2.3&#xff0c;虚拟机Ubuntu 22.04.3 LTS 1、Ubuntu系统安装openssh 查看是否安装&#xff1a; ssh -V 如果未安装&#xff1a; sudo apt install openssh-server # 开机自启…

数据结构——队列(Queue)

目录 1.队列的介绍 2.队列工程 2.1 队列的定义 2.1.1 数组实现队列 2.1.2 单链表实现队列 2.2 队列的函数接口 2.2.1 队列的初始化 2.2.2 队列的数据插入&#xff08;入队&#xff09; 2.2.3 队列的数据删除&#xff08;出队&#xff09; 2.2.4 取队头数据 2.2.5 取队…

任务调度中心

可以服务器配置和权限&#xff0c;分配任务执行。当服务器下线后&#xff0c;任务会被在线服务器接管&#xff0c;当重新上线后会在次执行任务。接管任务的服务器会释放任务。调度过程的实现&#xff0c;可以二次开发。基于 netty tcp 通信开发。 下载地址&#xff1a; http:/…

CSS 发光输入框动画

<template><view class="content"><input placeholder="请输入..." class="input" /> </view> </template><script></script><style>/* 设置整个页面的背景颜色为 #212121 */body{background-c…

Java内存结构

参考资料&#xff1a; 《运行时数据区域》 《Java 内存管理》 《JVM 基础 - JVM 内存结构》 《Java内存区域详解》 前文&#xff1a; 《Java8之类的加载》 《Java8之类加载机制class源码分析》 写在开头&#xff1a;本文为学习后的总结&#xff0c;可能有不到位的地方&a…

使用Docker-compose快速构建Nacos服务

在微服务架构中&#xff0c;服务的注册与发现扮演着至关重要的角色。Nacos&#xff08;Naming and Configuration Service&#xff09;是阿里巴巴开源的服务注册与发现组件&#xff0c;致力于支持动态配置管理和服务发现。最近&#xff0c;一位朋友表达了对搭建一套Nacos开发环…

Python+Flask+MySQL的图书馆管理系统【附源码,运行简单】

PythonFlaskMySQL的图书馆管理系统【附源码&#xff0c;运行简单】 总览 1、《图书馆管理系统》1.1 方案设计说明书设计目标需求分析工具列表 2、详细设计2.1 登录2.2 注册2.3 程序主页面2.4 图书新增界面2.5 图书信息修改界面2.6 普通用户界面2.7 其他功能贴图 3、下载 总览 …

【模拟IC学习笔记】 PSS和Pnoise仿真

目录 PSS Engine Beat frequency Number of harmonics Accuracy Defaults Run tranisent?的3种设置 Pnoise type noise Timeaverage sampled(jitter) Edge Crossing Edge Delay Sampled Phase sample Ratio 离散时间网络(开关电容电路)的噪声仿真方法 PSS PSS…

Golang 交叉编译之一文详解

博客原文 文章目录 Golang 中的交叉编译不同操作系统间的编译Linux 下编译windowsmacos windows 下编译Linuxmacos macos 下编译Linuxwindows 不同架构下的编译amd64x86 参考 Golang 中的交叉编译 在 Golang 中&#xff0c;交叉编译指的是在同一台机器上生成针对不同操作系统或…

RabbitMQ(十一)队列的扩展属性(Arguments)

目录 一、简介二、队列扩展属性清单三、代码示例3.1 实现方式一&#xff1a;channel.queueDeclare()3.2 实现方式二&#xff1a;QueueBuilder.build() 一、简介 RabbitMQ 允许用户在声明队列、交换机或绑定时设置 扩展属性&#xff08;Arguments&#xff09;&#xff0c;这些扩…

CSS 顶部位置翻转动画

<template><div class="container" @mouseenter="startAnimation" @mouseleave="stopAnimation"><!-- 旋方块 --><div class="box" :class="{ rotate-hor-top: isAnimating }"><!-- 元素内容 --…

Redis高可用

目录 一、Redis高可用简介 &#xff08;一&#xff09;什么是高可用 &#xff08;二&#xff09;Redis的高可用 二、Redis持久化的高可用技术 &#xff08;一&#xff09;持久化的功能 &#xff08;二&#xff09;进行持久化的方式 1.RDB 持久化 &#xff08;1&#xf…

Android Matrix (三)矩阵组合和应用变换

在 Android 开发中&#xff0c;Matrix 类不仅提供了 mapPoints 方法来变换点坐标&#xff0c;还提供了多种其他用法&#xff0c;使其成为处理图像和视图变换的强大工具。以下是 Matrix 类的一些关键用法&#xff1a; 1. 变换方法 setTranslate(float dx, float dy): 设置矩阵…

普中STM32-PZ6806L开发板(有点悲伤的故事)

简介 关于我使用 普中STM32-PZ6806L做了做了一些实验, 不小心输入12V&#xff0c;导致核心板等被烧坏, 为了利用电路和资源, 搭建了STM32F103CBT6并使用普中STM32-PZ6806L上面没有烧坏的模块的故事。 普中STM32-PZ6806L开发板 这块的STM32F103ZET6部分算是Closed了, 不准备换核…