CN106921578A - The generation method and device of a kind of forwarding-table item - Google Patents

The generation method and device of a kind of forwarding-table item Download PDF

Info

Publication number
CN106921578A
CN106921578A CN201710151340.8A CN201710151340A CN106921578A CN 106921578 A CN106921578 A CN 106921578A CN 201710151340 A CN201710151340 A CN 201710151340A CN 106921578 A CN106921578 A CN 106921578A
Authority
CN
China
Prior art keywords
network segment
segment information
data message
message
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710151340.8A
Other languages
Chinese (zh)
Other versions
CN106921578B (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 CN201710151340.8A priority Critical patent/CN106921578B/en
Publication of CN106921578A publication Critical patent/CN106921578A/en
Application granted granted Critical
Publication of CN106921578B publication Critical patent/CN106921578B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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]

Landscapes

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

Abstract

The application provides the generation method and device of a kind of forwarding-table item, and the method includes:The data message from opposite equip. is received, the data message is that the opposite equip. sends after the ARP messages for carrying out self virtualizing machine are received, the data message carries the network segment information of the virtual machine;Parse the network segment information from the data message, and according to the ARP request message of the network segment information structuring and the network segment information matches, and send the ARP request message of construction;The arp reply message that virtual machine is returned is received, and forwarding-table item is generated using the arp reply message.By the technical scheme of the application, it is not necessary to transmit substantial amounts of ARP messages on IPL, so as to save the bandwidth resources of the IPL between local device and opposite equip., it is to avoid problem of service interruption caused by ARP message droppings.

Description

The generation method and device of a kind of forwarding-table item
Technical field
The application is related to communication technical field, more particularly to a kind of forwarding-table item generation method and device.
Background technology
VXLAN (Virtual eXtensible Local Area Network, expansible Virtual Local Area Network) is to be based on IP network, using " MAC (Media Access Control, media access control) in UDP (User Datagram Protocol, UDP) " two-layer VPN (the Virtual Private Network, Virtual Private Network of packing forms Network) technology.VXLAN can be based on existing service provider or enterprise IP network, for scattered website provides two layers of interconnection, And business isolation can be provided for different tenants.
In order to improve reliability, can be using the VXLAN networking modes of distributed polymerization, as shown in figure 1, the thing of host A Reason port 1 and physical port 2 add aggregation port A, and VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel) 1 with By distributed aggregation protocol between VTEP2, the physical port 4 of the physical port 3 of VTEP1 and VTEP2 is also added to polymerization Mouth A.So, the message of main frame E is sent to for host A, host A can be sent out by physical port 1 or physical port 2 Send, VTEP1 or VTEP2 can forward the message after the message is received.And, when VTEP1 or VTEP2 occurs During failure, message still can be sent to main frame E by host A, so as to improve reliability.
Under above-mentioned application scenarios, ARP (Address Resolution Protocol, address resolution protocol) list item Learning process can include:After host A is reached the standard grade, ARP messages are sent by physical port 1, VTEP1 is receiving the ARP After message, the ARP of study to host A, it is possible to will by IPL (Intra-Portal Link, interior inlet link) The ARP messages are sent to VTEP2.After ARP messages are received by IPL, the ARP of host A is arrived in study to VTEP2.
But, the networking of distributed polymerization on a physical server generally as shown in Fig. 2 can create multiple at present VM (Virtual Machine, virtual machine), each VM are equivalent to a main frame.VTEP1 is being received from each VM's After ARP messages, it is required to be sent to VTEP2 by IPL, i.e., sends an ARP message for each VM.So, when VM numbers When measuring a lot, it is necessary to transmit a large amount of ARP messages by IPL, waste the bandwidth resources of IPL, once ARP messages are lost Lose, may result in VTEP2 without calligraphy learning to ARP, cause service disconnection.
The content of the invention
The application provides a kind of generation method of forwarding-table item, and the local terminal that methods described is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of opposite equip. and the local device and opposite equip. connection, Methods described includes:
Receive the data message from the opposite equip., the data message is the opposite equip. to be come from receiving Sent after the ARP messages of virtual machine, the data message carries the network segment information of the virtual machine;
The network segment information is parsed from the data message, and is believed according to the network segment information structuring and the network segment The ARP request message of matching is ceased, and the ARP request message of construction is sent to the virtual machine;
The arp reply message for the ARP request message that the virtual machine is returned is received, and should using the ARP Answer message generation forwarding-table item.
The application provides a kind of generation method of forwarding-table item, and the opposite end that methods described is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of local device and the local device and opposite equip. connection, Methods described includes:
The ARP messages from the virtual machine are received, and forwarding-table item is generated using the ARP messages;
The network segment information of the virtual machine is obtained, and generates the data message for carrying the network segment information;
The data message is sent to the local device, so that what the local device was carried according to the data message Network segment information generates the forwarding-table item with the virtual machine of the network segment information matches.
The application provides a kind of generating means of forwarding-table item, and the local terminal that described device is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of opposite equip. and the local device and opposite equip. connection, Described device includes:
Receiver module, for receiving the data message from opposite equip., the data message is that opposite equip. is being received Come what is sent after the ARP messages of self virtualizing machine, the data message carries the network segment information of virtual machine;
Constructing module, for parsing the network segment information from the data message, and according to the network segment information structure Make the ARP request message with the network segment information matches;
Sending module, for sending the ARP request message that the constructing module is constructed to the virtual machine;
The receiver module, is additionally operable to receive that the virtual machine returns for the ARP request message arp reply report Text;
Generation module, for generating forwarding-table item using the arp reply message.
The application provides a kind of generating means of forwarding-table item, and the opposite end that described device is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of local device and the local device and opposite equip. connection, Described device includes:
Receiver module, for receiving the ARP messages from the virtual machine;
Generation module, for generating forwarding-table item using the ARP messages;
Acquisition module, the network segment information for obtaining the virtual machine;
The generation module, is additionally operable to the data message that generation carries the network segment information;
Sending module, for sending the data message to local device, so that the local device is according to the data The network segment information that message is carried generates the forwarding-table item with the virtual machine of the network segment information matches.
Based on above-mentioned technical proposal, in the embodiment of the present application, under the VXLAN networkings of distributed polymerization, for forward table The learning process of item (such as ARP), the datagram of network segment information is carried by being transmitted between local device and opposite equip. Text, so that local device can actively construct the ARP request message for virtual machine according to network segment information, then according to ARP The corresponding forwarding-table item of response message generation virtual machine.Based on aforesaid way, and need not local device and opposite equip. it Between for each virtual machine send an ARP message, it is assumed that this multiple virtual machine belongs to the same network segment, then only need to for this Multiple virtual machines send a data message, it is not necessary to transmit substantial amounts of ARP messages, save local device and opposite equip. Between bandwidth resources.For example, for 10 virtual machines for belonging to the same network segment, in traditional approach, it is necessary to local device with 10 ARP messages are at least transmitted between opposite equip., in the embodiment of the present application, it is only necessary between local device and opposite equip. 1 data message of transmission.Due to the data message transmission between local device and opposite equip., rather than ARP messages, from And problem of service interruption caused by ARP message droppings can be avoided.Specifically, in traditional approach, when in local device and opposite end When a large amount of ARP messages are transmitted between equipment, because message amount is more, therefore the loss of ARP messages is easily caused, the application reality Apply in example, 1 data message is only transmitted between local device and opposite equip., message amount is less, therefore not easily leads to The loss of data message;Additionally, in actual applications, it is assumed that need the message and agreement in link type The message of type, then when link occurs congestion, it will usually first abandon the message of protocol type, based on this, in traditional approach, if The message and ARP messages (i.e. the message of protocol type) of transmission mass data type are needed between local device and opposite equip., Then when link occurs congestion, ARP messages can be first abandoned, and in the embodiment of the present application, if between local device and opposite equip. Need the message and data message (i.e. the message of data type) of transmission mass data type, then when link occurs congestion, by It is also the message of data type in data message, will not be preferentially abandoned, i.e., data message is not allowed easy to lose.
Brief description of the drawings
In order to clearly illustrate the embodiment of the present application or technical scheme of the prior art, below will be to the application The accompanying drawing to be used needed for embodiment or description of the prior art is briefly described, it should be apparent that, in describing below Accompanying drawing is only some embodiments described in the application, for those of ordinary skill in the art, can also be according to this Shen Please these accompanying drawings of embodiment obtain other accompanying drawings.
Fig. 1 and Fig. 2 are the networking schematic diagrams of distributed polymerization;
Fig. 3 is the flow chart of the generation method of the forwarding-table item in a kind of implementation method of the application;
Fig. 4 is the hardware structure diagram of the local device in a kind of implementation method of the application;
Fig. 5 is the structure chart of the generating means of the forwarding-table item in a kind of implementation method of the application;
Fig. 6 is the hardware structure diagram of the opposite equip. in a kind of implementation method of the application;
Fig. 7 is the structure chart of the generating means of the forwarding-table item in a kind of implementation method of the application.
Specific embodiment
The term used in the embodiment of the present application merely for the sake of description specific embodiment purpose, and unrestricted this Shen Please." one kind ", " described " and " being somebody's turn to do " of singulative used in the application and claims is also intended to include many number forms Formula, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to comprising one Individual or multiple associated any or all of project listed may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, additionally, used word " if " can be construed to " and ... when ", or " when ... When ", or " in response to determining ".
The embodiment of the present application proposes a kind of generation method of forwarding-table item, and the method can apply to distributed polymerization system System, it is virtual that the distributed paradigmatic system can include that local device, opposite equip. and local device and opposite equip. are connected Machine, the virtual machine is the virtual machine being connected with the aggregation port of local device and opposite equip., is the virtual machine for being located at private network side. In one example, virtual machine can be the virtual machine being deployed on physical server, i.e. physical server and local device and right End equipment is connected, and virtual machine (such as one or more virtual machine), above-mentioned and local device are configured with the physical server And the virtual machine of opposite equip. connection is one or more virtual machine configured on physical server.And, for the physics Server, the aggregation port that the physical port of local device is associated with the physical port composition of opposite equip. with the physical server, I.e. physical server is connected to the aggregation port.In actual applications, local device and opposite equip. can be relative, such as local terminals Equipment can also be opposite equip., and opposite equip. can also be local device, without limitation.It is shown in Figure 3, for this The flow chart of the generation method of forwarding-table item, the method can include:
Step 301, opposite equip. receives ARP messages (such as gratuitous ARP packet or ARP request report for carrying out self virtualizing machine Text), and generate forwarding-table item (such as ARP) using the ARP messages.
Step 302, opposite equip. obtains the network segment information of the virtual machine, and generates the datagram for carrying the network segment information Text.
In one example, for the process of " opposite equip. obtains the network segment information of the virtual machine ", opposite equip. is connecing When receiving the ARP messages for carrying out self virtualizing machine, first determine to receive the receiving port of the ARP messages, this reception on opposite equip. The network segment information of the corresponding network segment information in the port namely virtual machine.
In one example, for the process of " generation carries the data message of the network segment information ", if not being transmitted across being directed to The data message of the network segment information, then generation carries the data message of the network segment information;If being transmitted across believing for the network segment The data message of breath, then terminate flow, does not regenerate data message.
Step 303, opposite equip. sends the data message to local device, so that local device is taken according to the data message The network segment information generation of band and the forwarding-table item of the virtual machine of the network segment information matches.
Wherein, for " generation of network segment information and the network segment information matches that local device is carried according to the data message The process of the forwarding-table item of virtual machine ", referring to step 304- steps 306, will not be repeated here.
In one example, for the data message of opposite equip. generation, the purpose IP address of the data message can be The IP address of local device, address can for the purpose MAC (Media Access Control, media access control) of the data message Think the MAC Address of local device.For the process of " opposite equip. sends datagram to local device ", opposite equip. can be with Data message is sent to by local device by IPL, certainly, opposite equip. can also be sent data message by other links It is without limitation to local device.
In one example, after opposite equip. sends datagram to local device, opposite equip. can also be should Network segment information sets preset mark, and for the network segment information sets ageing timer;Wherein, the preset mark is used to represent and sends Cross the data message for the network segment information.And, after ageing timer time-out, then delete the network segment information corresponding pre- Bidding note;Before ageing timer time-out, then can retain the corresponding preset mark of network segment information, so, when again After receiving the ARP messages for the network segment information, sent datagram without to local device, so as to reduce data message Quantity forwarded.
Based on this preset mark, opposite equip., can be by looking into after receiving ARP messages, and get network segment information Whether have preset mark determine whether be transmitted across data message for the network segment information, i.e., if asking the network segment information:If the net Segment information has preset mark, then be transmitted across the data message for the network segment information;If the network segment information Non-precondition mark Note, then be not transmitted across the data message for the network segment information.
In one example, because the corresponding all virtual machines of same network segment information may not be while reach the standard grade, so, When forwarding-table item is generated according to network segment information, if there is virtual machine not reach the standard grade also, local device cannot be generated local device The forwarding-table item of the virtual machine do not reached the standard grade, therefore opposite equip. sets ageing timer by for network segment information, aging fixed When device time-out after, delete the corresponding preset mark of network segment information, so, when there is new virtual machine to reach the standard grade, opposite equip. can be again It is secondary to be sent datagram to local device, and local device can generate forwarding-table item according to network segment information, so that newly to reach the standard grade Virtual machine generation forwarding-table item.
Step 304, local device receives the data message of the carrying network segment information from opposite equip..
Step 305, local device parses network segment information from data message, and according to the network segment information structuring and the net The ARP request message of segment information matching, and the ARP request message of construction is sent to virtual machine.
In one example, before local device parses network segment information from data message, local device can be with Parse the purpose IP address and/or target MAC (Media Access Control) address of the data message.If the purpose IP address are the IP address of local device, And/or the target MAC (Media Access Control) address is the MAC Address of local device, then local device parses network segment information from data message.If The purpose IP address are not the IP address of local device, and/or the target MAC (Media Access Control) address is not the MAC Address of local device, then without Network segment information structuring ARP request message that need to be in the data message..
In one example, network segment information can be the IP address (such as 99.1.1.0) of 32 bitmasks, or N The IP network section (such as 99.1.1.0/24, the IP network section that it represents 24 bitmasks) of (N is the numerical value less than 32) mask.Based on this, If network segment information is the IP address of 32 bitmasks, the ARP request message for constructing is directed to the ARP request of IP address 99.1.1.0 Message, is directed to an ARP request message for virtual machine;If network segment information is the IP network section of N bitmasks, the ARP for constructing please The ARP request message for asking message to be directed to IP network section 99.1.1.0/24, is directed to the ARP request message of multiple virtual machines.
Step 306, local device receives the arp reply message for the ARP request message that virtual machine is returned, and utilizes The arp reply message generates forwarding-table item (such as ARP).
Based on above-mentioned technical proposal, in the embodiment of the present application, under the VXLAN networkings of distributed polymerization, for forward table The learning process of item (such as ARP), the datagram of network segment information is carried by being transmitted between local device and opposite equip. Text, so that local device can actively construct the ARP request message for virtual machine according to network segment information, then according to ARP The corresponding forwarding-table item of response message generation virtual machine.Based on aforesaid way, when multiple virtual machines are created on physical server, For this multiple virtual machine, and an ARP message need not be sent for each virtual machine, it is assumed that this multiple virtual machine belongs to same One network segment, then only need to send a data message for this multiple virtual machine, without transmitting substantial amounts of ARP Message, and save the bandwidth resources between local device and opposite equip..For example, creating 10 on physical server belongs to same The virtual machine of the network segment, it is necessary at least transmit 10 ARP messages between local device and opposite equip. in traditional approach, and this In application embodiment, it is only necessary to 1 data message is transmitted between local device and opposite equip..It is additionally, since at this Data message transmission between end equipment and opposite equip., rather than ARP messages, such that it is able to caused by avoiding ARP message droppings Problem of service interruption.Specifically, in traditional approach, when a large amount of ARP messages are transmitted between local device and opposite equip., by It is more in message amount, therefore be easily caused the loss of ARP messages, and in the embodiment of the present application, it is only necessary to local device with 1 data message is transmitted between opposite equip., because message amount is less, therefore the loss of data message is not easily leaded to;This Outward, in actual applications, it is assumed that need the message of the message and protocol type in link type, then in chain When there is congestion in road, it will usually the message of protocol type is first abandoned, based on this, in traditional approach, if local device sets with opposite end The message and ARP messages (i.e. the message of protocol type) of transmission mass data type are needed between standby, then congestion occurs in link When, ARP messages can be first abandoned, and in the embodiment of the present application, if needing to transmit mass data between local device and opposite equip. The message and data message (i.e. the message of data type) of type, then when link occurs congestion, because data message is also several According to the message of type, will not preferentially be abandoned, i.e., data message is not allowed easy to lose.
Below in conjunction with the application scenarios shown in Fig. 2, such scheme is illustrated.In the networking scene of distributed polymerization, The physical port 1 and physical port 2 of physical server add aggregation port A, by the distributed association that is polymerized between VTEP1 and VTEP2 View, is also added to aggregation port A, to the configuration process of this aggregation port A by the physical port 4 of the physical port 3 of VTEP1 and VTEP2 Repeat no more.VTEP1 configures aggregation port A and physical port 3, the corresponding relation of physical port 4, VTEP2 configuration aggregation port A and thing Reason port 3, the corresponding relation of physical port 4.As shown in Fig. 2 local device is VTEP1, opposite equip. is VTEP2, or, this End equipment is VTEP2, and opposite equip. is VTEP1.And, 9 VM are configured with physical server, in Fig. 2 by taking 9 VM as an example, Can also be in actual applications other quantity.
Under above-mentioned application scenarios, for the generating process of forwarding-table item, may comprise steps of:
Step 1, VM1 send ARP messages by physical port 1 or physical port 2, and (such as gratuitous ARP packet or ARP please Seek message), for convenience of describing, as a example by sending ARP messages by physical port 1.
In one example, VM1 can send gratuitous ARP packet or ARP request after reaching the standard grade by physical port 1 Message.The source IP address of gratuitous ARP packet is the IP address of VM1, and purpose IP address are the IP address of VM1, and source MAC is The MAC Address of VM1, target MAC (Media Access Control) address is broadcast MAC address.Additionally, IP ground of the source IP address of ARP request message for VM1 Location, purpose IP address are the IP address (VTEP1 is identical with the IP address of VTEP2) of VTEP1/VTEP2, and source MAC is VM1's MAC Address, target MAC (Media Access Control) address is broadcast MAC address.
Step 2, VTEP1 receive the ARP messages that VM1 sends by aggregation port A.
Step 3, VTEP1 generate the forwarding-table item (ARP) of VM1 using the ARP messages.
Wherein, VTEP1 can parse the MAC Address of the IP address 99.1.1.2 and VM1 of VM1 from the ARP messages 0010-9400-0001, it is possible to the forwarding-table item shown in Maintenance Table 1.
Table 1
IP address MAC Address Outgoing interface
99.1.1.2 0010-9400-0001 Aggregation port A
Step 4, VTEP1 obtain network segment information (the i.e. network segment address, the network segment address of such as 28, the network segment of 24 of VM1 Location, 16 network segment address etc., by taking the network segment address of 24 as an example).For example, because the IP address of VM1 is 99.1.1.2, because This, the network segment address of 24 is 99.1.1.0/24.
Step 5, VTEP1 judge whether to be transmitted across the data message for the network segment information (such as 99.1.1.0/24). If it is, terminate flow, if it is not, then VTEP1 performs step 6.
In one example, VTEP1 can by inquire about the network segment information (such as 99.1.1.0/24) whether be provided with it is default (setting up procedure on preset mark will be illustrated in subsequent process) is marked to judge whether to be transmitted across being directed to be somebody's turn to do The data message of network segment information (such as 99.1.1.0/24).If specifically, the network segment information has preset mark, can determine Through being transmitted across the data message for the network segment information;If the network segment information Non-precondition is marked, can determine not being transmitted across For the data message of the network segment information.
Step 6, VTEP1 generations carry the data message of the network segment information (such as 99.1.1.0/24).
Wherein, the purpose IP address of the data message can be the IP address of VTEP2, and target MAC (Media Access Control) address can be VTEP2 MAC Address.In actual applications, in order to realize distributed polymerization, VTEP1 and VTEP2 can configure identical IP address and MAC Address, therefore, VTEP1 generate data message when, can using the IP address of VTEP1 as the data message purpose IP Address, using the MAC Address of VTEP1 as the data message target MAC (Media Access Control) address.
The data message is sent to VTEP2 by step 7, VTEP1 by IPL.
Step 8, VTEP1 are that the network segment information (99.1.1.0/24) sets preset mark and ageing timer, the pre- bidding Remember the data message being transmitted across for expression for the network segment information (99.1.1.0/24).
In one example, VTEP1 is after the network segment information sets ageing timer, before ageing timer time-out, then The corresponding preset mark of network segment information can be retained, so, VTEP1 receives the ARP messages for the network segment information again Afterwards, without generating data message, sent datagram to VTEP2 without by IPL.After ageing timer time-out, VTEP1 can To delete the corresponding preset mark of network segment information and ageing timer, so, VTEP1 is received for the network segment information again ARP messages after, data message can be generated, sent datagram to VTEP2 by IPL.
Step 9, VTEP2 receive the data message of the carrying network segment information from VTEP1.
Step 10, VTEP2 parse network segment information (99.1.1.0/24) from the data message.
In one example, before VTEP2 parses network segment information from the data message, the data can also be parsed The purpose IP address and target MAC (Media Access Control) address of message.If the purpose IP address are for the IP address of VTEP2, and the target MAC (Media Access Control) address The MAC Address of VTEP2, and the data message is received by IPL, then VTEP2 parses network segment letter from the data message Breath.
Step 11, VTEP2 are according to the network segment information (99.1.1.0/24) construction and the virtual machine of the network segment information matches ARP request message, and the ARP request message of construction is sent to virtual machine.
In one example, VTEP2 can construct the ARP request message that purpose IP address are 99.1.1.0/24, the ARP The source IP address of request message is the IP address of VTEP2, and source MAC is the MAC Address of VTEP2, and target MAC (Media Access Control) address is broadcast MAC Address.Then, VTEP2 sends the ARP request message with broadcast mode, and the ARP request message can be sent to physical services Each VM on device.Assuming that the IP address of VM1-VM9 is respectively 99.1.1.2-99.1.1.10, due to the ARP request message Purpose IP address are 99.1.1.0/24, therefore, VM1 after the ARP request message is received, due to the IP address of this equipment 99.1.1.2 the 99.1.1.0/24 is belonged to, therefore, arp reply message can be sent to VTEP2.Similarly, VM2-VM9 is being received After the ARP request message, also arp reply message is sent to VTEP2.
In another example, VTEP2 can construct ARP request message, the purpose IP that purpose IP address are 99.1.1.1 ARP request message, ARP request message that purpose IP address be 99.1.1.3 of the address for 99.1.1.2, by that analogy, until Purpose IP address are the ARP request message of 99.1.1.255.Additionally, IP ground of the source IP address of each ARP request message for VTEP2 Location, source MAC is the MAC Address of VTEP2, and target MAC (Media Access Control) address is broadcast MAC address.Then, VTEP2 is with mode of unicast point Each ARP request message is not sent.Because the purpose IP address of each ARP request message are unicast address, therefore, each ARP request Message can be sent to VM corresponding with the purpose IP address.Assuming that the IP address of VM1-VM9 is respectively 99.1.1.2- 99.1.1.10, then purpose IP address can be sent to VM1, by that analogy, purpose IP address for the ARP request message of 99.1.1.2 For the ARP request message of 99.1.1.10 can be sent to VM9, VM1 after ARP request message is received, due to this equipment IP ground Location 99.1.1.2 is identical with purpose IP address 99.1.1.2, therefore can send arp reply message to VTEP2.Similarly, VM2-VM9 After corresponding ARP request message is received, also arp reply message is sent to VTEP2.
In above-mentioned two example, for the arp reply message that each VM sends to VTEP2, source IP address is the IP ground of VM Location, purpose IP address are the IP address of VTEP2, and source MAC is the MAC Address of VM, and target MAC (Media Access Control) address is the MAC ground of VTEP2 Location.
Step 12, VTEP2 receive the arp reply message for the ARP request message that each VM is returned.
Step 13, VTEP2 generate the forwarding-table item of each VM using arp reply message.
Wherein, VTEP2 can from VM1 return arp reply message in parse VM1 IP address 99.1.1.2 and The MAC Address 0010-9400-0001 of VM1, it is possible to the IP address of VM2 is parsed in the arp reply message returned from VM2 99.1.1.3 and VM2 MAC Address 0010-9400-0002, by that analogy, and the forwarding-table item shown in final Maintenance Table 2.
Table 2
IP address MAC Address Outgoing interface
99.1.1.2 0010-9400-0001 Aggregation port A
99.1.1.3 0010-9400-0002 Aggregation port A
99.1.1.4 0010-9400-0003 Aggregation port A
...
99.1.1.10 0010-9400-0009 Aggregation port A
Step 14, VM2-VM9 send ARP messages by physical port 1, and VTEP1 receives VM2-VM9 by aggregation port A The ARP messages of transmission, and the forwarding-table item of VM2-VM9 is generated using each ARP messages for receiving, on the basis of table 1, finally The forwarding-table item of maintenance is similar with table 2.
Step 15, VTEP1 obtain the network segment information (99.1.1.0/24) of VM2-VM9, due to being transmitted across for the net The data message of segment information, therefore terminate flow, no longer send datagram.
Conceived based on the application same with the above method, the embodiment of the present application also provides a kind of generation dress of forwarding-table item Put, the generating means of the forwarding-table item can be applied in local device.The generating means of the forwarding-table item can be by software reality It is existing, it is also possible to be realized by way of hardware or software and hardware combining.As a example by implemented in software, as on a logical meaning Device, is the processor by the local device where it, corresponding computer program instructions in reading non-volatile storage Formed.From for hardware view, as shown in figure 4, one kind of the local device where the generating means of the forwarding-table item is hard Part structure chart, except the processor shown in Fig. 4, in addition to nonvolatile memory, local device can also include other hardware, such as negative Forwarding chip, network interface, internal memory of duty treatment message etc.;For from hardware configuration, local device is also possible to be distributed Equipment, potentially includes multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in figure 5, the structure chart of the generating means for forwarding-table item, described device is applied to distributed paradigmatic system Local device, the distributed paradigmatic system also includes what opposite equip. and the local device and the opposite equip. were connected Virtual machine, described device includes:
Receiver module 11, for receiving the data message from opposite equip., the data message is that opposite equip. is being received Come what is sent after the ARP messages of self virtualizing machine, the data message carries the network segment information of virtual machine;
Constructing module 12, for parsing the network segment information from the data message, and according to the network segment information Construct the ARP request message with the network segment information matches;
Sending module 13, for sending the ARP request message that the constructing module is constructed to the virtual machine;
The receiver module 11, is additionally operable to receive that the virtual machine returns for the ARP request message arp reply report Text;
Generation module 14, for generating forwarding-table item using the arp reply message.
The constructing module 12, is additionally operable to parse the purpose IP address and/or target MAC (Media Access Control) address of the data message;If The purpose IP address for local device IP address, and/or the target MAC (Media Access Control) address for local device MAC Address, then from The network segment information is parsed in the data message.
Conceived based on the application same with the above method, the embodiment of the present application also provides a kind of generation dress of forwarding-table item Put, the generating means of the forwarding-table item can be applied in opposite equip..The generating means of the forwarding-table item can be by software reality It is existing, it is also possible to be realized by way of hardware or software and hardware combining.As a example by implemented in software, as on a logical meaning Device, is the processor by the opposite equip. where it, corresponding computer program instructions in reading non-volatile storage Formed.From for hardware view, as shown in fig. 6, one kind of the opposite equip. where the generating means of the forwarding-table item is hard Part structure chart, except the processor shown in Fig. 6, in addition to nonvolatile memory, opposite equip. can also include other hardware, such as negative Forwarding chip, network interface, internal memory of duty treatment message etc.;For from hardware configuration, opposite equip. is also possible to be distributed Equipment, potentially includes multiple interface cards, to carry out the extension of Message processing in hardware view.
As shown in fig. 7, the structure chart of the generating means for forwarding-table item, described device is applied to distributed paradigmatic system Opposite equip., the distributed paradigmatic system also includes what local device and the local device and the opposite equip. were connected Virtual machine, described device includes:
Receiver module 21, for receiving the ARP messages from the virtual machine;
Generation module 22, for generating forwarding-table item using the ARP messages;
Acquisition module 23, the network segment information for obtaining the virtual machine;
The generation module 22, is additionally operable to the data message that generation carries the network segment information;
Sending module 24, for sending the data message to local device, so that the local device is according to the number The network segment information carried according to message generates the forwarding-table item with the virtual machine of the network segment information matches.
The generation module 22, specifically for during the data message that the network segment information is carried in generation, if not The data message for the network segment information is transmitted across, generation carries the data message of the network segment information.
In one example, the generating means of the forwarding-table item also include (depending on not going out in figure):
Processing module, is institute after sending the data message to the local device in the sending module 24 State network segment information and preset mark is set, and for the network segment information sets ageing timer;Wherein, the preset mark is used for table Show the data message being transmitted across for the network segment information;
After ageing timer time-out, then the corresponding preset mark of the network segment information is deleted.
System, device, module or unit that above-described embodiment is illustrated, can specifically be realized by computer chip or entity, Or realized by the product with certain function.A kind of typically to realize equipment for computer, the concrete form of computer can Being personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units with function during description apparatus above to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the embodiment of the present application can be used and wherein include computer usable program code at one or more The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram are described.It is generally understood that each in realizing flow chart and/or block diagram by computer program instructions The combination of flow and/or square frame in flow and/or square frame and flow chart and/or block diagram.These computer journeys can be provided Sequence instruction to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices processor with Produce a machine so that being produced by the instruction of computer or the computing device of other programmable data processing devices is used for The dress of the function that realization is specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames Put.
And, these computer program instructions can also be stored can guide computer or the treatment of other programmable datas to set In the standby computer-readable memory for working in a specific way so that instruction of the storage in the computer-readable memory is produced Manufacture including command device, the command device is realized in one flow of flow chart or multiple flows and/or block diagram one The function of being specified in individual square frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer Or the instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram The step of function of being specified in one square frame or multiple square frames.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the implementation in terms of complete hardware embodiment, complete software embodiment or combination software and hardware The form of example.And, the application can be used and wherein include the calculating of computer usable program code at one or more The computer implemented in machine usable storage medium (magnetic disk storage, CD-ROM, optical memory etc. can be included but is not limited to) The form of program product.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent Replace, improve etc., within the scope of should be included in claims hereof.

Claims (10)

1. a kind of generation method of forwarding-table item, it is characterised in that the local terminal that methods described is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of opposite equip. and the local device and opposite equip. connection, Methods described includes:
Receive the data message from the opposite equip., the data message is the opposite equip. carrys out self-virtualizing receiving Sent after the ARP messages of machine, the data message carries the network segment information of the virtual machine;
The network segment information is parsed from the data message, and according to the network segment information structuring and the network segment information The ARP request message matched somebody with somebody, and the ARP request message of construction is sent to the virtual machine;
The arp reply message for the ARP request message that the virtual machine is returned is received, and utilizes the arp reply report Text generation forwarding-table item.
2. method according to claim 1, it is characterised in that
It is described the network segment information is parsed from the data message before, methods described also includes:
Parse the purpose IP address and/or target MAC (Media Access Control) address of the data message;
If the purpose IP address are the IP address of local device, and/or the target MAC (Media Access Control) address is the MAC ground of local device Location, then perform the process that the network segment information is parsed from the data message.
3. a kind of generation method of forwarding-table item, it is characterised in that the opposite end that methods described is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of local device and the local device and opposite equip. connection, Methods described includes:
The ARP messages from the virtual machine are received, and forwarding-table item is generated using the ARP messages;
The network segment information of the virtual machine is obtained, and generates the data message for carrying the network segment information;
The data message is sent to the local device, so that the network segment that the local device is carried according to the data message Information generates the forwarding-table item with the virtual machine of the network segment information matches.
4. method according to claim 3, it is characterised in that
The generation carries the process of the data message of the network segment information, specifically includes:If not being transmitted across for the network segment The data message of information, then generation carries the data message of the network segment information.
5. the method according to claim 3 or 4, it is characterised in that
After the transmission data message to the local device, methods described also includes:
For the network segment information sets preset mark, and for the network segment information sets ageing timer;Wherein, the pre- bidding Remember for representing the data message being transmitted across for the network segment information;
After ageing timer time-out, then the corresponding preset mark of the network segment information is deleted.
6. a kind of generating means of forwarding-table item, it is characterised in that the local terminal that described device is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of opposite equip. and the local device and opposite equip. connection, Described device includes:
Receiver module, for receiving the data message from opposite equip., the data message is opposite equip. to be come from receiving Sent after the ARP messages of virtual machine, the data message carries the network segment information of virtual machine;
Constructing module, for parsing the network segment information from the data message, and according to the network segment information structuring with The ARP request message of the network segment information matches;
Sending module, for sending the ARP request message that the constructing module is constructed to the virtual machine;
The receiver module, is additionally operable to receive that the virtual machine returns for the ARP request message arp reply message;
Generation module, for generating forwarding-table item using the arp reply message.
7. device according to claim 6, it is characterised in that
The constructing module, is additionally operable to parse the purpose IP address and/or target MAC (Media Access Control) address of the data message;If the mesh IP address for local device IP address, and/or the target MAC (Media Access Control) address for local device MAC Address, then from the number According to parsing the network segment information in message.
8. a kind of generating means of forwarding-table item, it is characterised in that the opposite end that described device is applied to distributed paradigmatic system sets Standby, the distributed paradigmatic system also includes the virtual machine of local device and the local device and opposite equip. connection, Described device includes:
Receiver module, for receiving the ARP messages from the virtual machine;
Generation module, for generating forwarding-table item using the ARP messages;
Acquisition module, the network segment information for obtaining the virtual machine;
The generation module, is additionally operable to the data message that generation carries the network segment information;
Sending module, for sending the data message to local device, so that the local device is according to the data message The network segment information generation of carrying and the forwarding-table item of the virtual machine of the network segment information matches.
9. device according to claim 8, it is characterised in that
The generation module, specifically for during the data message that the network segment information is carried in generation, if not being transmitted across For the data message of the network segment information, generation carries the data message of the network segment information.
10. device according to claim 8 or claim 9, it is characterised in that also include:
Processing module, is the network segment after sending the data message to the local device in the sending module Information sets preset mark, and for the network segment information sets ageing timer;Wherein, the preset mark is used to represent and sends Cross the data message for the network segment information;
After ageing timer time-out, then the corresponding preset mark of the network segment information is deleted.
CN201710151340.8A 2017-03-14 2017-03-14 Method and device for generating forwarding table item Active CN106921578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710151340.8A CN106921578B (en) 2017-03-14 2017-03-14 Method and device for generating forwarding table item

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710151340.8A CN106921578B (en) 2017-03-14 2017-03-14 Method and device for generating forwarding table item

Publications (2)

Publication Number Publication Date
CN106921578A true CN106921578A (en) 2017-07-04
CN106921578B CN106921578B (en) 2020-01-03

Family

ID=59461076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710151340.8A Active CN106921578B (en) 2017-03-14 2017-03-14 Method and device for generating forwarding table item

Country Status (1)

Country Link
CN (1) CN106921578B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547402A (en) * 2017-07-19 2018-01-05 新华三技术有限公司 A kind of forwarding table generation method and device
CN108259635A (en) * 2017-09-29 2018-07-06 新华三技术有限公司 A kind of ARP entry learning method and DR equipment
CN109412949A (en) * 2018-09-21 2019-03-01 新华三技术有限公司 A kind of data message transmission method and device
CN110851371A (en) * 2018-08-20 2020-02-28 华为技术有限公司 Message processing method and related equipment
CN112468363A (en) * 2020-11-23 2021-03-09 杭州迪普科技股份有限公司 Method and device for detecting link connectivity
WO2021169281A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Periodic sending method, apparatus and device based on free arp, and storage medium
CN117459419A (en) * 2023-12-22 2024-01-26 石家庄学院 Network segment visualization method and system with self-adaptive regeneration capability

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378296A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
US20160149751A1 (en) * 2014-11-21 2016-05-26 Cisco Technology, Inc. Recovering from virtual port channel peer failure
CN106385354A (en) * 2016-08-30 2017-02-08 锐捷网络股份有限公司 Message forwarding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378296A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
US20160149751A1 (en) * 2014-11-21 2016-05-26 Cisco Technology, Inc. Recovering from virtual port channel peer failure
CN106385354A (en) * 2016-08-30 2017-02-08 锐捷网络股份有限公司 Message forwarding method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547402B (en) * 2017-07-19 2020-04-03 新华三技术有限公司 Forwarding table generation method and device
CN107547402A (en) * 2017-07-19 2018-01-05 新华三技术有限公司 A kind of forwarding table generation method and device
CN108259635A (en) * 2017-09-29 2018-07-06 新华三技术有限公司 A kind of ARP entry learning method and DR equipment
CN108259635B (en) * 2017-09-29 2021-05-28 新华三技术有限公司 ARP (Address resolution protocol) table item learning method and DR (digital radiography) equipment
US11616738B2 (en) 2018-08-20 2023-03-28 Huawei Technologies Co., Ltd. Packet processing method and related device
CN110851371A (en) * 2018-08-20 2020-02-28 华为技术有限公司 Message processing method and related equipment
CN110851371B (en) * 2018-08-20 2023-09-26 华为技术有限公司 Message processing method and related equipment
CN109412949A (en) * 2018-09-21 2019-03-01 新华三技术有限公司 A kind of data message transmission method and device
CN109412949B (en) * 2018-09-21 2021-02-26 新华三技术有限公司 Data message transmission method and device
WO2021169281A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Periodic sending method, apparatus and device based on free arp, and storage medium
CN112468363A (en) * 2020-11-23 2021-03-09 杭州迪普科技股份有限公司 Method and device for detecting link connectivity
CN112468363B (en) * 2020-11-23 2022-05-31 杭州迪普科技股份有限公司 Method and device for detecting link connectivity
CN117459419A (en) * 2023-12-22 2024-01-26 石家庄学院 Network segment visualization method and system with self-adaptive regeneration capability
CN117459419B (en) * 2023-12-22 2024-03-12 石家庄学院 Network segment visualization method and system with self-adaptive regeneration capability

Also Published As

Publication number Publication date
CN106921578B (en) 2020-01-03

Similar Documents

Publication Publication Date Title
CN106921578A (en) The generation method and device of a kind of forwarding-table item
CN107342952B (en) Service link selection control method and equipment
US9110884B2 (en) Message publishing and subscribing method and apparatus
CN106878181A (en) A kind of message transmitting method and device
CN106998297B (en) A kind of virtual machine migration method and device
CN103118149B (en) Communication control method between same tenant's server and the network equipment
CN109617995B (en) Management system and method for VPC (virtual private network) internal container of tenant cluster and electronic equipment
CN108023808A (en) message distributing method and device in application program
CN107104824A (en) A kind of network topology determines method and apparatus
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN106878199A (en) The collocation method and device of a kind of access information
WO2017045450A1 (en) Resource operation processing method and device
CN110474960B (en) Method and device for service deployment in virtual network
CN107547346A (en) A kind of message transmitting method and device
CN105450585A (en) Information transmission method and device
CN110728558A (en) Virtual article package sending method, device, equipment and storage medium
CN107241312B (en) A kind of right management method and device
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
CN107249038A (en) Business datum retransmission method and system
US20140112142A1 (en) Method of forwarding packet and apparatus thereof
CN105472054B (en) A kind of file transmitting method and access device
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
US11357020B2 (en) Connecting computer processing systems and transmitting data
US11290575B2 (en) Connecting computer processing systems and transmitting data
US11405766B2 (en) Connecting computer processing systems and transmitting data

Legal Events

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