EdgeRouter - 등가 다중 경로(Equal-Cost Multi Path, ECMP) 라우팅을 지원하나요?

download at 2017-10-17T20:02:44Z origin

물론입니다. EdgeRouter는 등가 다중 경로 라우팅을 지원합니다. 같은 목적지 네트워크로의 같은 설정의 다중 경로가 존재한다면, 트래픽은 링크 사이에 동등하게 분배되어야 합니다. ECMP는 리눅스 커널에 따라서 지원여부가 결정됩니다.

다음 예제는 0.0.0.0의 기본 경로 예제입니다. (eth0로의 10.1.0.1, eth1로의 172.16.3.242) 라우터는 두개의 라우터에 라운드 로빈 방식으로 요청을 분배하고, 1.6버전과 그 이하 버전에서는 플로우-해시 방식을 사용합니다.

ubnt@R1:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
 I - ISIS, B - BGP, > - selected route, * - FIB route

S>* 0.0.0.0/0 via 10.1.0.1, eth0
 * via 172.16.3.242, eth1
C>* 10.1.0.0/23 is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
C>* 172.16.3.0/24 is directly connected, eth1

8.8.8.8 (구글 DNS 서버)로의 핑 이후에는 23.21.93.68 (ubunt.com)로 핑을 수행한 후 IP 라우트 요약은 ECMP 통계치를 출력합니다.

ubnt@R1:~$  show ip route summary
IP routing table name is Default-IP-Routing-Table(0)
IP routing table maximum-paths   : 8
Total number of IPv4 routes      : 20
Total number of IPv4 paths       : 24
Route Source    Networks
connected       12
static          8
Total           20
FIB             0
ECMP statistics (active in ASIC):
---------------------------------
Total number of IPv4 ECMP routes   : 4
Total number of IPv4 ECMP paths    : 8
Number of routes with 2 ECMP paths : 4