CN109412949A - A kind of data message transmission method and device - Google Patents

A kind of data message transmission method and device Download PDF

Info

Publication number
CN109412949A
CN109412949A CN201811110400.2A CN201811110400A CN109412949A CN 109412949 A CN109412949 A CN 109412949A CN 201811110400 A CN201811110400 A CN 201811110400A CN 109412949 A CN109412949 A CN 109412949A
Authority
CN
China
Prior art keywords
address
distributed network
host
network segment
gate
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
CN201811110400.2A
Other languages
Chinese (zh)
Other versions
CN109412949B (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 CN201811110400.2A priority Critical patent/CN109412949B/en
Publication of CN109412949A publication Critical patent/CN109412949A/en
Application granted granted Critical
Publication of CN109412949B publication Critical patent/CN109412949B/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/20Hop count for routing purposes, e.g. TTL
    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/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]

Abstract

The application provides a kind of data message transmission method and device, this method comprises: receiving the data message that the first host is sent, the purpose IP address of the data message is the IP address of the second host;If local routing table is not present with the Host routes of the destination IP address matching and routes in the presence of with the matched network segment of the network segment of the destination IP address attribution, ARP request message is sent to second distributed network gate according at least one first outgoing interface of network segment routing instruction;If receiving the first route messages including the destination IP address of the second distributed network gate transmission, Host routes are generated in local routing table, the Host routes include the destination IP address and the second outgoing interface;It is sent datagram by the Host routes to second host.By the technical solution of the application, so that data message normal transmission, realizes the access of silent host.

Description

