|
|
 |
|
|
| 1. 关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
35上默认有两种负载均衡方法,基于目的的和基于包的。默认试基于目的的。现在我在35上有两条等价路由到一个网络10.100.100.0。现在我在35上ping10.100.100.1的时候debug ip icmp显示的结果是一个icmp包走一条路,分开来走。我用show cef interface xx观察的结果是所有包默认都是基于目的的。基于目的的负载均衡算法,怎么会出现和基于包的算法一样的现象呢?想不通
 没有签名创意的网络新手 |
 |
|
|
| 2. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 279
MP : 57 / 3961
EXP : 17%
|
|
江湖奇侠
          
成员等级: 12
发表总数: 172
金币总数: 263
所属组别: 普通成员
注册日期: 2004/03/2

|
无敌 能解释下基于包的负载均衡是怎么回事吗??
 爱了就别伪装,迷失了也别彷徨。 不管未来怎样,都要保持坚强。
|
 |
|
|
| 3. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
在35上ping10.100.100.1的时候,我发现源地址分别是35的两个上连端口的地址,就是说,35把第一个icmp包从1号口发出去,所以就用的一号口的ip,第2个ping包又是从第2个口发出去,所以就用第2号口的ip,以此间隔的发出。而我在35下接一个pc,从pc上ping10.100.100.1,也是第一个从第一个出口出去,第2个从第2个出口出去这么间隔的发。古怪得紧,仍旧不知道何故。老大们指点一下吧
 没有签名创意的网络新手 |
 |
|
|
| 4. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 355
MP : 88 / 5654
EXP : 22%
|
|
名动江湖
           
成员等级: 15
发表总数: 265
金币总数: 148
所属组别: 中级成员
注册日期: 2003/08/1

|
这个问题我以前问过讲课的老师,但现在却忘了!! 还是请麦子回答一下吧!!

[I]轻轻的我走了,正如我轻轻的来!!! |
 |
|
|
| 5. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 182
MP : 29 / 2531
EXP : 29%
|
|
武林侠客
      
成员等级: 8
发表总数: 87
金币总数: 139
所属组别: 普通成员
注册日期: 2004/04/9

|
负载均衡很需要阿,可是不懂,等高人讲授 |
 |
|
|
| 6. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 393
MP : 107 / 6431
EXP : 74%
|
|
名动江湖
           
成员等级: 16
发表总数: 321
金币总数: 576
所属组别: 中级成员
注册日期: 2003/06/7

|
基于目的的和基于包的负载均衡,其实不是那么难吧.
简单地说,基于目的的负载均衡,那么同一个目的地的包会一直走一条路(指一个用户),另一个用户的包会走另外一条.
基于包的负载均衡,也有说叫"ROUND ROBIN"的,就是每个包都会比较均匀的负载到两条线路上,但不要高兴的太早,就什么都用基于包的负载均衡,如果两条线路到目的地中要经过很多HOP,一个文件被分成很多包,而且被分开传到目的地,那会有什么情况呢???
其实一般用于INTERNET,用基于目的的负载均衡就可以了,用户一多,负载就均衡了.
负载均衡还有很多种,基于SOURCE MAC,DEST. MAC....
CISCO有这方面的文章 |
 |
|
|
| 7. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
输入命令是不难的,但是现在是如何cef环境下如何达到这个功能。我可以在接口环境下配置ip load-share per-de,但是没有效果
 没有签名创意的网络新手 |
 |
|
|
| 8. RE: 关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 393
MP : 107 / 6431
EXP : 74%
|
|
名动江湖
           
成员等级: 16
发表总数: 321
金币总数: 576
所属组别: 中级成员
注册日期: 2003/06/7

|
| QUOTE | | 输入命令是不难的,但是现在是如何cef环境下如何达到这个功能。我可以在接口环境下配置ip load-share per-de,但是没有效果 |
你是咋测试滴啊?
从3500上PING,DEFAULT情况下,那么应该是不会用到负载均衡,和LOCAL-POLICY有关,你老兄应该是知道的呀! |
 |
|
|
| 9. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 250 / 1254
MP : 1625 / 21982
EXP : 16%
|
|
迟则生变
           
