CN105591922B - A kind of transmission method and device of message - Google Patents

A kind of transmission method and device of message Download PDF

Info

Publication number
CN105591922B
CN105591922B CN201510657893.1A CN201510657893A CN105591922B CN 105591922 B CN105591922 B CN 105591922B CN 201510657893 A CN201510657893 A CN 201510657893A CN 105591922 B CN105591922 B CN 105591922B
Authority
CN
China
Prior art keywords
address
message
mac
edge device
user equipment
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
CN201510657893.1A
Other languages
Chinese (zh)
Other versions
CN105591922A (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 Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510657893.1A priority Critical patent/CN105591922B/en
Publication of CN105591922A publication Critical patent/CN105591922A/en
Application granted granted Critical
Publication of CN105591922B publication Critical patent/CN105591922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/59Network arrangements, protocols or services for addressing or naming using proxies for addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the transmission method and device of a kind of message, this method comprises: local terminal edge device obtains the first IP address and the first MAC Address, and the first corresponding relationship of the first IP address and the first MAC Address is recorded, and the first IP address and agent MAC address are sent to remote edge equipment;The local terminal edge device receives the message from remote edge equipment;The local terminal edge device inquires first corresponding relationship by the purpose IP address of the message, obtains the first MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and send modified message to the first user equipment.According to the technical solution of the present invention, it avoids bringing transmission burden to IP core network, saves the bandwidth resources of IP core network, avoid the resource consumption of edge device.

Description

A kind of transmission method and device of message
Technical field
The present invention relates to field of communication technology more particularly to the transmission methods and device of a kind of message.
Background technique
As shown in Figure 1, for EVI (Ethernet Virtual Interconnect, Ethernet virtualization interconnection) network Networking schematic diagram, EVI are a kind of two-layer VPN (Virtual Private Network, virtual privates based on IP core network Network) technology, it can be based on existing service provider network and enterprise network, provide two layers of interconnection for the physical site of dispersion Function.Switching equipment positioned at station network edge is edge device, is run in station network as two-layer equipment, in core Network is run as three-layer equipment.
VM1 (Virtual Machine, virtual machine) is when needing to access VM2, in order to learn the MAC (Media of VM2 Access Control, medium access control) address, can to VM2 send ARP (Address Resolution Protocol, Address resolution protocol) request message.Edge device A, can be by ARP request report after receiving the ARP request message from VM1 Text is sent to edge device B.ARP request message is sent to VM2 by edge device B.VM2 returns to arp response message to VM1.Side Edge equipment B is sent to edge device A, edge device A after receiving the arp response message from VM2, by arp response message Arp response message is sent to VM1.So far, VM1, edge device A, edge device B and VM2 can be in MAC forwarding-table item middle schools Corresponding MAC Address is practised, and based on the message between MAC forwarding-table item transmission VM1 and VM2.
Summary of the invention
The present invention provides a kind of transmission method of message, the described method comprises the following steps:
Local terminal edge device obtains the first IP address and first medium access control of the first user equipment of self-management MAC Address, and the first corresponding relationship of the first IP address and the first MAC Address is recorded, and by the first IP address and itself configure Agent MAC address be sent to remote edge equipment;So that the remote edge equipment records the agent MAC address and first Second corresponding relationship of IP address;
The local terminal edge device receives the message from remote edge equipment;Wherein, the message is the distal edge Edge equipment inquires described second pair when receiving the message that purpose IP address is the first IP address, using first IP address It should be related to, obtain the agent MAC address, be sent after the target MAC (Media Access Control) address of the message is revised as the agent MAC address 's;
The local terminal edge device inquires first corresponding relationship by the purpose IP address of the message, is corresponded to The first MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and to the first user equipment Send modified message.
The present invention provides a kind of transmitting device of message, and the transmitting device of the message is applied on local terminal edge device, The transmitting device of the message specifically includes:
Processing module, the first IP address and first of the first user equipment for obtaining the local terminal edge device management Medium access control MAC Address, and the first corresponding relationship between first IP address and first MAC Address is recorded, And the agent MAC address that first IP address and the local terminal edge device configure is sent to remote edge equipment;So that The remote edge equipment records the second corresponding relationship between the agent MAC address and first IP address;
Receiving module, for receiving the message from the remote edge equipment;Wherein, the message is the distal edge Edge equipment inquires described second pair when receiving the message that purpose IP address is the first IP address, using first IP address It should be related to, obtain the agent MAC address, be sent after the target MAC (Media Access Control) address of the message is revised as the agent MAC address 's;
Sending module obtains corresponding for inquiring first corresponding relationship by the purpose IP address of the message First MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and send out to the first user equipment Send modified message.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, each edge device can will itself configuration agent MAC address Other edge devices are synchronized to the IP address of all user equipmenies of self-management, without the interaction between edge device A large amount of ARP message, avoid ARP message is largely transferred to IP core network bring transmission burden, saves IP core network Bandwidth resources.Therefore can edge device be avoided moreover, because not needing the interaction ARP message between edge device Operation reconciliation encapsulation operation is packaged to a large amount of ARP message, avoids a large amount of process resources of consumption edge device.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of EVI network;
Fig. 2 is the flow chart of the transmission method of message in one embodiment of the present invention;
Fig. 3 is the building-block of logic of local terminal edge device in one embodiment of the present invention;
Fig. 4 is the building-block of logic of the transmitting device of message in one embodiment of the present invention.
Specific embodiment
As shown in Figure 1, when, there are when a large amount of VM, these VM can send ARP message (ARP request message in user network Or arp response message), so as to cause a large amount of ARP message of interaction, these ARP messages between edge device A and edge device B It needs to transmit in IP core network, very big transmission burden is brought to IP core network, occupy a large amount of bandwidth resources.For Each ARP message, before transmitting ARP message to IP core network, edge device needs to be packaged operation to ARP message, After receiving the ARP message from IP core network, edge device needs to carry out ARP message decapsulation operation, above-mentioned envelope Dress operation reconciliation encapsulation operation can consume a large amount of process resources of edge device.
Aiming at the problems existing in the prior art, a kind of transmission method of message is proposed in the embodiment of the present invention.It is with Fig. 1 The application scenarios schematic diagram of the embodiment of the present invention, this method are applied to the EVI including local terminal edge device and remote edge equipment In network.Local terminal edge device and remote edge equipment be it is opposite, when edge device A be local terminal edge device when, edge is set Standby B is remote edge equipment, and when edge device B is local terminal edge device, edge device A is remote edge equipment.EVI network In may include multiple edge devices, when an edge device be local terminal edge device when, other all edge devices are remote End margin equipment, when an edge device is remote edge equipment, other all edge devices are local terminal edge device, figure In 2 by taking a local terminal edge device, a remote edge equipment as an example.
In the embodiment of the present invention, an agent MAC address can be pre-configured on local terminal edge device, and can be remote An agent MAC address is pre-configured in end margin equipment.In addition, in order to distinguish conveniently, the use that local terminal edge device is managed Family equipment is known as the first user equipment, and the IP address of the first user equipment is known as the first IP address, by the first user equipment MAC Address is known as the first MAC Address.The user equipment of remote edge equipment management is known as second user equipment, second is used The IP address of family equipment is known as the second IP address, and the MAC Address of second user equipment is known as the second MAC Address.
Wherein, preconfigured agent MAC address can be the MAC Address of local terminal edge device on local terminal edge device, It may not be the MAC Address of local terminal edge device, as long as guaranteeing preconfigured agent MAC address tool on local terminal edge device There is uniqueness, does not conflict with other MAC Address used.
Wherein, preconfigured agent MAC address can be the MAC Address of remote edge equipment in remote edge equipment, It may not be the MAC Address of remote edge equipment, as long as guaranteeing that preconfigured agent MAC address has only on edge device One property does not conflict with other MAC Address used.
Wherein, the first user equipment of local terminal edge device management can specifically include but be not limited to VM.
Wherein, the second user equipment of remote edge equipment management can specifically include but be not limited to VM.
Under application scenarios shown in Fig. 1, it is assumed that edge device A is local terminal edge device, and edge device B is remote edge When equipment, then the first user equipment of edge device A management specifically includes VM1, VM3 and VM4, and the second of edge device B management User equipment specifically includes VM2.
Under above-mentioned application scenarios, as shown in Fig. 2, the transmission method of the message can specifically include:
Step 201, local terminal edge device obtains the first IP address and the first MAC of the first user equipment of self-management Location, and the agency for recording the first corresponding relationship of the first IP address and the first MAC Address, and the first IP address being configured with itself MAC Address is sent to remote edge equipment.
In the embodiment of the present invention, local terminal edge device obtains the first IP address and the of the first user equipment of self-management The process of one MAC Address is specifically including but not limited to such as under type: first user equipment of the local terminal edge device to self-management ARP request message is sent, and receives the arp response message that the first user equipment returns, and obtain the source MAC of arp response message Address is the first MAC Address of first user equipment, and the source IP address for obtaining arp response message is first user equipment First IP address.Alternatively, local terminal edge device receives the gratuitous ARP packet (such as the of the first user equipment from self-management One user equipment actively sends gratuitous ARP packet, the source MAC of the gratuitous ARP packet to local terminal edge device after online Location is the MAC Address of the first user equipment, and the source IP address of the gratuitous ARP packet is the IP address of the first user equipment), and obtain The source MAC for obtaining the gratuitous ARP packet is the first MAC Address of first user equipment, obtains the source of the gratuitous ARP packet IP address is the first IP address of first user equipment.Alternatively, the first user that local terminal edge device receives self-management sets ARP request message that preparation is sent, and the source MAC for obtaining the ARP request message is the first MAC of first user equipment Location, the source IP address for obtaining the ARP request message is the first IP address of first user equipment.
Wherein, the source MAC for the ARP request message that local terminal edge device is sent to the first user equipment of self-management For agent MAC address, target MAC (Media Access Control) address is the MAC Address of the first user equipment, and purpose IP address is the IP of the first user equipment Address, source IP address can be selected arbitrarily, such as the IP address of local terminal edge device.In addition, local terminal edge device is receiving From after the ARP request message of the first user equipment, local terminal edge device can also forge the corresponding ARP of the ARP request message Response message, and arp response message is sent to the first user equipment.Wherein, the source MAC of the arp response message is agency MAC Address, source IP address are the purpose IP address of ARP request message, and target MAC (Media Access Control) address is the source MAC of ARP request message Location, purpose IP address are the source IP address of ARP request message.
In the embodiment of the present invention, the ARP sent for the first user equipment that local terminal edge device receives self-management is asked The process for seeking message can specifically include but be not limited to such as under type: mode one, the first user equipment are requesting other users to set When standby MAC Address, ARP request message actively is sent to other user equipmenies, the first user is intercepted and captured by local terminal edge device and is set The ARP request message that preparation is sent.Mode two, local terminal edge device send notice report to all first user equipmenies of self-management Literary (can be broadcasting packet), the notice message are used to that all the first user equipmenies for receiving this notice message to be notified to send ARP request message sends ARP request message by the first user equipment.Under above two mode, local terminal edge device can be with The ARP request message of the first user equipment transmission is received, and the first user equipment is obtained based on the ARP request message received The first MAC Address and the first user equipment the first IP address.
In the embodiment of the present invention, local terminal edge device records the first corresponding relationship of the first IP address and the first MAC Address Process, be specifically including but not limited to: local terminal edge device locally construct a MAC Address list item, the MAC Address list item use Between the first IP address and the first MAC Address of the first user equipment for saving the self-management that local terminal edge device learns The first corresponding relationship.Based on this, local terminal edge device learns to the first IP address and the first MAC from ARP request message After location, the first corresponding relationship of the first IP address and the first MAC Address is recorded in MAC Address list item.
In the embodiment of the present invention, the agent MAC address of the first IP address and itself configuration is sent to by local terminal edge device The process of remote edge equipment can specifically include but be not limited to such as under type: local terminal edge device constructs ISIS (Intermediate System to Intermediate System, Intermediate System-to-Intermediate System) protocol massages, One or more first IP address adding agent MAC address in ISIS protocol massages and currently obtaining, and ISIS is assisted View message is sent to remote edge equipment.
Under application scenarios shown in Fig. 1, edge device A sends ARP request report to VM1, VM3 and VM4 of self-management Text.VM1 is after receiving ARP request message, then VM1 sends arp response message, and the source IP address of the arp response message is VM1 IP address, purpose IP address is the IP address of edge device A, and source MAC is the MAC Address of VM1, and target MAC (Media Access Control) address is The MAC Address of edge device A.After receiving the arp response message, the source IP address for obtaining arp response message is edge device A The IP address of VM1, the source MAC for obtaining arp response message is the MAC Address of VM1.Similarly, VM3 and VM4 is receiving ARP Processing after request message, it is similar with processing of the VM1 after receiving ARP request message, it no longer repeats again herein.
As shown in Figure 1, in another example, edge device A can not be sent to VM1, VM3 and VM4 of self-management ARP request message.Based on this, if VM1 has the demand of access VM2, VM1 sends the ARP request message for being directed to VM2, the ARP The source IP address of request message is the IP address of VM1, and purpose IP address is the IP address of VM2, and source MAC is the MAC of VM1 Location, target MAC (Media Access Control) address are broadcast MAC address.Edge device A obtains ARP request message after receiving the ARP request message Source IP address is the IP address of VM1, and the source MAC for obtaining ARP request message is the MAC Address of VM1.Edge device A is to VM1 Arp response message (the arp response message is that edge device A is forged, should be sent to VM1 by VM2) is sent, which rings The source MAC for answering message is preconfigured agent MAC address on edge device A, and source IP address is the IP address of VM2, mesh MAC Address be VM1 MAC Address, purpose IP address be VM1 IP address.Similarly, if VM3 and VM4 have access VM2's Demand, then corresponding process flow is similar with the process flow of VM1, no longer repeats again herein.
In above process, edge device A is receiving ARP request message/arp response message from VM1, VM3 ARP request message/arp response message, VM4 ARP request message/arp response message after, be not by each ARP request message/ Arp response message is sent to edge device B, but the IP address of VM1 and the MAC of VM1 are recorded in local MAC Address list item Corresponding relationship between address records the corresponding relationship between the IP address of VM3 and the MAC Address of VM3, with recording the IP of VM4 Corresponding relationship between location and the MAC Address of VM4.Further, edge device A constructs ISIS protocol massages, in ISIS agreement Agent MAC address, the IP address of VM1, the IP address of VM3, the IP address of VM4 are added in message, and ISIS protocol massages are sent out Give edge device B.Obviously, after edge device A receives the ARP request message from a large amount of VM, edge device A is also only needed An ISIS protocol massages are sent to edge device B.
In practical applications, when there is new VM (such as VM5) online, then edge device A can obtain VM5 IP address and Corresponding relationship between the MAC Address of VM5, and record the corresponding relationship between the IP address of VM5 and the MAC Address of VM5.Into one Step, edge device A can construct ISIS protocol massages, the IP of agent MAC address, VM5 are added in ISIS protocol massages Location, and ISIS protocol massages are sent to edge device B.Alternatively, edge device A can construct ISIS protocol massages, in ISIS Agent MAC address, the IP address of VM1, the IP address of VM3, the IP address of VM4, the IP address of VM5 are added in protocol massages, and ISIS protocol massages are sent to edge device B.
That is, first edge equipment obtains and records the first new user equipment when there is the first new user equipment online IP address and MAC Address between corresponding relationship, by the IP address of the first new user equipment and itself configuration act on behalf of MAC Address is sent to remote edge equipment, or the IP address of current the first all user equipment is acted on behalf of MAC with what itself was configured Address is sent to remote edge equipment, so that remote edge equipment records the agent MAC address and the new user equipment IP address corresponding relationship.
Step 202, the agent MAC address of remote edge equipment minute book end margin device configuration and local terminal edge device pipe Second corresponding relationship of the first IP address of the first user equipment of reason.
Under application scenarios shown in Fig. 1, edge device B is after receiving the ISIS protocol massages from edge device A, base IP address, the IP address of VM3, the IP address of VM4 of the agent MAC address, VM1 that carry in ISIS protocol massages, edge is set The agent MAC address of standby B record edge device A configuration, IP address, the IP address of VM3, the corresponding of the IP address of VM4 of VM1 are closed System.
Step 203, remote edge equipment receive purpose IP address be the first IP address message when, using this first IP address inquires the second corresponding relationship, obtains the agent MAC address of local terminal edge device configuration, and by the purpose MAC of message It is revised as the agent MAC address in location.
Step 204, message is sent to local terminal edge device by remote edge equipment.
Step 205, local terminal edge device passes through the mesh of the message after receiving the message from remote edge equipment IP address inquire the first corresponding relationship, obtain corresponding first MAC Address, and the target MAC (Media Access Control) address of the message is revised as First MAC Address.
Step 206, local terminal edge device sends modified message to the first user equipment.
Under application scenarios shown in Fig. 1, when VM2 sends message to VM1, edge device B receives the report from VM2 Text, the source IP address of the message are the IP address of VM2, and purpose IP address is the IP address of VM1, and source MAC is the MAC of VM2 Address, target MAC (Media Access Control) address are the MAC Address of edge device B.Edge device B is corresponded to using the IP address inquiry second of VM1 and is closed System obtains the agent MAC address of edge device A configuration, and the target MAC (Media Access Control) address of message is revised as to the generation of edge device A configuration MAC Address is managed, the source MAC of message is revised as to the MAC Address of edge device B, and message is sent to edge device A. Edge device A inquires the first corresponding relationship after receiving the message from edge device B, through the IP address of VM1, obtains VM1 MAC Address, with being revised as the MAC of VM1 by the target MAC (Media Access Control) address of message (i.e. the agent MAC address of edge device A configuration) The source MAC of message is revised as to the MAC Address of edge device A, and message is sent to VM1 in location.VM2 is sent out to VM3, VM4 Delivering newspaper, literary process is similar with above-mentioned process, and details are not described herein.
Under application scenarios shown in Fig. 1, edge device B sends ARP request message to the VM2 of self-management.VM2 is connecing After receiving ARP request message, then VM2 sends arp response message, and the source IP address of the arp response message is the IP of VM2 Location, purpose IP address are the IP address of edge device B, and source MAC is the MAC Address of VM2, and target MAC (Media Access Control) address sets for edge The MAC Address of standby B.For edge device B after receiving the arp response message, the source IP address for obtaining arp response message is VM2 IP address, obtain arp response message source MAC be VM2 MAC Address.In another example, edge device B can Not send ARP request message to the VM2 of self-management.Based on this, if VM2 has the demand of access VM1 (or VM3, VM4), Then VM2 sends the ARP request message for being directed to VM1 (or VM3, VM4), and the source IP address of the ARP request message is the IP of VM2 Location, purpose IP address are the IP address of VM1 (or VM3, VM4), and source MAC is the MAC Address of VM2, and target MAC (Media Access Control) address is wide Broadcast MAC Address.For edge device B after receiving the ARP request message, the source IP address for obtaining ARP request message is the IP of VM2 Address, the source MAC for obtaining ARP request message is the MAC Address of VM2.Edge device B sends arp response message to VM2 (the arp response message is that edge device B is forged, should be sent to VM2 by VM1 (or VM3, VM4)), the arp response report The source MAC of text is preconfigured agent MAC address on edge device B, and source IP address is the IP of VM1 (or VM3, VM4) Address, target MAC (Media Access Control) address are the MAC Address of VM2, and purpose IP address is the IP address of VM2.
Edge device B is not by ARP request report after receiving ARP request message/arp response message from VM2 Text/arp response message is sent to edge device A, but records in local MAC Address list item the IP address and VM2 of VM2 The first corresponding relationship between MAC Address, and ISIS protocol massages are constructed, it is added on edge device B in ISIS protocol massages The IP address of the agent MAC address of configuration, VM2, and ISIS protocol massages are sent to edge device A.When edge device B is received After ARP request message from a large amount of VM, also only need to send an ISIS protocol massages to edge device A.
Edge device A is after receiving the ISIS protocol massages from edge device B, based on taking in ISIS protocol massages The IP address of the agent MAC address of band, VM2, edge device A is with recording the IP of the agent MAC address of edge device B configuration, VM2 The second corresponding relationship between location.
When VM1 sends message to VM2, edge device A receives the message from VM1, and the source IP address of the message is VM1 IP address, purpose IP address is the IP address of VM2, and source MAC is the MAC Address of VM1, and target MAC (Media Access Control) address sets for edge The MAC Address of standby A.Edge device A inquires the second corresponding relationship using the IP address of VM2, obtains the agency of edge device B configuration The target MAC (Media Access Control) address of message is revised as the agent MAC address of edge device B configuration by MAC Address, and by the source MAC of message The MAC Address of edge device A is revised as in location, and message is sent to edge device B.Edge device B is being received from edge After the message of equipment A, the first corresponding relationship is inquired by the IP address of VM2, the MAC Address of VM2 is obtained, by the purpose of message MAC Address (i.e. the agent MAC address of edge device B configuration) is revised as the MAC Address of VM2, and the source MAC of message is repaired It is changed to the MAC Address of edge device B, and message is sent to VM2.In addition, VM3, VM4 to VM2 send message process with it is upper It is similar to state process, details are not described herein.
In above-mentioned treatment process, during local terminal edge device sends message to end edges equipment, this end edge Edge equipment is first packaged operation to message, and the message after encapsulation is sent to end edges equipment by IP core network, End edges equipment first carries out decapsulation operation to message after receiving message, after being carried out based on the message after decapsulation operation Continuous processing.During end edges equipment sends message to local terminal edge device, end edges equipment first carries out message Encapsulation operation, and the message after encapsulation is sent to by local terminal edge device by IP core network, local terminal edge device is receiving After message, decapsulation operation first is carried out to message, subsequent processing is carried out based on the message after decapsulation operation.Wherein, encapsulation behaviour It is specifically including but not limited to VXLAN (Virtual eXtensible Local Area Network, virtual expansible local Net) encapsulation operation, decapsulation, which operates, is specifically including but not limited to VXLAN decapsulation operation.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, each edge device can will itself configuration agent MAC address Other edge devices are synchronized to the IP address of all user equipmenies of self-management, without the interaction between edge device A large amount of ARP message, avoid ARP message is largely transferred to IP core network bring transmission burden, saves IP core network Bandwidth resources.Therefore can edge device be avoided moreover, because not needing the interaction ARP message between edge device Operation reconciliation encapsulation operation is packaged to a large amount of ARP message, avoids a large amount of process resources of consumption edge device.
The transmitting device of message proposed by the present invention can be applied in local terminal edge device, the transmitting device of the message It can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one Device on a logical meaning, being will be corresponding in nonvolatile memory by the processor of the local terminal edge device where it Computer program instructions are read into memory what operation was formed.For hardware view, as shown in figure 3, being proposed by the present invention A kind of hardware structure diagram of local terminal edge device where the transmitting device of message, in addition to processor shown in Fig. 3, network connect Outside mouth, memory and nonvolatile memory, local terminal edge device can also include other hardware, such as be responsible for turn of processing message Send out chip etc.;From hardware configuration, which is also possible to be distributed apparatus, may include multiple interfaces Card, to carry out the extension of Message processing in hardware view.
Based on inventive concept same as the above method, a kind of transmission dress of message is additionally provided in the embodiment of the present invention It sets, the transmitting device of the message is applied on local terminal edge device, as shown in figure 4, the transmitting device of the message specifically wraps It includes:
Processing module 11, for obtaining the first IP address and of the first user equipment of the local terminal edge device management One medium access control MAC Address, and record the first corresponding pass between first IP address and first MAC Address System, and the agent MAC address that first IP address and the local terminal edge device configure is sent to remote edge equipment;With The remote edge equipment is set to record the second corresponding relationship between the agent MAC address and first IP address;
Receiving module 12, for receiving the message from the remote edge equipment;Wherein, the message is the distal end Edge device utilizes first IP address inquiry described second when receiving the message that purpose IP address is the first IP address Corresponding relationship obtains the agent MAC address, sends out after the target MAC (Media Access Control) address of the message is revised as the agent MAC address It send;
Sending module 13 is corresponded to for inquiring first corresponding relationship by the purpose IP address of the message The first MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and to the first user equipment Send modified message.
The processing module 11, specifically for the first of the first user equipment for obtaining the local terminal edge device management During IP address and the first MAC Address, the first user equipment of Xiang Suoshu local terminal edge device management sends address resolution Agreement ARP request message, and the arp response message that the first user equipment returns is received, and obtain the source of the arp response message MAC Address is the first MAC Address of first user equipment, and the source IP address for obtaining the arp response message is first use First IP address of family equipment;Alternatively, receiving the gratuitous ARP report of the first user equipment from the local terminal edge device management Text, and the source MAC for obtaining the gratuitous ARP packet is the first MAC Address of first user equipment, is obtained described free The source IP address of ARP message is the first IP address of first user equipment;The local terminal edge device pipe is come from alternatively, receiving The ARP request message of first user equipment of reason, and the source MAC for obtaining the ARP request message is that first user sets The first standby MAC Address, the source IP address for obtaining the ARP request message is the first IP address of first user equipment.
The processing module 11 is further used for after receiving the ARP request message from the first user equipment, forges institute State the corresponding arp response message of ARP request message;The source MAC of the arp response message is the agent MAC address, source IP address is the purpose IP address of the ARP request message, and target MAC (Media Access Control) address is the source MAC of the ARP request message, Purpose IP address is the source IP address of the ARP request message;The arp response message is sent to the first user equipment.
The processing module 11, specifically for acting on behalf of MAC configure first IP address and local terminal edge device During address is sent to remote edge equipment, Intermediate System-to-Intermediate System ISIS protocol massages are constructed, in the ISIS One or more first IP address adding the agent MAC address in protocol massages, currently obtaining, and the ISIS is assisted View message is sent to remote edge equipment.
Described device is applied in EVI network, and first user equipment specifically includes VM.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment, Module or process in attached drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.The embodiments of the present invention Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think variation should all fall into protection scope of the present invention.

Claims (8)

1. a kind of transmission method of message, which is characterized in that the described method comprises the following steps:
Local terminal edge device is with obtaining the first IP address and the first medium access control MAC of the first user equipment of self-management Location, and the agency for recording the first corresponding relationship of the first IP address and the first MAC Address, and the first IP address being configured with itself MAC Address is sent to remote edge equipment;So that the remote edge equipment records the agent MAC address and the first IP address The second corresponding relationship;Wherein, the agent MAC address of the first IP address and itself configuration is sent to by the local terminal edge device Remote edge equipment, comprising: the local terminal edge device constructs Intermediate System-to-Intermediate System ISIS protocol massages, described One or more first IP address adding the agent MAC address in ISIS protocol massages, currently obtaining, and will be described ISIS protocol massages are sent to the remote edge equipment;
The local terminal edge device receives the message from remote edge equipment;Wherein, the message is that the remote edge is set Pass is corresponded to for when receiving the message that purpose IP address is the first IP address, utilizing first IP address to inquire described second System, obtains the agent MAC address, and the target MAC (Media Access Control) address of the message is revised as sending after the agent MAC address;
The local terminal edge device inquires first corresponding relationship by the purpose IP address of the message, obtains corresponding the One MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and send to the first user equipment Modified message.
2. the method according to claim 1, wherein the local terminal edge device obtains the first use of self-management First IP address of family equipment and the process of the first MAC Address, specifically include:
The local terminal edge device sends Address Resolution Protocol ARP request message to the first user equipment of self-management, and connects The source MAC received the arp response message of the first user equipment return, and obtain the arp response message is first user First MAC Address of equipment, the source IP address for obtaining the arp response message is the first IP address of first user equipment; Alternatively,
The local terminal edge device receives the gratuitous ARP packet of the first user equipment from self-management, and exempts from described in acquisition The source MAC for taking ARP message is the first MAC Address of first user equipment, with obtaining the source IP of the gratuitous ARP packet Location is the first IP address of first user equipment;Alternatively,
The local terminal edge device receives the ARP request message of the first user equipment from self-management, and obtains the ARP The source MAC of request message is the first MAC Address of first user equipment, with obtaining the source IP of the ARP request message Location is the first IP address of first user equipment.
3. according to the method described in claim 2, it is characterized in that, the local terminal edge device is being received from the first user After the ARP request message of equipment, the method further includes:
The local terminal edge device forges the corresponding arp response message of the ARP request message;Wherein, the arp response message Source MAC be the agent MAC address, source IP address is the purpose IP address of the ARP request message, purpose MAC Location is the source MAC of the ARP request message, and purpose IP address is the source IP address of the ARP request message;
The local terminal edge device sends the arp response message to first user equipment.
4. method according to claim 1-3, which is characterized in that it is mutual that the method is applied to Ethernet virtualization Join in EVI network, first user equipment specifically includes virtual machine VM.
5. a kind of transmitting device of message, which is characterized in that the transmitting device of the message is applied on local terminal edge device, institute The transmitting device for stating message specifically includes:
Processing module, for obtaining the first IP address and first medium of the first user equipment of the local terminal edge device management Access control MAC addresses, and the first corresponding relationship between first IP address and first MAC Address is recorded, and will First IP address and the agent MAC address of local terminal edge device configuration are sent to remote edge equipment;So that described Remote edge equipment records the second corresponding relationship between the agent MAC address and first IP address;Wherein, the place Module is managed, specifically for being sent to far by the agent MAC address of first IP address and local terminal edge device configuration During end margin equipment, Intermediate System-to-Intermediate System ISIS protocol massages are constructed, are added in the ISIS protocol massages One or more first IP address for adding the agent MAC address, currently obtaining, and the ISIS protocol massages are sent to Remote edge equipment;
Receiving module, for receiving the message from the remote edge equipment;Wherein, the message is that the remote edge is set Pass is corresponded to for when receiving the message that purpose IP address is the first IP address, utilizing first IP address to inquire described second System, obtains the agent MAC address, and the target MAC (Media Access Control) address of the message is revised as sending after the agent MAC address;
Sending module obtains corresponding first for inquiring first corresponding relationship by the purpose IP address of the message MAC Address, and the target MAC (Media Access Control) address of the message is revised as first MAC Address, and repair to the transmission of the first user equipment Message after changing.
6. device according to claim 5, which is characterized in that
The processing module, specifically for the first IP address in the first user equipment for obtaining the local terminal edge device management During the first MAC Address, the first user equipment of Xiang Suoshu local terminal edge device management sends Address Resolution Protocol ARP Request message, and the arp response message that the first user equipment returns is received, and obtain the source MAC of the arp response message For the first MAC Address of first user equipment, the source IP address for obtaining the arp response message is first user equipment First IP address;Alternatively, receiving the gratuitous ARP packet of the first user equipment from the local terminal edge device management, and obtain The source MAC for obtaining the gratuitous ARP packet is the first MAC Address of first user equipment, obtains the gratuitous ARP packet Source IP address be first user equipment the first IP address;Alternatively, receiving the from the local terminal edge device management The ARP request message of one user equipment, and the source MAC for obtaining the ARP request message is the of first user equipment One MAC Address, the source IP address for obtaining the ARP request message is the first IP address of first user equipment.
7. device according to claim 6, which is characterized in that
The processing module is further used for after receiving the ARP request message from the first user equipment, described in forgery The corresponding arp response message of ARP request message;The source MAC of the arp response message is the agent MAC address, source IP Address is the purpose IP address of the ARP request message, and target MAC (Media Access Control) address is the source MAC of the ARP request message, mesh IP address be the ARP request message source IP address;The arp response message is sent to the first user equipment.
8. according to the described in any item devices of claim 5-7, which is characterized in that it is mutual that described device is applied to Ethernet virtualization Join in EVI network, first user equipment specifically includes virtual machine VM.
CN201510657893.1A 2015-10-13 2015-10-13 A kind of transmission method and device of message Active CN105591922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510657893.1A CN105591922B (en) 2015-10-13 2015-10-13 A kind of transmission method and device of message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510657893.1A CN105591922B (en) 2015-10-13 2015-10-13 A kind of transmission method and device of message

Publications (2)

Publication Number Publication Date
CN105591922A CN105591922A (en) 2016-05-18
CN105591922B true CN105591922B (en) 2019-03-15

Family

ID=55931158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510657893.1A Active CN105591922B (en) 2015-10-13 2015-10-13 A kind of transmission method and device of message

Country Status (1)

Country Link
CN (1) CN105591922B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712520B (en) * 2018-05-31 2021-03-23 安科讯(福建)科技有限公司 Terminal IP address transparent transmission system and method based on LTE wireless private network
CN112866113B (en) * 2020-12-29 2022-11-01 京信网络系统股份有限公司 Method, system, computer device and storage medium for ARP proxy in routing packet forwarding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179228A (en) * 2013-04-02 2013-06-26 杭州华三通信技术有限公司 Internet protocol address analysis method and edge node
CN104486217A (en) * 2014-12-08 2015-04-01 杭州华三通信技术有限公司 Cross network message transmitting method and equipment
CN104869042A (en) * 2014-02-20 2015-08-26 华为技术有限公司 Message forwarding method and message forwarding device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100876780B1 (en) * 2002-06-05 2009-01-07 삼성전자주식회사 Method and apparatus for sharing a single internet protocol address, without converting network address in an internet access gateway for local network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179228A (en) * 2013-04-02 2013-06-26 杭州华三通信技术有限公司 Internet protocol address analysis method and edge node
CN104869042A (en) * 2014-02-20 2015-08-26 华为技术有限公司 Message forwarding method and message forwarding device
CN104486217A (en) * 2014-12-08 2015-04-01 杭州华三通信技术有限公司 Cross network message transmitting method and equipment

Also Published As

Publication number Publication date
CN105591922A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN116057910B (en) Virtual private cloud communication and configuration method and related device
CN103200069B (en) A kind of method and apparatus of Message processing
CN105721306B (en) A kind of transmission method and device of configuration information
CN101946493B (en) Method and system for providing connectivity between clients connected to the internet
CN103108089B (en) Connection establishment management method of network system and related system thereof
CN103580980A (en) Automatic searching and automatic configuration method and device of VN
Juan et al. Multi-master ros systems
CN104468368B (en) Configure the method and device of bgp neighbor
CN104812021B (en) A kind of method and device of AP access AC
US10382258B2 (en) Viral system discovery and installation for distributed networks
CN105306368B (en) A kind of transmission method and device of data message
WO2019080320A1 (en) Multi-system network interconnection device, method and apparatus
TW201509155A (en) Communication device utilizing a central discovery mechanism, and respective method
CN104104926A (en) Universal plug and play (UPnP) monitoring terminal access method and access device
US8472420B2 (en) Gateway device
CN109314847A (en) Method, apparatus and computer readable recording medium for being communicated on the more group networks of Wi-Fi direct
Khakimov et al. Investigation of methods for remote control IoT-devices based on cloud platforms and different interaction protocols
CN107547665A (en) A kind of method, equipment and the system of dhcp address distribution
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN101127762A (en) An information interaction method and system based on dynamic host configuration protocol
CN108173928A (en) Method, apparatus, storage medium and the terminal device of UDP message transmission
WO2005083959A1 (en) Network access router, network access method, program, and recording medium
CN107770010A (en) A kind of home intranet method and home networking system based on OpenFlow
CN110062060A (en) A kind of system and method for IP address distribution
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant