BGP を使用したポリシー アカウンティングでは、異なるピア間で送受信される IP トラフィックを測定および分類します。BGP PA は元々、入力インターフェイスだけで使用可能でした。BGP PA 出力インターフェイス アカウンティングでは、BGP
PA を出力インターフェイスでイネーブルにし、インターフェイスの入力トラフィックおよび出力トラフィックの両方の送信元アドレスに基づくアカウンティングを組み込むための複数の拡張機能が導入されています。IP トラフィックを識別するために、コミュニティ
リスト、自律システム番号、または自律システム パスなどのパラメータに基づくカウンタが割り当てられます。
BGP PA を使用することで、トラフィックの発信元またはトラフィックが通過したルートに応じてトラフィックのアカウンティングを行うことができます。サービス プロバイダー(SP)は、すべてのトラフィックをカスタマー別に識別してアカウンティングを行うことができ、それに応じて課金できます。下の図では、BGP
PA はルータ A で実装され、自律システム バケットにおけるパケットおよびバイト ボリュームを測定します。カスタマーは、国内、海外、または衛星経由の送信元からルーティングされたトラフィックに応じて適切に課金されます。
Device# show ip cef 192.168.5.0 detail
192.168.5.0/24, version 21, cached adjacency to POS7/2
0 packets, 0 bytes, traffic_index 4
via 10.14.1.1, 0 dependencies, recursive
next hop 10.14.1.1, POS7/2 via 10.14.1.0/30
valid cached adjacency
ステップ 2
show ip bgp [network] [network-mask] [longer-prefixes ]
手順 1 で使用したのと同じプレフィックス(192.168.5.0)について show ip bgp コマンドを入力し、このプレフィックスに割り当てられているコミュニティを調べます。
Device# show ip bgp 192.168.5.0
BGP routing table entry for 192.168.5.0/24, version 2
Paths: (1 available, best #1)
Not advertised to any peer
100
10.14.1.1 from 10.14.1.1 (32.32.32.32)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 100:197
ステップ 3
show cef interface [typenumber] policy-statistics [input |output ]
Device# show cef interface Fast Ethernet 1/0/0
FastEthernet1/0/0 is up (if_number 6)
Corresponding hwidb fast_if_number 6
Corresponding hwidb firstsw->if_number 6
Internet address is 10.1.1.1/24
ICMP redirects are always sent
Per packet load-sharing is disabled
IP unicast RPF check is disabled
Inbound access list is not set
Outbound access list is not set
IP policy routing is disabled
BGP based policy accounting on input is enabled
BGP based policy accounting on output is disabled
Hardware idb is FastEthernet1/0/0 (6)
Software idb is FastEthernet1/0/0 (6)
Fast switching type 1, interface type 18
IP Distributed CEF switching enabled
IP Feature Fast switching turbo vector
IP Feature CEF switching turbo vector
Input fast flags 0x100, Output fast flags 0x0, Flags 0x0
ifindex 7(7)
Slot 1 Slot unit 0 VC -1
Transmit limit accumulator 0xE8001A82 (0xE8001A82)
IP MTU 1500