成员等级: 51
发表总数: 4876
金币总数: 307
所属组别: 管理员
注册日期: 2003/01/9

|
表现得象per pack的负载均衡...怀疑debug 和从本身发出的包都是proc switching 的,所以最好能够用sniffer 或者在下游设备上观察包传递的情况,呵呵

 没有谁能像一座孤岛/在大海里独踞/每个人都像一块小小的泥土/连接成整个陆地/如果一块泥土被海水冲去/欧洲将缺其一隅/这如同一座山岬/也如同你的朋友和你自己/无论谁死了/都是自己的一部分在死去/因为我包含在人类这个概念里/因此我从不问丧钟为谁而鸣/它为我,也为你 No man is an Island, entire of itself; every man is a piece of the Continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a man or of thy friends or of thine own were; any man's death diminishes me, because I am involved in Mankind; And therefore never send to know for whom the bell tolls; It tolls for thee.
|
 |
|
|
| 10. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
我今天把相关信息和结果贴出来,大家分析一下。
 没有签名创意的网络新手 |
 |
|
|
| 11. Re: Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 0 / 523
MP : 190 / 8560
EXP : 93%
|
|
名动江湖
           
成员等级: 21
发表总数: 570
金币总数: 899
所属组别: 高级成员
注册日期: 2003/06/4

|
我也有类似的一个问题,在图中,从7501到10.10.1.36也是有两条等价路径,一个是65,一个是35,从7501去trace 10.10.1.36可以看到确实是从两条路走的,而从7504 trace 10.10.1.36,可以看到数据包到了7501后,只会选择一条路。这个是什么原因呢? 7504>trace 10.10.1.36
Type escape sequence to abort. Tracing the route to 10.10.1.36
1 10.1.202.158 0 msec 0 msec 0 msec 2 10.10.254.4 4 msec 0 msec 0 msec 3 10.10.1.36 4 msec 0 msec 0 msec
7501>trace 10.10.1.36
Type escape sequence to abort. Tracing the route to 10.10.1.36
1 10.10.254.4 0 msec 10.10.254.5 4 msec 10.10.254.4 0 msec 2 10.10.1.36 0 msec 0 msec 0 msec
附带图片
|
 |
|
|
| 12. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
这个是35上显示得路由: xs-ly-3550-12G#sh ip ro Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route
Gateway of last resort is 10.1.7.1 to network 0.0.0.0
C 192.168.132.0/24 is directly connected, Vlan205 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.2 is directly connected, Loopback1 C 192.168.133.0/24 is directly connected, Vlan206 C 192.168.128.0/24 is directly connected, Vlan201 C 192.168.145.0/24 is directly connected, Vlan127 C 192.168.144.0/24 is directly connected, Vlan126 C 192.168.129.0/24 is directly connected, Vlan202 C 192.168.130.0/24 is directly connected, Vlan203 C 192.168.147.0/24 is directly connected, Vlan192 C 192.168.146.0/24 is directly connected, Vlan191 C 192.168.131.0/24 is directly connected, Vlan204 C 192.168.140.0/24 is directly connected, Vlan182 C 192.168.141.0/24 is directly connected, Vlan183 C 192.168.142.0/24 is directly connected, Vlan124 10.0.0.0/24 is subnetted, 3 subnets C 10.1.7.0 is directly connected, GigabitEthernet0/9 C 10.1.27.0 is directly connected, GigabitEthernet0/10 S 10.1.51.0 [1/0] via 10.1.7.1 [1/0] via 10.1.27.1 C 192.168.143.0/24 is directly connected, Vlan125 C 192.168.136.0/24 is directly connected, Vlan188 C 192.168.102.0/24 is directly connected, Vlan1 C 192.168.137.0/24 is directly connected, Vlan189 C 192.168.138.0/24 is directly connected, Vlan190 C 192.168.139.0/24 is directly connected, Vlan181 S* 0.0.0.0/0 [1/0] via 10.1.7.1 S 202.202.96.0/20 [1/0] via 10.1.27.1 [1/0] via 10.1.7.1 S 219.221.64.0/19 [1/0] via 10.1.27.1 [1/0] via 10.1.7.1 S 192.168.128.0/17 [1/0] via 10.1.27.1 [1/0] via 10.1.7.1 S 211.83.16.0/20 [1/0] via 10.1.27.1 [1/0] via 10.1.7.1
注意这里 S 10.1.51.0 [1/0] via 10.1.7.1 [1/0] via 10.1.27.1 到10.1.51.0有两条等价的静态路由
 没有签名创意的网络新手 |
 |
