본문 바로가기
network/ccie-bgp

Introducing BGP Confederation and Design RulesConfiguring

 
IBGP Transit AS Problems

 IBGP 는 모든 BGP를 구현 하기 위해서 full mesh 구조가 필요로 한다.
• 많은 수의 tcp세션이 발생 한다.
• 라우팅트래픽이 불필요 하게 중복된다.
• 위 단점을 해결 하기 위해  reflectors 를 통해서 split-horizon rules 수정 하거나 confederations를 통해 as-path 를 수정 한다.


Splitting a Transit AS with  BGP Confederations

- 아래와 같이 실제 EBGP 세션을 real ebgp 로 하며, ibgp 내에서 가상으로 쪼새서 ibgp 받은 정보를 ebpg로 보내는 것 처럼 
구현 하여 전체를 업데이트 하게 된다.이떄 ebgp 는 confedearation ebgp 로 부른다.

 

 

 

 


AS-Path Propagation Within the  BGP Confederation

IBGP session
•IBGP session 에서 as-path 는 변경 되지 않는다.

Intra-confederation EBGP session
• confederation EBGP session  은 prepend 되어  as앞에 추가 된다.

EBGP session with external peer
• confederation AS 번호는 외부로 나갈때 제거 된다.
• 외부 as번호는 as경로 앞에 추가 된다.

- 아래 그림과 같이 confederation as는 () 괄호로 앞에 붙여 추가 하며, confederation as가 누적 되면 추가 되어 구성 되어 진다.
- 이때 , loop방지를 위해서 같은 번호의 as 가 들어 오면 update 를 중지 하는것은 일반적인 ebgp 의 정책과 동일 하다.


AS-Path Processing in BGP Confederations

Intra-confederation AS path is encoded as a separate  segment of the AS path.
•  confederation as는 괄호 안으로 표기 된다.

All routers within the BGP confederation have to  support BGP confederations.
• confederation 를 지원 하지 않는 라우터는 reject 하기 때문에 confederation를 하기 위해서는 모두 confederation이 지원되는 장비로 구성 해야 한다.

Intra-Confederation EBGP  Session Properties

Behaves like EBGP session during session establishment => 세션이 EBGP처럼 동작 한다.
•  EBGP 처럼 동작 하기 때문 ebgp-multihop 을 통해서 ebgp가 ttl홉이 1 이기 때문에 2 이상으로 설정 하여야 한다.

Behaves like IBGP session when propagating routing updates=> 업데이트 할때는 IBGP처럼 작동 한다.
• LP,med,next-hop 속성은 그대로 유지가 된다.

 

BGP Confederation Design Rules

IBGP full mesh within each member-AS is required.
•  각각의Confederation  를 구성 하면 Confederation 가 full mesh 로 구성 하기 때문에  route reflector도 같이 쓸수도 있다..
토폴로지에 대한 세션을 제한 없이 Confederation 를 구성 할 수 있다.


Planning BGP Confederations

• transit AS 를 작은 그룹으로 나눈다.
– 물리적인 네트워크 토폴로지를 따른다.
• 각각의 사설 as을 설정 한다.(64512 – 65535).
•  cisco 전용 기술이다. 미지원 장비는 구현 할 수 없다.
•1개의 라우터에 bgp process 를 1개 구현 하기 때문에 새로 구성 하여 rewrite 해야 한다.

Configuring BGP Confederations

## 사설 as를 새로 하기 위해 기존 bgp 프로세스를 중지 한다.
router(config)#no router bgp as-number

## 사설 as번호로 새로 bgp프로세스를 실행 한다.
router(config)#router bgp member-as-number

## 실제 ibgp 망의 as번호를 인식 할 수 있게 선언 한다.
router(config-router)#bgp confederation identifier external-as-number

## perr내의 as번호를 자신을 제외하고 모두 선언한다.
router(config-router)#bgp confederation peers list-of-intra-confederation-as


- 아래 그림은 as123 내에서 confederation 구성 하기 위해 confederation as번호를 사설 as번호로 구성 한뒤.
confederation peer 를 통해서 confederation 내에서 돌고 있는 자신을 제외한 나머지 as를 선언한다.
그뒤 peer 와는 해당 사설 as로 네이버를 적용, ebgp 와는 real bgp as 번호를 입력 하여 네이버를 맺는다.

 

 

 



## 모니터링 하기 위해서 네이버와 자세한 정보를 확인 할 수 있다.
## 아래 255 hop away 는 ebgp-multi-hop 을 줘서 홉수가 255 로 된것을 확인 할 수 있다.
router>show ip bgp neighbors

 

 


## 괄호가 있는 것을 통하여 confederation 되어 있는 것을 확인 할 수 있다.
router>show ip bgp prefix [mask]










 




반응형