当前位置:网站首页>路由策略简介
路由策略简介
2022-07-27 23:31:00 【微思xmws】

定义
路由策略是通过一系列工具或方法对路由进行各种控制的“策略”。该策略能够影响到路由产生、发布、选择等,进而影响报文的转发路径。工具包括ACL、route-policy、ip-prefix、filter-policy等,方法包括对路由进行过滤,设置路由的属性等。
目的
在IP网络中,路由策略的用途主要包括两个方面:对路由信息进行过滤和修改路由的属性,如表1所示。

通过路由策略对路由信息进行过滤

图1 通过路由策略对路由信息进行过滤
如图1所示,SwitchA属于双上行的组网结构,SwitchA会从SwitchB和SwitchC那里分别接收到路由。如果SwitchA仅希望接收来自SwitchB的路由,而不希望接收来自SwitchC的路由。这种情况下就可以考虑在SwitchA上配置路由策略,允许来自SwitchB的路由,拒绝来自SwitchC的路由。
通过路由策略修改路由的属性

图2 通过路由策略修改路由的属性
如图2所示,SwitchA也是双上行的网络结构,但是,由于SwitchB这边的链路稳定性更好一点,带宽更大一点,因此用户想用SwitchB这边的链路作为主用链路,SwitchC这边的链路作为备用链路,当主用链路故障的时候流量自动切换至备用链路。这种场景下,可以使用路由策略,将来自SwitchB这边的路由开销值调小,将来自SwitchC这边的路由开销值调大,这样流量就会自动选取SwitchB这边的链路作为主用链路,SwitchC这边的链路作为备用链路,实现路由的主备份。
受益
路由策略具有以下价值:
控制路由的接收、发布和引入,提高网络安全性。
修改路由属性,对网络数据流量进行合理规划,提高网络性能。
边栏推荐
- Distributed | how to import data into dble quickly through the split function of dble
- String
- Unity Shader入门精要学习——基础纹理
- 登录功能实现
- 软件测试面试题:如何发现数据库的相关问题?
- Shutter -- password login registration interface
- Briefly understand namenode and datanode
- 面试题 01.09. 字符串轮转
- Advanced MySQL -- stored procedures and custom functions
- Byte monthly salary 28K, share a wave of my automation testing experience
猜你喜欢

Storage practices for high-performance computing scenarios, see here

ICML2022 | 在线决策Transformer

Principle of logistic regression

华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘

Learn how Baidu PaddlePaddle easydl realizes automatic animal recognition in aquarium
![[C language] file operation](/img/6e/b8f3466ca0a5f7424afcab561124af.png)
[C language] file operation

Sort out SQL performance optimization and collect classics!

【C语言】文件操作

Knowledge of two-dimensional array

迅为i.MX6ULL开发板Qt系统移植-交叉编译Qt代码
随机推荐
自定义事件
HarmonyOS 3正式发布:鸿蒙手机流畅安全,鸿蒙终端常用常新
在一个字符串里面统计给定字符串的个数
Lua快速上手
Distributed | how to import data into dble quickly through the split function of dble
Knowledge of two-dimensional array
Day 013 one dimensional array exercise
Shenzhen Huaqiang announced that it plans to invest no more than 20million yuan in BYD semiconductor
MySQL JPA support for JSON type data in database
Qt 绘制系统简介
20 bad habits of bad programmers
Huami technology "Huangshan No.2" release: AI performance is improved by 7 times, and power consumption is reduced by 50%!
Opengauss active / standby architecture works with keeplive
Xinyi information technology, a domestic NB IOT chip manufacturer, received 200million yuan of a+ round financing
Cesium add inundation analysis measurement area
Learn how Baidu PaddlePaddle easydl realizes automatic animal recognition in aquarium
Software testing interview question: where do your performance testing requirements come from?
站在数字零售转型的十字路口,我们需要用新的角度来看待它
彻底搞懂kubernetes调度框架与插件
彻底搞懂kubernetes调度框架与插件