네트워크/CCNA

OSPF 中 stub area란 무엇인가?

윤맨1 2020. 4. 13. 12:52

Stub Areas (스텁 에어리어)

An area is referred to as a stub area when there is commonly a single exit point from that area, or if external routing to outside of the area does not have to take an optimal path. A stub is just what it sounds like: a dead end within the network. Packets can enter and leave only through the ABR. Why would you ever need such an area? The reason is network size. By building stub areas, you can reduce the overall size of the routing tables within the routers that are inside an OSPF stub area. Stub areas have the following functional and design characteristics:

 

스텁 에어리어(stub area)는 일반적으로 해당 에어리어에 싱글 익싯 포인트(여러 개의 호스트가 하나의 출구로 나가는 것)가 있을 때 그 에어리어를 스텁 에어리어 라고 부른다. 혹은 외부로의 라우팅을 할 때 최적경로가 없어도 될 때 이것을 스텁 에어리어(stub area)라고 부른다. 패킷들은 반드시 ABR을 통해 지나다녀야 한다. 왜 스텁 에어리어(stub area)가 필요한 것 인가? 이유는 네트워크 사이즈 때문이다. 스텁 에어리어(stub area)를 구성하면, 우리는 해당 OSPF 스텁 에어리어(stub area) 안에 엤는 라우팅 테이블의 전체 크기를 줄일 수 있다. 스텁 에어리어(stub area)의 기능과 특성을 아래와 같이 말할 수 있다.

 

  • External networks, such as those redistributed from other protocols into OSPF, are not allowed to be flooded into a stub area. Specifically, the ABR stops LSA Types 4 and 5. Therefore, no router inside a stub area has any external routes.
  • Configuring a stub area reduces the link-state database size inside an area and reduces the memory requirements of routers inside that area.
  • Routing from these areas to the outside world is based on a default route. Stub areas do contain inter-area and intra-area routes because the ABR injects a default route (0.0.0.0) into the stub area.
  • Stub areas typically have one ABR; this is the best design. However, you can have additional ABRs, but this might cause suboptimal routing.
  • OSPF와 연결된 다른 프로토콜을 재분배 할 때 스텁 에어리어(stub area)에서 플러딩을 시키지 않을 수 있다. 
    특히 ABR은 LSA 광고 4타입과 LSA 광고 5타입, 그래서  
  •  
  •  
  •  

All OSPF routers inside a stub area must be configured as stub routers because whenever an area is configured as stub, all interfaces that belong to that area start exchanging OSPF Hello packets with a flag that indicates that the interface is part of an OSPF stub area. This is actually just a bit in the Hello packet (E bit) that gets set to 0. All routers that have a common area must to agree on that flag. For example, all the routers in a stub area must be configured to recognize that the area is a stub. If the routers don't agree, they cannot become neighbors and routing does not take effect.

Stub areas have certain restrictions applied to their operation. This is because they have been designed not to carry external routes, and any of the situations in the following list can cause external links to be injected into the stub area. These restrictions are as follows:

  • Stub areas cannot be used as a transit area for virtual links.
  • An ASBR cannot be internal to a stub area.
  • OSPF allows certain areas to be configured as stub areas, but the backbone area cannot be a stub area.
  • LSA Types 4 and 5 are not allowed in a stub area.

TIP An extension to a stub area is called a totally stubby area. Cisco Systems indicates this type of stub area by adding a no-summary keyword to the stub area configuration within the router. A totally stubby area is one that blocks external routes and summary routes (interarea routes) from going into the area. This way, only intra-area routes exist, and a default route of 0.0.0.0 is injected into the area.

 

 

출처 : source daddy