A kind of data message transmission method and device
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of data message transmission method and device.
Background technique
EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) is two layers a kind of VPN (Virtual Private Network, Virtual Private Network) technology, control plane can use MP-BGP (Multi Protocol Border Gateway Protocol, Multiprotocol Border Gateway Protocol) notice routing iinformation, and data plane It can be encapsulated using VXLAN (Virtual eXtensible Local Area Network, expansible Virtual Local Area Network) Data message.In EVPN network, when the physical site of tenant is dispersed in different positions, then it can be based on existing service Provider network or enterprise IP network provide two layers of interconnection for the phase same network segment of same tenant, and are the difference of same tenant Network segment provides three layers of interconnection.
Further, the advantage of EVPN can be: can realize VTEP (VXLAN Tunnel End by MP-BGP Point, VXLAN endpoint of a tunnel) the automatic discovery of equipment, the automatic foundation in the tunnel VXLAN, the tunnel VXLAN and VXLAN mark Auto-associating can reduce network deployment difficulty without the manual configuration of user.Furthermore, it is possible to separate control plane and data Plane, control plane can be responsible for issuing routing iinformation, and data plane can be responsible for forwarding data packets, and the division of labor is clear, easily In management.
In EVPN, in order to realize the transmission of data message, after host 1 is online, need to send gratuitous ARP (Address Resolution Protocol, address resolution protocol) message, after distributed network gate 1 receives gratuitous ARP packet, learn host 1 forwarding-table item, and forwarding-table item is synchronized to by distributed network gate 2 by MP-BGP message, distributed network gate 2 learns host 1 Forwarding-table item.Based on this, when distributed network gate 2 receives host 2 and is sent to the data message of host 1, this turn can use Data message is sent to distributed network gate 1 by forwarding list item, and data message is sent to master using the forwarding-table item by distributed network gate 1 Machine 1.
But if host 1 is silent host, i.e., host 1 it is online after, do not send gratuitous ARP packet, then distributed network gate 1 No calligraphy learning is to the forwarding-table item of host 1, and distributed network gate 2 is also without calligraphy learning to the forwarding-table item of host 1, in this way, for master Machine 2 is sent to the data message of host 1, which also can not be just sent to host 1, can not so as to cause data message Normal transmission causes flow to interrupt.
Summary of the invention
The application provides a kind of data message transmission method and device, and data message can be sent to silent host, made Data message can normal transmission, avoid flow from interrupting, improve customer service experience.
In a first aspect, the application provides a kind of data message transmission method, the first distributed network gate and the second distributed network The Central Shanxi Plain is configured with gateway address that is identical and belonging to same network segment, and the method is applied to first distributed network gate, institute The method of stating includes:
Receive the data message of the first host transmission, the purpose IP address of the data message is the IP of the second host Location;
If local routing table is not present with the Host routes of the destination IP address matching and in the presence of with the destination IP The network segment matched network segment routing of location ownership, then according at least one first outgoing interface of network segment routing instruction to described the Two distributed network gates send ARP request message, and the ARP request message includes the destination IP address;
If the first route messages including the destination IP address of the second distributed network gate transmission are received, in local Host routes are generated in routing table, the Host routes include the destination IP address and the second outgoing interface, and described second goes out to connect Mouth is an outgoing interface at least one described first outgoing interface;
By the Host routes, the second host of Xiang Suoshu sends datagram.
With reference to first aspect, in the first possible implementation, the method also includes:
The secondary route message that second distributed network gate is sent is received, the secondary route message includes described second The gateway address of distributed network gate;
Network segment routing is generated in local routing table, the network segment is with routing the gateway including second distributed network gate Location and the first outgoing interface, first outgoing interface are the tunnel for receiving the secondary route message of first distributed network gate Road mark.
It is in the second possible implementation, described at this with reference to first aspect with the first possible implementation Network segment routing is generated in ground routing table, comprising:
Judge the whether enabled ARP detecting function of the first distributed network gate;
If it is, generating the network segment routing in local routing table.
Second aspect, the application provide a kind of data message transmission method, the first distributed network gate and the second distributed network The Central Shanxi Plain is configured with gateway address that is identical and belonging to same network segment, and the method is applied to second distributed network gate, institute The method of stating includes:
The ARP request message that first distributed network gate is sent is received, the purpose IP address of the ARP request message is The IP address of second host;
If the network segment phase that the gateway address of the network segment of the destination IP address attribution and second distributed network gate belongs to Together, then the ARP request message is broadcasted in double layer network;
If receiving the second host is directed to the arp reply message that the ARP request message returns, answered according to the ARP It answers message and generates the first route messages, the first via includes the destination IP address by message;
First route messages are sent to the first distributed network gate, so that first distributed network gate generates host Routing, and by the Host routes to the second host forwarding data packets, the Host routes include the destination IP Address and the second outgoing interface, second outgoing interface are the tunnel for receiving the first route messages of first distributed network gate Mark.
In conjunction with second aspect, in the first possible implementation, the method also includes:
Secondary route message is generated, the secondary route message includes the gateway address of the second distributed network gate;
The secondary route message is sent to the first distributed network gate, so that first distributed network gate generates network segment Routing, the network segment routing include the gateway address and the first outgoing interface of the second distributed network gate, and first outgoing interface is institute State the Tunnel Identifier for receiving the secondary route message of the first distributed network gate.
It is in the second possible implementation, described to receive the first distributed network gate transmission in conjunction with second aspect ARP request message after, further includes:
It is routed if existing in local routing table with the matched network segment of the network segment of the destination IP address attribution, according to At least one third outgoing interface of network segment routing instruction sends the ARP request message;
Wherein, the network segment routing includes the gateway address and third outgoing interface of third distributed network gate, and the third goes out Tunnel Identifier of the interface between the second distributed network gate and third distributed network gate;The third distributed network gate and second point Gateway address that is identical and belonging to same network segment is configured in cloth gateway.
The third aspect, the application provide a kind of data-message transmission device, the first distributed network gate and the second distributed network The Central Shanxi Plain is configured with gateway address that is identical and belonging to same network segment, and described device is applied to first distributed network gate, institute Stating device includes:
Receiving module, for receiving the data message of the first host transmission, the purpose IP address of the data message is the The IP address of two hosts;
Sending module, for when local routing table be not present with the Host routes of the destination IP address matching and exist with When the matched network segment routing of the network segment of the destination IP address attribution, then according to network segment routing instruction at least one first Outgoing interface sends ARP request message to second distributed network gate, and the ARP request message includes the destination IP address;
Generation module, for when receive the second distributed network gate transmission the first via including the destination IP address by When message, then Host routes are generated in local routing table, the Host routes include that the destination IP address and second go out to connect Mouthful, the second outgoing interface is an outgoing interface at least one described first outgoing interface;
The sending module is also used to through the Host routes, and the second host of Xiang Suoshu sends datagram.
In conjunction with the third aspect, in the first possible implementation, the receiving module is also used to receive described second The secondary route message that distributed network gate is sent, the secondary route message include the gateway of second distributed network gate Location;
The generation module, is also used to generate network segment routing in local routing table, and network segment routing includes described the The gateway address of two distributed network gates and the first outgoing interface, first outgoing interface are receiving for first distributed network gate The Tunnel Identifier of the secondary route message.
In conjunction with the third aspect and the first possible implementation, in the second possible implementation, the generation Module is specifically used for when generating network segment routing in local routing table:
Judge the whether enabled ARP detecting function of the first distributed network gate;
If it is, generating the network segment routing in local routing table.
Fourth aspect, the application provide a kind of data-message transmission device, the first distributed network gate and the second distributed network The Central Shanxi Plain is configured with gateway address that is identical and belonging to same network segment, and described device is applied to second distributed network gate, institute Stating device includes:
Receiving module, the ARP request message sent for receiving first distributed network gate, the ARP request message Purpose IP address be the second host IP address;
Sending module, for when the network segment of the destination IP address attribution and the gateway address of second distributed network gate When the network segment of ownership is identical, then the ARP request message is broadcasted in double layer network;
Generation module, for when receive the second host for the ARP request message return arp reply message when, The first route messages are then generated according to the arp reply message, the first via includes the destination IP address by message;
The sending module is also used to first route messages being sent to the first distributed network gate, so that described One distributed network gate generates Host routes, and passes through the Host routes to the second host forwarding data packets, the master Machine routing includes the destination IP address and the second outgoing interface, and second outgoing interface is the reception of first distributed network gate To the Tunnel Identifier of the first route messages.
In conjunction with fourth aspect, in the first possible implementation, the generation module is also used to generate secondary route Message, the secondary route message include the gateway address of the second distributed network gate;
The sending module is also used to the secondary route message being sent to the first distributed network gate, so that described One distributed network gate generates network segment routing, and the network segment routing includes that the gateway address of the second distributed network gate and first go out to connect Mouthful, first outgoing interface is the Tunnel Identifier for receiving the secondary route message of first distributed network gate.
In conjunction with fourth aspect, in the second possible implementation, the sending module is also used to work as local routing table When middle presence and the matched network segment of network segment of the destination IP address attribution route, then at least according to network segment routing instruction One third outgoing interface sends the ARP request message;
Wherein, the network segment routing includes the gateway address and third outgoing interface of third distributed network gate, and the third goes out Tunnel Identifier of the interface between the second distributed network gate and third distributed network gate;The third distributed network gate and second point Gateway address that is identical and belonging to same network segment is configured in cloth gateway
5th aspect, the application provide a kind of first distributed network gate, including processor and machine readable storage medium, institute It states machine readable storage medium and is stored with the machine-executable instruction that can be executed by the processor;The processor is for holding Row machine-executable instruction, to realize above-mentioned data message transmission method.
6th aspect, the application provide a kind of second distributed network gate, including processor and machine readable storage medium, institute It states machine readable storage medium and is stored with the machine-executable instruction that can be executed by the processor;The processor is for holding Row machine-executable instruction, to realize above-mentioned data message transmission method.
7th aspect, the application provide a kind of machine readable storage medium, and the machine readable storage medium storage is organic Device executable instruction, for the machine-executable instruction when being called and being executed by processor, the machine-executable instruction can be with The processor is promoted to realize above-mentioned data message transmission method.
It based on the above-mentioned technical proposal,, can also even if the gateway address of multiple distributed network gates is identical in the embodiment of the present application To generate the network segment routing for the gateway address in the routing table, in this way, receiving the data message for silent host When, the purpose IP address of the data message can match network segment routing, and generate ARP request message, be routed using the network segment It sends the ARP request message, sends ARP request message to trigger to the distributed network gate of neighbours, triggered with this to silence The ARP of host learns.After the completion of the ARP of silent host study, Host routes are can be generated in each distributed network gate, and by being somebody's turn to do Host routes send the data message for silent host, data message can be sent to silent host, so that data message Can normal transmission, avoid flow from interrupting, improve customer service experience, realize the access of silent host.
Detailed description of the invention
It, below will be to the application in order to clearly illustrate the embodiment of the present application or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is only some embodiments as described in this application, for those of ordinary skill in the art, can also be according to this Shen Please these attached drawings of embodiment obtain other attached drawings.
Fig. 1 is the application scenarios schematic diagram in a kind of embodiment of the application;
Fig. 2 is the flow chart of the data message transmission method in a kind of embodiment of the application;
Fig. 3 is the flow chart of the data message transmission method in the application another embodiment;
Fig. 4 is the flow chart of the data message transmission method in the application another embodiment;
Fig. 5 is the structure chart of the data-message transmission device in a kind of embodiment of the application;
Fig. 6 is the hardware structure diagram of the first distributed network gate in a kind of embodiment of the application;
Fig. 7 is the structure chart of the data-message transmission device in a kind of embodiment of the application;
Fig. 8 is the hardware structure diagram of the second distributed network gate in a kind of embodiment of the application.
Specific embodiment
In the term that the embodiment of the present application uses merely for the sake of for the purpose of describing particular embodiments, rather than limit this Shen Please.The "an" of singular used in the application and claims, " described " and "the" are also intended to including most shapes Formula, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one A or multiple associated any or all of project listed may combine.
It will be appreciated that though various letters may be described using term first, second, third, etc. in the embodiment of the present application Breath, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, In the case where not departing from the application range, the first information can also be referred to as the second information, and similarly, the second information can also be with The referred to as first information.Depending on context, in addition, used word " if " can be construed to " ... when ", or " when ... ", or " in response to determination ".
The embodiment of the present application proposes a kind of data message transmission method, can be applied to include multiple distributed network gates net Network, such as EVPN are required to create in the networking of distributed network gate on all distributed network gates (GW (GateWay, gateway) etc.) VSI (Virtual Switch Interface, virtual switch interface) virtual interface is built, and is the identical of different distributions formula gateway VSI virtual interface configures identical IP address, the gateway address as host in network, that is to say, that these distributed network Central Shanxi Plain It is shown in Figure 1 configured with identical and belong to the gateway address of same network segment, it is that the application scenarios of the embodiment of the present application are illustrated Figure, VTEP equipment 101 (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel), ED equipment (Edge Device, edge Equipment) 102, ED equipment 103 and VTEP equipment 104 be distributed network gate, these distributed network gates are configured with identical gateway Address, such as gateway address 10.1.1.1/24.Alternatively, VTEP equipment 101 and VTEP equipment 104 are distributed network gates, the two points Cloth gateway is configured with identical gateway address.Certainly, Fig. 1 is one example of the application, with no restrictions to this application scenarios.
Wherein, the host 105 that VTEP equipment 101 connects can be VM (Virtual Machine, virtual machine), terminal is set Standby, PC (Personal Computer, personal computer), it is without limitation.Similarly, the host that VTEP equipment 104 connects 106 can be VM, terminal device, PC, without limitation.
Wherein, the IP address of VTEP equipment 101 can be 1.1.1.1, and the IP address of ED equipment 102 can be 2.2.2.2, The IP address of ED equipment 103 can be 3.3.3.3, and the IP address of VTEP equipment 104 can be 4.4.4.4.VTEP equipment 101 can To create the source IP address for the tunnel VXLAN A1, VXLAN the tunnel A1 of ED equipment 102 as 1.1.1.1, purpose IP address is 2.2.2.2;ED equipment 102 can create the source IP address for the tunnel VXLAN A2, VXLAN the tunnel A2 of VTEP equipment 101 2.2.2.2, purpose IP address 1.1.1.1.ED equipment 102 can create the tunnel the VXLAN B1, VXLAN for ED equipment 103 The source IP address of tunnel B1 is 2.2.2.2, purpose IP address 3.3.3.3;ED equipment 103 can be created for ED equipment 102 The tunnel VXLAN B2, VXLAN tunnel B2 source IP address be 3.3.3.3, purpose IP address 2.2.2.2.ED equipment 103 can With create for VTEP equipment 104 the tunnel VXLAN C1, VXLAN tunnel C1 source IP address be 3.3.3.3, purpose IP address For 4.4.4.4;VTEP equipment 104 can create the source IP address of the tunnel VXLAN C2, VXLAN the tunnel C2 for ED equipment 103 For 4.4.4.4, purpose IP address 3.3.3.3.
Data message transmission method shown in Figure 2, proposing in the embodiment of the present application may include:
Step 201, each distributed network gate generates network segment routing according to route messages in local routing table.
In the present embodiment, route messages can be mutually noticed between each distributed network gate, each distributed network gate can be with The route messages noticed using other distributed network gates generate network segment routing, below in conjunction with shown in FIG. 1 in local routing table Application scenarios generate network segment routing to each distributed network gate and are illustrated.
Shown in Figure 1, ED equipment 102 generates route messages (such as MP-BGP advertising of route message), and by the routing Message is sent to VTEP equipment 101, which can carry the gateway address 10.1.1.1/24 of ED equipment 102.VTEP is set Standby 101 after receiving the route messages, can parse the gateway address of ED equipment 102 from the route messages 10.1.1.1/24, network segment routing and in local routing table is generated, network segment routing includes the gateway address of ED equipment 102 10.1.1.1/24 and outgoing interface, the outgoing interface are the Tunnel Identifier for receiving the route messages, such as the tunnel VXLAN A1.
It certainly, can also include other contents in network segment routing, if next-hop can also be the IP address of ED equipment 102 2.2.2.2, with no restrictions to the content of this network segment routing.Ginseng is shown in Table 1, and is showing for the local routing table of VTEP equipment 101 Example, the local routing table may include the network segment routing for gateway address 10.1.1.1/24.
Table 1
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 2.2.2.2 The tunnel VXLAN A1
... ... ...
In conventional manner, VTEP equipment 101 is receiving route messages, and ED equipment is parsed from route messages After 102 gateway address 10.1.1.1/24, due to gateway address 10.1.1.1/24 and the VTEP equipment 101 of ED equipment 102 Gateway address 10.1.1.1/24 is identical, and therefore, VTEP equipment 101 will not generate gateway address in local routing table 10.1.1.1/24 network segment routing, terminates the processing to the route messages.
Unlike traditional approach, in the embodiment of the present application, VTEP equipment 101 is receiving route messages, and from road After gateway address 10.1.1.1/24 by parsing ED equipment 102 in message, although the gateway address of ED equipment 102 10.1.1.1/24 identical as the gateway address 10.1.1.1/24 of VTEP equipment 101, but VTEP equipment 101 is still in local routing The network segment generated in table for gateway address 10.1.1.1/24 routes, and ginseng is shown in Table 1, for for the gateway address 10.1.1.1/24 the example of network segment routing, it is without limitation.
In one example, compatible in order to be carried out with traditional approach, then it can also be distributed network in the embodiment of the present application Configuration ARP detecting function is closed, and enables ARP detecting function or removes enabled ARP detecting function.If VTEP equipment 101 enables ARP Detecting function, then VTEP equipment 101 is handled using the scheme of the embodiment of the present application, if VTEP equipment 101 is not enabled on ARP spy Brake, then VTEP equipment 101 is handled using traditional approach.
Based on this, in the embodiment of the present application, VTEP equipment 101 is receiving route messages, and solves from the route messages After the gateway address 10.1.1.1/24 of ED equipment 102 is precipitated, if the gateway address 10.1.1.1/24 and VTEP of ED equipment 102 is set Standby 101 gateway address 10.1.1.1/24 is identical, then VTEP equipment 101 can also judge the whether enabled ARP of VTEP equipment 101 Detecting function.If it is, VTEP equipment 101 can generate in local routing table is directed to gateway address 10.1.1.1/24 Network segment routing, ginseng is shown in Table 1.If it is not, then VTEP equipment 101 can forbid generating in local routing table for the net The network segment routing for closing address 10.1.1.1/24 does not generate the network segment routing for gateway address 10.1.1.1/24.
In the above-described embodiments, it describes VTEP equipment 101 and generates network segment routing, VTEP equipment similar with aforesaid way 101 can also send route messages to ED equipment 102, and ED equipment 103 can also send route messages to ED equipment 102, finally, ED equipment 102 can generate network segment routing in local routing table, and ginseng is shown in Table 2.Similarly, ED equipment 103 can be in local Network segment routing is generated in routing table, ginseng is shown in Table 3.VTEP equipment 104 can generate network segment routing, ginseng in local routing table It is shown in Table 4.
Table 2
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 1.1.1.1 The tunnel VXLAN A2
10.1.1.1/24 3.3.3.3 The tunnel VXLAN B1
... ... ...
Table 3
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 2.2.2.2 The tunnel VXLAN B2
10.1.1.1/24 4.4.4.4 The tunnel VXLAN C1
... ... ...
Table 4
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 3.3.3.3 The tunnel VXLAN C2
... ... ...
Step 202, host 105 sends datagram to VTEP equipment 101, subsequent to be known as data message 1.
Wherein, when host 105 needs to be implemented certain business, 1 can be sent datagram to host 106, and the data Message 1 is sent to VTEP equipment 101 by host 105.
Where it is assumed that host 106 is silent host, i.e., host 106 it is online after, do not send gratuitous ARP packet, that is, It says, VTEP equipment 101, ED equipment 102, ED equipment 103 and VTEP equipment 104, without learning the forwarding table to host 106 , data message 1 can not be sent to host 106.
Step 203, VTEP equipment 101 receives data message 1, wherein the purpose IP address of the data message 1 is host 106 IP address, it is assumed that purpose IP address 10.1.1.2/32.
Step 204, if local routing table is not present and the matched Host routes of purpose IP address 10.1.1.2/32 and deposits In the matched network segment routing of network segment belonged to purpose IP address 10112/32, then VTEP equipment 101 generates ARP request message, And ARP request message is sent according to the outgoing interface of network segment routing instruction, which may include purpose IP address 10.1.1.2/32, i.e., the purpose IP address of the ARP request message is 10.1.1.2/32, for the other of the ARP request message Content, details are not described herein.
Specifically, VTEP equipment 101 after receiving data message 1, judges to whether there is and the mesh in local routing table The matched Host routes of IP address 10.1.1.2/32 (routing of i.e. 32 IP address), if it is present directly pass through the master Machine routing sends datagram 1, repeats no more to this process.
If it does not exist, then VTEP equipment 101 judges whether this equipment is corresponding point of purpose IP address 10.1.1.2/32 Cloth gateway repeats no more this processing mode if it is not, then can be handled using traditional process.Due to destination IP The net that the network segment 10.1.1.0/24 of location 10.1.1.2/32 ownership and the gateway address 10.1.1.1/24 of VTEP equipment 101 belong to Duan Xiangtong, therefore, VTEP equipment 101 can determine that this equipment is the corresponding distributed network gate of purpose IP address 10.1.1.2/32, Further execute subsequent processing.
When VTEP equipment 101 is distributed network gate, ARP request message is can be generated in VTEP equipment 101, the ARP request The source IP address of message be VTEP equipment 101 IP address, purpose IP address 10.1.1.2/32, and double layer network (i.e. with The matched double layer network of gateway address 10.1.1.1/24) interior broadcast ARP request message, that is to say, that VTEP equipment 101 is by ARP Request message broadcasts to each host in double layer network, since the IP address of each host in double layer network is not 10.1.1.2/32, therefore each host will not return to arp response message, i.e. VTEP equipment 101 will not receive arp response message.
Unlike traditional approach, in the embodiment of the present application, in addition to the broadcast ARP request message in double layer network, VTEP equipment 101 can also be handled as follows: VTEP equipment 101 judges to whether there is in local routing table and purpose IP address The matched network segment routing of the network segment 10.1.1.2/32 belonged to (routing of i.e. non-32 IP address, such as routing of 24 IP address, The routing etc. of 16 IP address).If it does not exist, then terminating process.If it does, being presence and purpose IP address 10.1.1.2/32 the matched network segment routing of the network segment belonged to, then VTEP equipment 101 can also be sent using network segment routing and is somebody's turn to do ARP request message.For example, with reference to local routing table shown in table 1, belong to due to existing with purpose IP address 10.1.1.2/32 Network segment (such as network segment 10.1.1.0/24) matched network segment routing, i.e., the network segment that destination network segment is 10.1.1.1/24 routes, because This, can send the ARP request message, with no restrictions to this transmission process by the tunnel VXLAN A1.
Step 205, ED equipment 102 is after receiving ARP request message (including purpose IP address 10.1.1.2/32), if There is the matched network segment of the network segment belonged to purpose IP address 10.1.1.2/32 in local routing table to route, then ED equipment 102 The ARP request message is sent according to the outgoing interface of network segment routing instruction.
Specifically, after ED equipment 102 receives ARP request message, judge to whether there is in local routing table and destination IP The matched Host routes of address 10.1.1.2/32, if it is present being handled using traditional process.If it does not exist, then ED equipment 102 judge whether this equipment is the corresponding distributed network gate of purpose IP address 10.1.1.2/32, if it is not, then using conventional flow Journey processing.Due to the network segment 10.1.1.0/24 of purpose IP address 10.1.1.2/32 ownership and the gateway address of ED equipment 102 10.1.1.1/24 the network segment belonged to is identical, and therefore, ED equipment 102 can determine that this equipment is purpose IP address 10.1.1.2/32 Corresponding distributed network gate.
Therefore, ED equipment 102 can also be handled as follows: ED equipment 102 judge in local routing table with the presence or absence of with The matched network segment routing of the network segment of purpose IP address 10.1.1.2/32 ownership.If it does not exist, then terminating process.If it does, There is the matched network segment of the network segment belonged to purpose IP address 10.1.1.2/32 to route, then ED equipment 102 can also be utilized and is somebody's turn to do Network segment routing sends the ARP request message.For example, with reference to local routing table shown in table 2, due to presence and purpose IP address 10.1.1.2/32 the matched network segment routing of the network segment belonged to, i.e., the network segment that destination network segment is 10.1.1.1/24 route, therefore, ED Equipment 102 can send the ARP request message by the tunnel VXLAN B1, with no restrictions to this transmission process.
Step 206, ED equipment 103 is after receiving ARP request message (including purpose IP address 10.1.1.2/32), if There is the matched network segment of the network segment belonged to purpose IP address 10.1.1.2/32 in local routing table to route, then ED equipment 103 The ARP request message is sent according to the outgoing interface of network segment routing instruction.
Wherein, the processing of ED equipment 103 is similar with the processing of ED equipment 102, and details are not described herein.
Step 207, VTEP equipment 104 is after receiving ARP request message (including purpose IP address 10.1.1.2/32), If the gateway of the network segment 10.1.1.0/24 that the purpose IP address 10.1.1.2/32 of ARP request message belongs to and VTEP equipment 104 The network segment of address 10.1.1.1/24 ownership is identical, then in double layer network (i.e. matched two layers with gateway address 10.1.1.1/24 Network) interior broadcast ARP request message.
Specifically, after VTEP equipment 104 receives ARP request message, judge that local routing table whether there is and destination IP The matched Host routes of address 10.1.1.2/32, if it is present being handled using traditional process.If it does not exist, then VTEP is set Standby 104 judge whether this equipment is the corresponding distributed network gate of purpose IP address 10.1.1.2/32, if it is not, then using tradition Flow processing.Due to the purpose IP address 10.1.1.2/32 network segment 10.1.1.0/24 belonged to and the gateway of VTEP equipment 104 The network segment of location 10.1.1.1/24 ownership is identical, and therefore, VTEP equipment 104 determines that this equipment is purpose IP address 10.1.1.2/32 Corresponding distributed network gate.
When VTEP equipment 104 is distributed network gate, VTEP equipment 104 can double layer network (i.e. and gateway address 10.1.1.1/24 matched double layer network) interior broadcast ARP request message, that is to say, that VTEP equipment 104 is by ARP request message Each host in double layer network is broadcast to, since the IP address of the host 106 in double layer network is 10.1.1.2/32, because This, host 106 can return to arp response message.
In addition to the broadcast ARP request message in double layer network, VTEP equipment 104 can also be handled as follows: judgement is originally Ground routing table whether there is to be routed with the matched network segment of purpose IP address 10.1.1.2/32.If it does not exist, then terminating process. If it is present can use network segment routing sends the ARP request message.
Step 208, VTEP equipment 104 is receiving host 106 for the arp reply message of ARP request message return Afterwards, the Host routes of host 106 are generated according to the arp reply message.
Specifically, VTEP equipment 104 is in double layer network after broadcast ARP request message, due to the IP address of host 106 10.1.1.2/32 identical as the purpose IP address 10.1.1.2/32 of the ARP request message, therefore, host 106 can return to ARP Response message.VTEP equipment 104 is after receiving the arp reply message, so that it may the Host routes for generating host 106, referring to Shown in table 5, for the local routing table example after study.In local routing table, the corresponding route table items of 10.1.1.2/32 are exactly For the Host routes of 10.1.1.2/32.
Table 5
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 3.3.3.3 The tunnel VXLAN C2
10.1.1.2/32 Interface 1041
... ... ...
It is understood that further including the MAC Address of host 106 in the arp reply message that host 106 returns.
Step 209, VTEP equipment 104 generates route messages (such as MP-BGP advertising of route message according to arp reply message Deng), and the route messages are sent to ED equipment 103.Wherein, which carries the source IP address of arp reply message, i.e., The purpose IP address 10.1.1.2/32 of ARP request message.
Wherein, the route messages are in addition to carrying purpose IP address 10.1.1.2/32, with can also carrying the MAC of host 106 Location (is known) from arp reply message, can not also carry the MAC Address of host 106.For example, the route messages can be The routing of bis- class of EVPN (carries the MAC Address of host 106), is also possible to nine class of EVPN newly defined routing and (does not carry host 106 MAC Address).
Step 210, ED equipment 103 generates master after receiving the route messages including purpose IP address 10.1.1.2/32 Machine routing, and the route messages are sent to ED equipment 102.
Ginseng is shown in Table 6, the local routing table example after learning for ED equipment 103.In local routing table, 10.1.1.2/32 corresponding route table items are the Host routes for purpose IP address 10.1.1.2/32.Wherein, the host The outgoing interface of routing can be the Tunnel Identifier that the route messages are received in ED equipment 103.
Table 6
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 2.2.2.2 The tunnel VXLAN B2
10.1.1.1/24 4.4.4.4 The tunnel VXLAN C1
10.1.1.2/32 4.4.4.4 The tunnel VXLAN C1
... ... ...
Step 211, ED equipment 102 generates master after receiving the route messages including purpose IP address 10.1.1.2/32 Machine routing, and the route messages are sent to VTEP equipment 101.
Ginseng is shown in Table 7, the local routing table example after learning for ED equipment 102.In local routing table, 10.1.1.2/32 corresponding route table items are the Host routes for purpose IP address 10.1.1.2/32.Wherein, the host The outgoing interface of routing can be the Tunnel Identifier that the route messages are received in ED equipment 102.
Table 7
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 1.1.1.1 The tunnel VXLAN A2
10.1.1.1/24 3.3.3.3 The tunnel VXLAN B1
10.1.1.2/32 3.3.3.3 The tunnel VXLAN B1
... ... ...
Step 212, VTEP equipment 101 generates after receiving the route messages including purpose IP address 10.1.1.2/32 Host routes so far complete the generating process of Host routes.
Ginseng is shown in Table 8, the local routing table example after learning for VTEP equipment 101.In local routing table, 10.1.1.2/32 corresponding route table items are the Host routes for purpose IP address 10.1.1.2/32.Wherein, Host routes Outgoing interface can be Tunnel Identifier that route messages are received in VTEP equipment 101.
Table 8
Purpose IP address/destination network segment Next-hop Outgoing interface
10.1.1.1/24 2.2.2.2 The tunnel VXLAN A1
10.1.1.2/32 2.2.2.2 The tunnel VXLAN A1
... ... ...
Step 213, after VTEP equipment 101 receives data message 1, pass through the purpose IP address of data message 1 10.1.1.2/32 local routing table shown in inquiry table 8 obtains Host routes, and is sent datagram by the Host routes 1, i.e., data message 1 is sent to by ED equipment 102 by the tunnel VXLAN A1.
Step 214, after ED equipment 102 receives data message 1, pass through the purpose IP address 10.1.1.2/ of data message 1 Local routing table shown in 32 inquiry tables 7, obtains Host routes, and sends datagram 1 by the Host routes, that is, passes through Data message 1 is sent to ED equipment 103 by the tunnel VXLAN B1.
Step 215, after ED equipment 103 receives data message 1, pass through the purpose IP address 10.1.1.2/ of data message 1 Local routing table shown in 32 inquiry tables 6, obtains Host routes, and sends datagram 1 by the Host routes, that is, passes through Data message 1 is sent to VTEP equipment 104 by the tunnel VXLAN C1.
Step 216, after VTEP equipment 104 receives data message 1, pass through the purpose IP address of data message 1 10.1.1.2/32 local routing table shown in inquiry table 5 obtains Host routes, and is sent datagram by the Host routes 1, i.e., data message 1 is sent to by host 106 by interface 1041.
So far, the transmission process for completing data message 1, is successfully sent to host 106 for data message 1.
It based on the above-mentioned technical proposal,, can also even if the gateway address of multiple distributed network gates is identical in the embodiment of the present application To generate the network segment routing for the gateway address in the routing table, in this way, receiving the data message for silent host When, the purpose IP address of the data message can match network segment routing, and generate ARP request message, be routed using the network segment It sends the ARP request message, sends ARP request message to trigger to the distributed network gate of neighbours, triggered with this to silence The ARP of host learns.After the completion of the ARP of silent host study, Host routes are can be generated in each distributed network gate, and by being somebody's turn to do Host routes send the data message for silent host, data message can be sent to silent host, so that data message Can normal transmission, avoid flow from interrupting, improve customer service experience, realize the access of silent host.
Based on similarly applying conceiving with the above method, the embodiment of the present application proposes a kind of data message transmission method, can To be applied to the network including the first distributed network gate and the second distributed network gate, the first distributed network gate and the second distributed network The Central Shanxi Plain is configured with gateway address that is identical and belonging to same network segment.Wherein, the first distributed network gate and the second distributed network gate It can be two distributed network gates of connection.
It is shown in Figure 1, if VTEP equipment 101, ED equipment 102, ED equipment 103 and VTEP equipment 104 are distributed networks It closes, the first distributed network gate is VTEP equipment 101, then the second distributed network gate is ED equipment 102;If the first distributed network gate is ED equipment 102, then the second distributed network gate is ED equipment 103 or VTEP equipment 101, and so on.If 101 He of VTEP equipment VTEP equipment 104 is distributed network gate, and the first distributed network gate is VTEP equipment 101, then the second distributed network gate is VTEP Equipment 104, the first distributed network gate are VTEP equipment 104, then the second distributed network gate is VTEP equipment 101.
In one example, secondary route message can be generated in the second distributed network gate, which can take Gateway address with the second distributed network gate, and the secondary route message is sent to the first distributed network gate.First is distributed Gateway generates network segment routing after receiving the secondary route message in local routing table.Wherein, network segment routing can wrap The gateway address and the first outgoing interface of the second distributed network gate are included, first outgoing interface can connecing for the first distributed network gate Receive the tunnel VXLAN between the Tunnel Identifier of secondary route message, that is, the first distributed network gate and the second distributed network gate Tunnel Identifier.
Specifically, may include: to judge first point when the first distributed network gate generates network segment routing in local routing table The whether enabled ARP detecting function of cloth gateway;If it is, network segment routing can be generated in local routing table.In addition, if Judging result be it is no, then forbid in local routing table generate network segment routing.
Referring to the step 201 of above-described embodiment, it is assumed that the first distributed network gate is VTEP equipment 101, the second distributed network Closing is ED equipment 102, then route messages can be generated in ED equipment 102, route messages are sent to VTEP equipment 101, the routing Message may include the gateway address 10.1.1.1/24 of ED equipment 102.
VTEP equipment 101 can parse the net of ED equipment 102 after receiving the route messages from the route messages Address 10.1.1.1/24 is closed, and generates network segment routing in local routing table, network segment routing includes gateway address 10.1.1.1/24 and outgoing interface, if outgoing interface is the tunnel VXLAN A1, ginseng is shown in Table 1.
It is shown in Figure 3 under above-mentioned application scenarios, it is the process of the data message transmission method in the embodiment of the present application Figure, this method can be applied to the first distributed network gate, and this method may include:
Step 301 receives the data message that the first host is sent, and the purpose IP address of the data message is the second host IP address, for example, the purpose IP address 10.1.1.2/32 of above-mentioned data message 1.
If step 302, local routing table are not present and the matched Host routes of the purpose IP address and presence and the purpose The network segment matched network segment routing of IP address ownership, then according at least one first outgoing interface of network segment routing instruction to second Distributed network gate sends ARP request message, which includes the purpose IP address.
Assuming that the first distributed network gate is VTEP equipment 101, referring to the step 203 and step 204 of above-described embodiment, VTEP After equipment 101 receives data message 1, if local routing table is not present and the matched host of purpose IP address 10.1.1.2/32 It routes and there is the matched network segment of network segment belonged to purpose IP address 10.1.1.2/32 and route, then VTEP equipment 101 generates ARP request message, and ARP request message is sent using network segment routing, ginseng is shown in Table 1, can be sent out by the tunnel VXLAN A1 Give the ARP request message.
If step 303, the first route messages including the purpose IP address for receiving the transmission of the second distributed network gate, Host routes are generated in local routing table, which includes the purpose IP address and the second outgoing interface, this second goes out to connect Mouthful for an outgoing interface at least one described first outgoing interface, which can be the first distributed network gate and the Tunnel Identifier between two distributed network gates.
Step 304 passes through the Host routes, sends datagram to the second host.
Assuming that the first distributed network gate is VTEP equipment 101, the second distributed network gate is ED equipment 102, referring to above-mentioned reality The step 211- step 213 of example is applied, route messages can be sent to VTEP equipment 101 by ED equipment 102, and VTEP equipment 101 connects After receiving the route messages, Host routes shown in table 8 are generated.After VTEP equipment 101 receives data message 1, pass through data Local routing table shown in the purpose IP address 10.1.1.2/32 inquiry table 8 of message 1 obtains Host routes, and passes through the host Routing sends datagram 1, i.e., data message 1 is sent to ED equipment 102 by the tunnel VXLAN A1.
It is shown in Figure 4 under above-mentioned application scenarios, it is the another of the data message transmission method in the embodiment of the present application Flow chart, this method can be applied to the second distributed network gate, and this method may include:
Step 401 receives the ARP request message that the first distributed network gate is sent, wherein the mesh of the ARP request message IP address be the second host IP address.
If the network segment of the gateway address ownership of the network segment and the second distributed network gate of step 402, the purpose IP address ownership It is identical, then the ARP request message is broadcasted in double layer network.
In addition, after receiving the ARP request message, if there is the net belonged to the purpose IP address in local routing table The matched network segment routing of section, then send the ARP request message according at least one third outgoing interface of network segment routing instruction;Its In, network segment routing includes the gateway address and third outgoing interface of third distributed network gate, and third outgoing interface is second distributed Tunnel Identifier between gateway and third distributed network gate;Third distributed network gate is with the second distributed network Central Shanxi Plain configured with identical And gateway address that belong to same network segment.
If step 403, receive the second host be directed to the ARP request message return arp reply message, according to should Arp reply message generates the first route messages, which includes the purpose IP address by message.
First route messages are sent to the first distributed network gate by step 404, so that the first distributed network gate generates master Machine routing, and pass through the Host routes to the second host forwarding data packets.
Assuming that the first distributed network gate is VTEP equipment 101, the second distributed network gate is ED equipment 102, referring to above-mentioned reality The step 205 of example is applied, ED equipment 102 is after receiving ARP request message, since the purpose IP address of ARP request message belongs to The network segment that belongs to of gateway address of network segment and ED equipment 102 it is identical, therefore, the broadcast arp in double layer network of ED equipment 102 is asked Seek message.Due to there is matched network segment routing (the i.e. ED equipment 103 of network segment belonged to the purpose IP address in local routing table Network segment routing, that is to say, that ED equipment 103 is third distributed network gate), therefore, ED equipment 102 using the network segment routing refers to The ARP request message is sent to ED equipment 103 by the third outgoing interface shown.
Assuming that the first distributed network gate is ED equipment 103, the second distributed network gate is VTEP equipment 104, referring to above-mentioned reality The step 207- step 209 of example is applied, VTEP equipment 104 is after receiving ARP request message, due to the mesh of the ARP request message The network segment of gateway address ownership of network segment and VTEP equipment 104 of IP address ownership it is identical, therefore, VTEP equipment 104 can be with The broadcast ARP request message in double layer network.VTEP equipment 104 is after the arp reply message for receiving the return of host 106, root Route messages are generated according to the arp reply message, and the route messages are sent to ED equipment 103, in this way, ED equipment 103 can be with Host routes are generated according to the route messages.
It based on the above-mentioned technical proposal,, can also even if the gateway address of multiple distributed network gates is identical in the embodiment of the present application To generate the network segment routing for the gateway address in the routing table, in this way, receiving the data message for silent host When, the purpose IP address of the data message can match network segment routing, and generate ARP request message, be routed using the network segment It sends the ARP request message, sends ARP request message to trigger to the distributed network gate of neighbours, triggered with this to silence The ARP of host learns.After the completion of the ARP of silent host study, Host routes are can be generated in each distributed network gate, and by being somebody's turn to do Host routes send the data message for silent host, data message can be sent to silent host, so that data message Can normal transmission, avoid flow from interrupting, improve customer service experience, realize the access of silent host.
Based on similarly conceiving with the above method, the embodiment of the present application also provides a kind of data-message transmission device, and first Distributed network gate and the second distributed network Central Shanxi Plain are configured with gateway address that is identical and belonging to same network segment, and described device can be with It applies in the first distributed network gate.As shown in figure 5, being the structure chart of the device:
Receiving module 51, for receiving the data message of the first host transmission, the purpose IP address of the data message is The IP address of second host;
Sending module 52, for there is no the Host routes with the destination IP address matching and presence when local routing table When being routed with the matched network segment of the network segment of the destination IP address attribution, then according to network segment routing instruction at least one the One outgoing interface sends ARP request message to second distributed network gate, and the ARP request message includes the destination IP Location;
Generation module 53, for when the first via including the destination IP address for receiving the transmission of the second distributed network gate When by message, Host routes are generated in local routing table, the Host routes include that the destination IP address and second go out to connect Mouthful, the second outgoing interface is an outgoing interface at least one described first outgoing interface;
The sending module 52 is also used to send datagram by the Host routes to the second host.
The receiving module 51, is also used to receive the secondary route message that second distributed network gate is sent, and described the Two route messages include the gateway address of second distributed network gate;
The generation module 53 is also used to generate network segment routing in local routing table, and the network segment routing includes described The gateway address of second distributed network gate and the first outgoing interface, first outgoing interface are the reception of first distributed network gate To the Tunnel Identifier of the secondary route message.
The generation module 53 is specifically used for when generating network segment routing in local routing table:
Judge the whether enabled ARP detecting function of the first distributed network gate;
If it is, generating the network segment routing in local routing table.
First distributed network gate provided by the embodiments of the present application, for hardware view, hardware structure schematic diagram is specific It may refer to shown in Fig. 6.It include: machine readable storage medium and processor, in which:
Machine readable storage medium: store instruction code.
Processor: communicating with machine readable storage medium, read and execute stored in machine readable storage medium it is described Instruction code realizes the data-message transmission operation of the application above-mentioned example application.
Here, machine readable storage medium can be any electronics, magnetism, optics or other physical storage devices, can be with Include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) perhaps similar storage medium or they Combination.
Based on similarly conceiving with the above method, the embodiment of the present application also provides a kind of data-message transmission device, and first Distributed network gate and the second distributed network Central Shanxi Plain are configured with gateway address that is identical and belonging to same network segment, and described device can be with It applies in the second distributed network gate.As shown in fig. 7, being the structure chart of the device:
Receiving module 71, the ARP request message sent for receiving first distributed network gate, the ARP request report The purpose IP address of text is the IP address of the second host;
Sending module 72, with the gateway of second distributed network gate for the network segment when the destination IP address attribution When the network segment of location ownership is identical, then the ARP request message is broadcasted in double layer network;
Generation module 73, for working as the arp reply message for receiving the second host and being directed to ARP request message return When, then the first route messages are generated according to the arp reply message, the first via includes the destination IP address by message;
The sending module 72 is also used to first route messages being sent to the first distributed network gate, so that described First distributed network gate generates Host routes, and by the Host routes to the second host forwarding data packets, described Host routes include the destination IP address and the second outgoing interface, and second outgoing interface is connecing for first distributed network gate Receive the Tunnel Identifier of the first route messages.
The generation module 73, is also used to generate secondary route message, and the secondary route message includes second distributed The gateway address of gateway;The sending module 72 is also used to the secondary route message being sent to the first distributed network gate, with First distributed network gate is set to generate network segment routing, the network segment routing includes the gateway address and the of the second distributed network gate One outgoing interface, first outgoing interface are the tunnel mark for receiving the secondary route message of first distributed network gate Know.
The sending module 72, is also used to exist in the local routing table and matches with the network segment of the destination IP address attribution Network segment routing when, then the ARP request message is sent according at least one third outgoing interface of network segment routing instruction;Institute The gateway address and third outgoing interface that network segment routing includes third distributed network gate are stated, the third outgoing interface is second distributed Tunnel Identifier between gateway and third distributed network gate;The third distributed network gate is configured with the second distributed network Central Shanxi Plain Gateway address that is identical and belonging to same network segment.
Second distributed network gate provided by the embodiments of the present application, for hardware view, hardware structure schematic diagram is specific It may refer to shown in Fig. 8.It include: machine readable storage medium and processor, in which:
Machine readable storage medium: store instruction code.
Processor: communicating with machine readable storage medium, read and execute stored in machine readable storage medium it is described Instruction code realizes the data-message transmission operation of the application above-mentioned example application.
Here, machine readable storage medium can be any electronics, magnetism, optics or other physical storage devices, can be with Include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, memory driver is (as hard Disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) perhaps similar storage medium or they Combination.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes computer usable program code that the embodiment of the present application, which can be used in 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 referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
Moreover, these computer program instructions also can store be able to guide computer or other programmable datas processing set In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates Manufacture including command device, the command device are realized in one process of flow chart or multiple processes and/or block diagram one The function of being specified in a box or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer Or the instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram The step of function of being specified in one box or multiple boxes.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (12)

