JP2017034557A - Address changing system and address changing method - Google Patents
Address changing system and address changing method Download PDFInfo
- Publication number
- JP2017034557A JP2017034557A JP2015154542A JP2015154542A JP2017034557A JP 2017034557 A JP2017034557 A JP 2017034557A JP 2015154542 A JP2015154542 A JP 2015154542A JP 2015154542 A JP2015154542 A JP 2015154542A JP 2017034557 A JP2017034557 A JP 2017034557A
- Authority
- JP
- Japan
- Prior art keywords
- address
- terminal
- notified
- message
- unit
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
【課題】手順を実行していく過程で一度解消した重複を再び生じさせることなく、また処理にかかる時間を短縮し、効率良くアドレスの重複を解消する。【解決手段】割り当て装置10の通知要求部111は複数の端末に対して、端末自身のアドレスを通知することを要求する。また、割り当て装置10の生成部113は端末から通知されたアドレスのうち、重複したアドレスが存在する場合、通知されたアドレスに含まれない新規アドレスを生成する。また、割り当て装置10の送信部114は、端末のうち通知されたアドレスが重複している端末のアドレスを送信先として、新規アドレスを含んだメッセージを送信する。転送部として機能する各L2SWは、アドレスが重複している端末のうちの1つの端末に、割り当て装置10の送信部114によって送信されたメッセージを転送する。【選択図】図7An object of the present invention is to eliminate address duplication efficiently without reducing again the duplication once eliminated in the course of executing the procedure and reducing the processing time. A notification request unit 111 of an allocation device 10 requests a plurality of terminals to notify their own addresses. Further, the generation unit 113 of the allocation device 10 generates a new address that is not included in the notified address when there is a duplicate address among the addresses notified from the terminal. In addition, the transmission unit 114 of the assignment device 10 transmits a message including a new address with the address of the terminal having the notified address being duplicated as a transmission destination. Each L2SW functioning as a transfer unit transfers the message transmitted by the transmission unit 114 of the assignment device 10 to one of the terminals having overlapping addresses. [Selection] Figure 7
Description
本発明は、アドレス変更システムおよびアドレス変更方法に関する。 The present invention relates to an address change system and an address change method.
クラウドネットワークの発達に伴い、異なるロケーションにレイヤ2ドメインを構築し、インターネットを介して接続することで複数のレイヤ2ドメインを包含する大規模レイヤ2ドメインを構築する事例が増加している。また、データセンタの普及とネットワーク仮想化技術の発達に伴い、遠隔地にデータセンタを構築し、構築されたデータセンタを異なるレイヤ2ドメインが共有することによりリソースの効率化を図る例も存在する。
With the development of cloud networks, there are increasing cases of constructing a large-
他方、レイヤ2ドメインを上記のように構築することができるようになったことから、図1に示すように、組織改編のときにそれまで別個のレイヤ2ドメインであったネットワークを統合し、新たに新組織のレイヤ2ドメインを構築する事例が考えられる。図1は、サブネットの統合について説明するための図である。このような状況では、複数のサブネットを統合する技術が必要になる。
On the other hand, since it became possible to construct the
サーバ仮想化技術の発達に伴い、図2に示すように、従来物理サーバを用いて構築されていたデータセンタに仮想化されたサーバ(VM:Virtual Machine)を稼働させる事例が生じてきた。異なる個人や組織が利用するサーバを仮想化し、同一物理サーバで稼働させることで、必要な物理サーバ台数を削減するためである。図2は、VMを有する物理サーバの構成を示す図である。また、図3に示すように、物理サーバのメンテナンスの際、稼働中のVMを別の物理サーバに移動させることにより、VMの動作を止めることなく物理サーバをメンテナンスすることができるようになった。図3は、VMの移動について説明するための図である。 With the development of server virtualization technology, as shown in FIG. 2, there has been a case where a virtualized server (VM: Virtual Machine) is operated in a data center that has been conventionally constructed using physical servers. This is because the servers used by different individuals and organizations are virtualized and operated on the same physical server, thereby reducing the number of necessary physical servers. FIG. 2 is a diagram illustrating a configuration of a physical server having a VM. In addition, as shown in FIG. 3, when a physical server is maintained, it is possible to maintain the physical server without stopping the operation of the VM by moving the operating VM to another physical server. . FIG. 3 is a diagram for explaining the movement of the VM.
ここで、イーサネット(登録商標)を用いてVMを含む各端末間でデータ転送を行う場合、各端末のインタフェースにはレイヤ2のアドレスとして、例えばMACアドレスが割り振られる。インタフェースが物理インタフェースである場合は、管理団体と製造メーカによってインタフェースごとに重複しないようにMACアドレスが割り振られている。
Here, when data is transferred between each terminal including a VM using Ethernet (registered trademark), a MAC address, for example, is assigned as an address of
一方、端末がVMである場合、VMを動作させるためのソフトウェアの製造会社に割り振られたアドレスグループの範囲でアドレスの割り当てが行われる。そのため、異なるサーバでVMを動作させるソフトウェアが稼働している場合、図4に示すようにVM間で重複したMACアドレスが割り当てられる可能性がある。図4は、MACアドレスの重複について説明するための図である。そこで、新たにVMを設置した場合に同一サブネット内でMACアドレスが重複することを回避する方法として、ORACLE VM Serverが使用しているアドレス重複回避方法が知られている(例えば非特許文献1)。 On the other hand, when the terminal is a VM, an address is assigned in the range of an address group assigned to a software manufacturer for operating the VM. Therefore, when software that operates VMs is operating on different servers, there is a possibility that duplicate MAC addresses are allocated between VMs as shown in FIG. FIG. 4 is a diagram for explaining duplication of MAC addresses. Thus, as a method for avoiding duplication of MAC addresses in the same subnet when a new VM is installed, an address duplication avoiding method used by ORACLE VM Server is known (for example, Non-Patent Document 1). .
ORACLE VM Serverが使用しているアドレス重複回避方法においては、VMにMACアドレスを割り当てるLDM(Logical Domains Manager)というソフトウェアが使用される。LDMは、VMが新規に構築されたとき、VMに仮のMACアドレスを割り当てる。そして、LDMは、同一サブネット内に存在する、割り当てようとしているアドレスを使用しているVMを検知する。そのようなVMが検知されなければLDMは割り当てた仮のMACをVMのMACアドレスとし、検知されれば別のMACアドレスを仮決めする。そして、LDMは前述の検知動作と仮決めアドレスの変更動作を繰り返しながら、どのVMも使用していないアドレスをVMに割り当てる。 In the address duplication avoiding method used by the ORACLE VM Server, software called LDM (Logical Domains Manager) that assigns a MAC address to a VM is used. The LDM assigns a temporary MAC address to the VM when the VM is newly constructed. Then, the LDM detects a VM that exists in the same subnet and uses an address to be allocated. If such a VM is not detected, the LDM uses the assigned temporary MAC as the VM's MAC address, and if detected, determines another MAC address. The LDM assigns an address that is not used by any VM to the VM while repeating the above-described detection operation and temporary address changing operation.
図20を用いて、LDMによるアドレス重複回避方法について説明する。図20は、従来のアドレス重複回避方法を説明するための図である。図20に示すように、仮のMACアドレスとして、VM501aには1、VM502aには3、VM503aには1が割り当てられている。このとき、LDM501は各LDMに対して、MACアドレスが1のVMが存在するか否かを確認するメッセージをマルチキャストで送信する。そして、LDMからMACアドレスが1であるVMが存在する旨のメッセージが返ってきたため、VM501aのMACアドレスを2に変更する。LDMはこれらの処理を重複がなくなるまで繰り返す。
An address duplication avoidance method using LDM will be described with reference to FIG. FIG. 20 is a diagram for explaining a conventional address duplication avoiding method. As shown in FIG. 20, as the temporary MAC address, 1 is assigned to the
しかしながら、従来のLDMによるアドレス重複回避方法は、手順を実行していく過程で一度解消した重複が再び生じ、また全ての重複を解消するまでに時間がかかるため、効率が悪いという問題があった。 However, the conventional address duplication avoidance method using the LDM has a problem that the duplication once eliminated occurs again in the course of executing the procedure, and it takes time to eliminate all duplications, so that the efficiency is poor. .
例えば、異なるサブネットを統合する際、同じMACアドレスを使用しているVMは最大で統合するサブネットの数だけ存在する。また、複数のMACアドレスが重複を起こしている場合もある。そのため、従来のLDMによるアドレス重複回避方法においては以下のような問題が生じる。 For example, when integrating different subnets, VMs using the same MAC address exist as many as the number of integrated subnets. In some cases, a plurality of MAC addresses are duplicated. Therefore, the following problem arises in the address duplication avoidance method using the conventional LDM.
まず、同一のMACアドレスを使用するVMが存在するサブネットが複数存在し、これらのサブネットを統合する状況を考える。具体的には、図21に示すように、サブネット600に存在するLDM601およびサブネット700に存在するLDM701の両方に、MACアドレスが1のVMとMACアドレスが2のVMが備えられている場合が考えられる。図21および図22は、従来のアドレス重複回避方法を説明するための図である。
First, consider a situation where there are a plurality of subnets in which VMs using the same MAC address exist, and these subnets are integrated. Specifically, as shown in FIG. 21, there is a case where both the
図21の例では、LDM601はMACアドレスが1であるVM601aおよびMACアドレスが2であるVM601bを有する。また、LDM701はMACアドレスが1であるVM701aおよびMACアドレスが2であるVM701bを有する。これより、MACアドレス1および2は重複している(図22のステップS501)。
In the example of FIG. 21, the LDM 601 includes a VM 601a whose MAC address is 1 and a VM 601b whose MAC address is 2. The
そして、重複を解消するため、例えばVM601aおよび701aのアドレスが3に、VM601bおよび602bのアドレスが4に変更される。このとき、2つのLDMは、MACアドレス3および4を使用しているVMが存在するか否かを他方のLDMに問い合わせる。この問い合わせが同時期に起こり、VMのMACアドレスを変更する前に他方からの問い合わせが到着した場合、問い合わせに記載されているMACアドレスを使用しているVMは存在しない。
In order to eliminate duplication, for example, the addresses of VMs 601a and 701a are changed to 3, and the addresses of
そのため、問合せを受けたLDMはMACアドレス3および4を使用しているVMは存在しない旨を返信する。そして、返信を受けたLDMは、ともにMACアドレス1のVMのアドレスを3に、MACアドレス2のVMのアドレスを4に変更する(図22のステップS502)。これにより、再びMACアドレスは重複する(図22のステップS503)。
Therefore, the LDM that has received the inquiry returns that there is no VM using the
また、アドレス重複解消プロセスは、アドレスごとに実行される。例えば、アドレス1とアドレス2で、アドレス重複が生じている場合、アドレス1の重複を解消するプロセスとアドレス2の重複を解消するプロセスが独立して動作する。このため、アドレス1の重複解消プロセスが使用したアドレスを、アドレス2の重複解消プロセスが使用しようとした場合、アドレス2の重複解消プロセスは別のアドレスを割り当てることを試みなければならない。このため、すべての重複を解消するまで時間がかかる。
Further, the address deduplication process is executed for each address. For example, when address duplication occurs between
本発明のアドレス変更システムは、複数の端末に対して、端末自身のアドレスを通知することを要求する通知要求部と、前記端末から通知されたアドレスのうち、重複したアドレスが存在する場合、前記通知されたアドレスに含まれない新規アドレスを生成し、前記通知されたアドレスが重複している端末のアドレスを送信先として、前記新規アドレスを含んだメッセージを送信する新規アドレス割り当て部と、前記メッセージを、前記通知されたアドレスが重複している端末のうちの1つの端末に転送する転送部と、を有することを特徴とする。 The address change system of the present invention, for a plurality of terminals, the notification request unit that requests to notify the address of the terminal itself, and when there are duplicate addresses among the addresses notified from the terminal, A new address allocating unit that generates a new address that is not included in the notified address, and that transmits a message including the new address, with the address of the terminal having the notified address being duplicated as a destination, and the message And a transfer unit that transfers the received address to one of the terminals having the same address.
また、本発明のアドレス変更方法は、複数の端末に対して、端末自身のアドレスを通知することを要求する通知要求工程と、前記端末から通知されたアドレスのうち、重複したアドレスが存在する場合、前記通知されたアドレスに含まれない新規アドレスを生成し、前記通知されたアドレスが重複している端末のアドレスを送信先として、前記新規アドレスを含んだメッセージを送信する新規アドレス割り当て工程と、前記メッセージを、前記通知されたアドレスが重複している端末のうちの1つの端末に転送する転送工程と、を含んだことを特徴とする。 In addition, the address changing method of the present invention includes a notification requesting step for requesting a plurality of terminals to notify their own addresses, and when there are duplicate addresses among the addresses notified from the terminals. A new address assignment step of generating a new address not included in the notified address, and transmitting a message including the new address, with a destination address of the terminal having the notified address duplicated, And a transfer step of transferring the message to one of the terminals having the same notified address.
本発明によれば、手順を実行していく過程で一度解消した重複を再び生じさせることなく、また処理にかかる時間を短縮し、効率良くアドレスの重複を解消することができる。 According to the present invention, it is possible to efficiently eliminate address duplication without reducing again the duplication once eliminated in the process of executing the procedure and reducing the time required for processing.
以下に、本願に係るアドレス変更システムおよびアドレス変更方法の実施形態を図面に基づいて詳細に説明する。なお、この実施形態により本願に係るアドレス変更システムおよびアドレス変更方法が限定されるものではない。 Hereinafter, embodiments of an address change system and an address change method according to the present application will be described in detail with reference to the drawings. Note that the address change system and the address change method according to the present application are not limited by this embodiment.
[第1の実施形態]
以下の実施形態では、第1の実施形態に係るアドレス変更システムにおける各装置の構成および処理の流れを順に説明し、最後に第1の実施形態による効果を説明する。
[First Embodiment]
In the following embodiments, the configuration of each device and the flow of processing in the address change system according to the first embodiment will be described in order, and finally the effects of the first embodiment will be described.
まず、図5を用いて、第1の実施形態の概要について説明する。図5は、第1の実施形態に係るアドレス変更システムにおけるアドレス変更方法の概要を示す図である。図5に示すように、第1の実施形態では、重複プロセス間で同じアドレスを割り当てないよう、アドレスの調停機能を導入する。 First, the outline of the first embodiment will be described with reference to FIG. FIG. 5 is a diagram showing an outline of an address changing method in the address changing system according to the first embodiment. As shown in FIG. 5, in the first embodiment, an address arbitration function is introduced so that the same address is not assigned between overlapping processes.
また、各ネットワークにLDMに相当する機能は備えない。図5の例では、例えばAというMACアドレスを有するVMおよびBというMACアドレスを持ったVMがそれぞれ複数存在し、アドレスの重複が発生している。そのため、割り当て機能が調停役としての役割を担い、各VMに対して順にアドレス変更を行わせる。 Each network does not have a function corresponding to LDM. In the example of FIG. 5, for example, there are a plurality of VMs having a MAC address of A and a VM having a MAC address of B, and address duplication occurs. For this reason, the allocation function plays a role as an arbitrator and causes each VM to change the address in order.
そして、図6に示すように、例えば割り当て機能を持つ割り当て装置10によってアドレスの重複が解消されると、各端末が統合されたレイヤ2ネットワーク上の端末として機能するようになる。図6は、第1の実施形態におけるサブネットの統合の概要を示す図である。なお、割り当て機能は、図6に示すように単独の装置として実現してもよいし、他の機能を有するサーバやネットワーク機器の機能の一部として実現するようにしてもよい。
Then, as shown in FIG. 6, for example, when address duplication is eliminated by the
[第1の実施形態の構成]
まず、図7を用いてアドレス変更システムに含まれる割り当て装置10の構成について説明する。図7は、第1の実施形態に係るアドレス変更システムの割り当て装置の構成を示すブロック図である。図7に示すように割り当て装置10は制御部11および記憶部12を有する。また、制御部11は通知要求部111、テーブル更新部112、生成部113および送信部114を有する。また、記憶部12はアドレス管理テーブル121を有する。
[Configuration of First Embodiment]
First, the configuration of the
通知要求部111は複数の端末に対して、端末自身のアドレスを通知することを要求する。また、生成部113は端末から通知されたアドレスのうち、重複したアドレスが存在する場合、通知されたアドレスに含まれない新規アドレスを生成する。また、テーブル更新部112はアドレス管理テーブル121の更新を行う。また、送信部114は、通知されたアドレスが重複している端末のアドレスを送信先として、新規アドレスを含んだメッセージを送信する。なお、アドレス管理テーブル121はアドレスおよびアドレスの個数を記憶する。なお、生成部113および送信部114が新規アドレス割り当て部として機能する。 The notification request unit 111 requests a plurality of terminals to notify their own addresses. In addition, when there are duplicate addresses among the addresses notified from the terminal, the generation unit 113 generates a new address that is not included in the notified addresses. In addition, the table update unit 112 updates the address management table 121. In addition, the transmission unit 114 transmits a message including the new address, with the address of the terminal with the notified address being duplicated as the transmission destination. The address management table 121 stores addresses and the number of addresses. The generation unit 113 and the transmission unit 114 function as a new address assignment unit.
図8を用いて、割り当て装置10を含むアドレス変更システムの構成について説明する。図8は、第1の実施形態に係るアドレス変更システムの構成を示す図である。図8に示すように、割り当て装置10はL2SW(レイヤ2スイッチ)21〜24と接続されている。なお、割り当て装置10と直接接続されているL2SW22は、割り当て装置10の送信部114によって送信されたメッセージを、アドレスが重複している端末のうちの1つの端末に、転送する転送部として機能する。
The configuration of the address change system including the
また、図8に示すように、各L2SWはそれぞれにMACアドレスが割り当てられたVMと接続されている。L2SW21はMACアドレスがAであるVM211と接続されている。また、L2SW22はMACアドレスがAであるVM221と接続されている。また、L2SW23はMACアドレスがAであるVM231およびMACアドレスがBであるVM232と接続されている。また、L2SW24はMACアドレスがBであるVM241と接続されている。
As shown in FIG. 8, each L2SW is connected to a VM to which a MAC address is assigned. The
各VMは、転送されたメッセージを受信した場合、自身のアドレスをメッセージに含まれる新規アドレスに変更する。また、各VMは、アドレスが変更された場合、変更前のアドレスを含んだメッセージをブロードキャストで通知する。一方、他のVMが通知した変更前のアドレスを含んだメッセージを受信し、かつ自身のアドレスが該メッセージに含まれたアドレスと一致する場合、割り当て装置10に新規アドレスを送信することを要求する。
When each VM receives the forwarded message, each VM changes its own address to a new address included in the message. In addition, when the address is changed, each VM notifies the message including the address before the change by broadcasting. On the other hand, when a message including the address before change notified by another VM is received and the own address matches the address included in the message, the
なお、新規アドレスを送信することを要求するメッセージは、ブロードキャストで送信してもよいし、割り当て装置10のアドレスを送信先として送信してもよい。また、各VMは、通知要求部111からアドレスを通知することを要求するメッセージが送信されてきた際の送信元アドレスを記憶することで学習し、記憶したアドレスを割り当て装置10のアドレスとしてもよい。
Note that a message requesting transmission of a new address may be transmitted by broadcast, or the address of the
図8の例では、VM211、221および231のMACアドレスがいずれもAであるためアドレスの重複が発生している。また、VM232、241のアドレスがいずれもBであるためアドレスの重複が発生している。なお、割り当て装置10のMACアドレスはXとする。
In the example of FIG. 8, since the MAC addresses of
図9〜16を用いて、割り当て装置10の各部の機能の詳細とともに、アドレス変更システムにおけるアドレス変更方法について説明する。図9〜16は、第1の実施形態に係るアドレス変更システムのアドレス変更方法を説明するための図である。
The details of the function of each unit of the
まず、図9に示すように、割り当て装置10の通知要求部111は全てのVMに自身のMACアドレスを通知するように要求するメッセージを送信する。このとき、メッセージの送信元アドレスは割り当て装置10のMACアドレスであるXである。また、送信先はブロードキャストアドレスとする。通知要求部111によって送信されたメッセージは、各L2SWを経由して各VMへ到達する。
First, as illustrated in FIG. 9, the notification request unit 111 of the
次に、図10に示すように、VMは、通知要求部111によって送信されたメッセージを受信すると、自身のMACアドレスを含んだメッセージを送信する。このとき、各VMが送信するメッセージの送信先は割り当て装置10のMACアドレスであるXである。また、各VMが送信するメッセージの送信元は各VM自身のMACアドレスである。例えば、VM211は送信先をX、送信元をAとして、MACアドレスAを含んだメッセージを送信する。なお、各VMは、割り当て装置10のMACアドレスではなく、ブロードキャストアドレスを送信先としてメッセージを送信してもよい。
Next, as illustrated in FIG. 10, when the VM receives the message transmitted by the notification request unit 111, the VM transmits a message including its own MAC address. At this time, the destination of the message transmitted by each VM is X, which is the MAC address of the
そして、図10に示すように、割り当て装置10は、MACアドレスAを含んだメッセージを3つ、MACアドレスBを含んだメッセージを2つ受信する。ここで、テーブル更新部112は、アドレス管理テーブル121に端末のMACアドレスとしてAおよびBを記憶させ、さらにMACアドレスAに対応する使用端末数として3を記憶させ、MACアドレスBに対応する使用端末数として2を記憶させる。
Then, as illustrated in FIG. 10, the
そして、図11に示すように、割り当て装置10は、アドレス管理テーブル121に記憶されている使用端末数が2以上であるMACアドレスが存在している場合、アドレスの重複が発生していると判断し、重複解消プロセスを実行する。割り当て装置10の生成部113は、アドレス管理テーブル121に記憶されているMACアドレスに含まれないアドレスを新規MACアドレスとして生成する。
Then, as illustrated in FIG. 11, the
そして、送信部114は、アドレス管理テーブル121において重複が発生していると判断されたMACアドレスを送信先とし、生成部113によって生成された新規アドレスを使用することを要求するメッセージを送信する。なお、送信部114が送信するメッセージの送信元は割り当て装置10のMACアドレスである。
Then, the transmission unit 114 transmits a message requesting to use the new address generated by the generation unit 113, with the MAC address determined to be duplicated in the address management table 121 as a transmission destination. The transmission source of the message transmitted by the transmission unit 114 is the MAC address of the
例えば、図11に示すように、生成部113は、重複が発生しているMACアドレスであるAおよびBに含まれないMACアドレスCおよびDを生成する。そして、送信部114は、MACアドレスAを送信先としてMACアドレスCを使用することを要求するメッセージを送信する。また、送信部114は、MACアドレスBを送信先としてMACアドレスDを使用することを要求するメッセージを送信する。 For example, as illustrated in FIG. 11, the generation unit 113 generates MAC addresses C and D that are not included in A and B that are duplicate MAC addresses. Then, the transmission unit 114 transmits a message requesting to use the MAC address C with the MAC address A as a transmission destination. In addition, the transmission unit 114 transmits a message requesting to use the MAC address D with the MAC address B as a transmission destination.
ここで、図12を用いてL2SWにおけるルーチングプロトコルについて説明する。各L2SWは、レイヤ2のルーチングプロトコルとして、例えばスパニングツリープロトコルを使用する。スパニングツリープロトコルを使用する場合、L2SWはポートに到着したパケットの送信元のアドレスを確認し、記憶しておく。そして、送信元として指定されていたアドレスを送信先アドレスとするパケットが到着した場合、記憶したポートからパケットを送出する。
Here, the routing protocol in the L2SW will be described with reference to FIG. Each L2SW uses, for example, a spanning tree protocol as a
例えば、図12の(a)に示すように、MACアドレスAを使用しているVM211、221および231によって送信されたパケットは、いずれもL2SW22を通過する。このとき、パケットが通過するたびに、MACアドレスAに対応するポートが更新される。
For example, as shown in FIG. 12A, all the packets transmitted by the
例えばVM231によって送信されたパケットがL2SW22を通過した場合、MACアドレスAに対応するポートとしてポート22cが記憶される。その後、VM211によって送信されたパケットがL2SW22を通過した場合、MACアドレスAに対応するポートはポート22aに更新される。このため、図12の(b)に示すように、MACアドレスAを使用しているVMが複数存在し、MACアドレスAに向けてパケットを転送する場合でも、パケットが届くVMはVM211のみである。
For example, when a packet transmitted by the
なお、図11に示すように、MACアドレスBを使用しているVM232およびVM241は、それぞれL2SW23およびL2SW24と接続されている。このため、L2SW23およびL2SW24においても、L2SW22と同様にスパニングツリープロトコルによるパケット転送制御を行う必要がある。
As shown in FIG. 11, the
なお、ブロードキャストアドレスを送信先としたメッセージは、ネットワーク内の全ての端末に送信される。また、ブロードキャストアドレスは例えばMACアドレス「FF:FF:FF:FF:FF:FF」である。 A message having the broadcast address as a transmission destination is transmitted to all terminals in the network. The broadcast address is, for example, the MAC address “FF: FF: FF: FF: FF: FF”.
図13に示すように、L2SW22は送信部114によって送信されたMACアドレスAを送信先とするメッセージを、L2SW21を経由させてVM211に転送する。このとき、VM221および231へ到達する経路はブロックされている。そして、図14に示すように、メッセージを受け取ったVM211は、自身のMACアドレスをCに変更する。
As illustrated in FIG. 13, the
その後、VM211は、ブロードキャストアドレスを送信先、MACアドレスCを送信元として、MACアドレスAを使用していた旨のメッセージを送信する。このメッセージは各VMおよび割り当て装置10へ送信される。これにより、各VMおよび割り当て装置10は、VM211のアドレスが変更されたことを検知することができる。
Thereafter, the
ここで、図15に示すように、VM211が送信したメッセージを受信したVMのうち、メッセージに記載されたMACアドレスと自身のMACアドレスが一致するVM、すなわちVM221および231は、割り当て装置10に対して新規アドレスを要求する。このメッセージの送信先はMACアドレスX、送信元はMACアドレスAである。
Here, as shown in FIG. 15, among the VMs that have received the message transmitted by the
そして、図16に示すように、新規アドレスを要求するメッセージにより、MACアドレスがAであるVMの数が2であることが分かるので、テーブル更新部112はアドレス管理テーブル121に記憶されているMACアドレスAの使用端末数を3から2に減じる。また、割り当て装置10の生成部113はMACアドレスEを生成する。
Then, as shown in FIG. 16, the message requesting a new address indicates that the number of VMs whose MAC address is A is 2, so the table update unit 112 stores the MAC stored in the address management table 121. The number of terminals using address A is reduced from 3 to 2. Further, the generation unit 113 of the
そして、送信部114は、MACアドレスAを送信先としてMACアドレスEを使用することを要求するメッセージを送信する。このメッセージは、前述の通りL2SW22において1つのVMにのみ転送される。例えば、図16に示すように、VM221によって送信されたメッセージが、VM231によって送信されたメッセージより後にL2SW22を通過していた場合、送信部114によって送信されたメッセージはVM221に転送される。
Then, the transmission unit 114 transmits a message requesting to use the MAC address E with the MAC address A as a transmission destination. This message is transferred to only one VM in the
[第1の実施形態の処理]
図17を用いて、割り当て装置10の処理について説明する。図17は、第1の実施形態に係るアドレス変更システムの割り当て装置の処理を示すフローチャートである。図17に示すように、通知要求部111は各VMに自身のMACアドレスを通知するように要求する(ステップS101)。次に、テーブル更新部112は、受け取った通知を基に、アドレス管理テーブル121の各MACアドレスの使用端末数を更新する(ステップS102)。
[Process of First Embodiment]
The processing of the
そして、生成部113は、MACアドレスが重複している端末に割り当てるMACアドレスを生成する(ステップS103)。なお、生成部113はアドレス管理テーブル121に記憶されていないか、もしくは使用端末数が0であるMACアドレスを新規MACアドレスとして生成する。ここで、テーブル更新部112は、生成したMACアドレスをアドレス管理テーブル121に追加する(ステップS104)。 Then, the generation unit 113 generates a MAC address to be assigned to a terminal having a duplicate MAC address (step S103). Note that the generation unit 113 generates a MAC address that is not stored in the address management table 121 or has a number of used terminals of 0 as a new MAC address. Here, the table updating unit 112 adds the generated MAC address to the address management table 121 (step S104).
そして、送信部114は、生成部113が生成した新規MACアドレスをMACアドレスが重複している端末に通知する(ステップS105)。このとき送信部114によって送信されるメッセージは、送信先として指定されたMACアドレスを持つVMのうちの1つにのみ転送される。このとき、アドレス管理テーブル121に記憶されている、送信先として指定したMACアドレスの使用端末数を減じるようにしてもよい。 Then, the transmission unit 114 notifies the terminal having the duplicate MAC address of the new MAC address generated by the generation unit 113 (step S105). At this time, the message transmitted by the transmission unit 114 is transferred only to one of the VMs having the MAC address designated as the transmission destination. At this time, the number of terminals using the MAC address designated as the transmission destination stored in the address management table 121 may be reduced.
ここで、さらにアドレスが重複しているVMは、アドレスを要求するメッセージを通知するようにしてもよい。また、使用端末数が2以上のMACアドレスが存在する場合、通知要求部111は各VMに自身のMACアドレスを通知するようにさらに要求してもよい。そして、割り当て装置10は、さらに通知を受信した場合、ステップS102に戻り処理を繰り返す(ステップS106、Yes)。また、割り当て装置10は、通知を受信しない場合は処理を終了する(ステップS106、No)。
Here, VMs with duplicate addresses may also notify a message requesting an address. Further, when there are MAC addresses having two or more terminals in use, the notification request unit 111 may further request each VM to notify its own MAC address. If the
次に、図18を用いて、L2SW22を例に挙げて各L2SWの処理について説明する。図18は、第1の実施形態に係るアドレス変更システムのL2スイッチの処理を示すフローチャートである。
Next, the processing of each L2SW will be described using the
まず、L2SW22は、ポート22cからMACアドレスAを送信元、MACアドレスXを送信先とするメッセージを受信する(ステップS201)と、MACアドレスAに対応するポートをポート22cに設定し(ステップS202)、メッセージをMACアドレスXに対応するポートに転送する(ステップS203)。
First, when the
次に、L2SW22は、ポート22bからMACアドレスAを送信元、MACアドレスXを送信先とするメッセージを受信する(ステップS204)と、MACアドレスAに対応するポートをポート22bに設定し(ステップS205)、メッセージをMACアドレスXに対応するポートに転送する(ステップS206)。
Next, when the
そして、L2SW22は、ポート22aからMACアドレスAを送信元、MACアドレスXを送信先とするメッセージを受信する(ステップS207)と、MACアドレスAに対応するポートをポート22aに設定し(ステップS208)、メッセージをMACアドレスXに対応するポートに転送する(ステップS209)。
When the
ここで、L2SW22は、MACアドレスAを送信先とするメッセージを受信する(ステップS210)と、現在のMACアドレスAに対応するポートはポート22aに設定されているため、メッセージをポート22aに転送する(ステップS211)。
Here, when the
[第1の実施形態の効果]
割り当て装置10の通知要求部111は複数の端末に対して、端末自身のアドレスを通知することを要求する。また、割り当て装置10の生成部113は端末から通知されたアドレスのうち、重複したアドレスが存在する場合、通知されたアドレスに含まれない新規アドレスを生成する。また、割り当て装置10の送信部114は、端末のうち通知されたアドレスが重複している端末のアドレスを送信先として、新規アドレスを含んだメッセージを送信する。転送部として機能する各L2SWは、割り当て装置10の送信部114によって送信されたメッセージを、アドレスが重複している端末のうちの1つの端末に転送する。
[Effect of the first embodiment]
The notification request unit 111 of the allocating
これにより、割り当て装置10で各端末のアドレスを一元的に管理し、アドレスの重複を1つずつ解消していくことができる。そのため、手順を実行していく過程で一度解消した重複を再び生じさせることなく、また処理にかかる時間を短縮し、効率良くアドレスの重複を解消することができる。
As a result, the address of each terminal can be centrally managed by the assigning
[システム構成等]
また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況等に応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。さらに、各装置にて行なわれる各処理機能は、その全部または任意の一部が、CPU(Central Processing Unit)および当該CPUにて解析実行されるプログラムにて実現され、あるいは、ワイヤードロジックによるハードウェアとして実現され得る。
[System configuration, etc.]
Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. Further, all or any part of each processing function performed in each device is realized by a CPU (Central Processing Unit) and a program analyzed and executed by the CPU, or hardware by wired logic. Can be realized as
また、本実施形態において説明した各処理のうち、自動的におこなわれるものとして説明した処理の全部または一部を手動的におこなうこともでき、あるいは、手動的におこなわれるものとして説明した処理の全部または一部を公知の方法で自動的におこなうこともできる。この他、上記文書中や図面中で示した処理手順、制御手順、具体的名称、各種のデータやパラメータを含む情報については、特記する場合を除いて任意に変更することができる。 In addition, among the processes described in the present embodiment, all or part of the processes described as being automatically performed can be manually performed, or the processes described as being manually performed can be performed. All or a part can be automatically performed by a known method. In addition, the processing procedure, control procedure, specific name, and information including various data and parameters shown in the above-described document and drawings can be arbitrarily changed unless otherwise specified.
[プログラム]
図19は、プログラムが実行されることにより、割り当て装置10が実現されるコンピュータの一例を示す図である。コンピュータ1000は、例えば、メモリ1010、CPU1020を有する。また、コンピュータ1000は、ハードディスクドライブインタフェース1030、ディスクドライブインタフェース1040、シリアルポートインタフェース1050、ビデオアダプタ1060、ネットワークインタフェース1070を有する。これらの各部は、バス1080によって接続される。
[program]
FIG. 19 is a diagram illustrating an example of a computer in which the
メモリ1010は、ROM(Read Only Memory)1011およびRAM(Random Access Memory)1012を含む。ROM1011は、例えば、BIOS(Basic Input Output System)等のブートプログラムを記憶する。ハードディスクドライブインタフェース1030は、ハードディスクドライブ1090に接続される。ディスクドライブインタフェース1040は、ディスクドライブ1100に接続される。例えば磁気ディスクや光ディスク等の着脱可能な記憶媒体が、ディスクドライブ1100に挿入される。シリアルポートインタフェース1050は、例えばマウス1110、キーボード1120に接続される。ビデオアダプタ1060は、例えばディスプレイ1130に接続される。
The
ハードディスクドライブ1090は、例えば、OS1091、アプリケーションプログラム1092、プログラムモジュール1093、プログラムデータ1094を記憶する。すなわち、割り当て装置10の各処理を規定するプログラムは、コンピュータにより実行可能なコードが記述されたプログラムモジュール1093として実装される。プログラムモジュール1093は、例えばハードディスクドライブ1090に記憶される。例えば、割り当て装置10における機能構成と同様の処理を実行するためのプログラムモジュール1093が、ハードディスクドライブ1090に記憶される。なお、ハードディスクドライブ1090は、SSD(Solid State Drive)により代替されてもよい。
The hard disk drive 1090 stores, for example, an
また、上述した実施形態の処理で用いられる設定データは、プログラムデータ1094として、例えばメモリ1010やハードディスクドライブ1090に記憶される。そして、CPU1020が、メモリ1010やハードディスクドライブ1090に記憶されたプログラムモジュール1093やプログラムデータ1094を必要に応じてRAM1012に読み出して実行する。
The setting data used in the processing of the above-described embodiment is stored as
なお、プログラムモジュール1093やプログラムデータ1094は、ハードディスクドライブ1090に記憶される場合に限らず、例えば着脱可能な記憶媒体に記憶され、ディスクドライブ1100等を介してCPU1020によって読み出されてもよい。あるいは、プログラムモジュール1093およびプログラムデータ1094は、ネットワーク(LAN(Local Area Network)、WAN(Wide Area Network)等)を介して接続された他のコンピュータに記憶されてもよい。そして、プログラムモジュール1093およびプログラムデータ1094は、他のコンピュータから、ネットワークインタフェース1070を介してCPU1020によって読み出されてもよい。
The
10 割り当て装置
11 制御部
12 記憶部
21、22、23、24 L2SW
22a、22b、22c ポート
111 通知要求部
112 テーブル更新部
113 生成部
114 送信部
121 アドレス管理テーブル
211、221、231、232、241 VM
10 Allocation device 11
22a, 22b, 22c Port 111 Notification request unit 112 Table update unit 113 Generation unit 114
Claims (7)
前記端末から通知されたアドレスのうち、重複したアドレスが存在する場合、前記通知されたアドレスに含まれない新規アドレスを生成し、前記通知されたアドレスが重複している端末のアドレスを送信先として、前記新規アドレスを含んだメッセージを送信する新規アドレス割り当て部と、
前記メッセージを、前記通知されたアドレスが重複している端末のうちの1つの端末に転送する転送部と、
を有することを特徴とするアドレス変更システム。 A notification request unit that requests a plurality of terminals to notify the address of the terminal itself;
If a duplicate address exists among the addresses notified from the terminal, a new address not included in the notified address is generated, and the address of the terminal where the notified address is duplicated is set as a transmission destination. A new address assignment unit for transmitting a message including the new address;
A transfer unit that transfers the message to one of the terminals having the notified address duplicated;
An address change system comprising:
前記転送部によって転送された前記メッセージを受信した場合、前記端末のアドレスを前記メッセージに含まれる新規アドレスに変更する変更部と、
前記変更部によってアドレスが変更された場合、変更前のアドレスを含んだメッセージをブロードキャストで通知する通知部と、
前記端末のアドレスが、前記端末以外の他の端末が通知した前記変更前のアドレスを含んだメッセージに含まれたアドレスと一致する場合、新規アドレスを送信することを要求するメッセージを送信する要求部と、
を有することを特徴とする請求項1から3のいずれか1項に記載のアドレス変更システム。 Each terminal of the plurality of terminals is
A change unit that changes the address of the terminal to a new address included in the message when the message transferred by the transfer unit is received;
When the address is changed by the changing unit, a notification unit that broadcasts a message including the address before the change, and
A request unit that transmits a message requesting transmission of a new address when the address of the terminal matches the address included in the message including the address before change notified by a terminal other than the terminal. When,
The address change system according to claim 1, wherein the address change system includes:
前記通知要求部から送信された前記端末自身のアドレスを通知することを要求の送信元のアドレスを記憶する学習部をさらに有し、
前記要求部は、前記学習部が記憶したアドレスに対して新規アドレスを送信することを要求するメッセージを送信することを特徴とする請求項4に記載のアドレス変更システム。 Each terminal of the plurality of terminals is
A learning unit that stores an address of a request transmission source to notify the address of the terminal itself transmitted from the notification request unit;
The address change system according to claim 4, wherein the request unit transmits a message requesting to transmit a new address to the address stored by the learning unit.
前記端末から通知されたアドレスのうち、重複したアドレスが存在する場合、前記通知されたアドレスに含まれない新規アドレスを生成し、前記通知されたアドレスが重複している端末のアドレスを送信先として、前記新規アドレスを含んだメッセージを送信する新規アドレス割り当て工程と、
前記メッセージを、前記通知されたアドレスが重複している端末のうちの1つの端末に転送する転送工程と、
を含んだことを特徴とするアドレス変更方法。 A notification requesting step for requesting a plurality of terminals to notify the address of the terminal itself;
If a duplicate address exists among the addresses notified from the terminal, a new address not included in the notified address is generated, and the address of the terminal where the notified address is duplicated is set as a transmission destination. A new address assignment step for transmitting a message including the new address;
A transfer step of transferring the message to one of the terminals having the notified address duplicated;
A method for changing an address, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015154542A JP6363977B2 (en) | 2015-08-04 | 2015-08-04 | Address changing system and address changing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015154542A JP6363977B2 (en) | 2015-08-04 | 2015-08-04 | Address changing system and address changing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2017034557A true JP2017034557A (en) | 2017-02-09 |
| JP6363977B2 JP6363977B2 (en) | 2018-07-25 |
Family
ID=57989133
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015154542A Active JP6363977B2 (en) | 2015-08-04 | 2015-08-04 | Address changing system and address changing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6363977B2 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040030769A1 (en) * | 2002-07-05 | 2004-02-12 | Samsung Electronics Co., Ltd. | Apparatus and method for automatically allocating virtual addresses to nodes having same address |
| WO2008152807A1 (en) * | 2007-06-13 | 2008-12-18 | Panasonic Corporation | Mac address overlap eliminating method, network device managing system, server, and information device |
| JP2013009261A (en) * | 2011-06-27 | 2013-01-10 | Nippon Telegr & Teleph Corp <Ntt> | Allocation device, allocation program, allocation method and allocation system |
-
2015
- 2015-08-04 JP JP2015154542A patent/JP6363977B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040030769A1 (en) * | 2002-07-05 | 2004-02-12 | Samsung Electronics Co., Ltd. | Apparatus and method for automatically allocating virtual addresses to nodes having same address |
| WO2008152807A1 (en) * | 2007-06-13 | 2008-12-18 | Panasonic Corporation | Mac address overlap eliminating method, network device managing system, server, and information device |
| US20090265455A1 (en) * | 2007-06-13 | 2009-10-22 | Panasonic Corporation | Method of resolving duplicate mac addresses, network device management system, server, and information device |
| JP2013009261A (en) * | 2011-06-27 | 2013-01-10 | Nippon Telegr & Teleph Corp <Ntt> | Allocation device, allocation program, allocation method and allocation system |
Non-Patent Citations (1)
| Title |
|---|
| 久保 幸夫 YUKIO KUBO: "たたけよ されば開かれん 何でもネットワーク実験室", 日経NETWORK 第91号, JPN6018023810, 22 October 2007 (2007-10-22), JP, pages 第145−147頁 * |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6363977B2 (en) | 2018-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7411735B2 (en) | Multi-cluster ingress | |
| US20220377045A1 (en) | Network virtualization of containers in computing systems | |
| CN109688235B (en) | Virtual network service processing method, device and system, controller, storage medium | |
| US9999030B2 (en) | Resource provisioning method | |
| US10241820B2 (en) | Determining the realization status of logical entities in logical networks | |
| CN106576075B (en) | Method and system for operating a logical network on a network virtualization infrastructure | |
| US9130943B1 (en) | Managing communications between client applications and application resources of on-premises and cloud computing nodes | |
| JP5131239B2 (en) | IP address allocation control program, IP address allocation control device, and IP address allocation control method | |
| US10243797B2 (en) | Identifying the realization status of logical entities based on a global realization number | |
| EP3458958A1 (en) | Distributed operational control in computing systems | |
| US9203753B2 (en) | Traffic optimization using network address and port translation in a computer cluster | |
| CN107925633A (en) | Data center resource tracks | |
| KR20150091843A (en) | Distributed processing system and method of operating the same | |
| WO2014190791A1 (en) | Method for setting identity of gateway device and management gateway device | |
| CN104506654A (en) | Cloud computing system and backup method of dynamic host configuration protocol server | |
| CN118400339B (en) | Tenant management method, device, controller and storage medium | |
| KR102481623B1 (en) | address management method and system for applications in LISP-based distributed container virtualization environment | |
| EP3411790B1 (en) | Identifying the realization status of logical entities based on a global realization number | |
| CN110636149B (en) | Remote access method, device, router and storage medium | |
| JP6445408B2 (en) | Communication system and setting method | |
| EP3718007B1 (en) | Fast join and leave virtual network | |
| JP6363977B2 (en) | Address changing system and address changing method | |
| JP5580766B2 (en) | Server apparatus, packet transmission system, packet transmission method and program | |
| JP6360012B2 (en) | Network integration system and network integration method | |
| JP7268741B2 (en) | Communication system, communication method and communication program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170626 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180523 |
|
| 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: 20180626 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180629 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6363977 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |