CN107171964A - Message forwarding method and device in large-scale network-estabilishing - Google Patents

Message forwarding method and device in large-scale network-estabilishing Download PDF

Info

Publication number
CN107171964A
CN107171964A CN201710278772.5A CN201710278772A CN107171964A CN 107171964 A CN107171964 A CN 107171964A CN 201710278772 A CN201710278772 A CN 201710278772A CN 107171964 A CN107171964 A CN 107171964A
Authority
CN
China
Prior art keywords
mac address
container
message
virtual machine
address
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.)
Pending
Application number
CN201710278772.5A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201710278772.5A priority Critical patent/CN107171964A/en
Publication of CN107171964A publication Critical patent/CN107171964A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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 embodiment of the present invention provides message forwarding method and device in a kind of large-scale network-estabilishing.This method includes:Leaf node receives the first message that the virtual machine or container of its subordinate are sent;The MAC Address of virtual machine or container in first message is replaced with into default MAC Address;And the first message replaced after MAC Address is sent to root node;Receive the second message that root node is sent;Default MAC Address in second message is replaced with to the MAC Address of virtual machine or container, and the second message replaced after MAC Address is sent to virtual machine or container.Only the MAC Address or several MAC Address of the fixation and the corresponding relation of the leaf node need to be recorded in the ARP of root node of the embodiment of the present invention, it is not required to record each virtual machine of each leaf node subordinate or the MAC Address of container and the corresponding relation of IP address, the occupancy of the ARP of gateway device is reduced, the network size that can be set up is increased.

Description

Message forwarding method and device in large-scale network-estabilishing
Technical field
The present embodiments relate to message forwarding method and dress in communication technical field, more particularly to a kind of large-scale network-estabilishing Put.
Background technology
In the prior art, with the increase of server cluster scale, and diminishing for granularity, existing one are virtualized Many virtual machines or container can be virtually dissolved on server.
Assuming that 48 servers can be hung with below 1 included below 100 leaf node of node, each leaf node, each Server can virtually turn to 100 virtual machines or container, then node 1 below can have 48*100*100=480K virtual machine or Container, due to each virtual machine or container a MAC Address and IP are needed when with other network elements or equipment communication Location, then node 1 need to be stored with 480K MAC Address and the corresponding relation of IP address.
If node 1 is a gateway device, gateway device is needed to support 480K address resolution protocol (Address Resolution Protocol, abbreviation ARP) list item space, but the ARP of gateway device of the prior art does not have So big space, the virtual machine of the actual connection of the gateway device or the number of container are small more than 480K, cause by the net The network size that pass equipment can be set up is smaller.
The content of the invention
The embodiment of the present invention provides message forwarding method and device in a kind of large-scale network-estabilishing, to reduce gateway device The occupancy of ARP, increases the network size that can be set up.
The one side of the embodiment of the present invention is to provide message forwarding method in a kind of large-scale network-estabilishing, including:
Leaf node receives the first message that the virtual machine or container of its subordinate are sent, and first message includes the void The MAC Address of plan machine or container, and the virtual machine or container IP address;
The MAC Address of virtual machine or container described in first message is replaced with default MAC by the leaf node Address, and the first message replaced after MAC Address is sent into root node, the leaf node is stored with the virtual machine or appearance The corresponding relation of the MAC Address of device, the IP address of the virtual machine or container and default MAC Address;
The leaf node receives the second message that the root node is sent, and second message includes described default The IP address of MAC Address and the virtual machine or container;
The leaf node determines the void according to the IP address and the corresponding relation of the virtual machine or container The MAC Address of plan machine or container;
Default MAC Address described in second message is replaced with the virtual machine or container by the leaf node MAC Address, and the second message replaced after MAC Address is sent to the virtual machine or container.
The other side of the embodiment of the present invention is to provide apparatus for forwarding message in a kind of large-scale network-estabilishing, including:
Receiving module, for receiving the first message that virtual machine or container are sent, first message includes described virtual The MAC Address of machine or container, and the virtual machine or container IP address;
Replacement module, for the MAC Address of virtual machine or container described in first message to be replaced with into default MAC Address;
Sending module, for the first message replaced after MAC Address to be sent into root node, the leaf node is stored with MAC Address, the IP address of the virtual machine or container and the corresponding of default MAC Address of the virtual machine or container are closed System;
The receiving module is additionally operable to receive the second message that the root node is sent, and second message includes described pre- If MAC Address and the virtual machine or container IP address;
Determining module, for the IP address according to the virtual machine or container and the corresponding relation, determines the void The MAC Address of plan machine or container;
The replacement module be additionally operable to by default MAC Address described in second message replace with the virtual machine or The MAC Address of container;
The sending module is additionally operable to the second message replaced after MAC Address being sent to the virtual machine or container.
Message forwarding method and device in large-scale network-estabilishing provided in an embodiment of the present invention, pass through the institute of leaf node subordinate There are virtual machine or container can be to that there should be a default MAC Address, can also be to that should have several default MAC Address, but in advance If MAC Address number be less than all virtual machines or container MAC Address number so that leaf node externally shows as one Individual MAC Address either several MAC Address, and a MAC Address either several MAC Address can correspond to all virtual machines or appearance The MAC Address of device.After root node receives the first message of leaf node transmission, the first message is forwarded, and root section The source MAC that point receives the first message that same leaf node is sent is rendered as a fixed MAC Address or several MAC Address, therefore, need to only record a MAC Address or several MAC Address and the leaf for the fixation in the ARP of root node The corresponding relation of child node, is not required to record each virtual machine of each leaf node subordinate or the MAC Address and IP of container The corresponding relation of address, reduces the occupancy of the ARP of gateway device, increases the net that can be set up by the gateway device Network scale.
Brief description of the drawings
Fig. 1 is message forwarding method flow chart in large-scale network-estabilishing provided in an embodiment of the present invention;
Figure 1A is the applicable network structure of message forwarding method in large-scale network-estabilishing provided in an embodiment of the present invention;
Figure 1B is the schematic diagram of the frame format of the first message provided in an embodiment of the present invention;
Fig. 2 is the structure chart of apparatus for forwarding message in large-scale network-estabilishing provided in an embodiment of the present invention.
Embodiment
Fig. 1 is message forwarding method flow chart in large-scale network-estabilishing provided in an embodiment of the present invention;Figure 1A is real for the present invention The applicable network structure of message forwarding method in the large-scale network-estabilishing of example offer is provided.The embodiment of the present invention is in the prior art The ARP of gateway device do not have so big space, the virtual machine of the actual connection of the gateway device or of container Number is small more than 480K, and causing the network size that can set up by the gateway device, smaller there is provided suitable for switch communication Method, it is as follows that this method specifically includes step:
Step S101, leaf node receive the first message that the virtual machine or container of its subordinate are sent, first message MAC Address including the virtual machine or container, and the virtual machine or container IP address.
As shown in Figure 1A, several can be hung with below root node several leaf nodes included below, each leaf node Server, each server can virtually turn to multiple virtual machines or container, and root node can be specifically gateway device, each leaf Increase an address pool on node, the address pool is the MAC Address pond of correspondence with foreign country, and the inside preserves this leaf leaf nodes and connected The VM virtual machines or the real MAC address of container connect, the corresponding relation list of IP address.If so each leaf leaf nodes When following VM virtual machines or container is presented as a fixed MAC Address when communication with the outside world, all, then not Need to maintain to add the list of a MAC Address for representing the leaf node in list, if below leaf leaf nodes If VM virtual machines or container are presented as the MAC Address of several fixations of minority when communication with the outside world, then just will These MAC Address, respectively the VM virtual machines or the real MAC address of container and the VM virtual machines or appearance with oneself being replaced The IP of device is recorded correspondingly.
Each leaf node in the present embodiment externally shows as a MAC Address either several MAC Address, Ke Yigen The need for according to communication, such as some functions or type either belong to the VM virtual machines or container of certain user, are uniformly divided into A unified MAC, and the VM virtual machines or container of another kind of function or type or user are uniformly divided into another MAC Address.It can also be distinguished according to the computational efficiency of leaf node address pool addressing, if in an overall big record sheet The efficiency of searching is low, can also be divided into different MAC Address correspondences different MAC Address and IP address record sheet, such as basis The address field of IP address, or IP address cryptographic Hash etc, come divide each belonging to different MAC Address.
In the present embodiment, being related to the leaf node situation about being communicated that E-Packets has 3 kinds:
The first:Leaf node receives the first message that the virtual machine or container of its subordinate are sent, and leaf node needs First message is sent to other equipment by the root node, it is logical between virtual machine or container and other equipment to realize Letter.
Second:Leaf node receives the second message of root node transmission, and leaf node needs to turn second message The virtual machine or container of its subordinate is issued, to realize the communication between virtual machine or container and other equipment.
The third:Leaf node receives the ARP request of other equipment transmission, and leaf node is carried out for the ARP request Response.
The present embodiment and example below will be made introductions all round in the case of this 3 kinds, and leaf node is forwarded to corresponding message Method.
In the present embodiment kind, other equipment can be specifically the void in addition to the virtual machine or container of leaf node subordinate Plan machine or container.
For the first situation, leaf node receives the first message that the virtual machine or container of its subordinate are sent, Tu1BWei The schematic diagram of the frame format of first message provided in an embodiment of the present invention.As shown in Figure 1B, the first message includes purpose MAC Location, source MAC, IP address, message content etc., wherein, target MAC (Media Access Control) address, source MAC constitute the ether of the first message Head, IP address constitutes the IP heads of the first message.In the present embodiment, virtual machine or container are sent to the first message of leaf node Source MAC be virtual machine or container source MAC, IP address is the IP address of virtual machine or container.
Step S102, the leaf node replace with the MAC Address of virtual machine or container described in first message Default MAC Address, and the first message replaced after MAC Address is sent to root node, the leaf node is stored with described The corresponding relation of the MAC Address of virtual machine or container, the IP address of the virtual machine or container and default MAC Address.
After the first message that the virtual machine or container that leaf node receives its subordinate are sent, by the source in the first message MAC Address is that the MAC Address of virtual machine or container is replaced with the MAC Address in leaf node local pool, address pool MAC Address is default MAC Address, and the default MAC Address can be specifically the MAC Address of leaf node itself, can also It is a default MAC Address, can also be one in default multiple MAC Address.In addition, the IP address in the first message It is constant, it is the IP address of virtual machine or container all the time, goes to look into using the IP address of virtual machine or container subsequently in communication process Ask the list in the address pool of leaf node to distinguish different virtual machine or container, find the virtual machine or container is corresponding Real MAC address.
Assuming that default MAC Address is MACa1, the source MAC in the first message is virtual machine or appearance by leaf node The MAC Address of device is replaced with after MACa1, and the first message replaced after MAC Address is sent into root node, leaf node storage There is the correspondence of MAC Address, the IP address of the virtual machine or container and the default MAC Address of the virtual machine or container Relation, in the present embodiment, all virtual machines or container of leaf node subordinate can to that should have a default MAC Address, Can also be to that there should be several default MAC Address, but the number of default MAC Address is less than the MAC of all virtual machines or container The number of address so that leaf node externally show as a MAC Address either several MAC Address, and a MAC Address or Person is that several MAC Address can correspond to the MAC Address of all virtual machines or container.When root node receives the of leaf node transmission After one message, the first message is forwarded, and root node is with receiving the source MAC for the first message that same leaf node is sent Location is rendered as a MAC Address or several MAC Address for fixation, therefore, and only need to record this in the ARP of root node fixes A MAC Address or several MAC Address and the leaf node corresponding relation, be not required to record each leaf node subordinate Each virtual machine or container MAC Address and the corresponding relation of IP address, reduce the occupancy of the ARP of gateway device Rate, increases the network size that can be set up by the gateway device.
Step S103, the leaf node receive the second message that the root node is sent, and second message includes institute State the IP address of default MAC Address and the virtual machine or container.
For second of situation, leaf node receives the second message of root node transmission, and second message is that other set The standby message that virtual machine or container are sent to by root node and the leaf node, it can be seen from step S102, root node is sent Source MAC to the first message of other equipment is default MAC Address, then other equipment replys the second message for the first message When, using the source MAC of the first message it is default MAC Address as target MAC (Media Access Control) address, the IP address in the second message is still IP address in one message is the IP address of virtual machine or container.
Step S104, the leaf node are according to the IP address and the corresponding relation of the virtual machine or container, really The MAC Address of the fixed virtual machine or container.
Leaf node is received after the second message, the corresponding relation according to step S102, determines virtual machine or container The corresponding virtual machine of IP address or container MAC Address, in the present embodiment, optionally, the IP of each virtual machine or container Address is different, so just can uniquely determine the MAC Address of virtual machine or container according to the IP address of virtual machine or container, Even if the virtual machine for its subordinate that leaf node is externally presented or the MAC Address of container are a fixed MAC Address and several MAC Address.
Step S105, the leaf node replace with default MAC Address described in second message described virtual The MAC Address of machine or container, and the second message replaced after MAC Address is sent to the virtual machine or container.
Leaf node determines the MAC Address of virtual machine or container according to the IP address of virtual machine or container in the second message Afterwards, it is the MAC Address that default MAC Address replaces with the virtual machine or container by the target MAC (Media Access Control) address in the second message, and The second message replaced after MAC Address is sent to the virtual machine or container.
The embodiment of the present invention can be to that should have a default MAC by all virtual machines or container of leaf node subordinate Address, can also be to that should have several default MAC Address, but the number of default MAC Address is less than all virtual machines or container MAC Address number so that leaf node externally shows as a MAC Address either several MAC Address, an and MAC Address either several MAC Address can correspond to the MAC Address of all virtual machines or container.When root node receives leaf node hair After the first message sent, the first message is forwarded, and root node receives the first message that same leaf node is sent Source MAC is rendered as a MAC Address or several MAC Address for fixation, therefore, and note is only needed in the ARP of root node The MAC Address or several MAC Address of the fixation and the corresponding relation of the leaf node are recorded, is not required to record each leaf Each virtual machine of node subordinate or the MAC Address of container and the corresponding relation of IP address, reduce the ARP of gateway device Occupancy, increase the network size that can be set up by the gateway device.
On the basis of above-described embodiment, for the third situation, the leaf node is according to the default MAC Location, the ARP request received to it carries out response, and the ARP request includes the virtual machine or container of the leaf node subordinate IP address.Some virtual machine or container are empty in order to allow other VM virtual machines or container to know oneself external MAC Address Leaf node belonging to plan machine or container receives the ARP request that other VM virtual machines or container are sent, and the ARP request includes The IP address of virtual machine or container, leaf node according to the IP address of the virtual machine or container inquire about inside address pool, It was found that the IP address is the IP address of some virtual machine below oneself or server, then the leaf node please not by the ARP Ask and forward, but the ARP request is directly carried out response by leaf node with the MAC Address in the address pool of oneself, and remember The real MAC Address of the corresponding virtual machine of lower this replacement of record or container, and IP address, and the MAC being replaced by Location.So follow-up all VM virtual machines or the message of container of being sent to will be sent initially on this leaf node, Ran Houye Child node is inquired about again forwards the message to the virtual machine or container behind home address pond.
The present embodiment is compared to the number that the leaf node that it is linked below is disposed according to root node ARP size The number for the leaf node device disposed under mode, some root node will be not limited, or some root node is linked The virtual machine or the number of container that can be run on all leaf nodes will be not limited.And and need not be to existing network Gateway device be replaced, realize large-scale network-estabilishing using used equipment, and the granularity virtualized is unrestricted, saves While cost of investment, the utilization rate of the network equipment is also improved.
Fig. 2 is the structure chart of apparatus for forwarding message in large-scale network-estabilishing provided in an embodiment of the present invention.What this implementation was provided Apparatus for forwarding message can be one in the leaf node or leaf node in above-described embodiment in large-scale network-estabilishing Apparatus for forwarding message can perform message in large-scale network-estabilishing in module or device, large-scale network-estabilishing provided in an embodiment of the present invention The handling process that retransmission method embodiment is provided, as shown in Fig. 2 apparatus for forwarding message includes receiving module in large-scale network-estabilishing 21st, replacement module 22, sending module 23, determining module 24.
Receiving module 21 is used to receive the first message that virtual machine or container are sent, and first message includes described virtual The MAC Address of machine or container, and the virtual machine or container IP address;
Replacement module 22 is default for the MAC Address of virtual machine or container described in first message to be replaced with MAC Address;
Sending module 23 is used to the first message replaced after MAC Address being sent to root node, the leaf node storage There is the correspondence of MAC Address, the IP address of the virtual machine or container and the default MAC Address of the virtual machine or container Relation;
Receiving module 21 is additionally operable to receive the second message that the root node is sent, and second message includes described default MAC Address and the virtual machine or container IP address;
Determining module 24 is used for IP address and the corresponding relation according to the virtual machine or container, it is determined that described The MAC Address of virtual machine or container;
Replacement module 22 is additionally operable to default MAC Address described in second message replacing with the virtual machine or appearance The MAC Address of device;
Sending module 23 is additionally operable to the second message replaced after MAC Address being sent to the virtual machine or container.
The embodiment of the present invention can be to that should have a default MAC by all virtual machines or container of leaf node subordinate Address, can also be to that should have several default MAC Address, but the number of default MAC Address is less than all virtual machines or container MAC Address number so that leaf node externally shows as a MAC Address either several MAC Address, an and MAC Address either several MAC Address can correspond to the MAC Address of all virtual machines or container.When root node receives leaf node hair After the first message sent, the first message is forwarded, and root node receives the first message that same leaf node is sent Source MAC is rendered as a MAC Address or several MAC Address for fixation, therefore, and note is only needed in the ARP of root node The MAC Address or several MAC Address of the fixation and the corresponding relation of the leaf node are recorded, is not required to record each leaf Each virtual machine of node subordinate or the MAC Address of container and the corresponding relation of IP address, reduce the ARP of gateway device Occupancy, increase the network size that can be set up by the gateway device.
On the basis of above-described embodiment, the default MAC Address is the MAC Address of the leaf node;Or, institute It is one in default multiple MAC Address to state default MAC Address;Or, the default MAC Address is default one MAC Address.
The ARP request that sending module 23 is additionally operable to, according to the default MAC Address, receive it carries out response, institute State the IP address of virtual machine or container of the ARP request including the leaf node subordinate.
Apparatus for forwarding message can be carried specifically for performing above-mentioned Fig. 1 in large-scale network-estabilishing provided in an embodiment of the present invention The embodiment of the method for confession, here is omitted for concrete function.
The embodiment of the present invention is compared to the number that the leaf node that it is linked below is disposed according to root node ARP size The number for the leaf node device disposed under purpose mode, some root node will be not limited, or some root node institute chain The virtual machine or the number of container that can be run on all leaf nodes connect will be not limited.And and need not pair The gateway device of existing network is replaced, and large-scale network-estabilishing is realized using used equipment, and the granularity virtualized is unrestricted, While having saved cost of investment, the utilization rate of the network equipment is also improved.
In summary, the embodiment of the present invention can be to that should have one by all virtual machines or container of leaf node subordinate Default MAC Address, can also be to that should have several default MAC Address, but the number of default MAC Address is virtual less than all The number of the MAC Address of machine or container, so that leaf node externally shows as a MAC Address either several MAC Address, and One MAC Address either several MAC Address can correspond to the MAC Address of all virtual machines or container.When root node receives leaf After the first message that child node is sent, the first message is forwarded, and root node receive that same leaf node sends the The source MAC of one message is rendered as a MAC Address or several MAC Address for fixation, therefore, the ARP of root node In only need to record the MAC Address or several MAC Address of the fixation and the corresponding relation of the leaf node, be not required to record Each virtual machine of each leaf node subordinate or the MAC Address and the corresponding relation of IP address of container, reduce gateway device ARP occupancy, increase the network size that can be set up by the gateway device;Compared to according to root node ARP table Size disposes the leaf node device disposed under the mode of the number for the leaf node that it is linked below, some root node Number will be not limited, or the virtual machine or appearance that can be run on all leaf nodes for being linked of some root node The number of device will be not limited.And and the gateway device of existing network need not be replaced, realized using used equipment big Scale networking, and the granularity virtualized is unrestricted, while having saved cost of investment, also improves the profit of the network equipment With rate.
, can be by it in several embodiments provided by the present invention, it should be understood that disclosed apparatus and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical of device or unit by some interfaces Letter connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can distribute complete by different functional modules by above-mentioned functions as needed Into the internal structure of device being divided into different functional modules, to complete all or part of function described above.On The specific work process of the device of description is stated, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

1. message forwarding method in a kind of large-scale network-estabilishing, it is characterised in that including:
Leaf node receives the first message that the virtual machine or container of its subordinate are sent, and first message includes the virtual machine Or the MAC Address of container, and the virtual machine or container IP address;
The MAC Address of virtual machine or container described in first message is replaced with default MAC Address by the leaf node, And the first message replaced after MAC Address is sent to root node, the leaf node is stored with the virtual machine or container The corresponding relation of MAC Address, the IP address of the virtual machine or container and default MAC Address;
The leaf node receives the second message that the root node is sent, and second message is with including the default MAC Location and the IP address of the virtual machine or container;
The leaf node determines the virtual machine according to the IP address and the corresponding relation of the virtual machine or container Or the MAC Address of container;
The leaf node replaces with default MAC Address described in second message MAC of the virtual machine or container Address, and the second message replaced after MAC Address is sent to the virtual machine or container.
2. according to the method described in claim 1, it is characterised in that the default MAC Address is the MAC of the leaf node Address.
3. according to the method described in claim 1, it is characterised in that the default MAC Address is default multiple MAC Address In one.
4. according to the method described in claim 1, it is characterised in that the default MAC Address is a default MAC Location.
5. the method according to claim any one of 1-4, it is characterised in that also include:
The leaf node is according to the default MAC Address, and the ARP request received to it carries out response, the ARP request The IP address of virtual machine or container including the leaf node subordinate.
6. apparatus for forwarding message in a kind of large-scale network-estabilishing, it is characterised in that including:
Receiving module, for receiving the first message that virtual machine or container are sent, first message include the virtual machine or The MAC Address of container, and the virtual machine or container IP address;
Replacement module, for by the MAC Address of virtual machine or container described in first message with replacing with default MAC Location;
Sending module, for the first message replaced after MAC Address to be sent into root node, the leaf node is stored with described The corresponding relation of the MAC Address of virtual machine or container, the IP address of the virtual machine or container and default MAC Address;
The receiving module is additionally operable to receive the second message that the root node is sent, and second message includes described default The IP address of MAC Address and the virtual machine or container;
Determining module, for the IP address according to the virtual machine or container and the corresponding relation, determines the virtual machine Or the MAC Address of container;
The replacement module is additionally operable to default MAC Address described in second message replacing with the virtual machine or container MAC Address;
The sending module is additionally operable to the second message replaced after MAC Address being sent to the virtual machine or container.
7. apparatus for forwarding message in large-scale network-estabilishing according to claim 6, it is characterised in that the default MAC Location is the MAC Address of the leaf node.
8. apparatus for forwarding message in large-scale network-estabilishing according to claim 6, it is characterised in that the default MAC Location is one in default multiple MAC Address.
9. apparatus for forwarding message in large-scale network-estabilishing according to claim 6, it is characterised in that the default MAC Location is a default MAC Address.
10. apparatus for forwarding message in the large-scale network-estabilishing according to claim any one of 6-9, it is characterised in that the hair The ARP request for sending module to be additionally operable to, according to the default MAC Address, receive it carries out response, and the ARP request includes The virtual machine of the leaf node subordinate or the IP address of container.
CN201710278772.5A 2017-04-25 2017-04-25 Message forwarding method and device in large-scale network-estabilishing Pending CN107171964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710278772.5A CN107171964A (en) 2017-04-25 2017-04-25 Message forwarding method and device in large-scale network-estabilishing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710278772.5A CN107171964A (en) 2017-04-25 2017-04-25 Message forwarding method and device in large-scale network-estabilishing

Publications (1)

Publication Number Publication Date
CN107171964A true CN107171964A (en) 2017-09-15

Family

ID=59814015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710278772.5A Pending CN107171964A (en) 2017-04-25 2017-04-25 Message forwarding method and device in large-scale network-estabilishing

Country Status (1)

Country Link
CN (1) CN107171964A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment
CN113676471A (en) * 2021-08-17 2021-11-19 上海道客网络科技有限公司 Cross-node communication method, system, medium and electronic device based on container cloud platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741921A (en) * 2008-11-26 2010-06-16 中兴通讯股份有限公司 MAC (Media Access Control) address processing method and device
CN101841573A (en) * 2010-01-20 2010-09-22 中国科学院计算机网络信息中心 Method and device for processing address information of Internet and Internet system
CN102104533A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Method for optimizing RRPP (rapid ring protection protocol) single ring network data transmitting path and ring network node
US20120201249A1 (en) * 2011-02-04 2012-08-09 Verizon Patent And Licensing Inc. Leaky ethernet trees

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741921A (en) * 2008-11-26 2010-06-16 中兴通讯股份有限公司 MAC (Media Access Control) address processing method and device
CN102104533A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Method for optimizing RRPP (rapid ring protection protocol) single ring network data transmitting path and ring network node
CN101841573A (en) * 2010-01-20 2010-09-22 中国科学院计算机网络信息中心 Method and device for processing address information of Internet and Internet system
US20120201249A1 (en) * 2011-02-04 2012-08-09 Verizon Patent And Licensing Inc. Leaky ethernet trees

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment
CN113676471A (en) * 2021-08-17 2021-11-19 上海道客网络科技有限公司 Cross-node communication method, system, medium and electronic device based on container cloud platform

Similar Documents

Publication Publication Date Title
CN103095546B (en) A kind of method, device and data center network processing message
CN110635987B (en) Message transmission method, device, equipment and machine readable storage medium
CN107508795A (en) Across the access process device and method of container cluster
CN106936739B (en) Message forwarding method and device
KR20170009927A (en) Method, device, and system for configuring flow entries
CN104780232B (en) A kind of resource allocation methods, controller and system
CN106953943B (en) Method and device suitable for switch communication
CN109213498A (en) A kind of configuration method and server of internet web front-end
CN101924699A (en) Message forwarding method, system and provider edge equipment
JP2012146226A (en) Application server management system, application server management method, management device, application server, and computer program
CN108989399A (en) A kind of cluster common data querying method, system, device and readable storage medium storing program for executing
CN105095103A (en) Storage device management method and device used for cloud environment
CN107210924A (en) Method and apparatus for configuring communication system
CN110012118A (en) It is a kind of that the method and controller of network address translation NAT service are provided
CN107547364A (en) Route sending-down method, device and the network equipment
CN103229480A (en) Data processing method, device and client in distributed storage system
CN106464745A (en) Dns server, client and data synchronization method
US10608942B1 (en) Reducing routes based on network traffic utilization
CN106790624A (en) New node adds the method and device of server cluster
CN115426312A (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
CN107171964A (en) Message forwarding method and device in large-scale network-estabilishing
CN105324968A (en) Method and apparatus for allocating reliability resource
US11070614B2 (en) Load balancing method and related apparatus
CN105939268A (en) Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device
CN108089910A (en) The method and apparatus for configuring virtual machine IP address

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915