GLBP负载均衡
星期三, 三月 2nd, 2011GLBP有3种负载均衡策略:
- round-robin:主机在AVF(活跃虚拟转发器)间轮循,同一主机在不同的时间段里可能由不同的AVF来转发数据;
- weight:由weight值大小决定负载,同一主机在不同的时间里可能由不同的AVF来转发数据;
- host-dependent:如果主机一旦确定了AVF后,一直都由这个AVF来转发数据;
默认负载均衡策略为round-robin,下面测试这三种负载均衡策略:
GLBP有3种负载均衡策略:
默认负载均衡策略为round-robin,下面测试这三种负载均衡策略:
Cisco IOS IP SLA是一个网络性能度量与诊断工具,它通过主动在多个站点之间或多条路径之间发送数量来实现对网络性能的度量。IP SLA使用时间戳来计算如抖动、延时、响应时间这、丢包率、语音MOS值等网络性能参数。用户通过命令行或RTTMON MIB可以定义一个IP SLA操作,定义IP SLA动作时可以明确这个动作所产生的流量的包尺寸、发包间隔、协议类型、DSCP标记以及其它一些参数,然后让这个动作在适当的时候运行并返回度量性能所需要的参数。例如,我们可以定义一个用来度量UDP抖动的动作,这个操作每分钟每隔20ms发出10个64Bytes的包。
在做测试之前,必须先满足以下条件:
源设备必须是思科设备,并且能运行IP SLA IOS版本为 12.0(5)T或更新;
当做IP SLA测试时,目的设备可以是一个IP设备,也可以使用思科路由器中的IP SLA Responder,来提高测量精度;
继本博客(flyxj.cn)在国内首先放出了Cisco IOU的信息以及相关教程后,大家都非常的关注。有网友(撒加)用CDLinux做了一个便携版,创意很不错,但是苦于其版本不方便使用SecureCRT等软件远程登陆,搭建拓扑也不是很灵活(对于刚接触,还不知道IOU的怎么回事,或是Linux不熟悉的人,呵呵),所以我用CDLinux也做了一个LiveCD,并且配上综合拓扑图,Shell脚本参考BX2AA,感谢他们两位。
该版本暂且称之为Cisco IOU LiveCD v1.0,是一个便携版本,可以刻盘光驱启动,也可以装在U盘中,使用U盘启动,同时也可以放入VMware等虚拟机使用光盘启动,非常的方便。LiveCD中使用的IOU文件i86bi_linux-adventerprisek9-ms我已经Patched,大家懂得,直接可以使用。
拓扑如下:
基本的路由实验都是能够完成了,IOU的资源占用确实是非常小的,6台设备全开了,也就CPU占用0%~1%,并且支持重启。目前CCIE RS的排错考试就是用IOU搭建的。
通过截图来说明如何使用,我在VMware演示:
Cisco IOS-On-UNIX is an internal Cisco application used by engineers for testing, proof-of-concept, and validating design.
This is the Linux-based version. It is similar in function to Dynamips/Dynagen/GNS3, but nowhere near as CPU/memory intensive.
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************
在日志和调试时加上时间戳
Router(config)#service timestamps log datetime localtime
Router(config)#service timestamps debug datetime localtime
设置时间
Router#clock set 15:30:00 January 1 2009
outer#calendar set 15:30:00 January 1 2009
Clock 和 Calendar 的区别:
Most Cisco routers have two clocks:a battery-powered hardware clock (referenced in CLI commands as the “calendar”) and a software clock (referenced in CLI commands as the “clock”). These two clocks are managed separately.
The primary source for time data on your system is the software clock. This clock runs from the moment the system starts up and keeps track of the current date and time. The software clock can be set from a number of sources and in turn can be used to distribute the current time through various mechanisms to other systems. When a router with a hardware clock is initialized or rebooted, the software clock is initially set based on the time in the hardware clock.