JP2013078012A - Management method of route table in bgp router and management server - Google Patents

Management method of route table in bgp router and management server Download PDF

Info

Publication number
JP2013078012A
JP2013078012A JP2011217148A JP2011217148A JP2013078012A JP 2013078012 A JP2013078012 A JP 2013078012A JP 2011217148 A JP2011217148 A JP 2011217148A JP 2011217148 A JP2011217148 A JP 2011217148A JP 2013078012 A JP2013078012 A JP 2013078012A
Authority
JP
Japan
Prior art keywords
routing table
bgp
prefix
router
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011217148A
Other languages
Japanese (ja)
Other versions
JP5676408B2 (en
Inventor
Masafumi Watari
雅史 渡里
Atsushi Tagami
敦士 田上
Shigehiro Ano
茂浩 阿野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KDDI Corp
Original Assignee
KDDI Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KDDI Corp filed Critical KDDI Corp
Priority to JP2011217148A priority Critical patent/JP5676408B2/en
Publication of JP2013078012A publication Critical patent/JP2013078012A/en
Application granted granted Critical
Publication of JP5676408B2 publication Critical patent/JP5676408B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a management method of a route table for which complicated design or BGP protocol expansion is not required, and a management server.SOLUTION: A route table is received from a router 10 and a prefix is collected by a BGP receiver 2. Destination IP addresses of data packets relayed by the router 10 for a predetermined period are collected by a packet information receiver 3. Each destination IP address is allocated to the prefix and a use frequency as a destination of the prefix for a predetermined period is aggregated by a frequency aggregation part 4. A message to delete the prefix whose aggregated frequency is low is transmitted to the router 10 by a message transmitter 5. Further, a default route is set to the router 10 as another router for securing an arrival possibility of the prefix from which the next hop has been deleted.

Description

本発明は、BGP(Border Gateway Protocol)ルータにおける経路表の効率的な管理方法及び管理サーバに関する。   The present invention relates to an efficient route table management method and management server in a BGP (Border Gateway Protocol) router.

インターネットにおいてBGPより広告されるプレフィックスは年々増加しており、観測されるプレフィックス数が、ルータのメモリ上の経路表で管理できるプレフィックス数の上限に迫っている問題がある。このため、プレフィックスの効率的な管理が課題となっている。非特許文献1に記載された従来技術は、経路表を複数のルータで分散管理する方法を提案している。   Prefixes advertised by BGP on the Internet are increasing year by year, and there is a problem that the number of prefixes observed is approaching the upper limit of the number of prefixes that can be managed in the route table on the router memory. For this reason, efficient management of prefixes is an issue. The prior art described in Non-Patent Document 1 proposes a method for managing a routing table in a distributed manner by a plurality of routers.

図4は当該従来技術を説明するための図である。通常、デフォルトフリーゾーン(DFZ;デフォルトルートがないネットワーク)に接続されたBGPルータは、インターネットで観測される全プレフィックスを経路表で管理する。図4の構成では、仮にインターネットで観測される全プレフィックスを192.168.0.0/24〜192.168.5.0/24の計6個と想定し、互いに隣接するルータA〜ルータCにおいて、それぞれ経路表TA1〜TC1として示すように、これら全プレフィックスを次ホップと対応づけて管理している。   FIG. 4 is a diagram for explaining the related art. Normally, a BGP router connected to a default free zone (DFZ; network without a default route) manages all prefixes observed on the Internet in a route table. In the configuration of FIG. 4, it is assumed that all prefixes observed on the Internet are a total of six from 192.168.0.0/24 to 192.168.5.0/24, and the routers A to C adjacent to each other have routing tables TA1 to TC1 respectively. As shown below, all these prefixes are managed in association with the next hop.

当該構成に対して、従来技術では、次のような手法によって経路表のプレフィックスを複数のルータA〜Cで分散管理させる。すなわち、他AS(Autonomous System;自律システム)との接続を持つルータAおよびルータBにおいて、6個のプレフィックスを分散管理させる。例えば、ルータAでは、192.168.0.0/24〜192.168.2.0/24の3個を管理し、ルータBでは、192.168.3.0/24〜192.168.5.0/24の3個を管理するようにする。ただし、他のルータが保持するプレフィックスに対して、到達性を保証する必要があるため、表T2に示すように、それぞれ集約できる範囲で集約したプレフィックスを管理する。これにより、ルータA及びBに対してそれぞれ経路表TA2及びTB2として示すように、各ルータで管理するプレフィックス数を5個に削減できる(5/6に削減)。他のASとの接続を持たない、自AS内のルータCでは、集約したプレフィックスを全て管理するため、経路表TC2として示すように、4個に削減できる(4/6に削減)。   In contrast to this configuration, in the prior art, the routing table prefix is distributed and managed by the plurality of routers A to C by the following method. That is, 6 prefixes are distributedly managed in the router A and the router B having connection with other AS (Autonomous System). For example, the router A manages three of 192.168.0.0/24 to 192.168.2.0/24, and the router B manages three of 192.168.3.0/24 to 192.168.5.0/24. However, since it is necessary to guarantee reachability for prefixes held by other routers, as shown in Table T2, prefixes that are aggregated within a range that can be aggregated are managed. As a result, the number of prefixes managed by each router can be reduced to 5 (reduced to 5/6) as shown in the route tables TA2 and TB2 for the routers A and B, respectively. In the router C in the own AS, which has no connection with other ASs, all the aggregated prefixes are managed, so that it can be reduced to 4 (reduced to 4/6) as shown in the route table TC2.

FIB Suppression with Virtual Aggregation, Internet Draft, http://tools.ietf.org/id/draft-ietf-grow-va-05.txtFIB Suppression with Virtual Aggregation, Internet Draft, http://tools.ietf.org/id/draft-ietf-grow-va-05.txt

しかしながら、従来技術においては、各ルータで管理するプレフィックス数を効率的に削減するためには、上記手法によるプレフィックスの集約方法に加え、実際の運用に合わせて、各プレフィックスに対して流れるトラヒック量を考慮した上でプレフィックスを分散させる必要があるため、設計が複雑になる課題がある。さらに、分散の処理を自動化するためには、BGPプロトコルの拡張が必要になるという課題がある。   However, in the prior art, in order to efficiently reduce the number of prefixes managed by each router, in addition to the prefix aggregation method according to the above method, the traffic volume flowing to each prefix is reduced according to the actual operation. Since it is necessary to distribute the prefix after consideration, there is a problem that the design is complicated. Furthermore, in order to automate the distribution process, there is a problem that it is necessary to extend the BGP protocol.

本発明の目的は、上記従来技術の課題を解決し、複雑な設計を必要とすることなく、また、BGPプロトコルの拡張を必要とすることなく、BGPルータで管理するプレフィックス数を効率的に削減することができる、BGPルータにおける経路表の管理方法及び管理サーバを提供することにある。   The object of the present invention is to solve the above-mentioned problems of the prior art and efficiently reduce the number of prefixes managed by a BGP router without requiring a complicated design and without requiring an extension of the BGP protocol. An object of the present invention is to provide a routing table management method and management server in a BGP router.

上記従来技術の課題を解決するために、本発明は、BGPルータにおける経路表の管理方法であって、経路表を管理する第一のBGPルータより該経路表に宛先として記載のプレフィックスを収集するステップと、所定期間に渡り前記第一のBGPルータにて中継された各パケットの宛先IPアドレスを収集するステップと、前記収集された宛先IPアドレスを前記収集されたプレフィックスに割り当て、各プレフィックスが前記所定期間に渡り宛先として使用された頻度を集計するステップと、前記頻度が少ないことに関する所定基準を満たすプレフィックスを前記第一のBGPルータにおける経路表から削除すると共に、前記第一のBGPルータにおける経路表に第二のBGPルータを次ホップとするデフォルトルートを設定するステップと、前記第二のBGPルータにおける経路表にて前記所定基準を満たすプレフィックスを宛先として設定するステップとを備えることを特徴とする。   In order to solve the above-described problems of the prior art, the present invention is a routing table management method in a BGP router, which collects prefixes described as destinations in the routing table from a first BGP router that manages the routing table. Collecting a destination IP address of each packet relayed by the first BGP router over a predetermined period, assigning the collected destination IP address to the collected prefix, A step of aggregating the frequency used as a destination over a predetermined period, and deleting a prefix satisfying a predetermined criterion relating to the low frequency from the route table in the first BGP router, and a route in the first BGP router A step of setting a default route having the second BGP router as the next hop in the table; and Setting a prefix satisfying the predetermined criterion as a destination in a routing table.

また、上記従来技術の課題を解決するために、本発明は、BGPルータにおける経路表の管理サーバであって、経路表を管理する第一のBGPルータより該経路表に宛先として記載のプレフィックスを収集するBGP受信部と、所定期間に渡り前記第一のBGPルータにて中継された各パケットの宛先IPアドレスを収集するパケット情報受信部と、前記収集された宛先IPアドレスを前記収集されたプレフィックスに割り当て、各プレフィックスが前記所定期間に渡り宛先として使用された頻度を集計する頻度集計部と、前記頻度が少ないことに関する所定基準を満たすプレフィックスを前記第一のBGPルータにおける経路表から削除するBGPメッセージと、前記第一のBGPルータの経路表に第二のBGPルータを次ホップとするデフォルトルートを設定するBGPメッセージと、前記第二のBGPルータにおける経路表にて前記所定基準を満たすプレフィックスを宛先として設定するBGPメッセージとを送信するメッセージ送信部とを備えることを特徴とする。   In order to solve the above-described problems of the prior art, the present invention provides a routing table management server in a BGP router, and a prefix described in the routing table as a destination from a first BGP router that manages the routing table. A BGP receiving unit for collecting, a packet information receiving unit for collecting a destination IP address of each packet relayed by the first BGP router over a predetermined period, and the collected prefix for the collected destination IP address A frequency counting unit that counts the frequency at which each prefix was used as a destination over the predetermined period, and a BGP that deletes a prefix that satisfies the predetermined criterion regarding the low frequency from the routing table in the first BGP router A BGP message that sets a default route with the second BGP router as the next hop in the route table of the first BGP router; A message transmission unit configured to transmit a BGP message in which a prefix satisfying the predetermined criterion is set as a destination in the route table in the second BGP router.

本発明によれば、パケットの転送が必要となる転送実績のあるプレフィックスのみを第一のBGPルータで管理させることによって、第一のBGPルータにおけるプレフィックス数が削減されると共に、転送実績がなくとも前記所定期間の後に新たに転送の必要が生じうるプレフィックスについては第二のBGPルータで管理させることで、到達可能性も保証される。しかも当該各効果は、BGPプロトコルの拡張が不要で且つ単純な設計により達せられる。   According to the present invention, the number of prefixes in the first BGP router is reduced by managing only the prefixes with a transfer record that requires packet transfer by the first BGP router, and even if there is no transfer record. A prefix that may newly need to be transferred after the predetermined period is managed by the second BGP router, thereby ensuring reachability. In addition, each of the effects can be achieved by a simple design that does not require extension of the BGP protocol.

経路表の管理サーバの機能ブロック図である。It is a functional block diagram of the management server of a routing table. 経路表の管理方法のフローチャートである。It is a flowchart of the management method of a routing table. 図2を説明するための図である。FIG. 3 is a diagram for explaining FIG. 2. 従来技術を説明するための図である。It is a figure for demonstrating a prior art.

図1に、本発明に係る経路表の管理サーバの機能ブロックをBGPルータとのやりとりを含めて示す。管理サーバ1は、BGP受信部2,パケット情報受信部3,頻度集計部4及びメッセージ送信部5を備え、ミラーポート11を備えるBGPルータ10と各種の通信を行い、BGPルータ10の経路表に設定を施して管理する。   FIG. 1 shows a functional block of a routing table management server according to the present invention including communication with a BGP router. The management server 1 includes a BGP receiving unit 2, a packet information receiving unit 3, a frequency counting unit 4, and a message transmitting unit 5, and performs various communications with a BGP router 10 including a mirror port 11. Set and manage.

図2に、本発明に係る経路表の管理方法のフローチャートを示す。図3は当該フローチャートを説明するための図であり、ここでのネットワーク構成例は図4で示した例と同様である。すなわち、BGPルータ10の例として、自AS内にそれぞれIPアドレス11.0.0.1, 11.0.0.2及び11.0.0.3を付与されたルータA,B及びCが存在する。管理対象となる全プレフィックスは192.168.0.0/24〜192.168.5.0/24の計6個であり、本発明を適用しない状態においてはルータA〜Cが、図4に示すデフォルトルートを有しない経路表TA1〜TC1により管理している。また他AS内には、次ホップとなるルータの例としてIPアドレス10.0.01を付与されたルータZが存在し、ルータA及びBと接続されている。   FIG. 2 shows a flowchart of a routing table management method according to the present invention. FIG. 3 is a diagram for explaining the flowchart, and the network configuration example here is the same as the example shown in FIG. That is, as an example of the BGP router 10, there are routers A, B, and C assigned IP addresses 11.0.0.1, 11.0.0.2, and 11.0.0.3, respectively, within the local AS. The total number of prefixes to be managed is 192.168.0.0/24 to 192.168.5.0/24, and in a state where the present invention is not applied, the routers A to C do not have the default route shown in FIG. Managed by TA1 to TC1. Further, in another AS, there is a router Z to which an IP address 10.0.01 is assigned as an example of a next hop router, and is connected to routers A and B.

本発明においては、このような構成の自AS内に管理サーバ1(IPアドレス11.0.0.5)を配置する(1台あればよい)と共に、必要に応じて新たにBGPルータ10の1つであるルータD(IPアドレス11.0.0.6)を導入する。なお、ルータA〜Cの各々と管理サーバ1又はルータDとの間、管理サーバ1とルータDとの間及び管理サーバ1又はルータDとルータZとの間はBGPにおける隣接関係にあるものとする。すなわち、管理サーバ1もルータA〜Dと同様にBGPルータの機能を有する。   In the present invention, the management server 1 (IP address 11.0.0.5) is arranged in the self-AS having such a configuration (only one is required), and is newly one of the BGP routers 10 as necessary. Router D (IP address 11.0.0.6) is installed. In addition, between each of the routers A to C and the management server 1 or the router D, between the management server 1 and the router D, and between the management server 1 or the router D and the router Z are adjacent to each other in BGP. To do. That is, the management server 1 has the function of a BGP router like the routers A to D.

なお、当該例においては、自ASに対する他ASは図3では1つのみであり、当該他AS内で自ASに次ホップとして接続しているのは1台のルータZのみである。より一般に、他AS及び/又は他ASにおいて次ホップとなるルータZiが複数ある場合(i=1,2,...,n)も、各他ASの各ルータZiが管理サーバ1又はルータDと隣接することにより、本発明を一般的に適用できる。   In this example, there is only one other AS in FIG. 3 for the own AS, and only one router Z is connected to the own AS as the next hop in the other AS. More generally, even when there are a plurality of routers Zi that are the next hops in other ASs and / or other ASs (i = 1, 2,..., N), each router Zi of each other AS is the management server 1 or router D. The present invention is generally applicable by being adjacent to each other.

以下、ステップS1より開始される図2の各ステップを説明する。ステップS2にてBGP受信部2は、隣接するBGPルータ10と適宜必要なBGPメッセージを交換することでBGPセッションを張り、図4のTA1〜TC1のような経路表を取得すると共に、経路表に宛先として記載の全プレフィックス(192.168.0.0/24〜192.168.5.0/24)を収集する。ステップS3にてパケット情報受信部3は、BGPルータ10のミラーポート11より、1日又は1ヶ月といったような所定期間に渡って当該BGPルータが中継したデータパケットの情報、特に各パケットの宛先IPアドレスの情報を受信して収集する。   Hereinafter, each step of FIG. 2 started from step S1 will be described. In step S2, the BGP receiving unit 2 establishes a BGP session by exchanging necessary BGP messages with the adjacent BGP router 10 and acquires a route table such as TA1 to TC1 in FIG. Collect all prefixes (192.168.0.0/24 to 192.168.5.0/24) listed as destinations. In step S3, the packet information receiving unit 3 receives information on the data packet relayed by the BGP router from the mirror port 11 of the BGP router 10 for a predetermined period such as one day or one month, particularly the destination IP of each packet. Receive and collect address information.

なお、ステップS2及びS3では、通信対象となるBGPルータ10として各ルータA〜Cの中から任意の1台のみを選んで通信すればよい。例えば図3ではルータAを対象としている。ステップS2では、経路表の全てを受信するのではなく、宛先として記載のプレフィックスのみを受信及び収集してもよい。ステップS3では、同様の情報を予めデータベース等として取得又は保存して利用できるようにしておけば、ミラーポート11から直接リアルタイムに受信しなくともよい。   In steps S2 and S3, only one arbitrary router among the routers A to C may be selected and communicated as the BGP router 10 to be communicated. For example, in FIG. In step S2, not all of the routing table may be received, but only the prefix described as the destination may be received and collected. In step S3, it is not necessary to receive the same information directly from the mirror port 11 in real time as long as the same information is acquired or stored in advance as a database or the like.

ステップS4にて頻度集計部4は、ステップS2で収集した経路表のプレフィックスとステップS3にて収集した宛先IPアドレスとを最長一致(Longest Match)アルゴリズムに従ってマッピングし、プレフィックス毎に観測されたパケット数を集計する。すなわち、各プレフィックスがステップS3の所定期間に渡り各パケットの宛先として使用された頻度を集計する。ステップS4の集計例を図3のテーブルT30に示す。   In step S4, the frequency counting unit 4 maps the prefix of the routing table collected in step S2 and the destination IP address collected in step S3 according to the longest match algorithm, and the number of packets observed for each prefix. Are counted. That is, the frequency at which each prefix was used as the destination of each packet over the predetermined period of step S3 is totaled. A tabulation example of step S4 is shown in a table T30 in FIG.

ステップS5では、ステップS2で収集した各プレフィックスにつき以降のステップを実行するための識別カウンタiを初期値1に設定する。以下説明し図2中にも記載のように、各プレフィックスiに対して各ケース(1)〜(3)のうちの該当するケースに応じた処理がなされる。   In step S5, an identification counter i for executing the subsequent steps is set to an initial value 1 for each prefix collected in step S2. As will be described below and described in FIG. 2, processing corresponding to the corresponding case among the cases (1) to (3) is performed for each prefix i.

ステップS6にて頻度集計部4は、i番目のプレフィックスが削除対象であるかを判定する。ここでは、ステップS4の集計結果において頻度が少ない側の所定条件にプレフィックスiが該当する場合に、削除対象であると判定する。図3の例では、テーブルT30に示すように、観測パケット数が0個であり実際には使われていないプレフィックス192.168.3.0/24,192.168.4.0/24及び192.168.5.0/24が削除対象と判定される。所定条件としてはその他例えば、ステップS3の所定期間内で観測パケット数が100個以下であること、等としてもよい。   In step S6, the frequency counting unit 4 determines whether the i-th prefix is a deletion target. Here, when the prefix i corresponds to the predetermined condition on the side with less frequency in the counting result of step S4, it is determined that the object is to be deleted. In the example of FIG. 3, as shown in the table T30, prefixes 192.168.3.0/24, 192.168.4.0/24, and 192.168.5.0/24 that have 0 observation packets and are not actually used are subject to deletion. Determined. As other predetermined conditions, for example, the number of observed packets may be 100 or less within the predetermined period of step S3.

ステップS6で削除対象と判定された場合[ケース(1)]、ステップS7にて当該プレフィックスiを各BGPルータ10(図3ではルータA〜C)の経路表から削除するためのBGPメッセージ、すなわち当該プレフィックスiに対するWithdrawメッセージをメッセージ送信部5が各BGPルータ10に送信する。この際、Withdrawメッセージの他ASへの流出を防ぐため、COMMUNITY属性としてNO EXPORTを設定する。   If it is determined that it is to be deleted in step S6 [Case (1)], a BGP message for deleting the prefix i from the routing table of each BGP router 10 (routers A to C in FIG. 3) in step S7, that is, The message transmission unit 5 transmits a Withdraw message for the prefix i to each BGP router 10. At this time, NO EXPORT is set as the COMMUNITY attribute to prevent the Withdraw message from leaking to the AS.

なお、ステップS7ではまた、当該削除するプレフィックスiが後述のステップS10において追加対象となる場合に備えて、削除プレフィックスiに対する各ルータA〜Cでの当該時点における経路表に記載の次ホップを管理サーバ1において記録しておくものとする。   In step S7, the next hop described in the routing table at the time point at each router A to C for the deleted prefix i is managed in preparation for the case where the deleted prefix i is to be added in step S10 described later. It is assumed that the server 1 records it.

なおまた、当該図2のフロー全体を終えた後に、当該削除したプレフィックスiに対して仮に経路変更があった場合は、次のような処理を行うことで、図2のフローを再度繰り返す場合に向けた準備を行う。すなわち、当該経路変更の通知を各ルータA〜C及び管理サーバ1が受信すると、まず一旦、各ルータA〜Cは管理する経路表に当該プレフィックスiを、当該通知された経路変更を反映させて追加する。管理サーバ1は当該追加の直後に、当該プレフィックスiに対してステップS7及び後述のステップS8と同様の処理を行い、自身で管理している経路表におけるプレフィックスiにおいて次ホップを変更する等して経路変更を反映させ、経路表を更新する。このようにして、経路変更のあったプレフィックスiは各ルータA〜Cの経路表には(追加直後に削除されることによって)記載されず、管理サーバ1の経路表において経路変更を反映して管理されることとなる。   In addition, after the entire flow of FIG. 2 is finished, if there is a route change for the deleted prefix i, the following processing is performed to repeat the flow of FIG. Prepare for. That is, when the routers A to C and the management server 1 receive the notification of the route change, the routers A to C first reflect the prefix i in the route table managed and reflect the notified route change. to add. Immediately after the addition, the management server 1 performs the same processing as the step S7 and the later-described step S8 on the prefix i, and changes the next hop in the prefix i in the route table managed by itself. Reflect the route change and update the route table. In this way, the prefix i that has undergone the route change is not described in the route table of each of the routers A to C (by being deleted immediately after addition), and the route change is reflected in the route table of the management server 1. Will be managed.

ステップS8では、当該削除されたプレフィックスiへの到達性を保証するため、各BGPルータ10(ルータA〜C)に対して、メッセージ送信部5よりデフォルトルート0.0.0.0/0を広報する。この際、デフォルトルートの次ホップとしては、管理サーバ1自身のIPアドレスを、または当初全プレフィックスを管理していたルータA〜Cと別途にルータDを追加利用できる場合には、当該ルータDのIPアドレスを、ルータA〜Cに広報する。   In step S8, in order to guarantee reachability to the deleted prefix i, the default route 0.0.0.0/0 is advertised from the message transmission unit 5 to each BGP router 10 (routers A to C). At this time, as the next hop of the default route, when the router D can be additionally used separately from the IP address of the management server 1 itself or the routers A to C that originally managed all the prefixes, The IP address is publicized to the routers A to C.

ステップS8ではさらに、次ホップとして設定された管理サーバ1またはルータDの経路表に、ルータA〜Cにて削除された当該プレフィックスiを宛先として設定させるBGPメッセージを、メッセージ送信部5が送信する。この際、当該宛先プレフィックスiの次ホップは前記ステップS7にて記録した各次ホップのうち、他ASに属するルータ(図3ではIPアドレス10.0.0.1のルータZ)に設定できる。なお、管理サーバ1自身に設定する場合はBGPメッセージの送信を省略してもよい。   In step S8, the message transmitting unit 5 further transmits a BGP message for setting the prefix i deleted by the routers A to C as the destination in the route table of the management server 1 or the router D set as the next hop. . At this time, the next hop of the destination prefix i can be set to the router belonging to the other AS (the router Z having the IP address 10.0.0.1 in FIG. 3) among the next hops recorded in step S7. In addition, when setting to management server 1 itself, you may abbreviate | omit transmission of a BGP message.

なおまた、ルータDを追加利用せず管理サーバ1を利用する場合、管理サーバ1は当該追加利用することも検討可能なルータDのBGPルータとしての役割を兼用しているとみなすことができる。   In addition, when the management server 1 is used without additionally using the router D, the management server 1 can be considered to also serve as a BGP router of the router D that can be considered to be additionally used.

図3の経路表T3は、テーブルT30に示す集計結果の場合にパケット数0のプレフィックスを削除対象とした場合の、当該管理サーバ1またはルータDに設定される経路表の例である。   The routing table T3 in FIG. 3 is an example of the routing table set in the management server 1 or the router D when the prefix with the number of packets 0 is to be deleted in the case of the aggregation result shown in the table T30.

ステップS6に戻り、前記所定条件に該当せず、プレフィックスiに所定の使用実績があり削除対象とは判定されなかった場合[ケース(2)または(3)]、ステップS9にて当該プレフィックスiが追加対象であるかを頻度集計部4が判定する。   Returning to step S6, when the predetermined condition is not met and the prefix i has a predetermined usage record and is not determined to be deleted [Case (2) or (3)], the prefix i is determined in step S9. The frequency counting unit 4 determines whether it is an addition target.

追加対象であると判定されるのは、図2のフロー全体を例えば9月に一度実施して10月に再度実施するといったように、ステップS3における異なる所定期間において2回以上実施しており、当該プレフィックスiが直前の回(例えば9月に実施の回)ではステップS6にて削除対象と判定されたが、今回(例えば10月に実施の回)は削除対象とは判定されなかった場合[ケース(2)]である。   It is determined to be an additional target that the entire flow of FIG. 2 is performed twice or more in different predetermined periods in step S3, for example, once in September and again in October. When the prefix i is determined to be a deletion target in step S6 in the immediately preceding time (for example, the time of implementation in September), but this time (for example, the time of the execution in October) is not determined to be a deletion target [ Case (2)].

このように判定されるプレフィックスiはルータA〜Cの経路表から直前の回において削除されており、今回はルータA〜Cの経路表に戻す必要がある、すなわち追加対象である。そこでステップS10において、メッセージ送信部5が各BGPルータ10(ルータA〜C)に対して当該プレフィックスiを宛先として設定させるBGPメッセージすなわちAnnounceメッセージを送信する。この際も、Withdrawの場合と同様、Announceメッセージの他ASへの流出を防ぐため、NO EXPORT属性を有効にする。   The prefix i determined in this way has been deleted from the routing table of the routers A to C in the previous round, and this time needs to be returned to the routing table of the routers A to C, that is, is an addition target. Therefore, in step S10, the message transmission unit 5 transmits a BGP message, that is, an Announce message, which causes each BGP router 10 (routers A to C) to set the prefix i as a destination. In this case as well, as with Withdraw, the NO EXPORT attribute is enabled to prevent the Announce message from leaking to the AS.

この際、当該宛先プレフィックスiの次ホップは、直前の回のステップS7で削除されると共に管理サーバ1が記録し、前述のようにその後、当該削除されたプレフィックスiに対して経路変更があれば管理サーバ1の経路表において更新した次ホップを、各ルータA〜Cに設定する。   At this time, the next hop of the destination prefix i is deleted in the previous step S7 and recorded by the management server 1, and if there is a route change for the deleted prefix i as described above, The next hop updated in the routing table of the management server 1 is set in each of the routers A to C.

なお、図2のフロー全体を2回以上実施する場合、2回目以降においては1回目の後の経路変更も反映された、ルータA〜Cの経路表と管理サーバ1又はルータDの経路表とによってその時点での全プレフィックスを保持している。よって2回目以降のステップS2では、前述のようにルータA〜Cのいずれかの経路表のみからではなく、さらに管理サーバ1又はルータDの経路表からBGP受信部2が全プレフィックスを収集するものとする。   When the entire flow of FIG. 2 is performed twice or more, the route table of the routers A to C and the route table of the management server 1 or the router D reflecting the route change after the first time are reflected in the second and subsequent times. Holds all the prefixes at that time. Therefore, in the second and subsequent steps S2, the BGP receiving unit 2 collects all prefixes not only from the route table of any of the routers A to C as described above but also from the route table of the management server 1 or the router D. And

ステップS9に戻り、追加対象と判断されなかった場合[ケース(3)]、当該プレフィックスiはそのまま各ルータA〜Cの経路表に記載しておくべきプレフィックスであるので、WithdrawもAnnounceも不要であり、経路表における当該プレフィックスiに関する操作は何も行われない。   Returning to step S9, if it is not determined to be added [Case (3)], since the prefix i is a prefix that should be described in the route table of each router A to C as it is, neither Withdraw nor Announce is required. Yes, no operation is performed on the prefix i in the routing table.

以上のような、プレフィックスiにつき各ケース(1)〜(3)のいずれかにおける処理を終えると、ステップS11では全プレフィックスにつき処理が完了したかを頻度集計部4が判断し、完了していればステップS13にて当該フローは終了し、完了していなければカウンタiを増分して次のプレフィックスを対象として再度ステップS6からフローが繰り返される。   When the processing in any of the cases (1) to (3) is completed for the prefix i as described above, in step S11, the frequency counting unit 4 determines whether the processing has been completed for all the prefixes. In step S13, the flow ends. If not completed, the counter i is incremented and the flow is repeated from step S6 again for the next prefix.

図3の経路表TA3〜TC3は、上記のようなフローによりテーブルT30に示す集計結果が得られ、T3に示す経路表が(ルータDではなく)IPアドレス11.0.0.5の管理サーバ1に設定された場合の、ルータA〜Cにおいて設定される経路表の例である。さらに当該フローを再度行い、初回の集計結果T30とは異なり例えば192.168.3.0/24のパケット数が0ではなく300など相当数が得られ且つその他のプレフィックスにおける観測パケット数に関しては同様であり、フローを再度行うまでに経路変更などがなかった場合、各経路表は次のように更新される。   The route tables TA3 to TC3 in FIG. 3 are obtained as a result of the aggregation shown in the table T30 by the flow as described above, and the route table shown in T3 is set in the management server 1 with the IP address 11.0.0.5 (not the router D). It is an example of a route table set in the routers A to C when Furthermore, the flow is performed again, and unlike the initial count result T30, for example, the number of packets of 192.168.3.0/24 is not 0 but a considerable number such as 300 is obtained, and the number of observed packets in other prefixes is the same. If there is no route change before the process is performed again, each route table is updated as follows.

すなわち、経路表TA3及びTB3において「プレフィックス192.168.3.0/24 次ホップ10.0.0.1」が追加され、経路表TC3において「プレフィックス192.168.3.0/24 次ホップ11.0.0.1」が追加され、経路表T3から「プレフィックス192.168.3.0/24 次ホップ10.0.0.1」が削除されることとなる。   That is, “prefix 192.168.3.0/24 next hop 10.0.0.1” is added in the route tables TA3 and TB3, and “prefix 192.168.3.0/24 next hop 11.0.0.1” is added in the route table TC3. “Prefix 192.168.3.0/24 Next hop 10.0.0.1” will be deleted.

なお、ステップS7,S8及びS10の各BGPメッセージの送信及び経路表T3の構築については、各プレフィックスiにつきケース(1)〜(3)の判断と同時に個別にBGPメッセージ送信及び経路表構築するのではなく、判断のみ全プレフィックスにつき前もって下しておき、該当するプレフィックスをメッセージ内にまとめて格納して一括で行うようにして、送信及び構築の効率化を図ってもよい。   Regarding the transmission of each BGP message and the construction of the routing table T3 in steps S7, S8, and S10, the BGP message transmission and the routing table are constructed individually for each prefix i simultaneously with the judgment of cases (1) to (3). Instead, only the determination may be made in advance for all prefixes, and the corresponding prefixes may be stored together in a message and performed in a batch to improve the efficiency of transmission and construction.

なおまた、図2のフロー全体を2回目以降に実行するに際しては、プレフィックスiが今回、ケース(1)を辿る場合は、ステップS9における判断と同様に、今回と前回とで差異が生じたプレフィックスのみを処理対象としてよい。すなわち、今回ケース(1)を辿るプレフィックスiのうち、前回はケース(2)又は(3)を辿り今回新たにケース(1)を辿ることとなったものについてのみ、ステップS7及びS8を実行するようにし、前回も同じくケース(1)を辿ったものは既にルータA〜Cの経路表から削除される等しているので、ステップS7及びS8は省略してもよい。   In addition, when the entire flow of FIG. 2 is executed for the second time or later, if the prefix i follows the case (1) this time, the prefix in which a difference has occurred between this time and the previous time, as in the determination in step S9. Only the processing target may be used. That is, steps S7 and S8 are executed only for those prefixes i that follow case (1) this time that last followed case (2) or (3) and now follow case (1). In the same manner, since the case that followed the case (1) in the previous time has already been deleted from the route table of the routers A to C, steps S7 and S8 may be omitted.

本発明のより簡素な実施例として、ステップS8のデフォルトルートの送信を省略してもよい。この場合作成される経路表は、図3の例ならば経路表TA3〜TC3から「プレフィックス0.0.0.0/0 次ホップ11.0.0.5」が削除されたものとなり、宛先がプレフィックス192.168.3.0/24,192.168.4.0/24又は192.168.5.0/24に該当するパケットが当該経路表の適用後に現れた場合にはルータA〜Cにて破棄されることとなる。代わりに利点として、当該プレフィックスに対応する次ホップを定めたネットワーク構成を管理サーバ1又はルータDを用いて構築する必要はなくなる。   As a simpler embodiment of the present invention, the transmission of the default route in step S8 may be omitted. In the case of the route table created in this case, in the example of FIG. 3, “prefix 0.0.0.0/0 next hop 11.0.0.5” is deleted from the route tables TA3 to TC3, and the destination is the prefix 192.168.3.0/24,192.168. When a packet corresponding to 4.0 / 24 or 192.168.5.0/24 appears after application of the routing table, it is discarded by the routers A to C. Instead, as an advantage, there is no need to construct a network configuration that defines the next hop corresponding to the prefix using the management server 1 or the router D.

同様に、デフォルトルートは送信するが、データパケットが管理サーバ1又はルータDに転送された後の到達可能性は保証しないようにしてもよい。いずれの場合も、削除対象は観測パケット数に基づいて決定しているため、統計的に妥当な所定期間に渡って観測しておけば破棄されるデータパケットは少なく、ルータA〜Cからなる当初のネットワーク構成のままで大多数のデータパケットを正常に転送しつつ経路表を効率的に削減することができる。   Similarly, although the default route is transmitted, the reachability after the data packet is transferred to the management server 1 or the router D may not be guaranteed. In either case, since the deletion target is determined based on the number of observed packets, if the data is observed over a predetermined period that is statistically valid, the number of data packets that are discarded is small. It is possible to efficiently reduce the routing table while normally transferring a large number of data packets with the network configuration.

1…管理サーバ、2…BGP受信部、3…パケット情報受信部、4…頻度集計部、5…メッセージ送信部、10…BGPルータ   DESCRIPTION OF SYMBOLS 1 ... Management server, 2 ... BGP receiving part, 3 ... Packet information receiving part, 4 ... Frequency totaling part, 5 ... Message transmission part, 10 ... BGP router

Claims (5)

BGPルータにおける経路表の管理方法であって、
経路表を管理する第一のBGPルータより該経路表に宛先として記載のプレフィックスを収集するステップと、
所定期間に渡り前記第一のBGPルータにて中継された各パケットの宛先IPアドレスを収集するステップと、
前記収集された宛先IPアドレスを前記収集されたプレフィックスに割り当て、各プレフィックスが前記所定期間に渡り宛先として使用された頻度を集計するステップと、
前記頻度が少ないことに関する所定基準を満たすプレフィックスを前記第一のBGPルータにおける経路表から削除すると共に、前記第一のBGPルータにおける経路表に第二のBGPルータを次ホップとするデフォルトルートを設定するステップと、
前記第二のBGPルータにおける経路表にて前記所定基準を満たすプレフィックスを宛先として設定するステップとを備えることを特徴とするBGPルータにおける経路表の管理方法。
A routing table management method in a BGP router,
Collecting a prefix described as a destination in the routing table from a first BGP router managing the routing table;
Collecting a destination IP address of each packet relayed by the first BGP router over a predetermined period;
Assigning the collected destination IP addresses to the collected prefixes and aggregating the frequency with which each prefix was used as a destination over the predetermined period;
A prefix that satisfies the predetermined criteria regarding the low frequency is deleted from the routing table in the first BGP router, and a default route with the second BGP router as the next hop is set in the routing table in the first BGP router And steps to
A routing table management method in the BGP router, comprising: setting a prefix that satisfies the predetermined criterion in the routing table in the second BGP router as a destination.
前記宛先IPアドレスを収集するステップ及び前記頻度を集計するステップを再度行うステップと、
当該再度集計された頻度が前記所定基準を満たさなくなったプレフィックスを前記第一のBGPルータにおける経路表に宛先として設定すると共に前記第二のBGPルータにおける経路表から削除するステップと、
当該再度集計された頻度が前記所定基準を満たすようになったプレフィックスを前記第一のBGPルータにおける経路表から削除すると共に前記第二のBGPルータにおける経路表にて宛先として設定するステップとさらに備えることを特徴とする請求項1に記載のBGPルータにおける経路表の管理方法。
Performing the steps of collecting the destination IP address and counting the frequency again;
A step of setting a prefix whose frequency counted again does not satisfy the predetermined criterion as a destination in the routing table in the first BGP router and deleting it from the routing table in the second BGP router;
A step of deleting a prefix whose frequency counted again meets the predetermined criterion from the routing table in the first BGP router and setting as a destination in the routing table in the second BGP router; The routing table management method in the BGP router according to claim 1.
前記第一及び第二のBGPルータは所定のASに属し、前記経路表から削除し、前記経路表に宛先として設定する際の各BGPメッセージが前記AS内に閉じて流れることを特徴とする請求項1または2に記載のBGPルータにおける経路表の管理方法。   The first and second BGP routers belong to a predetermined AS, are deleted from the routing table, and each BGP message when setting as a destination in the routing table is closed and flows in the AS. Item 3. A routing table management method in the BGP router according to item 1 or 2. BGPルータにおける経路表の管理サーバであって、
経路表を管理する第一のBGPルータより該経路表に宛先として記載のプレフィックスを収集するBGP受信部と、
所定期間に渡り前記第一のBGPルータにて中継された各パケットの宛先IPアドレスを収集するパケット情報受信部と、
前記収集された宛先IPアドレスを前記収集されたプレフィックスに割り当て、各プレフィックスが前記所定期間に渡り宛先として使用された頻度を集計する頻度集計部と、
前記頻度が少ないことに関する所定基準を満たすプレフィックスを前記第一のBGPルータにおける経路表から削除するBGPメッセージと、前記第一のBGPルータの経路表に第二のBGPルータを次ホップとするデフォルトルートを設定するBGPメッセージと、前記第二のBGPルータにおける経路表にて前記所定基準を満たすプレフィックスを宛先として設定するBGPメッセージとを送信するメッセージ送信部とを備えることを特徴とする管理サーバ。
A routing table management server in a BGP router,
A BGP receiver that collects prefixes described as destinations in the routing table from a first BGP router that manages the routing table;
A packet information receiving unit that collects a destination IP address of each packet relayed by the first BGP router over a predetermined period;
A frequency counting unit that assigns the collected destination IP addresses to the collected prefixes and totals the frequency at which each prefix was used as a destination over the predetermined period;
A BGP message that deletes a prefix that satisfies the predetermined criteria regarding the low frequency from the routing table in the first BGP router, and a default route that has the second BGP router as the next hop in the routing table of the first BGP router A message transmission unit that transmits a BGP message that sets a prefix and a BGP message that sets a prefix that satisfies the predetermined criterion in a route table in the second BGP router as a destination.
前記第二のBGPルータの役割を兼用することを特徴とする請求項4に記載の管理サーバ。   The management server according to claim 4, which also serves as the second BGP router.
JP2011217148A 2011-09-30 2011-09-30 Routing table management method and management server in BGP router Expired - Fee Related JP5676408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011217148A JP5676408B2 (en) 2011-09-30 2011-09-30 Routing table management method and management server in BGP router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011217148A JP5676408B2 (en) 2011-09-30 2011-09-30 Routing table management method and management server in BGP router

Publications (2)

Publication Number Publication Date
JP2013078012A true JP2013078012A (en) 2013-04-25
JP5676408B2 JP5676408B2 (en) 2015-02-25

Family

ID=48481167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011217148A Expired - Fee Related JP5676408B2 (en) 2011-09-30 2011-09-30 Routing table management method and management server in BGP router

Country Status (1)

Country Link
JP (1) JP5676408B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10005034B2 (en) 2014-09-01 2018-06-26 Ebara Corporation Seawater desalination system and energy recovery apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05227215A (en) * 1992-02-14 1993-09-03 Fuji Xerox Co Ltd Network system
JP2004328433A (en) * 2003-04-25 2004-11-18 Internatl Business Mach Corp <Ibm> Communication controller, communication control method, communication control program, data structure for communication control
JP2010199800A (en) * 2009-02-24 2010-09-09 Nippon Telegr & Teleph Corp <Ntt> Route information management method and management system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05227215A (en) * 1992-02-14 1993-09-03 Fuji Xerox Co Ltd Network system
JP2004328433A (en) * 2003-04-25 2004-11-18 Internatl Business Mach Corp <Ibm> Communication controller, communication control method, communication control program, data structure for communication control
JP2010199800A (en) * 2009-02-24 2010-09-09 Nippon Telegr & Teleph Corp <Ntt> Route information management method and management system thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSNG200900580024; 棟朝 雅晴 他: 'ルーティングアルゴリズムのスケーラビリティに関する一考察' マルチメディア,分散,協調とモーバイルワークショップ論文集 第97巻,第2号, 19970702, p.149〜154 *
JPN6014049546; 棟朝 雅晴 他: 'ルーティングアルゴリズムのスケーラビリティに関する一考察' マルチメディア,分散,協調とモーバイルワークショップ論文集 第97巻,第2号, 19970702, p.149〜154 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10005034B2 (en) 2014-09-01 2018-06-26 Ebara Corporation Seawater desalination system and energy recovery apparatus
US10124295B2 (en) 2014-09-01 2018-11-13 Ebara Corporation Seawater desalination system and energy recovery apparatus
US10232315B2 (en) 2014-09-01 2019-03-19 Ebara Corporation Seawater desalination system and energy recovery apparatus

Also Published As

Publication number Publication date
JP5676408B2 (en) 2015-02-25

Similar Documents

Publication Publication Date Title
US10673741B2 (en) Control device discovery in networks having separate control and forwarding devices
TWI377825B (en) Method and system for providing a network protocol for utility services
KR102233645B1 (en) System and method for virtual network-based distributed multi-domain routing
JP5652565B2 (en) Information system, control device, communication method and program
US9467423B2 (en) Network label allocation method, device, and system
JP2017103827A (en) Communication system, node, control device, communication method and program
EP2619953B1 (en) A control apparatus, a communication system, a communication method and a recording medium having recorded thereon a communication program
US20140129735A1 (en) Method and node for supporting routing via inter as path
EP2810409A1 (en) Improved shortest path bridging in a multi-area network
TW201014396A (en) Network utilities in wireless mesh communications networks
CN109412953A (en) A kind of routing iinformation exchange method based on block chain overlay network
CN107547346B (en) Message transmission method and device
US10075362B2 (en) Method and apparatus for determining next hop and advertising routing information
CN103825826A (en) Method and device for implementing dynamic routing
US10205665B2 (en) Mesh network nodes configured to alleviate congestion in cellular network
US20140317271A1 (en) Method and node apparatus for collecting information in content network based on information-centric networking
WO2008074207A1 (en) Data transmission system and method thereof
CN102780701B (en) Access control method and equipment
JP5676408B2 (en) Routing table management method and management server in BGP router
CN102724097A (en) ESADI processing method and system
CN106576076B (en) Route control method for internet exchange point
WO2023016234A1 (en) Method and apparatus for publishing rt4 routing message r4, and storage medium and electronic apparatus
JP6296736B2 (en) Route control device
JP5833184B2 (en) Network congestion avoidance system and method
CN103401784B (en) A kind of method receiving message and open flows switch

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141112

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141126

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141225

R150 Certificate of patent or registration of utility model

Ref document number: 5676408

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees