CN102752210A - Inter-LAN (local area network) message transmission method and system - Google Patents

Inter-LAN (local area network) message transmission method and system Download PDF

Info

Publication number
CN102752210A
CN102752210A CN2012102367213A CN201210236721A CN102752210A CN 102752210 A CN102752210 A CN 102752210A CN 2012102367213 A CN2012102367213 A CN 2012102367213A CN 201210236721 A CN201210236721 A CN 201210236721A CN 102752210 A CN102752210 A CN 102752210A
Authority
CN
China
Prior art keywords
lan
area network
local area
tunnel
message
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
CN2012102367213A
Other languages
Chinese (zh)
Other versions
CN102752210B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201210236721.3A priority Critical patent/CN102752210B/en
Publication of CN102752210A publication Critical patent/CN102752210A/en
Application granted granted Critical
Publication of CN102752210B publication Critical patent/CN102752210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides an inter-LAN (local area network) message transmission method and system. In the method, a first LAN is connected with the router of another LAN through at least two Ethernet EoIP tunnels corresponding to the same port on the router by the following steps of: when a first unicast message sent by the first equipment in the first LAN to the second equipment in another LAN is received, the router of the first LAN searches for the EoIP tunnel used for sending the unicast message to the second equipment from the locally-recorded EoIP tunnels used for sending unicast messages to all equipment; if the EoIP tunnel is found, the router of the first LAN sends a first unicast message through the local EoIP tunnel connected with the LAN; otherwise, the router of the first LAN sends the first unicast message through each EoIP tunnel on the port; and after receiving a second unicast message fed back by the second equipment for the first unicast message, the router of the first LAN sends the second unicast message to the first equipment.

Description

The method and system of message transmission between a kind of local area network (LAN)
Technical field
The present invention relates to network communication field, relate in particular to the method and system of message transmission between a kind of local area network (LAN).
Background technology
EtherIP is a kind of two layer tunnel technology.In actual networking; Set up a router outward through two local area network (LAN)s, between two routers, set up an EtherIP tunnel, realize two sections local area network (LAN) (Local Area Network; LAN) two of network layers of interconnection make the equipment in two networks can look like mutual access in a local area network (LAN).Its implementation is that the two layer message of LAN side is transmitted in the three layers of IP network through the encapsulation IP tunnel, matees according to source IP and tunnel after arriving termination point of a tunnel, sends the arrival user network toward corresponding LAN mouth then, so also can be described as the EoIP tunnel.
The sketch map of the network that Fig. 1 obtains for the networking of available technology adopting EoIP technology.Wherein PC1, PC2 and PC3 all belong to LAN, through the EoIP tunnel between route R1, R2 and the R3, make three local area network (LAN)s form one " big local area network (LAN) ", have realized the transmission of data between local area network (LAN).
RFC3378 has stipulated the realization principle and the mechanism in EoIP tunnel.
EoIP is divided into transmission flow and receives flow process in the message handling process, wherein:
Transmission flow comprises: for message to be sent, when the purpose MAC that has only message to be sent is not the port mac in this local area network (LAN), just gets into the EoIP tunnel and transmit; And for the Ethernet message that gets into the EoIP tunnel, according to the RFC3378 encapsulation, encapsulation back purpose IP is the tunnel far-end IP, transmits according to the corresponding outlet of route querying.
The reception flow process comprises: the distal side is according to the IP type of message, and identification EoIP peels off outer IP head, searches corresponding EOIP tunnel according to source IP, and the interface corresponding from the tunnel sends.
What EoIP realized in the prior art is the only corresponding EoIP tunnel of a LAN mouth; The data that eth0 port for example shown in Figure 1 receives can only be transmitted through EoIP1; Can not transmit through EoIP2; Therefore can only realize two layers of visit of P2P, the networking that can not solve P2MP is used, and makes networking that limitation arranged very much.
Summary of the invention
The method and system of message transmission between a kind of local area network (LAN) provided by the invention, the technical problem that solve are that the networking that how to realize corresponding many EoIP tunnels of a LAN mouth is used.
For solving the problems of the technologies described above, the invention provides following technical scheme:
The method of message transmission between a kind of local area network (LAN), the first local Netcom crosses same port is corresponding on the router at least two ethernet network EoIP tunnels said method that links to each other with the router of other local area network (LAN)s and comprises:
First equipment is when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends in receiving first local area network (LAN); The router of first local area network (LAN) the employed EoIP tunnel, is searched employed EoIP tunnel when this second equipment sends unicast message from local record when each equipment sends unicast message;
If find employed EoIP tunnel when this second equipment sends unicast message, then the EoIP tunnel that only links to each other with this local area network (LAN) through this locality of the router of first local area network (LAN) sends said first unicast message; Otherwise every EoIP tunnel all sends said first unicast message on this port;
After receiving second unicast message of second equipment to said first unicast message feedback, the router of first local area network (LAN) sends said second unicast message to said first equipment.
Preferably, said method also has following characteristics: said method also comprises:
After receiving second unicast message of said second equipment to said first unicast message feedback; The router of first local area network (LAN) obtains the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message.
Preferably, said method also has following characteristics:
When receiving first unicast message, the router records of first local area network (LAN) receives the port of this first unicast message of transmission, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, the router of first local area network (LAN) sends said second unicast message to said first equipment, comprising:
According to the information of employed port when first equipment sends unicast message of having preserved, use corresponding port to send said second unicast message to said first equipment.
Preferably; Said method also has following characteristics: if link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
Preferably, said method also has following characteristics:
The route reachable state of active/standby tunnel between router records first local area network (LAN) of first local area network (LAN) and said second local area network (LAN);
When carrying out message transmissions with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
Preferably, said method also has following characteristics: the route reachable state of active/standby tunnel is to send the ping bag through the next-hop node to route separately to detect between said first local area network (LAN) and said second local area network (LAN).
Preferably, said method also has following characteristics:
Between local area network (LAN), carry out the multicast message transmission; When the tunnel receives multicast message; The router of first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) is to the source IP address in the source IP address of this multicast message and the EoIP tunnel of this channel message of transmission identical detection the whether, and only the source IP address different message of source IP address with the EoIP tunnel that transmits this channel message sent.
Preferably, said method also has following characteristics: said method also comprises:
When said other local area network (LAN)s send broadcasting packet or multicast message, the router of first local area network (LAN) all sends said broadcasting or multicast message on corresponding every the EoIP tunnel of this port.
The system of message transmission between a kind of local area network (LAN), the first local Netcom cross at least two ethernet network EoIP tunnels that same port is corresponding on the router and link to each other with the router of other local area network (LAN)s, and the router of wherein said first local area network (LAN) comprises:
Search device; Be used in receiving first local area network (LAN) first equipment when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends;, each equipment the employed EoIP tunnel, searches employed EoIP tunnel when this second equipment sends unicast message from local record when sending unicast message;
First dispensing device; Link to each other with the said device of searching; If be used for finding employed EoIP tunnel when this second equipment sends unicast message, then the EoIP tunnel that only links to each other with this local area network (LAN) through this locality of the router of first local area network (LAN) sends said first unicast message; Otherwise every EoIP tunnel all sends said first unicast message on this port;
Second dispensing device is used for after receiving second unicast message of second equipment to said first unicast message feedback, and the router of first local area network (LAN) sends said second unicast message to said first equipment.
Preferably, said system also has following characteristics: said system also comprises:
First tape deck; Link to each other and be used for after receiving second unicast message of said second equipment with the said device of searching said first unicast message feedback; Obtain the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message.
Preferably, said system also has following characteristics: said system also comprises:
Second tape deck; Link to each other with said second dispensing device; Be used for when receiving first unicast message, the router records of first local area network (LAN) receives the port of this first unicast message of transmission, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, said second dispensing device uses corresponding port to send said second unicast message to said first equipment according to the information of employed port when first equipment sends unicast message of having preserved.
Preferably; Said system also has following characteristics: if link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
Preferably, said system also has following characteristics: said first dispensing device comprises:
Logging modle is used to write down the route reachable state of active/standby tunnel between first local area network (LAN) and said second local area network (LAN);
Sending module is used for when carrying out message transmissions with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
Preferably, said system also has following characteristics: the route reachable state of active/standby tunnel is to detect through sending the ping bag to the next-hop node of route separately between first local area network (LAN) of said logging modle record and said second local area network (LAN).
Preferably, said system also has following characteristics: the router of said first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) includes:
Checkout gear is used between local area network (LAN), carrying out multicast message transmission, when when the tunnel receives multicast message, to the source IP address in the source IP address of this multicast message and the EoIP tunnel that transmits this channel message identical detection the whether;
The 3rd dispensing device is used for only the source IP address different message of source IP address with the EoIP tunnel of this channel message of transmission being sent.
Preferably, said system also has following characteristics: said system also comprises:
The 4th dispensing device is used for when said other local area network (LAN)s send broadcasting packet or multicast message, and the router of first local area network (LAN) all sends said broadcasting or multicast message on corresponding every the EoIP tunnel of this port.
Embodiment provided by the invention; When many tunnels of a lan port correspondence; When inquiring about this unicast message of said transmission the EoIP tunnel that will use, carry out message according to Query Result and send, realized that the networking in corresponding many EoIP tunnels of individual LAN mouth is used.
Description of drawings
The sketch map of the network that Fig. 1 obtains for the networking of available technology adopting EoIP technology;
Fig. 2 is the schematic flow sheet of the method embodiment of message transmission between local area network (LAN) provided by the invention;
The sketch map of the network that Fig. 3 obtains for the networking of employing provided by the invention EoIP technology;
Fig. 4 is the structural representation of the system embodiment of message transmission between local area network (LAN) provided by the invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment that the present invention is made further detailed description below.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Fig. 2 is the schematic flow sheet of the method embodiment of message transmission between local area network (LAN) provided by the invention.Among the method embodiment shown in Figure 2, the first local Netcom crosses at least two ethernet network EoIP tunnels that same port is corresponding on the router and links to each other with the router of other local area network (LAN)s, and said method comprises:
Step 201, in receiving first local area network (LAN) first equipment when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends; The router of first local area network (LAN) the employed EoIP tunnel, is searched employed EoIP tunnel when this second equipment sends unicast message from local record when each equipment sends unicast message;
If find employed EoIP tunnel when this second equipment sends unicast message, then execution in step 202; Otherwise, execution in step 203;
The EoIP tunnel that the router of step 202, first local area network (LAN) only links to each other with this local area network (LAN) through this locality sends said first unicast message, and after receiving second unicast message of second equipment to said first unicast message feedback, execution in step 204;
The router of step 203, first local area network (LAN) every EoIP tunnel on this port all sends said first unicast message, and after receiving second unicast message of second equipment to said first unicast message feedback, execution in step 204;
The router of step 204, first local area network (LAN) sends said second unicast message to said first equipment.
Need to prove; Local area network (LAN) lan port is only corresponding with an EoIP tunnel in the prior art; So, the message that this lan port is received need not employed EoIP tunnel is selected when sending, and when these many EoIP tunnels of same port correspondence, through searching through sending this message in which bar tunnel; Under the situation of searching, still use this first unicast message of a tunnel transmission; Otherwise, send through the mode of broadcasting.
Wherein, Employed EoIP tunnel is to learn through the MAC Address of message that the EoIP tunnel is received when each equipment sends unicast message; Write down a certain equipment employed EoIP tunnel when first local area network (LAN) sends message in other local area network (LAN)s, the information of learning is applied to this locality when this first equipment sends message, uses.Specifically; After receiving second unicast message of said first equipment to said first unicast message feedback; The router of first local area network (LAN) obtains the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this first equipment sends unicast message.
Can know by last analysis; Method embodiment provided by the invention; When many tunnels of a lan port correspondence; When inquiring about this unicast message of said transmission the EoIP tunnel that will use, carry out message according to Query Result and send, realized that the networking in corresponding many EoIP tunnels of individual LAN mouth is used.
With an application example method embodiment provided by the invention is described further below:
The sketch map of the network that Fig. 3 obtains for the networking of employing provided by the invention EoIP technology.Convenient identification, for the router in EoIP tunnel on the local area network (LAN), a side that links to each other with equipment in the local area network (LAN) is called the AC side, and the side that router is linked to each other with the EoIP tunnel is called the PW side.As shown in Figure 3, the side that R1 links to each other with PC1 is the AC side, the side that R1 links to each other with the EoIP tunnel is the PW side.
Steps A 01, router obtain the corresponding a plurality of EoIP tunnel of a port in the local area network (LAN) under this router, and wherein the EoIP tunnel is that the IP address of the router through these two ends, tunnel identifies.
With R1 among Fig. 3 is that example describes, after the user disposes corresponding EoIP1 of eth0 port and EoIP2, to the above-mentioned line item that is configured into.Specifically referring to table 1:
Index The AC sign PW EoIP source IP EoIP purpose IP
1 Eth0 EoIP1 The IP address of R1 The IP address of R2
2 Eth0 EoIP2 The IP address of R1 The IP address of R3
Table 1
During steps A 02, said router first unicast message that second equipment of first equipment in said at least two local area network (LAN)s sends in receiving first local area network (LAN); The port of this first unicast message is transmitted in recorder, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, for router R1, the equipment in this local area network (LAN) of subtend sends the mode that employed port can employing table 2 and carries out record:
?Index AC MAC
?1 Eth0 The MAC of PC1
Table 2
Steps A 03, router the employed EoIP tunnel, are searched employed EoIP tunnel when this second equipment sends unicast message from local record when each equipment sends unicast message;
Wherein, for router R1, the mode that employed EoIP tunnel can employing table 3 when each equipment sent unicast message is carried out record:
Index PW DMAC Nexthop status
1 EoIP1 The MAC of PC2 R2 active
2 EoIP1 R3 No_active
3 EoIP2 The MAC of PC3 R3
Table 3
Wherein, the back literary composition that acts on of the status list item in the table 3 describes;
If find, execution in step A04 then; Otherwise, execution in step A05;
The EoIP tunnel that the router of steps A 04, first local area network (LAN) only links to each other with this local area network (LAN) through this locality sends said first unicast message;
Employed tunnel is the EoIP1 tunnel when this second equipment sends unicast message if router finds, and then only sends said first unicast message from the EoIP1 tunnel;
The router of steps A 05, first local area network (LAN) every EoIP tunnel on this port all sends said first unicast message;
If router does not find employed tunnel when this second equipment sends unicast message, then on EoIP1 tunnel and EoIP2 tunnel, all send said first unicast message;
Above-mentioned steps A02~A05 is that router passes through the flow process that the EoIP tunnel sends message, and these two of the ports that devices communicating institute will use in the tunnel that wherein will use for inquiry institute and record and the local area network are operated the execution sequence that does not have strictness.
Continue below the processing that router receives behind the message from the EoIP tunnel is described:
Router is after receiving second unicast message of second equipment to this first unicast message feedback, according to the send mode of first unicast message, to the following two kinds of dispositions of second unicast message:
If first unicast message of only sending from tunnel with the mode in the steps A 04 then after receiving second unicast message, is directly sent said second unicast message to first equipment;
If with mode second unicast message of sending of the mode in the steps A 05 with broadcasting; Then represent this router do not learn as yet when second equipment sends unicast message the tunnel that will use; Then obtain the tunnel of this second unicast message of transmission; Must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message, thereby make the follow-up mode that when second equipment sends unicast message, need not to use broadcasting again.
And for the operation of sending second unicast message to first equipment; Because in above-mentioned steps A02; Router has write down local and the employed port of this first devices communicating, then only sends second unicast message through this port and gets final product, and also need not second unicast message is broadcasted transmission.
For above-mentioned flow process, first part of message should be arranged in the scene is R1 from the broadcasting packet in the full EoIP tunnel that Eth0 collects is that example describes above-mentioned steps with shown in Figure 1:
Because the message that will send is a broadcasting packet; R1 sends according to the EoIP tunnel encapsulation from all EoIP tunnels; Promptly all send portion from EoIP1 and EoIP2, R1 looks into next jumping of the corresponding route of tunnel purpose IP when sending, send from different outgoing interfaces; Need learn the MAC Address of PC1 simultaneously, be recorded as the form of table 2.
After R2 receives this message; Source IP address according to the tunnel matees; Protocol number 97 according to the IP the inside identifies the EoIP message simultaneously, removes the EoIP head, the source MAC of study message the inside; Generate the DMAC list item (should be the MAC of PC1) in the similar table 3 here, and in the equipment of hanging down, broadcast this message.
After R3 received this message, processing mode was the same with R2, set up the DMAC list item of similar table 3 and the corresponding relation of EoIP, and in the equipment of hanging down, broadcasted this message.
By on can find out because first part of message that router R1 sends is broadcasting packet, made things convenient for of the study of each router to MAC Address; In addition; Also can find out, when many EoIP tunnels of a port correspondence, for the transmission of broadcasting packet; Be on every corresponding tunnel of this lan port, all to send a said broadcasting packet; Certainly in like manner can draw, if multicast message all sends a said multicast message too on every corresponding tunnel of this lan port.
The message forwarding process is following:
With PC2 is example; When follow-up PC2 wants to visit PC1, because purpose MAC had before learnt, so the purpose MAC that PC2 gives out a contract for a project extends this as the MAC of PC1; After message arrives R2; R2 to corresponding PW, finds concrete EoIP1 according to corresponding purpose IP encapsulation EoIP tunnel head according to DMAC according to AC side configuration association, jumps into row according to next then and transmits.
Message is after sending to R1; Judge it is the EoIP message according to IP protocol number 97; Remove the EoIP head then, learnt then directly to skip this flow process and proceeded to descending AC side forwarding, know toward which LAN mouth through look-up table 2 corresponding DMAC information and send as finding MAC Address.So far, accomplish from the forwarding process between PC2 and the PC1.
In like manner, PC1 also can visit PC3 according to table 3.
More than processing can solve as PC1, PC2, when PC3 is in the same network segment together, can promptly realize the P2MP visit under the EoIP environment in the visit under the same AC access situation each other.More than for the processing mode of clean culture MAC message.
Optional; If link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
Referring to structure shown in Figure 3, for router R1, the route that EoIP tunnel purpose IP is corresponding is of equal value, and next jumping is respectively R2, R3.Promptly for the tunnel between router R1 and the R2, main tunnel is the EoIP1 tunnel, and over run tunnel is EoIP2 tunnel and EoIP3 tunnel.
If between said first local area network (LAN) and said second local area network (LAN) active/standby tunnel is arranged, the route reachable state of active/standby tunnel between router records first local area network (LAN) of first local area network (LAN) and said second local area network (LAN);
When carrying out transfer of data with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
Still above example describes, the EoIP1 tunneling between R1 and R2 just often, then message can from, then transmit from the EoIP1 tunnel, if during the EoIP1 tunnel failure between R1 and the R2, then from EoIP2 tunnel and EoIP3 tunnel transmission to R2.
Because tunnel purpose IP exists under the situation of route backup; The preferred route that is tunnel IP is R1-R2, and hypo-optimal route is R1---R3---R2, then need write down the user mode of these two routes; Referring to the Status sign of record in the table 3, it comprises active/no_active.Transmit beginning and transmit with the path between the R1---R2, behind link DOWN between the R1---R2, its corresponding Status is designated no_active, and the Status sign of hypo-optimal route originally becomes active, and message will be transmitted from R1-R3---R2.
The route reachable state of active/standby tunnel is to send the ping bag through the next-hop node to route separately to detect between said first local area network (LAN) and said second local area network (LAN).As on R1, detect through launching route next jump (concrete grammar can through continuous transmission PING wrap this next jumping see whether can reach detect); When the link between R1 and the R2 is disconnected; Because route detects and works, whether all can perceive next jumping and can reach, when unreachable; Represent that promptly main tunnel is unreachable, then over run tunnel is switched to new master and carry out transfer of data with the tunnel.
If between first local area network (LAN) and said second local area network (LAN) active/standby tunnel is arranged; Between local area network (LAN), carry out the multicast message transmission; When the tunnel receives multicast message; The router of first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) is to the source IP address in the source IP address of this multicast message and the EoIP tunnel of this channel message of transmission identical detection the whether, and only the source IP address different message of source IP address with the EoIP tunnel that transmits this channel message sent.
In last example, two local area network (LAN)s communicate through active/standby tunnel, therefore; When carrying out the multicast message transmission; When receiving the EoIP message, (judge), when carrying out the multicast message transmission, when receiving multicast message through IP protocol number 97; If it is identical with the source IP address in the EoIP tunnel of this channel message of transmission to detect the source IP address of this multicast message, then abandon this message
Receive flow process intermediate ring road testing process through above-mentioned EoIP, avoid in packet transmission course flow to form the problem of loop through getting back to the tunnel source website after three layers of route.
Fig. 4 is the structural representation of the system embodiment of message transmission between local area network (LAN) provided by the invention.In conjunction with method embodiment shown in Figure 2, in the system shown in Figure 4, the first local Netcom crosses at least two ethernet network EoIP tunnels that same port is corresponding on the router and links to each other with the router of other local area network (LAN)s, and the router of wherein said first local area network (LAN) comprises:
Search device 401; Be used in receiving first local area network (LAN) first equipment when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends;, each equipment the employed EoIP tunnel, searches employed EoIP tunnel when this second equipment sends unicast message from local record when sending unicast message;
First dispensing device 402; Link to each other with the said device 401 of searching; If be used for finding employed EoIP tunnel when this second equipment sends unicast message, then the EoIP tunnel that only links to each other with this local area network (LAN) through this locality of the router of first local area network (LAN) sends said first unicast message; Otherwise every EoIP tunnel all sends said first unicast message on this port;
Second dispensing device 403 is used for after receiving second unicast message of second equipment to said first unicast message feedback, and the router of first local area network (LAN) sends said second unicast message to said first equipment.
Optional, said system also comprises:
First tape deck 404; Link to each other with the said device 401 of searching; Be used for after receiving second unicast message of said second equipment said first unicast message feedback; Obtain the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message.
Optional, said system also comprises:
Second tape deck 405; Link to each other with said second dispensing device 403; Be used for when receiving first unicast message, the router records of first local area network (LAN) receives the port of this first unicast message of transmission, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, said second dispensing device 403 uses corresponding port to send said second unicast message to said first equipment according to the information of employed port when first equipment sends unicast message of having preserved.
If link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
Wherein, said first dispensing device 402 comprises:
Logging modle is used to write down the route reachable state of active/standby tunnel between first local area network (LAN) and said second local area network (LAN);
Sending module is used for when carrying out message transmissions with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
Wherein, the route reachable state of active/standby tunnel is to detect through sending the ping bag to the next-hop node of route separately between first local area network (LAN) of said logging modle record and said second local area network (LAN).
Wherein, the router of said first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) includes:
Checkout gear is used between local area network (LAN), carrying out multicast message transmission, when when the tunnel receives multicast message, to the source IP address in the source IP address of this multicast message and the EoIP tunnel that transmits this channel message identical detection the whether;
The 3rd dispensing device is used for only the source IP address different message of source IP address with the EoIP tunnel of this channel message of transmission being sent.
Wherein, said system also comprises:
The 4th dispensing device is used for when said other local area network (LAN)s send broadcasting packet or multicast message, and the router of first local area network (LAN) all sends said broadcasting or multicast message on corresponding every the EoIP tunnel of this port.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection range of claim.

Claims (16)

1. the method for message transmission between a local area network (LAN) is characterized in that, the first local Netcom crosses same port is corresponding on the router at least two ethernet network EoIP tunnels said method that links to each other with the router of other local area network (LAN)s and comprises:
First equipment is when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends in receiving first local area network (LAN); The router of first local area network (LAN) the employed EoIP tunnel, is searched employed EoIP tunnel when this second equipment sends unicast message from local record when each equipment sends unicast message;
If find employed EoIP tunnel when this second equipment sends unicast message, then the EoIP tunnel that only links to each other with this local area network (LAN) through this locality of the router of first local area network (LAN) sends said first unicast message; Otherwise every EoIP tunnel all sends said first unicast message on this port;
After receiving second unicast message of second equipment to said first unicast message feedback, the router of first local area network (LAN) sends said second unicast message to said first equipment.
2. method according to claim 1 is characterized in that, said method also comprises:
After receiving second unicast message of said second equipment to said first unicast message feedback; The router of first local area network (LAN) obtains the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message.
3. method according to claim 1 is characterized in that:
When receiving first unicast message, the router records of first local area network (LAN) receives the port of this first unicast message of transmission, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, the router of first local area network (LAN) sends said second unicast message to said first equipment, comprising:
According to the information of employed port when first equipment sends unicast message of having preserved, use corresponding port to send said second unicast message to said first equipment.
4. method according to claim 1; It is characterized in that; If link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
5. method according to claim 4 is characterized in that:
The route reachable state of active/standby tunnel between router records first local area network (LAN) of first local area network (LAN) and said second local area network (LAN);
When carrying out message transmissions with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
6. method according to claim 5 is characterized in that, the route reachable state of active/standby tunnel is to send the ping bag through the next-hop node to route separately to detect between said first local area network (LAN) and said second local area network (LAN).
7. method according to claim 4 is characterized in that, said method also comprises:
Between local area network (LAN), carry out the multicast message transmission; When the tunnel receives multicast message; The router of first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) is to the source IP address in the source IP address of this multicast message and the EoIP tunnel of this channel message of transmission identical detection the whether, and only the source IP address different message of source IP address with the EoIP tunnel that transmits this channel message sent.
8. method according to claim 1 is characterized in that, said method also comprises:
When said other local area network (LAN)s send broadcasting packet or multicast message, the router of first local area network (LAN) all sends said broadcasting or multicast message on corresponding every the EoIP tunnel of this port.
9. the system of message transmission between a local area network (LAN) is characterized in that, the first local Netcom crosses at least two ethernet network EoIP tunnels that same port is corresponding on the router and links to each other with the router of other local area network (LAN)s, and the router of wherein said first local area network (LAN) comprises:
Search device; Be used in receiving first local area network (LAN) first equipment when first unicast message that one second equipment that is positioned at other local area network (LAN)s sends;, each equipment the employed EoIP tunnel, searches employed EoIP tunnel when this second equipment sends unicast message from local record when sending unicast message;
First dispensing device; Link to each other with the said device of searching; If be used for finding employed EoIP tunnel when this second equipment sends unicast message, then the EoIP tunnel that only links to each other with this local area network (LAN) through this locality of the router of first local area network (LAN) sends said first unicast message; Otherwise every EoIP tunnel all sends said first unicast message on this port;
Second dispensing device is used for after receiving second unicast message of second equipment to said first unicast message feedback, and the router of first local area network (LAN) sends said second unicast message to said first equipment.
10. system according to claim 9 is characterized in that, said system also comprises:
First tape deck; Link to each other and be used for after receiving second unicast message of said second equipment with the said device of searching said first unicast message feedback; Obtain the tunnel of this second unicast message of transmission, must arrive the tunnel and be recorded as employed EoIP tunnel when this second equipment sends unicast message.
11. system according to claim 9 is characterized in that, said system also comprises:
Second tape deck; Link to each other with said second dispensing device; Be used for when receiving first unicast message, the router records of first local area network (LAN) receives the port of this first unicast message of transmission, and this port is preserved as employed port when first equipment sends unicast message;
Wherein, said second dispensing device uses corresponding port to send said second unicast message to said first equipment according to the information of employed port when first equipment sends unicast message of having preserved.
12. system according to claim 9; It is characterized in that; If link to each other through the EoIP tunnel between second local area network (LAN) and the 3rd local area network (LAN) in said other local area network (LAN)s; Then the common over run tunnel that constitutes EoIP tunnel between first local area network (LAN) and second local area network (LAN) in the EoIP tunnel between EoIP tunnel between first local area network (LAN) and the 3rd local area network (LAN) and the 3rd local area network (LAN) and second local area network (LAN) is used the tunnel with EoIP tunnel between first local area network (LAN) and second local area network (LAN) as the master.
13. system according to claim 12 is characterized in that, said first dispensing device comprises:
Logging modle is used to write down the route reachable state of active/standby tunnel between first local area network (LAN) and said second local area network (LAN);
Sending module is used for when carrying out message transmissions with second local area network (LAN), if the main route with the tunnel between first local area network (LAN) of record and said second local area network (LAN) can reach, then the router of first local area network (LAN) uses the master to carry out transfer of data with the tunnel; Otherwise the router of first local area network (LAN) carries out active/standby tunnel and switches, and uses the new master in switching back to carry out transfer of data with the tunnel.
14. system according to claim 13 is characterized in that, the route reachable state of active/standby tunnel is to detect through sending the ping bag to the next-hop node of route separately between first local area network (LAN) of said logging modle record and said second local area network (LAN).
15. method according to claim 12 is characterized in that, the router of said first local area network (LAN), second local area network (LAN) and the 3rd local area network (LAN) includes:
Checkout gear is used between local area network (LAN), carrying out multicast message transmission, when when the tunnel receives multicast message, to the source IP address in the source IP address of this multicast message and the EoIP tunnel that transmits this channel message identical detection the whether;
The 3rd dispensing device is used for only the source IP address different message of source IP address with the EoIP tunnel of this channel message of transmission being sent.
16. system according to claim 9 is characterized in that, said system also comprises:
The 4th dispensing device is used for when said other local area network (LAN)s send broadcasting packet or multicast message, and the router of first local area network (LAN) all sends said broadcasting or multicast message on corresponding every the EoIP tunnel of this port.
CN201210236721.3A 2012-07-09 2012-07-09 The method and system of message transmission between a kind of local area network (LAN) Active CN102752210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210236721.3A CN102752210B (en) 2012-07-09 2012-07-09 The method and system of message transmission between a kind of local area network (LAN)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210236721.3A CN102752210B (en) 2012-07-09 2012-07-09 The method and system of message transmission between a kind of local area network (LAN)

Publications (2)

Publication Number Publication Date
CN102752210A true CN102752210A (en) 2012-10-24
CN102752210B CN102752210B (en) 2015-10-14

Family

ID=47032114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210236721.3A Active CN102752210B (en) 2012-07-09 2012-07-09 The method and system of message transmission between a kind of local area network (LAN)

Country Status (1)

Country Link
CN (1) CN102752210B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
CN108983627A (en) * 2018-07-27 2018-12-11 广东美的制冷设备有限公司 Household appliance and its data sharing method, device and computer readable storage medium
CN109951871A (en) * 2019-04-04 2019-06-28 乐鑫信息科技(上海)股份有限公司 Detection method, device, terminal and the storage medium of node conflict
CN110022590A (en) * 2019-04-15 2019-07-16 上海未瞳信息技术有限公司 A kind of wireless access point Accreditation System based on local area network centralized management
CN111193671A (en) * 2019-12-20 2020-05-22 视联动力信息技术股份有限公司 Message processing method and device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980175A (en) * 2005-12-07 2007-06-13 日立通讯技术株式会社 Router and communication system
US20070237159A1 (en) * 2006-04-10 2007-10-11 Mariko Yamada Communication equipment
CN102263704A (en) * 2011-09-01 2011-11-30 杭州华三通信技术有限公司 Topology construction method and device supporting layer 2 interconnection of data centers
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980175A (en) * 2005-12-07 2007-06-13 日立通讯技术株式会社 Router and communication system
US20070237159A1 (en) * 2006-04-10 2007-10-11 Mariko Yamada Communication equipment
CN102263704A (en) * 2011-09-01 2011-11-30 杭州华三通信技术有限公司 Topology construction method and device supporting layer 2 interconnection of data centers
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
CN103841023B (en) * 2012-11-22 2017-03-08 华为技术有限公司 The method and apparatus of data forwarding
CN108983627A (en) * 2018-07-27 2018-12-11 广东美的制冷设备有限公司 Household appliance and its data sharing method, device and computer readable storage medium
CN108983627B (en) * 2018-07-27 2022-06-17 广东美的制冷设备有限公司 Household appliance and data sharing method and device thereof, and computer readable storage medium
CN109951871A (en) * 2019-04-04 2019-06-28 乐鑫信息科技(上海)股份有限公司 Detection method, device, terminal and the storage medium of node conflict
CN110022590A (en) * 2019-04-15 2019-07-16 上海未瞳信息技术有限公司 A kind of wireless access point Accreditation System based on local area network centralized management
CN110022590B (en) * 2019-04-15 2021-03-16 上海未瞳信息技术有限公司 Wireless access point registration system based on local area network centralized management
CN111193671A (en) * 2019-12-20 2020-05-22 视联动力信息技术股份有限公司 Message processing method and device and readable storage medium

Also Published As

Publication number Publication date
CN102752210B (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN101674249B (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN101051995B (en) Protection switching method based on no connection network
CN109995654B (en) Method and device for transmitting data based on tunnel
CN100450039C (en) Fast convergence method and device of the end-to-end service
CN104243630B (en) MAC address learning method and device in VXLAN networks
CN102299835B (en) Ring network fault switching method and apparatus
CN102868614B (en) Message forwarding method in TRILL network and route-bridge
CN102333028A (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN101094155B (en) Method for establishing IPv6 tunnel, IPv6 tunnel communication method, and Ipv4 periphery devices
CN101534209B (en) A method and device for sending multicast messages
CN101977156B (en) Method, device and routing equipment for learning maximum transmission unit
CN101651630A (en) Switching method and switching device based on link fault
CN102143026A (en) Method for avoiding loop circuit in virtual layer 2 network
CN102752210B (en) The method and system of message transmission between a kind of local area network (LAN)
CN101471821B (en) Method and apparatus for detecting failure of operator backbone network transmission network
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
CN103269299A (en) Packet forwarding method and device in SPBM network
CN101355486A (en) Method, equipment and system for switching route
CN107547342B (en) Message broadcasting method and device based on VXLAN tunnel
CN102368727A (en) Crossed IP network TRILL network communication method, system thereof and devices
CN103259721A (en) Message transmitting method and device in SPBM network
US9860160B2 (en) Multipath switching using per-hop virtual local area network classification
CN101729361B (en) Method and device for processing message
CN110430131B (en) Message forwarding method and device
CN102355402B (en) Method, system and router for establishing LSP (Label Switched Path) based on VPN (Virtual Private Network) route

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant