CN107547679B - Address acquisition method and device - Google Patents

Address acquisition method and device Download PDF

Info

Publication number
CN107547679B
CN107547679B CN201710500486.9A CN201710500486A CN107547679B CN 107547679 B CN107547679 B CN 107547679B CN 201710500486 A CN201710500486 A CN 201710500486A CN 107547679 B CN107547679 B CN 107547679B
Authority
CN
China
Prior art keywords
mapping address
eid
etr
address
mapping
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.)
Active
Application number
CN201710500486.9A
Other languages
Chinese (zh)
Other versions
CN107547679A (en
Inventor
黄李伟
王伟
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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710500486.9A priority Critical patent/CN107547679B/en
Publication of CN107547679A publication Critical patent/CN107547679A/en
Application granted granted Critical
Publication of CN107547679B publication Critical patent/CN107547679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides an address acquisition method and device, wherein the method comprises the following steps: the edge device receives a mapping address request message which is sent by an ITR and carries a first EID; the ITR is located in a hierarchical network connected to the edge device; then, the edge device detects whether a first mapping address comprising a first EID exists in the pre-stored mapping addresses; the first mapped address includes a first EID and a first RLOC of a first ETR connected to a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR; and finally, if the edge device detects the first mapping address, the edge device sends the first mapping address to the ITR. By applying the embodiment of the application, the time consumption of the cross-layered network request address is reduced, and the timely forwarding of the service is ensured.

Description

Address acquisition method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an address acquisition method and apparatus.
Background
The number of addresses, identification information and the like in the network is large and irregular, and in order to simplify the operation and facilitate the maintenance of huge data, distributed networking is often adopted at present.
In a distributed networking, comprising an ALT (alternate) network and a plurality of hierarchical networks; the ALT network includes a plurality of edge devices of a hierarchical network, and the hierarchical network includes a virtual machine, an ITR (Ingress Tunnel Router), a MR (Map Router), a MS (Map Server), an ETR (egress Tunnel Router), and the like. In addition, after the virtual machine is connected with the ETR, the ETR registers the EID (Endpoint Identifiers) of the virtual machine to the MS; the MS issues the EID of the virtual machine to the edge device of the ALT network through BGP (Border Gateway Protocol), and associates the EID of the virtual machine with the corresponding tunnel through routing iteration.
Based on the above situation, when performing cross-layer network communication, the ITR needs to obtain mapping addresses of the EIDs of the virtual machines and RLOCs (Routing Locator, router address identifier) of the ETRs of other layer networks, that is: the ITR sends a mapping address request message aiming at the EID of the virtual machine to the MR, the mapping address request message is sent to the ETR through the edge device and the MS of the target hierarchical network, and the ETR replies a mapping address to the ITR, so that the ITR can carry out cross-hierarchical network communication according to the obtained mapping address.
As can be seen from the above situation, when the ITR obtains an address across a hierarchical network, it needs to transmit a mapping address request packet to a target hierarchical network via the ALT network to obtain the mapping address, which makes the request of the address take a long time and may cause untimely forwarding of a service.
Disclosure of Invention
An object of the embodiments of the present application is to provide an address obtaining method and apparatus, so as to reduce time consumption of requesting an address across a hierarchical network and ensure timely forwarding of a service. The specific technical scheme is as follows:
in one aspect, an embodiment of the present application provides an address obtaining method, which is applied to an edge device, and the method includes:
receiving a mapping address request message which is sent by an ITR and carries a first EID; the ITR is located in a hierarchical network connected to the edge device;
detecting whether a first mapping address comprising the first EID exists in prestored mapping addresses; the first mapping address comprises a first EID and a first RLOC of a first ETR connected with a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
and if the first mapping address is detected, sending the first mapping address to the ITR.
In a second aspect, an embodiment of the present application provides an address obtaining apparatus, which is applied to an edge device, and the apparatus includes:
the receiving unit is used for receiving a mapping address request message which is sent by an ITR and carries a first EID; the ITR is located in a hierarchical network connected to the edge device;
a detection unit, configured to detect whether a first mapping address including the first EID exists in pre-stored mapping addresses; the first mapping address comprises a first EID and a first RLOC of a first ETR connected with a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
a first sending unit, configured to send the first mapping address to the ITR if the first mapping address is detected.
In one aspect, an embodiment of the present application provides an electronic device, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the steps of the address acquisition method are realized.
In a fourth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the steps of the address acquisition method are realized.
In the embodiment of the application, mapping addresses of an EID and an RLOC are prestored in an edge device, an ITR is located in a hierarchical network connected with the edge device, a first ETR and the ITR are located in different hierarchical networks, and when the edge device receives a mapping address request message carrying a first EID and sent by the ITR, whether a first mapping address including the first EID exists in the prestored mapping addresses is detected; if the first mapping address is detected, the first mapping address is directly sent to the ITR, the mapping address request message is not required to be sent to other edge equipment, and then the mapping address request message is sent to the hierarchical network by the other edge equipment so as to obtain the first mapping address, so that the time consumption of the request address of the hierarchical network is reduced, and the timely forwarding of the service is ensured. Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a distributed networking;
fig. 2 is a first flowchart illustrating an address obtaining method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for learning a mapping address according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a second address obtaining method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an address obtaining apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the sake of understanding, the words appearing in the examples of the application are explained below.
ALT network: an edge device comprising a plurality of hierarchical networks, the edge device being for communication between different hierarchical networks;
layered network: the method is a novel network architecture of LISP (location/ID Separation Protocol), and divides an IP address into two independent address spaces of EID and RLOC.
Distributed networking as shown in fig. 1, including ALT networks and hierarchical network 1 and hierarchical network 2; wherein the ALT network comprises a plurality of edge devices 103, 104, 105, 106 of a hierarchical network; the hierarchical network 1 comprises a virtual machine 100, an ITR 101 and an MR 102; the hierarchical network 2 includes a virtual machine 109, an MS 107, and an ETR 108.
After the virtual machine 109 is connected to the ETR 108, the ETR 108 connects the EID of the virtual machine 109 to the EID1RLOC with ETR 1081Registers with MS 107; MS 107 maps the EID of virtual machine 109 via BGP1To the edge devices 106 of the hierarchical network 2; edge device 106 maps the EID of virtual machine 1091Distributed to the edge devices 103, 104, 105 and routedIterate, the EID of virtual machine 1091Associated with corresponding tunnels to the edge devices 103, 104, 105, respectively.
When virtual machine 100 needs to communicate with virtual machine 109, ITR 101 sends an EID including virtual machine 109 to MR 1021To obtain the RLOC of the ETR 1081(ii) a The MR 102 sends the mapping address request message to the edge device 103; edge device 103 passing EID1The associated tunnel sends the mapping address request message to the edge device 106 connected with the hierarchical network 2; the edge device 106 sends the mapping address request message to the MS 107; the MS 107 sends the mapping address request message to the ETR 108; finally, ETR 108 responds with an EID to ITR 1011And RLOC1The mapping address of (2).
Thus, the ITR 101 acquires the EID of the virtual machine 1091RLOC with ETR 1081The mapping address of (2) can further realize the forwarding of the service between the virtual machine 100 and the virtual machine 109, and realize the communication between the virtual machine 100 and the virtual machine 109.
As can be seen from the above situation, when the ITR obtains an address across a hierarchical network, it needs to transmit a mapping address request message to the ETR of the target hierarchical network via the edge device of the ALT network, which makes the time consumption for requesting a mapping address longer, and may cause untimely forwarding of traffic.
In order to reduce time consumption of requesting an address by a cross-hierarchical network and ensure timely forwarding of a service, the embodiment of the application provides an address acquisition method and device. Referring to fig. 2, fig. 2 is a first flowchart illustrating an address obtaining method according to an embodiment of the present application, applied to an edge device, where the method includes:
s201: receiving a mapping address request message which is sent by an ITR and carries a first EID;
wherein the ITR is located in a hierarchical network connected to the edge device.
After receiving the data message sent by the virtual machine, the ITR sends a mapping address request message to edge equipment connected with a hierarchical network where the ITR is located if detecting that a mapping address corresponding to the first EID carried by the data message is not stored locally.
Here, when the ITR sends the address request message to be mapped to the edge device, the ITR may first send the address request message to the MR, and the MR forwards the address request message to the edge device.
S202: detecting whether a first mapping address comprising a first EID exists in prestored mapping addresses; if the first mapping address is detected, executing S203;
here, the mapping address includes the EID and the RLOC of the ETR connected to the virtual machine corresponding to the EID. Similarly, the first mapping address includes: the first EID and the first RLOC of the first ETR connected to the virtual machine corresponding to the first EID. Wherein, the first ETR and the ITR sending the mapping address request message are positioned in different hierarchical networks.
In an embodiment of the present application, a mapping address stored in an edge device is obtained from other edge devices, and referring to a flowchart of the mapping address learning method shown in fig. 3, the method is applied to an edge device, and based on fig. 2, the method may include:
s301: acquiring a second mapping address sent by a second ETR;
wherein the second mapped address comprises a second EID of the virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device.
In an embodiment of the present application, the edge device may obtain the second mapping address by the following ways:
a1, when the virtual machine is connected with the second ETR, the second ETR sends the second EID of the virtual machine connected with the second ETR and the mapping address of the second RLOC of the second ETR to the edge device;
a2, the edge device sends an address acquisition request to the second ETR in a timing mode to acquire the second EID of the virtual machine connected with the second ETR and the mapping address of the second RLOC of the second ETR.
In an embodiment of the present application, after the virtual machine is connected to the second ETR, the second ETR registers, with the MS, a second EID of the virtual machine connected to the second ETR and a mapping address of a second RLOC of the second ETR; at this time, the edge device may obtain, from the MS, a second mapping address sent by the second ETR:
b1, after receiving the mapping address of the second ETR registration, the MS sends the mapping address to the edge device, that is: the MS receives the second EID and the second RLOC sent by the second ETR1After the second mapping address is received, the second mapping address is sent to the edge device;
b2, the edge device sends address acquisition request to the MS at regular time to acquire the mapping address registered in the MS;
b3, the MS sends the mapping address of local registration to the edge device at regular time.
S302: sending the second mapping address to other edge devices;
in this way, the other edge devices may store the second mapping address, the stored second mapping address may be used as a proxy entry, and when the ITR in the hierarchical network to which the other edge devices are connected requests the mapping address corresponding to the second EID (i.e., the second mapping address), the other edge devices may directly reply the second mapping address to the ITR instead of the second ETR.
In an embodiment of the present application, an edge device is an edge device of multiple hierarchical networks, and in order to reduce time consumption of requesting an address between different hierarchical networks connected to an edge device, the edge device stores a second mapping address after acquiring the second mapping address.
S303: and associating the second EID included by the second mapping address with the tunnel from the edge device to the other edge device through routing iteration.
It should be noted that the above S303 may be executed before S302, may be executed after S302, and may also be executed simultaneously with S302, which is not limited in this embodiment of the application.
The method for learning a mapping address provided by the embodiment of the present application is described by taking the distributed networking shown in fig. 1 as an example.
01. After the virtual machine 109 of the hierarchical network 2 is connected to the ETR 108, the ETR 108 connects the EID of the virtual machine 1091RLOC with ETR 1081Registers with MS 107;
02. MS 107 maps the EID via BGP1And RLOC1OfThe destination address is issued to the edge device 106 of the hierarchical network 2;
03. the edge device 106 stores the EID1And RLOC1The mapping address of (2);
in this case, if the distributed networking further includes the hierarchical network 3 and the edge device connected to the hierarchical network 3 is also the edge device 106, then when the edge device 106 receives the EID for the ITR sent by the ITR in the hierarchical network 31After the address mapping request message is received, the stored EID can be sent to the network1And RLOC1Is sent to the ITRs in the hierarchical network 3, reducing the time consuming request for addresses across hierarchical networks.
04. Edge device 106 couples the EID1And RLOC1To the edge devices 103, 104, 105, and iterates the routing to send the EID1Associated with the tunnels of edge device 106 to edge devices 103, 104, 105, respectively;
05. the edge devices 103, 104, 105 receive the EID1And RLOC1After mapping the address, the EID is stored1And RLOC1The mapping address of (2).
Taking the edge device 103 as an example, when the edge device 103 receives the target EID sent by the ITR 101 through the MR 1021After the address mapping request message is received, the stored EID can be sent to the network1And RLOC1Sending the mapped address to ITR 101 reduces the ALT network burden and reduces the time consuming request for addresses across hierarchical networks.
S203: the first mapped address is sent to the ITR.
Therefore, the ITR can acquire the required mapping address, and further forward the service.
In an embodiment of the application, referring to the second flowchart of the address obtaining method shown in fig. 4, based on fig. 2, if S202 does not detect the first mapped address, the method may further include:
s204: detecting whether a tunnel associated with the first EID exists; if the tunnel associated with the first EID does not exist, S205 is executed; if the tunnel associated with the first EID exists, then S206 is executed;
s205: broadcasting a mapping address request message to other edge devices;
if the edge device does not detect the first mapping address and does not detect the tunnel associated with the first EID, determining that the edge device does not learn the first mapping address, and broadcasting a mapping address request message to other edge devices in order to acquire the first mapping address; and after receiving the mapping address request message, the other edge devices send the mapping address request message to the first ETR, so that the first ETR responds to the ITR for the first mapping address.
Here, the process of sending the mapping address request message to the first ETR after the other edge device receives the mapping address request message may be: after receiving the mapping address request message, the other edge devices send the mapping address request message to an MS in a hierarchical network connected with the other edge devices, and when detecting that the mapping address of local registration comprises a first mapping address, the MS sends the mapping address request message to a first ETR; if the MS detects that the first mapping address is not included in the mapping address of the local registration, the MS does not process the mapping address request packet, for example, discards the mapping address request packet.
S206: and sending the mapping address request message to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID.
If the edge device does not detect the first mapping address but detects the tunnel associated with the first EID, it may be determined that the first mapping address stored in the edge device is deleted due to a misoperation or the like, but the edge device learns the first mapping address, and in this case, the mapping address request message may be sent to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID; further, the edge device corresponding to the tunnel associated with the first EID sends the mapping address request message to the first ETR; the first ETR responds to the first mapping address to the ITR according to the mapping address request message, so that the ITR obtains the required mapping address, and further service forwarding is carried out.
The address acquisition method provided in the embodiment of the present application is still described by taking the distributed networking shown in fig. 1 as an example.
11. ITR 101 will carryWith EID1The mapping address request message is sent to the MR 102;
12. MR 102 will carry EID1The mapping address request message is forwarded to the edge device 103;
13. the edge device 103 detects whether there is an EID included in the pre-stored mapping address1The mapping address of (2); if detected to include EID114, execution; if no EID is detected115, execution;
14. the edge device 103 acquires the information including the EID1To a mapped address, e.g. to an EID1And RLOC1Mapping address of, EID1And RLOC1Sending ITR 101 with the mapped address;
15. the edge device 103 detects the presence of an EID1An associated tunnel; if so, execute 16; otherwise, 21 is executed;
16. edge device 103 passing EID1The associated tunnel sends the mapping address request message to other edge devices, for example, the edge device 106;
17. the edge device 106 sends the mapping address request message to the MS 107;
18. MS 107 includes EID according to home registration1The mapping address of (2), sending the mapping address request message to the ETR 108;
19. ETR 108 replies to ITR 101 with an EID1RLOC with ETR 1081The mapping address of (2);
20. the ITR 101 receives the mapping address replied by the ETR 108 and acquires the EID1And RLOC1The mapping address of (2);
21. if EID is not detected in step 151The associated tunnel broadcasts a mapping address request message to other edge devices, where the other edge devices receiving the broadcast are 104, 105, and 106;
22. the edge devices 104, 105 and 106 send the mapping address request message to the MS of the hierarchical network connected with the edge device;
taking the edge device 106 as an example, the edge device 106 sends a mapping address request message to the MS 107.
23. Aiming at each MS, after the MS receives the mapping address request message, if the local unregistered state includes EID1If so, discarding the mapping address request message; if the local registration is determined to include EID1According to the RLOC included in the mapping address1Sending a mapping address request message to the ETR (here, ETR 108);
24. ETR 108 replies to ITR 101 with an EID1RLOC with ETR 1081The mapping address of (2);
25. the ITR 101 receives the mapping address replied by the ETR 108 and acquires the EID1And RLOC1The mapping address of (2).
By applying the embodiment, the edge device stores mapping addresses of the EID and the RLOC in advance, the ITR is located in a hierarchical network connected with the edge device, the first ETR and the ITR are located in different hierarchical networks, and when the edge device receives a mapping address request message carrying the first EID and sent by the ITR, it is detected whether a first mapping address including the first EID exists in the pre-stored mapping addresses; if the first mapping address is detected, the first mapping address is directly sent to the ITR, the mapping address request message is not required to be sent to other edge equipment, and then the mapping address request message is sent to the hierarchical network by the other edge equipment so as to obtain the first mapping address, so that the time consumption of the request address of the hierarchical network is reduced, and the timely forwarding of the service is ensured.
Corresponding to the method embodiment, the embodiment of the application also provides an address acquisition device.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an address obtaining apparatus provided in an embodiment of the present application, and the address obtaining apparatus is applied to an edge device, and the apparatus includes:
a receiving unit 501, configured to receive a mapping address request message carrying a first EID and sent by an ITR; the ITR is located in a hierarchical network connected to the edge device;
a detecting unit 502, configured to detect whether a first mapping address including a first EID exists in pre-stored mapping addresses; the first mapped address includes a first EID and a first RLOC of a first ETR connected to a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
a first sending unit 503, configured to send the first mapping address to the ITR if the first mapping address is detected.
In an embodiment of the application, the address obtaining apparatus further includes:
an obtaining unit (not shown in fig. 5) configured to obtain a second mapping address sent by the second ETR; the second mapped address comprises a second EID of the virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device;
a second transmitting unit (not shown in fig. 5) configured to transmit the second mapping address to the other edge device, so that the other edge device stores the second mapping address;
an associating unit (not shown in fig. 5) for associating the second EID comprised by the second mapped address with the tunnel from the edge device to the other edge device by routing iteration.
In an embodiment of the application, the address obtaining apparatus further includes:
and a storage unit (not shown in fig. 5) for storing the second mapping address after acquiring the second mapping address transmitted by the second ETR.
In an embodiment of the application, the address obtaining apparatus further includes:
a broadcasting unit (not shown in fig. 5), configured to broadcast a mapping address request message to other edge devices if the first mapping address is not detected and the tunnel associated with the first EID is not detected, so that the other edge devices send the mapping address request message to the first ETR, and further the first ETR responds to the ITR with the first mapping address.
In an embodiment of the present application (not shown in fig. 5), the address obtaining apparatus further includes:
a third sending unit, configured to send, if the first mapping address is not detected but the tunnel associated with the first EID is detected, the mapping address request packet to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID, so that the edge device corresponding to the tunnel associated with the first EID sends the mapping address request packet to the first ETR, and further, the first ETR responds to the ITR with the first mapping address.
By applying the embodiment, the edge device stores mapping addresses of the EID and the RLOC in advance, the ITR is located in a hierarchical network connected with the edge device, the first ETR and the ITR are located in different hierarchical networks, and when the edge device receives a mapping address request message carrying the first EID and sent by the ITR, it is detected whether a first mapping address including the first EID exists in the pre-stored mapping addresses; if the first mapping address is detected, the first mapping address is directly sent to the ITR, the mapping address request message is not required to be sent to other edge equipment, and then the mapping address request message is sent to the hierarchical network by the other edge equipment so as to obtain the first mapping address, so that the time consumption of the request address of the hierarchical network is reduced, and the timely forwarding of the service is ensured.
An electronic device is further provided in the embodiments of the present application, as shown in fig. 6, and includes a processor 601 and a machine-readable storage medium 602, where the machine-readable storage medium 602 stores machine-executable instructions that can be executed by the processor 601.
In addition, as shown in fig. 6, the electronic device may further include: a communication interface 603 and a communication bus 604; the processor 601, the machine-readable storage medium 602, and the communication interface 603 complete communication with each other through the communication bus 604, and the communication interface 603 is used for communication between the electronic device and other devices.
The processor 601 is caused by machine executable instructions to implement the functionality of an edge device, such as the steps of:
receiving a mapping address request message which is sent by an ITR and carries a first EID; the ITR is located in a hierarchical network connected to the edge device;
detecting whether a first mapping address comprising a first EID exists in prestored mapping addresses; the first mapped address includes a first EID and a first RLOC of a first ETR connected to a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
and if the first mapping address is detected, sending the first mapping address to the ITR.
In one embodiment of the application, the processor 601, caused by the machine executable instructions, may also implement the steps of:
acquiring a second mapping address sent by a second ETR; the second mapped address comprises a second EID of the virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device;
sending the second mapping address to other edge devices to enable the other edge devices to store the second mapping address;
and associating the second EID included by the second mapping address with the tunnel from the edge device to the other edge device through routing iteration.
In an embodiment of the present application, after obtaining the second mapping address sent by the second ETR, the method may further include:
the second mapped address is stored.
In one embodiment of the application, the processor 601, caused by the machine executable instructions, may also implement the steps of:
if the first mapping address is not detected and the tunnel associated with the first EID is not detected, broadcasting a mapping address request message to other edge devices, so that the other edge devices send the mapping address request message to the first ETR, and further the first ETR responds to the ITR for the first mapping address.
In one embodiment of the application, the processor 601, caused by the machine executable instructions, may also implement the steps of:
if the first mapping address is not detected but the tunnel associated with the first EID is detected, sending a mapping address request message to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID, so that the edge device corresponding to the tunnel associated with the first EID sends the mapping address request message to the first ETR, and the first ETR responds to the ITR with the first mapping address.
By applying the embodiment, the edge device stores mapping addresses of the EID and the RLOC in advance, the ITR is located in a hierarchical network connected with the edge device, the first ETR and the ITR are located in different hierarchical networks, and when the edge device receives a mapping address request message carrying the first EID and sent by the ITR, it is detected whether a first mapping address including the first EID exists in the pre-stored mapping addresses; if the first mapping address is detected, the first mapping address is directly sent to the ITR, the mapping address request message is not required to be sent to other edge equipment, and then the mapping address request message is sent to the hierarchical network by the other edge equipment so as to obtain the first mapping address, so that the time consumption of the request address of the hierarchical network is reduced, and the timely forwarding of the service is ensured.
The communication bus 604 mentioned in the above electronic device may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The machine-readable storage medium 602 may include a RAM (Random Access Memory) and may also include a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the machine-readable storage medium 602 may also be at least one memory device located remotely from the aforementioned processor.
The Processor 601 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Embodiments of the present application also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of:
receiving a mapping address request message which is sent by an ITR and carries a first EID; the ITR is located in a hierarchical network connected to the edge device;
detecting whether a first mapping address comprising a first EID exists in prestored mapping addresses; the first mapped address includes a first EID and a first RLOC of a first ETR connected to a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
and if the first mapping address is detected, sending the first mapping address to the ITR.
In one embodiment of the application, the machine executable instructions cause the processor to further perform the steps of:
acquiring a second mapping address sent by a second ETR; the second mapped address comprises a second EID of the virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device;
sending the second mapping address to other edge devices to enable the other edge devices to store the second mapping address;
and associating the second EID included by the second mapping address with the tunnel from the edge device to the other edge device through routing iteration.
In an embodiment of the present application, after obtaining the second mapping address sent by the second ETR, the method may further include:
the second mapped address is stored.
In one embodiment of the application, the machine executable instructions cause the processor to further perform the steps of:
if the first mapping address is not detected and the tunnel associated with the first EID is not detected, broadcasting a mapping address request message to other edge devices, so that the other edge devices send the mapping address request message to the first ETR, and further the first ETR responds to the ITR for the first mapping address.
In one embodiment of the application, the machine executable instructions cause the processor to further perform the steps of:
if the first mapping address is not detected but the tunnel associated with the first EID is detected, sending a mapping address request message to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID, so that the edge device corresponding to the tunnel associated with the first EID sends the mapping address request message to the first ETR, and the first ETR responds to the ITR with the first mapping address.
By applying the embodiment, the edge device stores mapping addresses of the EID and the RLOC in advance, the ITR is located in a hierarchical network connected with the edge device, the first ETR and the ITR are located in different hierarchical networks, and when the edge device receives a mapping address request message carrying the first EID and sent by the ITR, it is detected whether a first mapping address including the first EID exists in the pre-stored mapping addresses; if the first mapping address is detected, the first mapping address is directly sent to the ITR, the mapping address request message is not required to be sent to other edge equipment, and then the mapping address request message is sent to the hierarchical network by the other edge equipment so as to obtain the first mapping address, so that the time consumption of the request address of the hierarchical network is reduced, and the timely forwarding of the service is ensured.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the embodiments of the apparatus, the electronic device, and the machine-readable storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and in relation to the embodiments, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An address acquisition method applied to an edge device, the method comprising:
receiving a mapping address request message which is sent by an ingress direction tunnel router ITR and carries a first terminal address identifier EID; the ITR is located in a hierarchical network connected to the edge device;
detecting whether a first mapping address comprising the first EID exists in prestored mapping addresses; the first mapping address comprises a first EID and a first router address identifier RLOC of a first outgoing direction tunnel router ETR connected with a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
if the first mapping address is detected, sending the first mapping address to the ITR;
the method further comprises the following steps:
acquiring a second mapping address sent by a second ETR; the second mapped address comprises a second EID of a virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device;
sending the second mapping address to other edge devices to enable the other edge devices to store the second mapping address;
and associating the second EID included in the second mapping address with the tunnel from the edge device to the other edge device through routing iteration.
2. The method of claim 1, wherein after obtaining the second mapped address sent by the second ETR, the method further comprises:
and storing the second mapping address.
3. The method of claim 1, further comprising:
if the first mapping address is not detected and the tunnel associated with the first EID is not detected, broadcasting the mapping address request message to the other edge devices, so that the other edge devices send the mapping address request message to the first ETR, and the first ETR responds to the ITR with the first mapping address.
4. The method of claim 1, further comprising:
if the first mapping address is not detected but the tunnel associated with the first EID is detected, sending the mapping address request message to the edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID, so that the edge device corresponding to the tunnel associated with the first EID sends the mapping address request message to the first ETR, and the first ETR responds to the ITR with the first mapping address.
5. An address acquisition apparatus, applied to an edge device, the apparatus comprising:
a receiving unit, configured to receive a mapping address request message carrying a first terminal address identifier EID and sent by an ingress tunnel router ITR; the ITR is located in a hierarchical network connected to the edge device;
a detection unit, configured to detect whether a first mapping address including the first EID exists in pre-stored mapping addresses; the first mapping address comprises a first EID and a first router address identifier RLOC of a first outgoing direction tunnel router ETR connected with a virtual machine corresponding to the first EID; the first ETR is located in a different hierarchical network than the ITR;
a first sending unit, configured to send the first mapping address to the ITR if the first mapping address is detected;
the device further comprises:
the obtaining unit is used for obtaining a second mapping address sent by the second ETR; the second mapped address comprises a second EID of a virtual machine connected to the second ETR and a second RLOC of the second ETR; the second ETR is located in a hierarchical network connected to the edge device;
a second sending unit, configured to send the second mapping address to another edge device, so that the another edge device stores the second mapping address;
and the association unit is used for associating the second EID included by the second mapping address with the tunnel from the edge device to the other edge device through routing iteration.
6. The apparatus of claim 5, further comprising:
and the storage unit is used for storing the second mapping address after acquiring the second mapping address sent by the second ETR.
7. The apparatus of claim 5, further comprising:
a broadcasting unit, configured to broadcast the mapping address request packet to the other edge devices if the first mapping address is not detected and the tunnel associated with the first EID is not detected, so that the other edge devices send the mapping address request packet to the first ETR, and further the first ETR responds to the ITR with the first mapping address.
8. The apparatus of claim 5, further comprising:
a third sending unit, configured to send the mapping address request packet to an edge device corresponding to the tunnel associated with the first EID through the tunnel associated with the first EID if the first mapping address is not detected but the tunnel associated with the first EID is detected, so that the edge device corresponding to the tunnel associated with the first EID sends the mapping address request packet to the first ETR, and the first ETR responds to the ITR with the first mapping address.
9. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 4.
CN201710500486.9A 2017-06-27 2017-06-27 Address acquisition method and device Active CN107547679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710500486.9A CN107547679B (en) 2017-06-27 2017-06-27 Address acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710500486.9A CN107547679B (en) 2017-06-27 2017-06-27 Address acquisition method and device

Publications (2)

Publication Number Publication Date
CN107547679A CN107547679A (en) 2018-01-05
CN107547679B true CN107547679B (en) 2021-07-23

Family

ID=60970936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710500486.9A Active CN107547679B (en) 2017-06-27 2017-06-27 Address acquisition method and device

Country Status (1)

Country Link
CN (1) CN107547679B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958830A (en) * 2009-07-14 2011-01-26 中兴通讯股份有限公司 Network deployment system and mapping and data forwarding method thereof
CN104168213A (en) * 2014-08-18 2014-11-26 福建星网锐捷网络有限公司 Data message processing method and device and network equipment in two-layer Internet
CN105049550A (en) * 2015-08-14 2015-11-11 电子科技大学 D1HT+Chord based name and address separation mapping system
CN105763669A (en) * 2016-03-02 2016-07-13 杭州华三通信技术有限公司 Method and device for supporting host name mapping of edge device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150076041A (en) * 2013-12-26 2015-07-06 한국전자통신연구원 System for supporting multi-tenant based on private ip address in virtual private cloud networks and operating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958830A (en) * 2009-07-14 2011-01-26 中兴通讯股份有限公司 Network deployment system and mapping and data forwarding method thereof
CN104168213A (en) * 2014-08-18 2014-11-26 福建星网锐捷网络有限公司 Data message processing method and device and network equipment in two-layer Internet
CN105049550A (en) * 2015-08-14 2015-11-11 电子科技大学 D1HT+Chord based name and address separation mapping system
CN105763669A (en) * 2016-03-02 2016-07-13 杭州华三通信技术有限公司 Method and device for supporting host name mapping of edge device

Also Published As

Publication number Publication date
CN107547679A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN106412142B (en) Resource equipment address obtaining method and device
US10530735B2 (en) Pro-active mechanism to detect LISP movable silent host
US9641417B2 (en) Proactive detection of host status in a communications network
CN110460684B (en) Broadcast domain isolation method and device for VXLAN (virtual extensible local area network) in same network segment
US20080162516A1 (en) Relay apparatus and communication method
US20150358233A1 (en) Item aggregation in shortest path bridging mac-in-mac mode (spbm) network
US11196702B2 (en) In-vehicle communication device, and communication control method
US20130198369A1 (en) Method and apparatus for mapping locator and identifier of mobile host
CN113595897B (en) Path detection method and device
CN107623757B (en) Table entry updating method and device
US20130243004A1 (en) Communication control method, relay device, and information processing device
CN107809386B (en) IP address translation method, routing device and communication system
CN109547350B (en) Route learning method and gateway equipment
CN109495369B (en) Message forwarding method and device
CN106507414B (en) Message forwarding method and device
CN111953607B (en) Method and device for updating route
CN111031129B (en) Access request processing method, processing device, electronic equipment and storage medium
CN110581805A (en) Routing table updating method, device, switch and storage medium
US11502959B2 (en) Traffic flow based map-cache refresh to support devices and their dynamic policy updates
US11099099B1 (en) System and method for selecting virtual appliances in communications with virtual private cloud networks
WO2021139568A1 (en) Method and apparatus for sending response message, computing device and storage medium
KR101959733B1 (en) Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself
CN109842692B (en) VxLAN switch, system and method for obtaining host information in physical network
CN107547679B (en) Address acquisition method and device
CN108989173B (en) Message transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230615

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.