1. a kind of data message transmission method, which is characterized in that the first distributed network gate is configured with the second distributed network Central Shanxi Plain Gateway address that is identical and belonging to same network segment, the method are applied to first distributed network gate, which comprises
The data message of the first host transmission is received, the purpose IP address of the data message is the IP address of the second host;
If local routing table is not present with the Host routes of the destination IP address matching and presence is returned with the destination IP address The matched network segment routing of the network segment of category, then according at least one first outgoing interface of network segment routing instruction to described second point Cloth gateway sends ARP request message, and the ARP request message includes the destination IP address;
If the first route messages including the destination IP address of the second distributed network gate transmission are received, in local routing Host routes are generated in table, the Host routes include the destination IP address and the second outgoing interface, and second outgoing interface is An outgoing interface at least one described first outgoing interface;
By the Host routes, the second host of Xiang Suoshu sends datagram.
2. the method according to claim 1, wherein the method also includes:
The secondary route message that second distributed network gate is sent is received, the secondary route message includes second distribution The gateway address of formula gateway;
Generate network segment routing in local routing table, network segment routing include second distributed network gate gateway address and First outgoing interface, first outgoing interface are the tunnel mark for receiving the secondary route message of first distributed network gate Know.
3. according to the method described in claim 2, it is characterized in that, described generate network segment routing in local routing table, comprising:
Judge the whether enabled ARP detecting function of the first distributed network gate;
If it is, generating the network segment routing in local routing table.
4. a kind of data message transmission method, which is characterized in that the first distributed network gate is configured with the second distributed network Central Shanxi Plain Gateway address that is identical and belonging to same network segment, the method are applied to second distributed network gate, which comprises
The ARP request message that first distributed network gate is sent is received, the purpose IP address of the ARP request message is second The IP address of host;
If the network segment of the destination IP address attribution is identical as the network segment that the gateway address of second distributed network gate belongs to, The ARP request message is broadcasted in double layer network;
If receiving the second host is directed to the arp reply message that the ARP request message returns, according to the arp reply report Text generates the first route messages, and the first via includes the destination IP address by message;
First route messages are sent to the first distributed network gate, so that first distributed network gate generates host road By, and by the Host routes to the second host forwarding data packets, the Host routes include the destination IP Location and the second outgoing interface, second outgoing interface are the tunnel mark for receiving the first route messages of first distributed network gate Know.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
Secondary route message is generated, the secondary route message includes the gateway address of the second distributed network gate;
The secondary route message is sent to the first distributed network gate, so that first distributed network gate generates network segment road By the network segment routing includes the gateway address and the first outgoing interface of the second distributed network gate, and first outgoing interface is described The Tunnel Identifier for receiving the secondary route message of first distributed network gate.
6. according to the method described in claim 4, it is characterized in that,
After the ARP request message for receiving the first distributed network gate transmission, further includes:
It is routed if existing in local routing table with the matched network segment of the network segment of the destination IP address attribution, according to the network segment At least one third outgoing interface of routing instruction sends the ARP request message;
Wherein, the network segment routing includes the gateway address and third outgoing interface of third distributed network gate, the third outgoing interface For the Tunnel Identifier between the second distributed network gate and third distributed network gate;The third distributed network gate and the second distribution Gateway address that is identical and belonging to same network segment is configured in gateway.
7. a kind of data-message transmission device, which is characterized in that the first distributed network gate is configured with the second distributed network Central Shanxi Plain Gateway address that is identical and belonging to same network segment, described device are applied to first distributed network gate, and described device includes:
Receiving module, for receiving the data message of the first host transmission, the purpose IP address of the data message is second main The IP address of machine;
Sending module, for when local routing table be not present with the Host routes of the destination IP address matching and exist with it is described When the network segment matched network segment routing of purpose IP address ownership, then first go out to connect according at least one of network segment routing instruction Mouth sends ARP request message to second distributed network gate, and the ARP request message includes the destination IP address;
Generation module, for when the first route messages including the destination IP address for receiving the transmission of the second distributed network gate When, then generating Host routes in local routing table, the Host routes include the destination IP address and the second outgoing interface, and Two outgoing interfaces are an outgoing interface at least one described first outgoing interface;
The sending module is also used to through the Host routes, and the second host of Xiang Suoshu sends datagram.
8. device according to claim 7, which is characterized in that
The receiving module is also used to receive the secondary route message that second distributed network gate is sent, the secondary route Message includes the gateway address of second distributed network gate;
The generation module is also used to generate network segment routing in local routing table, and the network segment routing includes described second point The gateway address of cloth gateway and the first outgoing interface, first outgoing interface are that receiving for first distributed network gate is described The Tunnel Identifier of secondary route message.
9. device according to claim 8, which is characterized in that
The generation module is specifically used for when generating network segment routing in local routing table:
Judge the whether enabled ARP detecting function of the first distributed network gate;
If it is, generating the network segment routing in local routing table.
10. a kind of data-message transmission device, which is characterized in that the first distributed network gate is configured with the second distributed network Central Shanxi Plain Gateway address that is identical and belonging to same network segment, described device are applied to second distributed network gate, and described device includes:
Receiving module, the ARP request message sent for receiving first distributed network gate, the mesh of the ARP request message IP address be the second host IP address;
Sending module, for belonging to when the network segment of the destination IP address attribution and the gateway address of second distributed network gate Network segment it is identical when, then the ARP request message is broadcasted in double layer network;
Generation module, for when receiving the arp reply message that the second host is returned for the ARP request message, then root The first route messages are generated according to the arp reply message, the first via includes the destination IP address by message;
The sending module is also used to first route messages being sent to the first distributed network gate, so that described first point Cloth gateway generates Host routes, and passes through the Host routes to the second host forwarding data packets, the host road By including the destination IP address and the second outgoing interface, second outgoing interface is that first distributed network gate receives the The Tunnel Identifier of one route messages.
11. device according to claim 10, which is characterized in that the generation module is also used to generate secondary route and disappears Breath, the secondary route message includes the gateway address of the second distributed network gate;
The sending module is also used to the secondary route message being sent to the first distributed network gate, so that described first point Cloth gateway generates network segment routing, and the network segment routing includes the gateway address and the first outgoing interface of the second distributed network gate, institute State the Tunnel Identifier for receiving the secondary route message that the first outgoing interface is first distributed network gate.
12. device according to claim 10, which is characterized in that the sending module is also used to when in local routing table When in the presence of being routed with the matched network segment of the network segment of the destination IP address attribution, then according at least the one of network segment routing instruction A third outgoing interface sends the ARP request message;
Wherein, the network segment routing includes the gateway address and third outgoing interface of third distributed network gate, the third outgoing interface For the Tunnel Identifier between the second distributed network gate and third distributed network gate;The third distributed network gate and the second distribution Gateway address that is identical and belonging to same network segment is configured in gateway.
CN201811110400.2A 2018-09-21 2018-09-21 Data message transmission method and device Active CN109412949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811110400.2A CN109412949B (en) 2018-09-21 2018-09-21 Data message transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811110400.2A CN109412949B (en) 2018-09-21 2018-09-21 Data message transmission method and device

Publications (2)

Publication Number Publication Date
CN109412949A true CN109412949A (en) 2019-03-01
CN109412949B CN109412949B (en) 2021-02-26

Family

ID=65465069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811110400.2A Active CN109412949B (en) 2018-09-21 2018-09-21 Data message transmission method and device

Country Status (1)

Country Link
CN (1) CN109412949B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988221A (en) * 2020-08-31 2020-11-24 网易(杭州)网络有限公司 Data transmission method, data transmission device, storage medium and electronic equipment
CN112866119A (en) * 2020-12-30 2021-05-28 迈普通信技术股份有限公司 Virtual extensible local area network communication method and device, electronic equipment and storage medium
CN114221834A (en) * 2021-11-24 2022-03-22 新华三技术有限公司合肥分公司 Message forwarding method and device
CN115865801A (en) * 2022-12-01 2023-03-28 中兴通讯股份有限公司 Message transmission method, electronic device and storage medium
CN116915777A (en) * 2023-09-13 2023-10-20 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137024A (en) * 2011-04-19 2011-07-27 福建星网锐捷网络有限公司 Message processing method, exit routing device and border routing device
US20150372906A1 (en) * 2013-02-05 2015-12-24 Byo Networks Method for routing data, computer program, network controller and network associated therewith
WO2016055027A1 (en) * 2014-10-10 2016-04-14 Hangzhou H3C Technologies Co., Ltd. Table entry in software defined network
CN105704033A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Realization method of passive optical network (PON)device route forwarding table management
CN106878168A (en) * 2017-03-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN106921578A (en) * 2017-03-14 2017-07-04 新华三技术有限公司 The generation method and device of a kind of forwarding-table item
CN107070790A (en) * 2016-12-16 2017-08-18 浙江宇视科技有限公司 A kind of route learning method and routing device
CN108259347A (en) * 2017-05-19 2018-07-06 新华三技术有限公司 A kind of message transmitting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137024A (en) * 2011-04-19 2011-07-27 福建星网锐捷网络有限公司 Message processing method, exit routing device and border routing device
US20150372906A1 (en) * 2013-02-05 2015-12-24 Byo Networks Method for routing data, computer program, network controller and network associated therewith
WO2016055027A1 (en) * 2014-10-10 2016-04-14 Hangzhou H3C Technologies Co., Ltd. Table entry in software defined network
CN105704033A (en) * 2016-01-08 2016-06-22 烽火通信科技股份有限公司 Realization method of passive optical network (PON)device route forwarding table management
CN107070790A (en) * 2016-12-16 2017-08-18 浙江宇视科技有限公司 A kind of route learning method and routing device
CN106921578A (en) * 2017-03-14 2017-07-04 新华三技术有限公司 The generation method and device of a kind of forwarding-table item
CN106878168A (en) * 2017-03-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN108259347A (en) * 2017-05-19 2018-07-06 新华三技术有限公司 A kind of message transmitting method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988221A (en) * 2020-08-31 2020-11-24 网易(杭州)网络有限公司 Data transmission method, data transmission device, storage medium and electronic equipment
CN111988221B (en) * 2020-08-31 2022-09-13 网易(杭州)网络有限公司 Data transmission method, data transmission device, storage medium and electronic equipment
CN112866119A (en) * 2020-12-30 2021-05-28 迈普通信技术股份有限公司 Virtual extensible local area network communication method and device, electronic equipment and storage medium
CN114221834A (en) * 2021-11-24 2022-03-22 新华三技术有限公司合肥分公司 Message forwarding method and device
CN114221834B (en) * 2021-11-24 2024-03-12 新华三技术有限公司合肥分公司 Message forwarding method and device
CN115865801A (en) * 2022-12-01 2023-03-28 中兴通讯股份有限公司 Message transmission method, electronic device and storage medium
CN116915777A (en) * 2023-09-13 2023-10-20 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation
CN116915777B (en) * 2023-09-13 2023-12-05 杭州立方控股股份有限公司 Intelligent parking management system and method for seat personnel cooperation

Also Published As

Publication number Publication date
CN109412949B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN109412949A (en) A kind of data message transmission method and device
US7944854B2 (en) IP security within multi-topology routing
CN113645136B (en) Method, network node and network system for forwarding message in network
CN108259347A (en) A kind of message transmitting method and device
CN108718278B (en) Message transmission method and device
CN108259299A (en) A kind of forwarding-table item generation method, device and machine readable storage medium
CN108965092B (en) Data message transmission method and device
CN105612722A (en) Virtual network routing
CN103200069A (en) Message processing method and device
CN107547242B (en) The acquisition methods and device of VM configuration information
CN103259725A (en) Messaging method and network equipment
CN108600109A (en) A kind of message forwarding method and device
US20200280507A1 (en) Electing designated forwarder
CN106936680B (en) System and method for intercommunication among heterogeneous networks of cloud computing platform
CN107547391A (en) A kind of message transmitting method and device
CN105681198A (en) Business chain processing method, device and system
CN109412926A (en) A kind of tunnel establishing method and device
JP2019521619A (en) Packet forwarding
CN109347740A (en) Message forwarding method and device
CN109379241A (en) A kind of routing information determines method and device
US10681126B2 (en) Mechanism for overlay virtual networking
CN107547346A (en) A kind of message transmitting method and device
CN108718276A (en) A kind of message forwarding method and device
CN108322376B (en) Route synchronization method, device and machine-readable storage medium
CN105227498B (en) Stacking network interchanger and its method used

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