|
|
| 13. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
然后这里分别是在35上联2个核心6509的接口gi0/9和gi0/10的show cef信息
xs-ly-3550-12G#show cef interface gigabitEthernet 0/9 GigabitEthernet0/9 is up (if_number 16) Corresponding hwidb fast_if_number 16 Corresponding hwidb firstsw->if_number 16 Internet address is 10.1.7.254/24 ICMP redirects are always sent Per packet load-sharing is disabled IP unicast RPF check is disabled Inbound access list is not set Outbound access list is not set IP policy routing is disabled BGP based policy accounting is disabled Hardware idb is GigabitEthernet0/9 Fast switching type 1, interface type 122 IP CEF switching enabled IP CEF Feature Fast switching turbo vector Input fast flags 0x0, Output fast flags 0x0 ifindex 15(15) Slot 0 Slot unit 8 VC -1 Transmit limit accumulator 0x0 (0x0) IP MTU 1500
xs-ly-3550-12G#show cef interface gigabitEthernet 0/10 GigabitEthernet0/10 is up (if_number 17) Corresponding hwidb fast_if_number 17 Corresponding hwidb firstsw->if_number 17 Internet address is 10.1.27.254/24 ICMP redirects are always sent Per packet load-sharing is disabled IP unicast RPF check is disabled Inbound access list is not set Outbound access list is not set IP policy routing is disabled BGP based policy accounting is disabled Hardware idb is GigabitEthernet0/10 Fast switching type 1, interface type 122 IP CEF switching enabled IP CEF Feature Fast switching turbo vector Input fast flags 0x0, Output fast flags 0x0 ifindex 16(16) Slot 0 Slot unit 9 VC -1 Transmit limit accumulator 0x0 (0x0) IP MTU 1500
 没有签名创意的网络新手 |
 |
|
|
| 14. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
然后这个是从35下连的pc ping -r对10.1.51.1的结果
C:\Documents and Settings\Administrator>ping 10.1.51.1 -r 9
Pinging 10.1.51.1 with 32 bytes of data:
Reply from 10.1.51.1: bytes=32 time<1ms TTL=254 Route: 10.1.7.254 -> 10.1.51.1 -> 10.1.7.1 -> 192.168.128.1 Reply from 10.1.51.1: bytes=32 time=1ms TTL=254 Route: 10.1.27.254 -> 10.1.51.254 -> 10.1.51.1 -> 10.1.7.1 -> 192.168.128.1 Reply from 10.1.51.1: bytes=32 time=1ms TTL=254 Route: 10.1.7.254 -> 10.1.51.1 -> 10.1.7.1 -> 192.168.128.1 Reply from 10.1.51.1: bytes=32 time=1ms TTL=254 Route: 10.1.27.254 -> 10.1.51.254 -> 10.1.51.1 -> 10.1.7.1 -> 192.168.128.1
Ping statistics for 10.1.51.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 1ms, Average = 0ms
 没有签名创意的网络新手 |
 |
|
|
| 15. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
大家可以看到,走这个地址分别从两个接口出去,古怪,但是从show cef interface的结果看,接口又的确是基于目的地均衡的。是否在接口模式下的ip load-sharing per-destination和ip load-sharing per-packet对基于cef的数据流没有用呢?
 没有签名创意的网络新手 |
 |
|
|
| 16. Re:关于负载均衡算法的问题 |
  |
|
 |
|
HP : 86 / 863
MP : 602 / 13411
EXP : 54%
|
|
四川唐门掌门
           
成员等级: 35
发表总数: 1807
金币总数: 1,226
所属组别: 高级成员
注册日期: 2003/09/16

|
高人们出出手吧
 没有签名创意的网络新手 |