원스톱 지능형 IT 솔루션

dw@donewin.com.hk |

Ihavefourequalcostparallelpathstothesamedestination.Iamdoingfastswitchingontwolinksandprocessswitchingontheothertwo.Howwillthepacketsberoutedinthissituation?

시스코 라우터 FAQFAQ

동일한 목적지까지 비용이 동일한 4개의 병렬 경로가 있습니다.. 두 개의 링크에서 빠른 전환을 수행하고 다른 두 링크에서는 프로세스 전환을 수행하고 있습니다.. 이 상황에서 패킷은 어떻게 라우팅됩니까??

Assume that we have four equal cost paths to some set of IP networks. 인터페이스 1 그리고 2 fast switch (ip route-cacheenabled on the interface) , 3 그리고 4 do not (no ip route-cache). The router first establishes the four equal cost paths in a list (길 1, 2, 3, 그리고 4). When you do a show ip route x.x.x.x, the fournext hopsto x.x.x.x display.

The pointer is called interface_pointer on interface 1. Interface_pointer cycles through the interfaces and routes in some orderly deterministic fashion such as 1-2-3-4-1-2-3-4-1 and so on. The output of show ip routex.x.x.xhas a “*” to the left of thenext hopthat interface_pointer uses for a destination address not found in the cache. Each time that interface_pointer is used, it advances to the next interface or route.

To illustrate the point better, consider this repeating loop:

A packet comes in, destined for a network serviced by the four parallel paths.

The router checks to see if it is in the cache. (The cache starts off empty.)

If it is in the cache, the router sends it to the interface stored in the cache. Otherwise, the router sends it to the interface where the interface_pointer is and moves interface_pointer to the next interface in the list.

If the interface over which the router just sent the packet is running route-cache, the router populates the cache with that interface ID and the destination IP address. All subsequent packets to the same destination are then switched using the route-cache entry (thus they are fast-switched).

If there are two route-cache and two non-route-cache interfaces, there is a 50 percent probability that a uncached entry will hit an interface that caches entries, caching that destination to that interface. 시간이 지남에 따라, the interfaces running fast switching (route-cache) carry all the traffic except destinations not in the cache. This happens because once a packet to a destination is process-switched over an interface, the interface_pointer moves and points to the next interface in the list. If this interface is also process-switched, then the second packet is process-switched over the interface and the interface_pointer moves on to point to the next interface. Since there are only two process-switched interfaces, the third packet will route to fast-switched interface, which, in turn, will cache. Once cached in the IP route-cache, all the packets to the same destination will be fast-switched. Thus, there is a 50 percent probability that a uncached entry will hit an interface that caches entries, caching that destination to that interface.

In case of a failure of a process-switched interface, the routing table is updated and you would have three equal cost paths (two fast-switched and one process-switched). 시간이 지남에 따라, the interfaces running fast switching (route-cache) carry all the traffic except destinations not in the cache. With two route-cache and one non-route-cache interfaces, there is a 66 percent probability that a uncached entry will hit an interface that caches entries, caching that destination to that interface. You can expect that the two fast switched interfaces will carry all the traffic over time.

Similarly when a fast switched interface fails, you would have three equal cost paths, one fast-switched and two process-switched. Over time the interface running fast switching (route-cache) carries all the traffic except destinations not in cache. There is 33 percent probability that a uncached entry would hit an interface that cached entries, caching that destination to that interface. You can expect that the single interface with caching enabled will carry all of the traffic over time in this case.

If nointerface is running route-cache, the router round-robins the traffic on a packet-by-packet basis.

In conclusion, if multiple equal paths to a destination exist, some are process-switched while others are fast switched, then over time most of the traffic will be carried by the fast-switched interfaces only. The load balancing thus attained is not optimum and might in some cases lower the performance. Therefore, it is recommended that you do one of the following:

Either have all route-cache or no route-cache on all interfaces in parallel paths.

또는

Expect that the interfaces with caching enabled will carry all of the traffic over time.

이전:

다음:

답장을 남겨주세요

라이브 채팅
메시지를 남겨주세요

    81 − = 78