D-H,appy

관리자 글쓰기
블로그 »
블로그 »

# RIP Version 1

1) 클래스풀 라우팅 프로토콜(Classful Routing Protocol) <- Page 113 ~ 116

 - 네트워크 상에 모든 서브넷들은 동일한 서브넷 마스크를 사용한다는 가정을 한다.
 - 그렇기 때문에, 모든 서브넷들은 동일한 서브넷 마스크를 사용해야 한다.

 - 다양한 서브넷 마스크 구간에서 라우팅 업데이트 문제가 발생된다.

 - VLSM X, CIDR X

 - 라우팅 업데이트시 서브넷 마스크를 포함하지 않는다.

 - 클래스 경계사이에서 자동 클래스풀 요약을 실시한다.

 - 클래스가 단절된 비연속 서브넷 구간에서는 자동 클래스풀 요약때문에 라우팅
    업데이트가 차단되는 문제가 발생한다.

 - RIPv1, IGRP


2) Distance Vector 알고리즘을 사용하는 라우팅 프로토콜 <- Page 118

 - 경로를 선출할때 속도 개념을 이용하는 대신, 거리 개념을 이용하여 최적 경로를 선출한다.
 - 이때, 거리는 목적지까지 도달하는데 필요한 라우터 개수(Hop)를 사용한다.

 - 주기적인 전체 라우팅 업데이트로 라우팅 정보를 유지 및 관리한다.
 - 이때, 주기적인 전체 라우팅 업데이트는 30초마다 실시한다.

 - RIPv1, RIPv2, IGRP


3) RIPv1 메트릭(Metric) 단위

 - Hop : 라우터 개수
 - Hop Count : 1~15


4) 라우팅 업데이트 방식 : 브로드케스트 (255.255.255.255) <- Page 132

 - 불필요한 RIPv1 브로드케스트 라우팅 업데이트 실시 차단

R1(config)# router rip
R1(config-router)# passive-interface fa0/0
R1(config-router)# passive-interface lo 172

 - RIPv1 관련 브로드케스트/멀티케스트가 나가는 것을 차단하는 설정

R1#debug ip rip
RIP protocol debugging is on
R1#
*Mar  1 01:26:57.863: RIP: received v1 update from 13.13.12.2 on Serial1/0
*Mar  1 01:26:57.867:      13.13.2.0 in 1 hops
*Mar  1 01:26:57.871:      13.13.3.0 in 2 hops
*Mar  1 01:26:57.871:      13.13.23.0 in 1 hops
R1#
*Mar  1 01:27:22.243: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (13.13.12.1)
*Mar  1 01:27:22.247: RIP: build update entries
*Mar  1 01:27:22.247:   subnet 13.13.1.0 metric 1
*Mar  1 01:27:22.247:   network 172.16.0.0 metric 1

   - 브로드케스트 라우팅 업데이트 확인 가능
   - 스프릿 호라이즌 기능 확인 가능
   - 라우팅 업데이트시 서브넷 마스크가 포함되지 않는 정보 확인 가능
   - 라우팅 업데이트시 메트릭이 계산되어 실시되는 동작 확인 가능
   - Passive-Interface 적용 확인 가능
   - 30초마다 전체 라우팅 업데이트 확인 가능


5) Distance Vector 알고리즘상 라우팅 루프 발생 및 방지 대책 <- Page 148 ~ 150

 - 주기적인 전체 라우팅 업데이트로 인한 라우팅 루프 발생
 - 방지 대책 :

 1. Hop Count Limit(1~15)
 2. Split-Horizon
             3. Route Poison (Flash 업데이트 사용)
 4. Reverse Poison (Flash 업데이트 사용)
 5. Hold Down Timer

 - Split-Horizon 확인

R1#show ip interface s1/0
Serial1/0 is up, line protocol is up
  Internet address is 13.13.12.1/24
  Broadcast address is 255.255.255.255
  Address determined by non-volatile memory
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Multicast reserved groups joined: 224.0.0.9
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Local Proxy ARP is disabled
  Security level is default
  Split horizon is enabled


R1#debug ip rip
RIP protocol debugging is on
R1#
*Mar  1 01:26:57.863: RIP: received v1 update from 13.13.12.2 on Serial1/0
*Mar  1 01:26:57.867:      13.13.2.0 in 1 hops
*Mar  1 01:26:57.871:      13.13.3.0 in 2 hops
*Mar  1 01:26:57.871:      13.13.23.0 in 1 hops
R1#
*Mar  1 01:27:22.243: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (13.13.12.1)
*Mar  1 01:27:22.247: RIP: build update entries
*Mar  1 01:27:22.247:   subnet 13.13.1.0 metric 1
*Mar  1 01:27:22.247:   network 172.16.0.0 metric 1


 - Route Poison, Reverse Poison 확인

R1#debug ip rip
RIP protocol debugging is on
R1#

R3(config)# int fa0/0
R3(config-if)# shutdown

R1#
*Mar  1 01:48:03.175: RIP: received v1 update from 13.13.12.2 on Serial1/0
*Mar  1 01:48:03.179:      13.13.3.0 in 16 hops (inaccessible)
R1#
*Mar  1 01:48:05.183: RIP: sending v1 flash update to 255.255.255.255 via Serial1/0 (13.13.12.1)
*Mar  1 01:48:05.187: RIP: build flash update entries
*Mar  1 01:48:05.187:   subnet 13.13.3.0 metric 16
R1#

R3(config)#int fa0/0
R3(config-if)#no shutdown


6) RIP 타이머 <- Page 147

 - RIP은 RIP 타이머를 이용하여 라우팅 테이블 정보를 관리 및 갱신한다.
 - RIP 타이머 유형

  1. Update 타이머 (30초)

   - 주기적인 전체 라우팅 업데이트를 실시할때 사용하는 타이머
   - Update 타이머를 이용하여 라우팅 정보를 라우팅 테이블에서 유지/관리한다.
   - 라우팅 업데이트를 수신하면 '0'초로 리셋한다.

[ Update 타이머 동작 확인]

R1#show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0 [120/1] via 13.13.12.2, 00:00:29, Serial1/0
R       13.13.3.0 [120/2] via 13.13.12.2, 00:00:29, Serial1/0
R       13.13.23.0 [120/1] via 13.13.12.2, 00:00:29, Serial1/0
R1#show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0 [120/1] via 13.13.12.2, 00:00:00, Serial1/0
R       13.13.3.0 [120/2] via 13.13.12.2, 00:00:00, Serial1/0
R       13.13.23.0 [120/1] via 13.13.12.2, 00:00:00, Serial1/0


 2. Invalid 타이머 (180초)

   - Update 타이머 안에 라우팅 업데이트를 수신하지 못하면 시작하는 타이머
   - Invalid 타이머 안에 라우팅 업데이트를 수신하면 '0'초로 리셋하여 정상 동작 실시
   - 만얃, Invalid 타이머 안에 라우팅 업데이트를 수신하지 못하면, 삭제 대기 상태 전환
   - 즉, 180초안에 업데이트가 다시 들어오도록 기회를 제공하는 시간


 3. Hold Down 타이머 (180초)

   - Invaild 타이머 안에 라우팅 업데이트를 수신하지 못하여 시작되는 삭제 대기 상태
   - Hold Down 타이머 동안에 수신하는 라우팅 업데이트 정보는 수신하지 않는다.


 4. Flushed 타이머 (240초)

   - Invalid 타이머와 동시에 시작되어 경로가 라우팅 테이블에 완전히 삭제되는 타이머

R2(config)# router rip
R2(config-router)# passive-interface s1/1

[ Invalid 타이머 동작 확인]

R1#show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0 [120/1] via 13.13.12.2, 00:00:55, Serial1/0
R       13.13.3.0 [120/2] via 13.13.12.2, 00:00:55, Serial1/0
R       13.13.23.0 [120/1] via 13.13.12.2, 00:00:55, Serial1/0


[Hold Down 타이머 동작 확인]

R1#show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0/24 is possibly down,
          routing via 13.13.12.2, Serial1/0
R       13.13.3.0/24 is possibly down,
          routing via 13.13.12.2, Serial1/0
R       13.13.23.0/24 is possibly down,
          routing via 13.13.12.2, Serial1/0


[Flushed 타이머 동작 확인]

R1#show ip route rip


R2(config)# router rip
R2(config-router)# no passive-interface s1/1

[참고] Invalid 타이머가 끝난 경로는 60초 뒤에 Flushed 타이머(240초)가 만기되므로
          라우팅 테이블에서 삭제가 실시된다.


7) RIPv1 기본 신뢰도 : 120

R1(config)# router rip
R1(config-router)# distance 130

R1# clear ip route * <- 라우팅 테이블 재구성 시작
R1# show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0 [130/1] via 13.13.12.2, 00:00:03, Serial1/0
R       13.13.3.0 [130/2] via 13.13.12.2, 00:00:03, Serial1/0
R       13.13.23.0 [130/1] via 13.13.12.2, 00:00:03, Serial1/0


8) 균등 로드 분산 : 기본 4개 ~ 최대 6개 <- Page 144

 - Hop이 동일한 최적 경로가 여러개가 있을 경우 자동으로 실시된다.
 - 단, 전송 속도가 다른 환경에서 균등 로드 분산을 비효율적인 방법이 될 수 있다.


9) 정보 확인

R1# show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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 not set

     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Loopback172
     13.0.0.0/24 is subnetted, 5 subnets
C       13.13.1.0 is directly connected, FastEthernet0/0
R       13.13.2.0 [130/1] via 13.13.12.2, 00:00:03, Serial1/0
R       13.13.3.0 [130/2] via 13.13.12.2, 00:00:03, Serial1/0
C       13.13.12.0 is directly connected, Serial1/0
R       13.13.23.0 [130/1] via 13.13.12.2, 00:00:03, Serial1/0
R1#

R1#show ip route rip
     13.0.0.0/24 is subnetted, 5 subnets
R       13.13.2.0 [130/1] via 13.13.12.2, 00:00:13, Serial1/0
R       13.13.3.0 [130/2] via 13.13.12.2, 00:00:13, Serial1/0
R       13.13.23.0 [130/1] via 13.13.12.2, 00:00:13, Serial1/0


R1#show ip protocols
Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 10 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 1, receive any version
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial1/0             1     1 2                                 
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    13.0.0.0
    172.16.0.0
  Passive Interface(s):
    FastEthernet0/0
    Loopback172
  Routing Information Sources:
    Gateway         Distance      Last Update
    13.13.12.2           130      00:00:25
  Distance: (default is 130)




참조  




2008/05/19 22:27 2008/05/19 22:27

(go to top)