CN104486217A - Cross network message transmitting method and equipment - Google Patents

Cross network message transmitting method and equipment Download PDF

Info

Publication number
CN104486217A
CN104486217A CN201410743057.0A CN201410743057A CN104486217A CN 104486217 A CN104486217 A CN 104486217A CN 201410743057 A CN201410743057 A CN 201410743057A CN 104486217 A CN104486217 A CN 104486217A
Authority
CN
China
Prior art keywords
network
message
address
forwarding
table item
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
CN201410743057.0A
Other languages
Chinese (zh)
Other versions
CN104486217B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410743057.0A priority Critical patent/CN104486217B/en
Publication of CN104486217A publication Critical patent/CN104486217A/en
Application granted granted Critical
Publication of CN104486217B publication Critical patent/CN104486217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a cross network message transmitting method and cross network message transmitting. By configuring designated special network instance identifications of different networks connected with network edge equipment to the network edge equipment, configuring a designated special network instance identification of a network where the network edge equipment is positioned to the network edge equipment and enabling a cross network switching function on the network edge equipment, switching of different network can be implemented on the network edge equipment and the cross network message transmitting method is implemented.

Description

The message forwarding method of across a network and equipment
Technical field
The application relates to the network communications technology, particularly the message forwarding method of across a network and equipment.
Background technology
At present, equipment cannot complete the conversion between heterogeneous networks.When heterogeneous networks connects, need to use many equipment, such as, need two equipment to be connector and the terminator of last network respectively, and need other two equipment to be connector and the terminator of a rear network.
EVI network is connected for SPB network, heterogeneous networks and the conversion between SPB network and EVI network can be realized owing to there is no a single equipment at present, an equipment is then just needed to be the terminator of SPB network, and need another equipment to be the connector of EVI network, equally, also need an equipment to be the connector of SPB network, and need another equipment to be the terminator of EVI network, this can cause whole network apparatus in networks quantity various, the complicated network structure.
Summary of the invention
This application provides message forwarding method and the equipment of across a network, to realize the conversion solved on an equipment between heterogeneous networks.
The technical scheme that the application provides comprises:
(technical scheme determines rear copy claims)
As can be seen from the above technical solutions, in the present invention, by configuring the appointed ad hoc network instance identification of heterogeneous networks that it connects at network edge device, and in the appointed different network example mark of the residing network of apparatus for network node configuration, and in the enable across a network translation function of network edge device, the conversion between heterogeneous networks can be achieved on network edge device, namely achieve and solve the object changed between heterogeneous networks on an equipment, greatly reduce the number of devices in network.
Accompanying drawing explanation
Fig. 1 is method flow diagram provided by the invention.
Fig. 2 is equipment structure chart provided by the invention;
Fig. 3 is another equipment structure chart provided by the invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, describe the present invention below in conjunction with the drawings and specific embodiments.
Scheme provided by the invention can solve the conversion realized on an equipment between heterogeneous networks.First, in order to solve the object realizing changing between heterogeneous networks on an equipment, the present invention makes following setting:
1) the ad hoc network instance identification that the network, connected for it in advance in the upper configuration of apparatus for network node (connecting a kind of equipment of single network) is specified.
In the present invention, the ad hoc network instance identification that the network connected for it is in advance specified, can use retention, and this network also can be used to allow the instance identification value used.
For SPB network, be then applied to the present invention, each SPB node device in SPB network configure the appointed ad hoc network instance identification of SPB network.Such as, specify retention 200 as the ad hoc network instance identification of SPB network, or the instance identification value of specifying SPB network to allow to use is as 2000 as the ad hoc network instance identification etc. of SPB network.
Relative to the ad hoc network instance identification of specifying for network, the mark of other network example except the appointed ad hoc network instance identification of this network then used in network is just called general network instance identification, all identifies other network example in network except appointed ad hoc network instance identification referred to as general network instance identification below.
2) the ad hoc network instance identification that the heterogeneous networks, connected for it in advance in network edge device (connecting the special apparatus for network node of heterogeneous networks) upper configuration is specified.
Such as, equipment S connects SPB network and EVI network, then on equipment S, configure the ad hoc network instance identification of specifying for SPB network in advance and in advance for the ad hoc network instance identification that EVI network is specified.
3), on network edge device enable across a network translation function, the network edge device only enabling this across a network translation function just can carry out the conversion of heterogeneous networks.
In the present invention, the enable across a network translation function of all-network edge device can be given tacit consent to, the enable across a network translation function of several network edge devices also can be set targetedly.
Based on setting above, below method provided by the invention is described:
See the method flow diagram that Fig. 1, Fig. 1 provide for the embodiment of the present invention.As shown in Figure 1, the method comprises the following steps:
Step 101, apparatus for network node in one network receives local host and (is designated as main frame when a) being sent to the message of main frame (being designated as main frame b) of other networks, check whether this locality exists the access list item corresponding with the target MAC (Media Access Control) address of this message, if not, perform step 102, if so, the network example in the access list item of this existence is used to identify the described message of encapsulation and sent by the target MAC (Media Access Control) address of the outgoing interface in this access list item to described message.
In the present invention, access list item can comprise: MAC Address, and outgoing interface, network example identify.Following step 107 simply describe access list item set up mode.
Based on this, check whether this locality exists the access list item corresponding with the target MAC (Media Access Control) address of request message and can comprise here:
With the target MAC (Media Access Control) address of the message received for keyword searches the access list item whether comprising this keyword in this locality access list item, if do not found, then think local and there is not the access list item corresponding with the target MAC (Media Access Control) address of request message, if found, then think local and there is the access list item corresponding with the target MAC (Media Access Control) address of request message.
In the present invention, when apparatus for network node checks out local to there is not the access list item corresponding with the target MAC (Media Access Control) address of described message, then illustrate that the message of current reception is sent to first message of main frame b or this message is broadcast, multicast message.
Step 102, from the message encapsulation list item that this locality is set up, finding general network instance identification for encapsulating this message, using the ad hoc network instance identification of this general network instance identification and this Equipments Setting encapsulated message sending to the target MAC (Media Access Control) address of message after encapsulation respectively.
Here, message encapsulation list item is set up by procotol such as Intermediate System to Intermediate System, and the PW list item that the form of the message of foundation encapsulation list item, the parameter comprised encapsulate in list item such as SPB network with existing message is respectively similar, repeats no more.
In the present invention, use the ad hoc network instance identification of this general network instance identification and this Equipments Setting encapsulated message can adopt multicast mode when the target MAC (Media Access Control) address of message sends after encapsulation respectively, such as head end duplicated multicast sends.
Preferably, in the present invention, in order to state the network (being called to come source network) at the original place of request message, apparatus for network node can carry in the message using special I-SID encapsulation to this message carry out the relevant network parameter of source network.
Particularly, in the present invention, network parameter embodies by following three fields (these three fields are referred to as network type mark (Network Style Identifier) TLV), and it can be arranged between heading and carrying data.
Type, represents Network Style Identifier TLV, can value be 150, or other values, usually takies 1 byte;
Length, represents the length of Network Style Identifier TLV, can value be 12, usually take 1 byte;
Identifier, takies 8 bytes, is jointly made up of device identification, network type;
Network type: take 2 bytes, it is specially the current residing network of equipment, such as, when network type value is 0x1, when expression SPB network, value are 0x2, represents EVI network;
Device identification: take 6 bytes can be the MAC Address of present networks equipment, also can be IP address, if IP is then high-order mend 0.
Such as, apparatus for network node a in SPB network is when the main frame a that the ad hoc network instance identification be previously designated by SPB network (might as well establish I-SID200) encapsulation is local is sent to the message of the main frame b in other networks such as EVI network, Network Style Identifier TLV can be carried in this message, wherein, in this Network Style Identifier TLV, the network type value of Identifier field is 0x1, be expressed as SPB network, device identification is the device identification (might as well set the device identification of apparatus for network node a as bridge MAC Address 9-9-1) of apparatus for network node a.
After apparatus for network node in step 102 sends the message using the encapsulation of general network instance identification, in consolidated network, other apparatus for network node and network edge device may receive the message encapsulated by general network instance identification of this transmission.Wherein, when other apparatus for network node and network edge device in present networks receive after this message encapsulated by general network instance identification, according to existing normal Message processing flow processing, do not launch here to describe.
After apparatus for network node in step 102 sends the message using the encapsulation of ad hoc network instance identification, in consolidated network, other apparatus for network node and network edge device may receive the message encapsulated by ad hoc network instance identification of this transmission.Wherein, when other apparatus for network node in present networks receive after this message encapsulated by ad hoc network instance identification, according to existing normal Message processing flow processing, do not launch here to describe; And after network edge device receives this message encapsulated by ad hoc network instance identification, depend on it and whether enable across a network translation function, when not enable across a network translation function, then can according to existing normal Message processing flow processing, and when enabling across a network translation function, then no longer according to existing Message processing flow processing, specifically see that following step 103 is to step 107.
Step 103, the network edge device having enabled across a network translation function receives the message of a certain ad hoc network instance identification encapsulation via this Equipments Setting, decapsulation is carried out to this message, and when detecting the local across a network forwarding-table item do not existed for forwarding this message, perform step 104.
As one embodiment of the present of invention, when network edge device detects the local across a network forwarding-table item existed for forwarding this message, then can directly forward based on this across a network forwarding-table item, hereafter specifically describe across a network forwarding-table item and how to detect the local across a network forwarding-table item whether existed for forwarding this message, wouldn't repeat here.
Step 104, detect from the initial forwarding-table item of the already present across a network in this locality local whether there is source MAC, source IP address is respectively target MAC (Media Access Control) address that message carries, the initial forwarding-table item of across a network of object IP address, if not, performs step 105, if so, step 106 is performed.
Step 105, sets up the initial forwarding-table item of across a network in this locality, use the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message heavily encapsulate the message after decapsulation and sent by Network Side Interface.
Wherein, the initial forwarding-table item of the across a network of foundation can preferably comprise following parameter:
Target MAC (Media Access Control) address, object IP address, source MAC, source IP address, source network instance identification.Wherein, target MAC (Media Access Control) address, object IP address, source MAC, source IP address are respectively target MAC (Media Access Control) address that message carries, object IP address, source MAC, source IP address; Source network instance identification can be message ad hoc network instance identification packed before decapsulation.
As mentioned above, message carries Network Style Identifier TLV, and based on this, the initial forwarding-table item of across a network of foundation can comprise following parameter further:
Source node, source network type.Here, source node, source network type be respectively decapsulation before the device identification of Identifier field in the Network Style Identifier TLV that carries of message, network type.
Preferably, in the present invention, the initial forwarding-table item of across a network, except comprising above-mentioned parameter, also can comprise following parameter further:
Object network type, object network example mark, destination node.Only now this object network type, object network example mark, destination node all use as default or for empty.
Table 1 citing shows the initial forwarding-table item of across a network, and in Table 1, object network type, object network example mark, destination node are empty.
Table 1
It should be noted that, in the present invention, the initial forwarding-table item of across a network of foundation can be carry out based on the principle not repeating to set up the initial forwarding-table item of identical across a network, and this can save the list item resource of network edge device.Wherein, based on the form of the initial forwarding-table item of the across a network shown in table 1, then be specially based on the principle not repeating to set up the initial forwarding-table item of identical across a network: when judging whether to exist the initial forwarding-table item of the across a network comprising parameters shown in table 1, if, then omit the operation of setting up the initial forwarding-table item of across a network in this step 105, if not, then the operation of setting up the initial forwarding-table item of across a network in this step 105 is performed.
In addition, in the present invention, use the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message heavily to encapsulate the message after decapsulation in step 105 and specifically can be comprised by the transmission of this Network Side Interface:
Following steps are performed for each Network Side Interface except the interface receiving message:
Identify the ad hoc network instance identification that the network type belonging to this Network Side Interface is previously designated with this network type;
The ad hoc network instance identification identified is used heavily to encapsulate this message and sent by this Network Side Interface, wherein, the device identification that the Identifier field of Network Style Identifier TLV that the message of this heavy encapsulation carries comprises, network type are respectively device identification, this network type identified of this equipment.
Step 106, adopt the source network instance identification in the initial forwarding-table item of the across a network of this existence heavily to encapsulate the message after decapsulation and send to the source node in the initial forwarding-table item of this across a network, network type ad hoc network instance identification packed before decapsulation for this message, this message carried, device identification are recorded to the initial forwarding-table item of this across a network to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item as object network example mark, object network type and destination node.
As above described in the initial forwarding-table item of across a network, here, the source network instance identification in the initial forwarding-table item of across a network is real is ad hoc network instance identification.
Further, in the present invention, this message can carry Network Style Identifier TLV as mentioned above.Based on this, the source network instance identification in this step 106 in the initial forwarding-table item of across a network adopting this existence heavily to encapsulate the message after decapsulation and to also needing first the source network type in initial for the across a network of the device identification of this equipment, this existence forwarding-table item to be replaced respectively device identification that in Network Style Identifier TLV that this message carries, Identifier field comprises, network type before the source node in the initial forwarding-table item of this across a network sends.
Based on the description of table 1 with this step 106, table 2 citing shows across a network forwarding-table item:
Table 2
Based on the across a network forwarding-table item shown in table 2, the network edge device in above-mentioned steps 103 detects the local across a network forwarding-table item whether existed for E-Packeting by following steps:
From the already present across a network forwarding-table item of this locality, judge whether to exist the across a network forwarding-table item comprising following parameter:
Target MAC (Media Access Control) address: the target MAC (Media Access Control) address that message carries;
Object IP address: the object IP address that message carries;
Source MAC: the source MAC that message carries;
Source IP address: the source IP address that message carries;
Source network instance identification: the network example mark that message is packed before decapsulation;
Source network type: network type that message carries (network type that specifically in the Network StyleIdentifier TLV that carries of message, Identifier field comprises);
Source node: device identification that message carries (device identification that specifically in the Network Style IdentifierTLV that carries of message, Identifier field comprises);
If so, then think to there is across a network forwarding-table item for E-Packeting, otherwise, not think the across a network forwarding-table item existed for E-Packeting.
Wherein, above-mentioned steps 104 to step 106 be the network edge device enabling across a network translation function do not have for forwarding described message in this locality across a network forwarding-table item time perform.
And the network edge device enabling across a network translation function is when detecting the local across a network forwarding-table item existed for forwarding described message, then adopts the object network example in this across a network forwarding-table item to identify and the message after decapsulation heavily encapsulated and sends to the destination node in this across a network forwarding-table item.
In the present invention, when enabling the network edge device of across a network translation function after transmission message, other network edge devices can receive this message, wherein, when other network edge devices receive message, the process of similar above-mentioned steps 103 to step 106 can be performed, and when apparatus for network node receives message, the process of following steps 107 can be performed.
Step 107, apparatus for network node receives the message of the ad hoc network instance identification encapsulation of this Equipments Setting that network edge device sends, to this message decapsulation, when there is not access list item corresponding to the source MAC of this message in this locality, set up the access list item that the source MAC of this message is corresponding, and send message to the target MAC (Media Access Control) address of described message.
In the present invention, the access list item of foundation at least can comprise following parameter:
MAC Address: the source MAC of message;
Network example identifies: described network example is designated message ad hoc network instance identification packed before decapsulation;
Outgoing interface: be the virtual interface mated with the physical interface receiving message.
Finally, by above-mentioned steps, the message that main frame a is sent to main frame b can arrive main frame b.
So far, flow process shown in Fig. 1 is completed.
Below by a specific embodiment, flow process shown in Fig. 1 is stated:
This embodiment is applied to following networking scene: the main frame a in a SPB network crosses over the main frame b in another SPB network of EVI access to netwoks;
Main frame a sends request message to main frame b, and by AC (can identify with VLAN), this request message reaches SPB node device A.
SPB node device A detects access list item corresponding to the local target MAC (Media Access Control) address that whether there is request message;
If access list item does not exist, namely illustrate that this SPB node device A receives the message that main frame a is sent to main frame b first time, then SPB node device A obtains the common I-SID of this request message of encapsulation by looking into message encapsulation list item such as PW list item, and use this common I-SID (might as well I-SID100 be established), the special I-SID (might as well establish I-SID200) that the SPB network be configured on this equipment is previously designated carries out SPB encapsulation to request message respectively and sends, wherein, the request message of I-SID200 encapsulation also carries Network Style Identifier TLV as above when forwarding.The device identification that in this Network StyleIdentifier TLV, Identifier field carries device identification, network type is respectively SPB node device A, for representing the types value of SPB network.In the present invention, the request message of I-SID100 encapsulation, the request message of I-SID200 encapsulation all normally forward by message repeating mode existing in SPB network.
When in SPB network, other SPB node device receives the request message encapsulated by I-SID200, the Message processing mode (i.e. the processing mode of the message of common I-SID encapsulation) in the similar existing SPB network of processing mode.
When network edge device X receives the request message encapsulated by I-SID200, then carry out decapsulation, and set up the initial forwarding-table item of across a network.Here, the initial forwarding-table item of the across a network of foundation is as described in above-mentioned table 1.
Afterwards, network edge device X performs following steps for each Network Side Interface except the interface receiving message: identify the appointed ad hoc network instance identification of this network type that the network type belonging to this Network Side Interface has configured with this equipment; The device identification of present networks edge device X, this network type identified are replaced respectively the device identification in the Network Style Identifier TLV that this message carries, network type, and the ad hoc network instance identification using this to identify heavily is encapsulated to the message after decapsulation and is sent by this Network Side Interface.
After the apparatus for network node Y in EVI network receives the request message that heavily encapsulates of the ad hoc network instance identification (might as well establish Network 300) be previously designated by EVI network that network edge device X sends, to this request message decapsulation, find that the target MAC (Media Access Control) address of message is the MAC Address of local host b, then to the request message after main frame b sends this decapsulation, and the access list item that the source MAC setting up this request message during access list item corresponding to the source MAC that there is not this request message in this locality is corresponding; The access list item set up at least comprises: MAC Address, network example mark, outgoing interface, wherein, described MAC Address is the source MAC of request message, described network example is designated request message ad hoc network instance identification packed before decapsulation (might as well establish Network 300), and described outgoing interface is: the virtual interface mated with the physical interface receiving request message; Just can forward according to this access list item when apparatus for network node Y receives when main frame b is sent to the message of main frame a more later, the forwarding of described back message specific as follows.
When main frame b receives request message, the object MAC of discovery request message is exactly the MAC of oneself, then receive, return back message afterwards.The target MAC (Media Access Control) address of this back message is the address of main frame a.
When the back message of main frame b arrives apparatus for network node Y, apparatus for network node Y finds then to use the network example in the access list item of this existence identify the described back message of encapsulation and sent by the target MAC (Media Access Control) address of the outgoing interface in this access list item to described message by the access list item that the target MAC (Media Access Control) address of local this back message of existence is corresponding.Access list item as above, here, the network example of back message encapsulation is designated the appointed ad hoc network instance identification Network 300 of EVI network, further, the back message that the appointed ad hoc network instance identification Network 300 of EVI network encapsulates also needs to carry Network Style Identifier TLV.The device identification that in this Network Style Identifier TLV, Identifier field comprises, network type be respectively apparatus for network node Y device identification, for representing the types value of EVI network.
When network edge device X receives the back message of Network 300 encapsulation, the source MAC set up before this locality is found, source IP address is respectively the target MAC (Media Access Control) address that message carries, the initial forwarding-table item of across a network of object IP address, with the device identification of present networks edge device X, in the initial forwarding-table item of this across a network, source network type replaces the device identification in the Network StyleIdentifier TLV that this back message carries respectively, network type, adopt the source network instance identification in the initial forwarding-table item of this across a network heavily to encapsulate this back message and send to the source node in the initial forwarding-table item of this across a network, here, the network example of the back message encapsulation heavily encapsulated is designated the appointed special I-SID200 of SPB network.
Further, network edge device X this message is carried device identification, network example mark as destination node and object network example identification record to the initial forwarding-table item of this across a network to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item.After network edge device X, receive main frame a again send message that the message of main frame b or main frame b be sent to main frame a and can depend on this across a network forwarding-table item and forward, concrete pass-through mode is described above.
When SPB node device A receives the back message of the I-SID200 encapsulation that network edge device sends, to this response decapsulation, find that the target MAC (Media Access Control) address of message is the MAC Address of local host a, then to the back message after main frame a sends this decapsulation, and the access list item that the source MAC setting up this back message during access list item corresponding to the source MAC that there is not this back message in this locality is corresponding; The access list item set up at least comprises: MAC Address, network example mark, outgoing interface, wherein, described MAC Address is the source MAC of back message, described network example is designated back message ad hoc network instance identification packed before decapsulation (might as well establish Network 300), and described outgoing interface is: the virtual interface mated with the physical interface receiving back message.Just can forward according to this access list item when SPB node device A receives when main frame a is sent to the message of main frame b more later.
So far, the mutual of across a network between main frame a and main frame b is completed.
It should be noted that, in the present invention, network edge device also timing detects each across a network forwarding-table item of this locality, is specially:
For each across a network forwarding-table item local, respectively timing to following two addresses in this across a network forwarding-table item to transmission probe messages: the first address pair: source MAC+source IP address, the second address pair: target MAC (Media Access Control) address+object IP address; Wherein, to the first address, the probe messages sent is encapsulated by the source network instance identification in this across a network forwarding-table item, to the second address, by the object network example in this across a network forwarding-table item, encapsulation is identified to the probe messages sent;
If all receive in before the active timer time-out arranged for this across a network forwarding-table item the first address to, the second address to the echo probe returned time, upgrade the active timer of this across a network forwarding-table item, otherwise, upgrade the ageing timer of this across a network forwarding-table item, start list item aging, delete this across a network forwarding-table item when ageing timer time-out.
Also it should be noted that, in the present invention, if there is the interface directly connecting main frame in the network edge device enabling across a network translation function, then mean that this equipment serves as apparatus for network node and network edge device two kinds of roles simultaneously, it can process this message treating to send to direct-connected main frame according to apparatus for network node role simultaneously; And for the message that its direct-connected main frame received sends, it first can process the message of its direct-connected main frame transmission again according to network edge device role according to apparatus for network node role.
Above method provided by the invention is described, below equipment provided by the invention is described:
Be equipment structure chart provided by the invention see Fig. 2, Fig. 2.This equipment is applied to apparatus for network node, and described apparatus for network node is configured with the appointed ad hoc network instance identification of its belonging network, and as shown in Figure 3, this equipment comprises:
Receiving element, for receiving the message that local host sends;
Whether detecting unit, exist the access list item corresponding with the target MAC (Media Access Control) address of described message for detecting this locality,
Transmitting element, for when the testing result of described detecting unit is no, from the message encapsulation list item that this locality is set up, finding general network instance identification for encapsulating described message, using the ad hoc network instance identification of described general network instance identification and this Equipments Setting to encapsulate described message respectively and target MAC (Media Access Control) address to described message sends; And,
For when the testing result of described detecting unit is for being, the network example in the access list item of this existence is used to identify the described message of encapsulation and sent by the target MAC (Media Access Control) address of the outgoing interface in this access list item to described message.
Preferably, in the present invention, the message that the ad hoc network instance identification via this Equipments Setting that described receiving element receives network edge device transmission further encapsulates;
Based on this, described transmitting element, further to this message decapsulation, is set up the access list item that the source MAC of message is corresponding, and is sent message to the target MAC (Media Access Control) address of described message when there is not access list item corresponding to the source MAC of message in this locality; The access list item set up at least comprises: MAC Address, network example mark, outgoing interface, wherein, described MAC Address is the source MAC of message, described network example is designated message ad hoc network instance identification packed before decapsulation, and described outgoing interface is: the virtual interface mated with the physical interface receiving message.
So far, complete the device structure shown in Fig. 2 to describe.
Be another equipment structure chart provided by the invention see Fig. 3, Fig. 3.This equipment is applied to the network edge device enabling across a network translation function, and described network edge device is configured with its appointed ad hoc network instance identification of each heterogeneous networks connected, and as shown in Figure 3, this equipment comprises:
Receiving element, for receiving the message encapsulated by an ad hoc network instance identification of this Equipments Setting, to message decapsulation;
Detecting unit, during for there is not the across a network forwarding-table item for forwarding this message in this locality, detects the initial forwarding-table item of across a network that the target MAC (Media Access Control) address, the object IP address that whether there is message in the initial forwarding-table item of local already present across a network is corresponding,
Forward processing unit, for when the testing result of described detecting unit is no, set up the initial forwarding-table item of across a network at least comprising following parameter in this locality: source MAC, source IP address, target MAC (Media Access Control) address, object IP address, source network instance identification, source network type, source node, and use the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message heavily encapsulate the message after decapsulation and sent by this Network Side Interface; Described source MAC, source IP address, target MAC (Media Access Control) address, object IP address are respectively the source MAC of message, source IP address, target MAC (Media Access Control) address, object IP address, described source network type, source node be respectively decapsulation before the message device identification of carrying, described network example is designated message ad hoc network instance identification packed before decapsulation; And,
For when the testing result of described detecting unit is for being, adopt the source network instance identification in the initial forwarding-table item of the across a network of this existence heavily to encapsulate the message after decapsulation and send to the source node in the initial forwarding-table item of this across a network, network type ad hoc network instance identification packed before decapsulation for this message, this message carried, device identification are recorded to the initial forwarding-table item of this across a network to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item as object network example mark, object network type and destination node.
Preferably, described forward processing unit exists the across a network forwarding-table item for forwarding this message further during in this locality, the mark of the object network example in this across a network forwarding-table item is adopted heavily to encapsulate the message after decapsulation and send to the destination node in this across a network forwarding-table item.
Preferably, this equipment comprises further:
Probe unit, for for each across a network forwarding-table item local, respectively timing to following two addresses in this across a network forwarding-table item to transmission probe messages: the first address pair: source MAC+source IP address, the second address pair: target MAC (Media Access Control) address+object IP address; Wherein, to the first address, the probe messages sent is encapsulated by the source network instance identification in this across a network forwarding-table item, to the second address, by the object network example in this across a network forwarding-table item, encapsulation is identified to the probe messages sent;
If all received before the active timer time-out arranged for this across a network forwarding-table item the first address to, the second address to the echo probe returned time, upgrade the active timer of this across a network forwarding-table item, otherwise, upgrade the ageing timer of this across a network forwarding-table item, start list item aging, delete this across a network forwarding-table item when ageing timer time-out.
So far, the device description shown in Fig. 3 is completed.
As can be seen from the above technical solutions, in the present invention, in the enable across a network translation function of network edge device, when network edge device receives the message encapsulated by an ad hoc network instance identification of its configuration, to this message decapsulation, detecting the local across a network forwarding-table item do not existed for forwarding this message, and also there is not source MAC in this locality, source IP address is respectively the target MAC (Media Access Control) address that message carries, during the initial forwarding-table item of the across a network of object IP address, set up the initial forwarding-table item of across a network be associated with the feature field that this message carries, the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message is used heavily to encapsulate the message after decapsulation and sent by this Network Side Interface, and source MAC is there is in this locality, source IP address is respectively the target MAC (Media Access Control) address that message carries, during the initial forwarding-table item of the across a network of object IP address, adopt the source network instance identification in the initial forwarding-table item of the across a network of this existence heavily to encapsulate the message after decapsulation and send to the source node in the initial forwarding-table item of this across a network, and the device identification by this message is carried, network example mark respectively as destination node and object network example identification record to the initial forwarding-table item of across a network of this existence to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item, this obviously achieves the conversion between heterogeneous networks on network edge device, namely achieve and solve the object changed between heterogeneous networks on an equipment, greatly reduce the number of devices in network.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (11)

1. a message forwarding method for across a network, is characterized in that, the method is applied to apparatus for network node, and described apparatus for network node is configured with the appointed ad hoc network instance identification of its belonging network, and the method comprises:
Receive the message that local host sends;
Detect this locality and whether there is the access list item corresponding with the target MAC (Media Access Control) address of described message,
If not, from the message encapsulation list item that this locality is set up, finding general network instance identification for encapsulating described message, using the ad hoc network instance identification of described general network instance identification and this Equipments Setting to encapsulate described message respectively and target MAC (Media Access Control) address to described message sends;
If so, the network example in the access list item of this existence is used to identify the described message of encapsulation and sent by the target MAC (Media Access Control) address of the outgoing interface in this access list item to described message.
2. method according to claim 1, is characterized in that, the method comprises further:
Receive the message of the ad hoc network instance identification encapsulation of this Equipments Setting that network edge device sends;
To this message decapsulation, set up the access list item that the source MAC of message is corresponding when there is not access list item corresponding to the source MAC of message in this locality, and send message to the target MAC (Media Access Control) address of described message; The access list item set up at least comprises: MAC Address, network example mark, outgoing interface, wherein, described MAC Address is the source MAC of message, described network example is designated message ad hoc network instance identification packed before decapsulation, and described outgoing interface is: the virtual interface mated with the physical interface receiving message.
3. a message forwarding method for across a network, is characterized in that, the method is applied to the network edge device enabling across a network translation function, and described network edge device is configured with its appointed ad hoc network instance identification of each heterogeneous networks connected, and comprising:
Receive the message encapsulated by an ad hoc network instance identification of this Equipments Setting, to message decapsulation;
When there is not the across a network forwarding-table item for forwarding this message in this locality, detect in the initial forwarding-table item of local already present across a network whether there is source MAC, source IP address is respectively target MAC (Media Access Control) address that message carries, the initial forwarding-table item of across a network of object IP address
If not, set up the initial forwarding-table item of across a network at least comprising following parameter in this locality: source MAC, source IP address, target MAC (Media Access Control) address, object IP address, source network instance identification, source network type, source node, and use the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message heavily encapsulate the message after decapsulation and sent by this Network Side Interface; Described source MAC, source IP address, target MAC (Media Access Control) address, object IP address are respectively the source MAC of message, source IP address, target MAC (Media Access Control) address, object IP address, described source network type, source node be respectively decapsulation before the message device identification of carrying, described network example is designated message ad hoc network instance identification packed before decapsulation;
If, adopt the source network instance identification in the initial forwarding-table item of the across a network of this existence heavily to encapsulate the message after decapsulation and send to the source node in the initial forwarding-table item of this across a network, network type ad hoc network instance identification packed before decapsulation for this message, this message carried, device identification are recorded to the initial forwarding-table item of this across a network to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item as object network example mark, object network type and destination node.
4. method according to claim 3, it is characterized in that, the appointed ad hoc network instance identification of network type Network Side Interface belonging to of described use except the interface receiving message is heavily encapsulated the message after decapsulation and is sent by this Network Side Interface and comprises:
Following steps are performed for each Network Side Interface except the interface receiving message:
Identify the appointed ad hoc network instance identification of this network type that the network type belonging to this Network Side Interface has configured with this equipment;
The device identification of this equipment, this network type identified are replaced respectively device identification that this message carries, network type, and the ad hoc network instance identification using this to identify heavily is encapsulated to the message after decapsulation and is sent by this Network Side Interface.
5. method according to claim 3, is characterized in that, the method comprises further:
When there is the across a network forwarding-table item for forwarding this message in this locality, the mark of the object network example in this across a network forwarding-table item is adopted heavily to encapsulate the message after decapsulation and send to the destination node in this across a network forwarding-table item.
6. method according to claim 3, is characterized in that, the method comprises further:
For each across a network forwarding-table item local, respectively timing to following two addresses in this across a network forwarding-table item to transmission probe messages: the first address pair: source MAC+source IP address, the second address pair: target MAC (Media Access Control) address+object IP address; Wherein, to the first address, the probe messages sent is encapsulated by the source network instance identification in this across a network forwarding-table item, to the second address, by the object network example in this across a network forwarding-table item, encapsulation is identified to the probe messages sent;
If all received before the active timer time-out arranged for this across a network forwarding-table item the first address to, the second address to the echo probe returned time, upgrade the active timer of this across a network forwarding-table item, otherwise, upgrade the ageing timer of this across a network forwarding-table item, start list item aging, delete this across a network forwarding-table item when ageing timer time-out.
7. a message forwarding equipment for across a network, is characterized in that, this equipment is applied to apparatus for network node, and described apparatus for network node is configured with the appointed ad hoc network instance identification of its belonging network, and this equipment comprises:
Receiving element, for receiving the message that local host sends;
Whether detecting unit, exist the access list item corresponding with the target MAC (Media Access Control) address of described message for detecting this locality,
Transmitting element, for when the testing result of described detecting unit is no, from the message encapsulation list item that this locality is set up, finding general network instance identification for encapsulating described message, using the ad hoc network instance identification of described general network instance identification and this Equipments Setting to encapsulate described message respectively and target MAC (Media Access Control) address to described message sends; And,
For when the testing result of described detecting unit is for being, the network example in the access list item of this existence is used to identify the described message of encapsulation and sent by the target MAC (Media Access Control) address of the outgoing interface in this access list item to described message.
8. equipment according to claim 7, is characterized in that, the message that the ad hoc network instance identification via this Equipments Setting that described receiving element receives network edge device transmission further encapsulates;
Described transmitting element, further to this message decapsulation, is set up the access list item that the source MAC of message is corresponding, and is sent message to the target MAC (Media Access Control) address of described message when there is not access list item corresponding to the source MAC of message in this locality; The access list item set up at least comprises: MAC Address, network example mark, outgoing interface, wherein, described MAC Address is the source MAC of message, described network example is designated message ad hoc network instance identification packed before decapsulation, and described outgoing interface is: the virtual interface mated with the physical interface receiving message.
9. a message forwarding equipment for across a network, is characterized in that, this equipment is applied to the network edge device enabling across a network translation function, and described network edge device is configured with its appointed ad hoc network instance identification of each heterogeneous networks connected, and comprising:
Receiving element, for receiving the message encapsulated by an ad hoc network instance identification of this Equipments Setting, to message decapsulation;
Detecting unit, during for there is not the across a network forwarding-table item for forwarding this message in this locality, detects the initial forwarding-table item of across a network that the target MAC (Media Access Control) address, the object IP address that whether there is message in the initial forwarding-table item of local already present across a network is corresponding,
Forward processing unit, for when the testing result of described detecting unit is no, set up the initial forwarding-table item of across a network at least comprising following parameter in this locality: source MAC, source IP address, target MAC (Media Access Control) address, object IP address, source network instance identification, source network type, source node, and use the appointed ad hoc network instance identification of the network type belonging to Network Side Interface except the interface receiving message heavily encapsulate the message after decapsulation and sent by this Network Side Interface; Described source MAC, source IP address, target MAC (Media Access Control) address, object IP address are respectively the source MAC of message, source IP address, target MAC (Media Access Control) address, object IP address, described source network type, source node be respectively decapsulation before the message device identification of carrying, described network example is designated message ad hoc network instance identification packed before decapsulation; And,
For when the testing result of described detecting unit is for being, adopt the source network instance identification in the initial forwarding-table item of the across a network of this existence heavily to encapsulate the message after decapsulation and send to the source node in the initial forwarding-table item of this across a network, network type ad hoc network instance identification packed before decapsulation for this message, this message carried, device identification are recorded to the initial forwarding-table item of this across a network to upgrade the initial forwarding-table item of this across a network for across a network forwarding-table item as object network example mark, object network type and destination node.
10. equipment according to claim 9, it is characterized in that, described forward processing unit exists the across a network forwarding-table item for forwarding this message further during in this locality, the mark of the object network example in this across a network forwarding-table item is adopted heavily to encapsulate the message after decapsulation and send to the destination node in this across a network forwarding-table item.
11. equipment according to claim 9 or 10, it is characterized in that, this equipment comprises further:
Probe unit, for for each across a network forwarding-table item local, respectively timing to following two addresses in this across a network forwarding-table item to transmission probe messages: the first address pair: source MAC+source IP address, the second address pair: target MAC (Media Access Control) address+object IP address; Wherein, to the first address, the probe messages sent is encapsulated by the source network instance identification in this across a network forwarding-table item, to the second address, by the object network example in this across a network forwarding-table item, encapsulation is identified to the probe messages sent;
If all received before the active timer time-out arranged for this across a network forwarding-table item the first address to, the second address to the echo probe returned time, upgrade the active timer of this across a network forwarding-table item, otherwise, upgrade the ageing timer of this across a network forwarding-table item, start list item aging, delete this across a network forwarding-table item when ageing timer time-out.
CN201410743057.0A 2014-12-08 2014-12-08 The message forwarding method and equipment of across a network Active CN104486217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410743057.0A CN104486217B (en) 2014-12-08 2014-12-08 The message forwarding method and equipment of across a network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410743057.0A CN104486217B (en) 2014-12-08 2014-12-08 The message forwarding method and equipment of across a network

Publications (2)

Publication Number Publication Date
CN104486217A true CN104486217A (en) 2015-04-01
CN104486217B CN104486217B (en) 2017-12-15

Family

ID=52760723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410743057.0A Active CN104486217B (en) 2014-12-08 2014-12-08 The message forwarding method and equipment of across a network

Country Status (1)

Country Link
CN (1) CN104486217B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227466A (en) * 2015-08-20 2016-01-06 北京百度网讯科技有限公司 Communication processing method and device
CN105591922A (en) * 2015-10-13 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN108737271A (en) * 2017-04-14 2018-11-02 华为技术有限公司 A kind of packet routing method, apparatus and system
CN109982117A (en) * 2019-03-15 2019-07-05 兰州大学 Relay processing method, device, storage medium and the network equipment of video stream data
CN110875896A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065511A (en) * 2010-12-09 2011-05-18 北京星网锐捷网络技术有限公司 Cross-mesh network communication method and mesh point device
CN102571554A (en) * 2010-12-15 2012-07-11 丛林网络公司 Methods and apparatus for forwarding-state transport in a distributed control plane
CN103200095A (en) * 2013-03-22 2013-07-10 杭州华三通信技术有限公司 Cross-space Builder (SPB)-network access implementing method and cross-SPB-network access implementing equipment
CN103227745A (en) * 2013-04-26 2013-07-31 杭州华三通信技术有限公司 Intercommunication method of shortest path bridging network and Layer 3 virtual private network and common edge equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065511A (en) * 2010-12-09 2011-05-18 北京星网锐捷网络技术有限公司 Cross-mesh network communication method and mesh point device
CN102571554A (en) * 2010-12-15 2012-07-11 丛林网络公司 Methods and apparatus for forwarding-state transport in a distributed control plane
CN103200095A (en) * 2013-03-22 2013-07-10 杭州华三通信技术有限公司 Cross-space Builder (SPB)-network access implementing method and cross-SPB-network access implementing equipment
CN103227745A (en) * 2013-04-26 2013-07-31 杭州华三通信技术有限公司 Intercommunication method of shortest path bridging network and Layer 3 virtual private network and common edge equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227466A (en) * 2015-08-20 2016-01-06 北京百度网讯科技有限公司 Communication processing method and device
CN105227466B (en) * 2015-08-20 2019-01-11 北京百度网讯科技有限公司 Communication processing method and device
CN105591922A (en) * 2015-10-13 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105591922B (en) * 2015-10-13 2019-03-15 新华三技术有限公司 A kind of transmission method and device of message
CN108737271A (en) * 2017-04-14 2018-11-02 华为技术有限公司 A kind of packet routing method, apparatus and system
CN108737271B (en) * 2017-04-14 2021-06-01 华为技术有限公司 Message routing method, device and system
CN110875896A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 Message processing method and device and electronic equipment
CN109982117A (en) * 2019-03-15 2019-07-05 兰州大学 Relay processing method, device, storage medium and the network equipment of video stream data
CN109982117B (en) * 2019-03-15 2021-06-04 兰州大学 Relay processing method, device, storage medium and network equipment for video stream data

Also Published As

Publication number Publication date
CN104486217B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN102938794B (en) ARP message forwarding method, switch and controller
EP2843906B1 (en) Method, apparatus, and system for data transmission
WO2013033457A1 (en) Topology discovery in a hybrid network
CN103166864B (en) A kind of private network vlan information management method and equipment
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
CN104486217A (en) Cross network message transmitting method and equipment
WO2019128273A1 (en) Method, device and system for determining connection relation of network devices
CN110213148B (en) Data transmission method, system and device
CN114124618B (en) Message transmission method and electronic equipment
CN103313308B (en) A kind of data transmission method and equipment
RU2012137184A (en) METHOD AND SYSTEM OF REALIZING THE REACH OF THE ROUTE TO THE HOST IN THE RING OF ACCESS TO THE NETWORK OF TRANSFER OF PACKAGES
CN107820262B (en) Parameter configuration method, device and system
CN107426343B (en) Method, system and apparatus for proxying traffic within a subnet across multiple interfaces within a network
US8472420B2 (en) Gateway device
CN104683210A (en) Automatic tunnel establishing method and device
CN105227466A (en) Communication processing method and device
CN108206783B (en) Address configuration method and device in software defined network system
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN202285423U (en) Intelligent set top box
WO2017157318A1 (en) Link discovery method and apparatus
CN102025641B (en) Message filtering method and exchange equipment
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN106100960B (en) Method, device and system for Fabric intercommunication of cross-storage area network
JP2017503407A (en) Packet processing method and apparatus
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system

Legal Events

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

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant