CN104486217B - The message forwarding method and equipment of across a network - Google Patents
The message forwarding method and equipment of across a network Download PDFInfo
- Publication number
- CN104486217B CN104486217B CN201410743057.0A CN201410743057A CN104486217B CN 104486217 B CN104486217 B CN 104486217B CN 201410743057 A CN201410743057 A CN 201410743057A CN 104486217 B CN104486217 B CN 104486217B
- Authority
- CN
- China
- Prior art keywords
- network
- message
- address
- forwarding
- source
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
This application provides the message forwarding method of across a network and equipment.By the appointed ad hoc network instance identification of heterogeneous networks that its connection is configured in network edge device, and in the appointed ad hoc network instance identification of network residing for apparatus for network node configuration, and enable across a network translation function in network edge device, this can realize the conversion between heterogeneous networks on network edge device, realize the message forwarding method of across a network.
Description
Technical field
The application is related to the message forwarding method and equipment of the network communications technology, more particularly to across a network.
Background technology
At present, an equipment can not complete the conversion between heterogeneous networks.When heterogeneous networks connect, it is necessary to using comparing
More equipment, for example, it is necessary to two equipment do the connector and terminator of previous network, and other two equipment of needs respectively
It is the connector and terminator of latter network.
So that SPB network connects EVI networks as an example, due to heterogeneous networks can be realized i.e. currently without a single equipment
Conversion between SPB network and EVI networks, then just need an equipment to be the terminator of SPB network, and need another and set
The standby connector for doing EVI networks, equally, it is also desirable to which an equipment is the connector of SPB network, and needs another equipment to do
The terminator of EVI networks, this can cause network equipment quantity in whole network various, the complicated network structure.
The content of the invention
This application provides the message forwarding method of across a network and equipment, to realize solving heterogeneous networks in an equipment
Between conversion.
The technical scheme that the application provides includes:
A kind of message forwarding method of across a network, applied to apparatus for network node, apparatus for network node is configured with belonging to it
Each appointed ad hoc network instance identification of network, this method include:
Receive the message that local host is sent;Detection is local with the presence or absence of access corresponding with the target MAC (Media Access Control) address of message
List item, if not, the general network instance identification for encapsulating the message is found from the message encapsulation list item being locally created,
Respectively using general network instance identification and this device configuration ad hoc network instance identification encapsulated message and to the purpose of message
MAC Address is sent;If it is, identify encapsulated message using the network example in the existing access list item and pass through the access table
Outgoing interface in is sent to the target MAC (Media Access Control) address of the message;Each different nets of its connection are configured in network edge device
The appointed ad hoc network instance identification of network, when carrying out across a network forwarding, network edge device is received by this device configuration
The encapsulation of ad hoc network instance identification message when, after being decapsulated to message, then message is encapsulated to the spy of upper purpose network
Different network identity is forwarded.
A kind of message forwarding equipment of across a network, applied to apparatus for network node, apparatus for network node is configured with belonging to it
The appointed ad hoc network instance identification of network, the equipment include:
Receiving unit, for receiving the message of local host transmission;Detection unit, for detecting local whether there is and report
Access list item corresponding to the target MAC (Media Access Control) address of text;Transmitting element, for detection unit testing result for it is no when, from local
The general network instance identification for encapsulated message is found in the message encapsulation list item of foundation, respectively using general network example mark
Know with the ad hoc network instance identification encapsulated message of this device configuration and sent to the target MAC (Media Access Control) address of message;And for
The testing result of the detection unit is when being, identifies encapsulated message using network example in the existing access list item and leads to
The outgoing interface crossed in the access list item is sent to the target MAC (Media Access Control) address of message;Retransmission unit, its company is configured in network edge device
The appointed ad hoc network instance identification of each heterogeneous networks connect, when carrying out across a network forwarding, network edge device receives
To the ad hoc network instance identification encapsulation by this device configuration message when, after being decapsulated to message, then message encapsulated
The ad hoc network mark of upper purpose network is forwarded.
As can be seen from the above technical solutions, in the present invention, by the different nets that its connection is configured in network edge device
The appointed ad hoc network instance identification of network, and in the appointed ad hoc network example of network residing for apparatus for network node configuration
Mark, and enables across a network translation function in network edge device, can be realized on network edge device heterogeneous networks it
Between conversion, that is, realize and solve the purpose changed between heterogeneous networks in an equipment, setting in network is greatly reduced
Standby quantity.
Brief description of the drawings
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 that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair
The present invention is described in detail.
Scheme provided by the invention can solve the problem that the conversion realized in an equipment between heterogeneous networks.First, in order to
Solve to realize the purpose changed between heterogeneous networks in an equipment, the present invention makes arranged below:
1), configure on apparatus for network node (connecting a kind of equipment of single network) and refer in advance for the network of its connection
Fixed ad hoc network instance identification.
In the present invention, in advance for the ad hoc network instance identification specified of network of its connection, retention can be used,
The network can be used to allow the instance identification value used.
By taking SPB network as an example, then it is applied to the present invention, SPB nets is configured on each SPB node devices in SPB network
The appointed ad hoc network instance identification of network.For example ad hoc network instance identification of the retention 200 as SPB network is specified, or
Person, ad hoc network instance identification of the instance identification value such as 2000 that specified SPB network allows to use as SPB network etc..
Relative to the ad hoc network instance identification specified for network, then used in network except the network is appointed special
Other network examples mark outside network example mark is known as general network instance identification, will remove referred in network below
Other network examples mark outside fixed ad hoc network instance identification is referred to as general network instance identification.
2), configured in advance for its company on network edge device (the special apparatus for network node of connection heterogeneous networks)
The ad hoc network instance identification that the heterogeneous networks connect are specified.
Such as equipment S connection SPB networks and EVI networks, then the spy specified in advance for SPB network is configured on equipment S
Different network example mark and the ad hoc network instance identification specified in advance for EVI networks.
3) across a network translation function, is enabled on network edge device, only enables the net of the across a network translation function
Network edge device could carry out the conversion of heterogeneous networks.
In the present invention, all-network edge device can be given tacit consent to and enable across a network translation function, it is possibility to have pointedly
Several network edge devices are set to enable across a network translation function.
Based on setting above, method provided by the invention is described below:
Referring to Fig. 1, Fig. 1 is method flow diagram provided in an embodiment of the present invention.As shown in figure 1, this method includes following step
Suddenly:
Step 101, the apparatus for network node in a network receives local host and (is designated as the master that main frame a) is sent to other networks
Machine (when being designated as main frame b) message, checks and locally accesses list item with the presence or absence of corresponding with the target MAC (Media Access Control) address of the message, such as
Fruit is no, performs step 102, if it is, encapsulating the message using the network example mark in the existing access list item and leading to
The outgoing interface crossed in the access list item is sent to the target MAC (Media Access Control) address of the message.
In the present invention, access list item can include:MAC Address, outgoing interface, network example mark.Following step 107 is simply retouched
That has stated access list item establishes mode.
Based on this, checking can locally wrap here with the presence or absence of access list item corresponding with the target MAC (Media Access Control) address of request message
Include:
Accessed using the target MAC (Media Access Control) address of the message received as keyword in local in list item and search whether to include the keyword
Access list item, if do not found, then it is assumed that it is local be not present it is corresponding with the target MAC (Media Access Control) address of request message access list item,
If it is found, then think local accesses list item in the presence of corresponding with the target MAC (Media Access Control) address of request message.
In the present invention, when apparatus for network node is checked locally in the absence of corresponding with the target MAC (Media Access Control) address of the message
Access list item, then illustrate currently received message be sent to main frame b first message or the message be broadcast, multicast report
Text.
Step 102, the general network example mark for encapsulating the message is found from the message encapsulation list item being locally created
Know, distinguish encapsulated message and to after encapsulation using the ad hoc network instance identification of the general network instance identification and this device configuration
The target MAC (Media Access Control) address of message is sent.
Here, message encapsulation list item can be established by procotol such as Intermediate System to Intermediate System, also, the message encapsulation established
The PW list items that the form of list item, the parameter included encapsulate in list item such as SPB network with existing message respectively are similar, no longer superfluous
State.
In the present invention, encapsulated respectively using the ad hoc network instance identification of the general network instance identification and this device configuration
Message simultaneously can use multicast mode when being sent to the target MAC (Media Access Control) address of message after encapsulation, such as the transmission of head end duplicated multicast.
Preferably, in the present invention, in order to state the network (being referred to as carrying out source network) at the original place of request message, network node
Equipment can carry the network parameter that to carry out source network related to the message in the message encapsulated using special I-SID.
Specifically, in the present invention, network parameter can (three fields be referred to as network type and identified by following three fields
(Network Style Identifier) TLV) embody, it may be provided between heading and carrying data.
Type, represent Network Style Identifier TLV, can value be 150, or other values generally take up
1 byte;
Length, represent Network Style Identifier TLV length, can value be 12, generally take up 1
Byte;
Identifier, 8 bytes are taken, are collectively constituted by device identification, network type;
Network type:2 bytes are taken, it is specially the network that equipment is presently in, such as, network type value is
During 0x1, when expression SPB network, value are 0x2, EVI networks are represented;
Device identification:Take 6 bytes, can be present networks equipment MAC Address or IP address, if
IP is then high-order to mend 0.
For example the apparatus for network node a in SPB network is in the ad hoc network example mark being previously designated by SPB network
When knowing the message for the main frame b that the local main frame a of (might as well set I-SID200) encapsulation is sent in other networks such as EVI networks, meeting
Network Style Identifier TLV are carried in the message, wherein, the Network Style Identifier
The network type value of Identifier fields is 0x1 in TLV, is expressed as SPB network, and device identification is apparatus for network node a
Device identification (apparatus for network node a device identification might as well be set as bridge MAC Address 9-9-1).
After apparatus for network node sends the message encapsulated using general network instance identification in step 102, consolidated network
Interior other apparatus for network node and network edge device may receive being encapsulated by general network instance identification for the transmission
Message.Wherein, when in present networks other apparatus for network node and network edge device receive this and sealed by general network instance identification
After the message of dress, according to existing normal Message processing flow processing, do not deploy to describe here.
After apparatus for network node sends the message encapsulated using ad hoc network instance identification in step 102, consolidated network
Interior other apparatus for network node and network edge device may receive being encapsulated by ad hoc network instance identification for the transmission
Message.Wherein, after other apparatus for network node receive the message that this is encapsulated by ad hoc network instance identification in present networks, according to
Existing normal Message processing flow processing, does not deploy to describe here;And when network edge device receives this by ad hoc network reality
After the message of example mark encapsulation, across a network translation function whether is enabled dependent on it, when being not enabled on across a network translation function, then
Can be according to existing normal Message processing flow processing, and work as and enable across a network translation function, then not according still further to existing message
Handling process processing, is specifically shown in following step 103 to step 107.
Step 103, the network edge device for having enabled across a network translation function is received via a certain of this device configuration
The message of ad hoc network instance identification encapsulation, is decapsulated to the message, and is detecting local be not present for forwarding this
During the across a network forwarding-table item of message, step 104 is performed.
As one embodiment of the present of invention, when network edge device detect exist locally for forward the message across
During forwarded list item, then it can be directly based upon the across a network forwarding-table item and be forwarded, across a network forwarding has been detailed description below
List item and the local across a network forwarding-table item that whether there is and be used for forwarding the message how is detected, wouldn't repeated here.
Step 104, detected from the local already present initial forwarding-table item of across a network it is local with the presence or absence of source MAC,
Source IP address is respectively target MAC (Media Access Control) address, the initial forwarding-table item of the across a network of purpose IP address that message carries, if not, holding
Row step 105, if it is, performing step 106.
Step 105, the initial forwarding-table item of across a network is being locally created, is using the network side in addition to the interface for receiving message
The appointed ad hoc network instance identification of network type belonging to interface encapsulates and passes through network side again to the message after decapsulation
Interface is sent.
Wherein, the initial forwarding-table item of the across a network of foundation preferably includes following parameter:
Target MAC (Media Access Control) address, purpose IP address, source MAC, source IP address, source network instance identification.Wherein, purpose MAC
Address, purpose IP address, source MAC, source IP address be respectively message carry target MAC (Media Access Control) address, purpose IP address, source
MAC Address, source IP address;Source network instance identification can be the ad hoc network instance identification that message is packaged before decapsulation.
As described above, message carries Network Style Identifier TLV, based on this, at the beginning of the across a network of foundation
Beginning forwarding-table item can further include following parameter:
Source node, source network type.Here, source node, source network type are respectively message carrying before decapsulating
The device identification of Identifier fields, network type in Network Style Identifier TLV.
Preferably, the present invention in, the initial forwarding-table item of across a network in addition to comprising above-mentioned parameter, also can further include with
Lower parameter:
Purpose network type, purpose network example mark, destination node.Only now purpose network type, the purpose
Network example mark, destination node are disposed as default value or are sky.
The exemplified initial forwarding-table item of across a network of table 1, in table 1, purpose network type, purpose network example mark
Know, destination node is sky.
Table 1
It should be noted that in the present invention, the initial forwarding-table item of across a network of foundation can be based on not repeating to establish phase
With the initial forwarding-table item of across a network principle carry out, this can save the list item resource of network edge device.Wherein, based on table
The form of the initial forwarding-table item of across a network shown in 1, then based on the principle for not repeating to establish the identical initial forwarding-table item of across a network
Specially:When judging whether the initial forwarding-table item of the across a network comprising parameters shown in table 1, if it is, omitting this
The operation of the initial forwarding-table item of across a network is established in step 105, across a network is established if it is not, then performing in this step 105
The operation of initial forwarding-table item.
In addition, in the present invention, in step 105 using the Network Side Interface in addition to the interface for receiving message belonging to network
The appointed ad hoc network instance identification of type is encapsulated and sent by the Network Side Interface specific again to the message after decapsulation
It may include:
Following steps are performed for each Network Side Interface in addition to the interface for receiving message:
Identify the ad hoc network example that the network type belonging to the Network Side Interface and the network type are previously designated
Mark;
The message is encapsulated again using the ad hoc network instance identification identified and sent by the Network Side Interface, its
In, what the Network Style Identifier TLV that the message of the heavy encapsulation carries Identifier fields were included sets
Standby mark, network type are respectively the device identification of this equipment, the network type identified.
Step 106, using the source network instance identification in the existing initial forwarding-table item of across a network to decapsulation after
Message is encapsulated again and the source node into the initial forwarding-table item of the across a network is sent, and the message is packaged before decapsulation
Ad hoc network instance identification, the network type of message carrying, device identification are respectively as purpose network example mark, purpose net
Network type and destination node are recorded to the initial forwarding-table item of the across a network to update the initial forwarding-table item of the across a network as across a network
Forwarding-table item.
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
Actually ad hoc network instance identification.
Further, in the present invention, the message as described above can carry Network Style Identifier TLV.It is based on
This, in this step 106 after the source network instance identification in using the existing initial forwarding-table item of across a network is to decapsulation
Message encapsulates again and source node into the initial forwarding-table item of the across a network send before also need to first by the device identification of this equipment,
Source network type in the existing initial forwarding-table item of across a network replaces the Network Style of message carrying respectively
Identifier fields are included in Identifier TLV device identification, network type.
Description based on table 1 He this step 106, the exemplified across a network forwarding-table item of table 2:
Table 2
Based on the across a network forwarding-table item shown in table 2, the network edge device in above-mentioned steps 103 can pass through following steps
Detection is local to whether there is the across a network forwarding-table item for being used for E-Packeting:
Judge whether to include the across a network forward table of following parameter from local already present across a network forwarding-table item
:
Target MAC (Media Access Control) address:The target MAC (Media Access Control) address that message carries;
Purpose IP address:The purpose 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 packaged before decapsulation;
Source network type:The network type that message carries (is specifically the Network Style that message carries
The network type that Identifier fields include in Identifier TLV);
Source node:The device identification that message carries (is specifically the Network Style Identifier that message carries
The device identification that Identifier fields include in TLV);
If it is, think the across a network forwarding-table item for being used for E-Packeting be present, otherwise it is assumed that in the absence of for forwarding
The across a network forwarding-table item of message.
Wherein, above-mentioned steps 104 to step 106 be enable the network edge device of across a network translation function it is local not
Performed during in the presence of for forwarding the across a network forwarding-table item of the message.
And the network edge device for enabling across a network translation function is being detected exist locally for the forwarding message
Across a network forwarding-table item when, then using in the across a network forwarding-table item purpose network example identify to the report after decapsulation
Text encapsulation and the destination node transmission into the across a network forwarding-table item again.
In the present invention, after the network edge device for enabling across a network translation function is sending message, other network edges
Edge equipment can receive the message, wherein, when other network edge devices receive message, can perform similar above-mentioned steps 103 to
The processing of step 106, and when apparatus for network node receives message, the processing of following steps 107 can be performed.
Step 107, apparatus for network node receives the ad hoc network example of this device configuration of network edge device transmission
The message of encapsulation is identified, the message is decapsulated, when locally in the absence of list item is accessed corresponding to the source MAC of the message,
Access list item corresponding to the source MAC of the message is established, and message is sent to the target MAC (Media Access Control) address of the message.
In the present invention, the access list item of foundation at least may include following parameter:
MAC Address:The source MAC of message;
Network example identifies:The network example is identified as the ad hoc network example mark that message is packaged before decapsulation
Know;
Outgoing interface:For the virtual interface matched with receiving the physical interface of message.
Finally, by above-mentioned steps, the message that main frame a is sent to main frame b can reach main frame b.
So far, flow shown in Fig. 1 is completed.
Flow shown in Fig. 1 is stated below by a specific embodiment:
The embodiment is applied to following networking scene:Main frame a in one SPB network crosses over another SPB nets of EVI network access
Main frame b in network;
Main frame a sends request message to main frame b, (can identify) that the request message reaches SPB nodes by AC with VLAN
Device A.
Access list item corresponding to the local target MAC (Media Access Control) address with the presence or absence of request message of SPB node devices A detections;
If access list item is not present, that is, it is to receive the report that main frame a is sent to main frame b for the first time to illustrate this SPB node devices A
Text, then the common I-SID that SPB node devices A encapsulates list item such as PW list items and obtain the encapsulation request message by looking into message, and
The special I- being previously designated using the common I-SID (I-SID100 might as well be set), the configured SPB network in this equipment
SID (might as well set I-SID200) carries out SPB encapsulation and sent to request message respectively, wherein, the request report of I-SID200 encapsulation
Text also carries Network Style Identifier TLV as described above in forwarding.The Network Style
Identifier fields carry device identification in Identifier TLV, network type is respectively SPB node devices A equipment
Mark, the types value for representing SPB network.In the present invention, I-SID100 encapsulation request message, I-SID200 encapsulation please
Message is asked normally to be forwarded by existing message pass-through mode in SPB network.
When other SPB node devices are received by the request message of I-SID200 encapsulation in SPB network, processing mode is similar to existing
There is the Message processing mode (processing mode of the message of i.e. common I-SID encapsulation) in SPB network.
When network edge device X receive by I-SID200 encapsulate request message, then decapsulated, and establish across a network
Initial forwarding-table item.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 walk for each Network Side Interface in addition to the interface for receiving message
Suddenly:Identify the network type and the appointed ad hoc network reality of the configured network type of this equipment belonging to the Network Side Interface
Example mark;Present networks edge device X device identification, the network type identified are replaced into message carrying respectively
Device identification, network type in Network Style Identifier TLV, and the ad hoc network identified using this is real
Example mark encapsulates again to the message after decapsulation to be sent by the Network Side Interface.
When the apparatus for network node Y in EVI networks receives being previously designated by EVI networks for network edge device X transmissions
The request message that encapsulates again of ad hoc network instance identification (Network 300 might as well be set) after, the request message is decapsulated, hair
The MAC Address that the target MAC (Media Access Control) address of existing message is local host b, then send the request message after the decapsulation to main frame b,
And the source MAC of the request message is established when being locally not present and accessing list item corresponding to the source MAC of the request message
Corresponding access list item;The access list item of foundation comprises at least:MAC Address, network example mark, outgoing interface, wherein, it is described
MAC Address is the source MAC of request message, and the network example is identified as the spy that request message is packaged before decapsulation
Different network example mark (might as well set Network 300), the outgoing interface are:Matched with the physical interface for receiving request message
Virtual interface;Being received again after apparatus for network node Y can be according to the access list item when main frame b is sent to main frame a message
Forwarding, the forwarding of back message described in detail below.
When main frame b receives request message, the purpose MAC for finding request message is exactly the MAC of oneself, then is received,
Back message is returned afterwards.The target MAC (Media Access Control) address of the back message is main frame a address.
When main frame b back message reaches apparatus for network node Y, apparatus for network node Y has found locally the response report be present
Access list item corresponding to the target MAC (Media Access Control) address of text, then using described in the network example mark encapsulation in the existing access list item
Back message is simultaneously sent by the outgoing interface in the access list item to the target MAC (Media Access Control) address of the message.Access as described above
List item, here, the network example of back message encapsulation are identified as the appointed ad hoc network instance identification Network of EVI networks
300, also, the back message that the appointed ad hoc network instance identification Network 300 of EVI networks is encapsulated also needs to carry
Network Style Identifier TLV.Identifier fields institute in the Network Style Identifier TLV
Comprising device identification, network type be respectively apparatus for network node Y device identification, the types value for representing EVI networks.
When network edge device X receives the back message of the encapsulation of Network 300, the source established before locally finding
MAC Address, source IP address are respectively target MAC (Media Access Control) address, the initial forwarding-table item of the across a network of purpose IP address that message carries, and are used
Source network type replaces the back message respectively in present networks edge device X device identification, the initial forwarding-table item of the across a network
Device identification, network type in the Network Style Identifier TLV of carrying, are initially forwarded using the across a network
The back message is encapsulated source network instance identification in list item again and the source node hair into the initial forwarding-table item of the across a network
Send;Here, the network example of the back message encapsulation encapsulated again is identified as the appointed special I-SID200 of SPB network.
Also, device identification that network edge device X carries the message, network example mark are as destination node
With purpose network example identification record to the initial forwarding-table item of the across a network to update the initial forwarding-table item of the across a network as inter-network
Network forwarding-table item.The message or main frame b for receiving main frame a transmission main frames b again after network edge device X are sent to main frame a's
Message can be forwarded dependent on the across a network forwarding-table item, and specific pass-through mode is as described above.
When SPB node devices A receives the back message of I-SID200 encapsulation of network edge device transmission, to the response
Decapsulation, the target MAC (Media Access Control) address for finding message is local host a MAC Address, then after sending the decapsulation to main frame a
Back message, and establish the back message when being locally not present and accessing list item corresponding to the source MAC of the back message
Access list item corresponding to source MAC;The access list item of foundation comprises at least:MAC Address, network example mark, outgoing interface, its
In, the MAC Address is the source MAC of back message, and the network example is identified as back message quilt before decapsulation
The ad hoc network instance identification (might as well set Network 300) of encapsulation, the outgoing interface are:Physics with receiving back message
The virtual interface of Interface Matching.Receive when main frame a is sent to main frame b message and can be connect according to this again after SPB node devices A
Enter list item forwarding.
So far, across a network interacts between completing main frame a and main frame b.
It should be noted that in the present invention, network edge device also timing is entered to each across a network forwarding-table item of local
Row detection, it is specially:
For local each across a network forwarding-table item, following two addresses of the difference timing into the across a network forwarding-table item
To sending probe messages:First address pair:Source MAC+source IP address, the second address pair:Target MAC (Media Access Control) address+purpose IP
Location;Wherein, the probe messages of transmission are encapsulated by the source network instance identification in the across a network forwarding-table item to the first address, to
Second address identifies encapsulation to the probe messages of transmission by the purpose network example in the across a network forwarding-table item;
If before the active timer time-out set for the across a network forwarding-table item in receive the first address to,
When second address is to the echo probe of return, the active timer of the across a network forwarding-table item is updated, otherwise, updates the across a network
The ageing timer of forwarding-table item, start list item aging, the across a network forwarding-table item is deleted in ageing timer time-out.
It should also be noted that, in the present invention, if the network edge device for enabling across a network translation function is present
The interface of main frame is directly connected to, then means that the equipment concurrently acts as two kinds of roles of apparatus for network node and network edge device,
It can handle the message for treating to send to direct-connected main frame according to apparatus for network node role simultaneously;And for receive its is direct-connected
The message that sends of main frame, it can first to handle its according still further to network edge device role according to apparatus for network node role direct-connected
The message that main frame is sent.
Method provided by the invention is described above, equipment provided by the invention is described below:
Referring to Fig. 2, Fig. 2 is equipment structure chart provided by the invention.The equipment application is in apparatus for network node, the network
Node device is configured with the appointed ad hoc network instance identification of its belonging network, as shown in figure 3, the equipment includes:
Receiving unit, for receiving the message of local host transmission;
Detection unit, list item locally is accessed with the presence or absence of corresponding with the target MAC (Media Access Control) address of the message for detecting,
Transmitting element, for when the testing result of the detection unit is no, list item to be encapsulated from the message being locally created
In find general network instance identification for encapsulating the message, respectively using the general network instance identification and this equipment
The ad hoc network instance identification of configuration encapsulates the message and sent to the target MAC (Media Access Control) address of the message;And
For when the testing result of the detection unit is is, using the network example mark in the existing access list item
Know and encapsulate the message and sent by the outgoing interface in the access list item to the target MAC (Media Access Control) address of the message.
Preferably, in the present invention, the receiving unit further receives matching somebody with somebody via this equipment for network edge device transmission
The message for the ad hoc network instance identification encapsulation put;
Based on this, the transmitting element further decapsulates to the message, and the source MAC pair of message is locally being not present
Access list item corresponding to the source MAC of message is established during the access list item answered, and is sent to the target MAC (Media Access Control) address of the message
Message;The access list item of foundation comprises at least:MAC Address, network example mark, outgoing interface, wherein, the MAC Address is report
The source MAC of text, the network example is identified as the ad hoc network instance identification that message is packaged before decapsulation, described
Outgoing interface is:The virtual interface that physical interface with receiving message matches.
So far, the device structure description shown in Fig. 2 is completed.
Referring to Fig. 3, Fig. 3 is another equipment structure chart provided by the invention.The equipment application in enable across a network conversion
The network edge device of function, the network edge device are configured with the appointed ad hoc network of each heterogeneous networks of its connection
Instance identification, as shown in figure 3, the equipment includes:
Receiving unit, the message that the ad hoc network instance identification for receiving by this device configuration encapsulates, to message solution
Encapsulation;
Detection unit, for when the across a network forwarding-table item for forwarding the message is locally not present, detection to be local
With the presence or absence of at the beginning of across a network corresponding to the target MAC (Media Access Control) address of message, purpose IP address in the existing initial forwarding-table item of across a network
Beginning forwarding-table item,
Forward processing unit, for the detection unit testing result for it is no when, be locally created including at least with
The initial forwarding-table item of across a network of lower parameter:Source MAC, source IP address, target MAC (Media Access Control) address, purpose IP address, source network are real
Example mark, source network type, source node, and the network type belonging to using the Network Side Interface in addition to the interface for receiving message
Appointed ad hoc network instance identification is encapsulated and sent by the Network Side Interface again to the message after decapsulation;The source
MAC Address, source IP address, target MAC (Media Access Control) address, purpose IP address are respectively the source MAC, source IP address, purpose MAC of message
Address, purpose IP address, the source network type, source node are respectively the device identification that message carries before decapsulating, described
Network example is identified as the ad hoc network instance identification that message is packaged before decapsulation;And
For the detection unit testing result for be when, using in the existing initial forwarding-table item of across a network
Source network instance identification is encapsulated again to the message after decapsulation and the source node into the initial forwarding-table item of the across a network is sent, will
Message ad hoc network instance identification packed before decapsulation, the network type of message carrying, device identification difference
Recorded as purpose network example mark, purpose network type and destination node to the initial forwarding-table item of the across a network to update this
The initial forwarding-table item of across a network is across a network forwarding-table item.
Preferably, the forward processing unit is further exist locally for the across a network forwarding-table item for forwarding the message
When, the message after decapsulation is encapsulated again and to the inter-network using the purpose network example mark in the across a network forwarding-table item
Destination node in network forwarding-table item is sent.
Preferably, the equipment further comprises:
Probe unit, for for local each across a network forwarding-table item, timing to be into the across a network forwarding-table item respectively
Following two addresses to send probe messages:First address pair:Source MAC+source IP address, the second address pair:Purpose MAC
Address+purpose IP address;Wherein, it is real by the source network in the across a network forwarding-table item to the probe messages of transmission to the first address
Example mark encapsulation, envelope is identified by the purpose network example in the across a network forwarding-table item to the probe messages of transmission to the second address
Dress;
If received before the active timer time-out set for the across a network forwarding-table item the first address to,
When double-address is to the echo probe of return, the active timer of the across a network forwarding-table item is updated, otherwise, the across a network is updated and turns
The ageing timer of forwarding list item, start list item aging, the across a network forwarding-table item is deleted in ageing timer time-out.
So far, the equipment description shown in Fig. 3 is completed.
As can be seen from the above technical solutions, in the present invention, across a network translation function is enabled in network edge device, works as net
When network edge device receives the message encapsulated by an ad hoc network instance identification of its configuration, the message is decapsulated, examined
Measure the local across a network forwarding-table item being not present for forwarding the message and local also in the absence of source MAC, source IP address
When target MAC (Media Access Control) address that respectively message carries, the initial forwarding-table item of the across a network of purpose IP address, establish and carried with the message
The associated initial forwarding-table item of across a network of feature field, using belonging to the Network Side Interface in addition to the interface for receiving message
Network type appointed ad hoc network instance identification the message after decapsulation is encapsulated again and sent out by the Network Side Interface
Send;And locally source MAC be present, source IP address be respectively message carry target MAC (Media Access Control) address, purpose IP address inter-network
During the initial forwarding-table item of network, using the source network instance identification in the existing initial forwarding-table item of across a network to decapsulation after
Message encapsulate again and source node into the initial forwarding-table item of the across a network is sent, and the equipment mark by the way that the message is carried
Know, network example mark initially forwards respectively as destination node and purpose network example identification record to the existing across a network
To update the initial forwarding-table item of the across a network as across a network forwarding-table item, this is obviously realized not list item on network edge device
With the conversion between network, that is, the purpose for solving to change between heterogeneous networks in an equipment is realized, net is greatly reduced
Number of devices in network.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.
Claims (11)
1. a kind of message forwarding method of across a network, it is characterised in that this method is applied to apparatus for network node, the network section
Point device is configured with the appointed ad hoc network instance identification of its belonging network, and this method includes:
Receive the message that local host is sent;
Detection is local to access list item with the presence or absence of corresponding with the target MAC (Media Access Control) address of the message,
If not, the general network instance identification for encapsulating the message is found from the message encapsulation list item being locally created,
Respectively the message is encapsulated using the ad hoc network instance identification of the general network instance identification and this device configuration and to institute
The target MAC (Media Access Control) address for stating message is sent;
If it is, encapsulate the message and by the access list item using the network example mark in the existing access list item
Target MAC (Media Access Control) address from outgoing interface to the message send;
The appointed ad hoc network instance identification of each heterogeneous networks of its connection is configured in network edge device, is carrying out inter-network
It is right when network edge device receives the message that the ad hoc network instance identification by this device configuration encapsulates when network forwards
After the message is decapsulated, then the ad hoc network of the upper purpose network of message encapsulation is identified and forwarded.
2. according to the method for claim 1, it is characterised in that this method further comprises:
Receive the message of the ad hoc network instance identification encapsulation of this device configuration of network edge device transmission;
The message is decapsulated, the source MAC of message is established when being locally not present and accessing list item corresponding to the source MAC of message
Access list item corresponding to address, and send message to the target MAC (Media Access Control) address of the message;The access list item of foundation comprises at least:
MAC Address, network example mark, outgoing interface, wherein, the MAC Address be message source MAC, the network example mark
Know the ad hoc network instance identification being packaged for message before decapsulation, the outgoing interface is:Physics with receiving message
The virtual interface of Interface Matching.
3. a kind of message forwarding method of across a network, it is characterised in that this method is applied to enable across a network translation function
Network edge device, the network edge device are configured with the appointed ad hoc network example mark of each heterogeneous networks of its connection
Know, including:
The message encapsulated by an ad hoc network instance identification of this device configuration is received, message is decapsulated;
When the across a network forwarding-table item for forwarding the message is locally not present, the local already present across a network of detection initially turns
In forwarding list item with the presence or absence of source MAC, source IP address be respectively message carry target MAC (Media Access Control) address, purpose IP address across
The initial forwarding-table item of network,
If not, the initial forwarding-table item of across a network including at least following parameter is being locally created:Source MAC, source IP address,
Target MAC (Media Access Control) address, purpose IP address, source network instance identification, source network type, source node, and receive connecing for message using removing
The appointed ad hoc network instance identification of network type belonging to Network Side Interface outside mouthful is sealed again to the message after decapsulation
Fill and sent by the Network Side Interface;The source MAC, source IP address, target MAC (Media Access Control) address, purpose IP address are respectively
The source MAC of message, source IP address, target MAC (Media Access Control) address, purpose IP address, the source network type, source node are respectively to solve
The device identification that message carries before encapsulation, the source network instance identification are the special net that message is packaged before decapsulation
Network instance identification;
If it is, using the source network instance identification in the existing initial forwarding-table item of across a network to the message weight after decapsulation
Encapsulate and the source node into the initial forwarding-table item of the across a network is sent, the special net that the message is packaged before decapsulation
Network instance identification, the network type of message carrying, device identification are respectively as purpose network example mark, purpose network type
Recorded with destination node to the initial forwarding-table item of the across a network to update the initial forwarding-table item of the across a network as across a network forward table
.
4. according to the method for claim 3, it is characterised in that network side of the use in addition to the interface for receiving message
The appointed ad hoc network instance identification of network type belonging to interface encapsulates and by the network again to the message after decapsulation
Side interface, which is sent, to be included:
Following steps are performed for each Network Side Interface in addition to the interface for receiving message:
Identify the network type and the configured appointed ad hoc network of the network type of this equipment belonging to the Network Side Interface
Instance identification;
The device identification of this equipment, the network type identified are replaced to device identification, the network of message carrying respectively
Type, and the ad hoc network instance identification identified using this is encapsulated by the Network Side Interface again to the message after decapsulation
Send.
5. according to the method for claim 3, it is characterised in that this method further comprises:
When exist locally for the across a network forwarding-table item for forwarding the message, using the purpose net in the across a network forwarding-table item
Network instance identification is encapsulated again to the message after decapsulation and the destination node into the across a network forwarding-table item is sent.
6. according to the method for claim 3, it is characterised in that this method further comprises:
For local each across a network forwarding-table item, following two addresses of the timing into the across a network forwarding-table item are to hair respectively
Send probe messages:First address pair:Source MAC+source IP address, the second address pair:Target MAC (Media Access Control) address+purpose IP address;Its
In, the probe messages of transmission are encapsulated by the source network instance identification in the across a network forwarding-table item to the first address, to second
Address identifies encapsulation to the probe messages of transmission by the purpose network example in the across a network forwarding-table item;
If the first address is received before the active timer time-out set for the across a network forwarding-table item to, the second ground
When location is to the echo probe of return, the active timer of the across a network forwarding-table item is updated, otherwise, updates the across a network forward table
The ageing timer of item, start list item aging, the across a network forwarding-table item is deleted in ageing timer time-out.
7. a kind of message forwarding equipment of across a network, it is characterised in that the equipment application is in apparatus for network node, the network section
Point device is configured with the appointed ad hoc network instance identification of its belonging network, and the equipment includes:
Receiving unit, for receiving the message of local host transmission;
Detection unit, list item locally is accessed with the presence or absence of corresponding with the target MAC (Media Access Control) address of the message for detecting,
Transmitting element, for when the testing result of the detection unit is no, being looked for from the message encapsulation list item being locally created
To the general network instance identification for encapsulating the message, respectively using the general network instance identification and this device configuration
Ad hoc network instance identification encapsulate the message and sent to the target MAC (Media Access Control) address of the message;And in the inspection
The testing result for surveying unit is when being, encapsulates described message using network example mark in the existing access list item and passes through
Outgoing interface in the access list item is sent to the target MAC (Media Access Control) address of the message;
Retransmission unit, the appointed ad hoc network instance identification of each heterogeneous networks of its connection is configured in network edge device,
When carrying out across a network forwarding, network edge device receives what the ad hoc network instance identification by this device configuration encapsulated
During message, after being decapsulated to the message, then the ad hoc network of the upper purpose network of message encapsulation is identified and forwarded.
8. equipment according to claim 7, it is characterised in that the receiving unit further receives network edge device hair
The message that the ad hoc network instance identification via this device configuration sent encapsulates;
The transmitting element is further decapsulated to the message, and table is accessed being locally not present corresponding to the source MAC of message
Access list item corresponding to the source MAC of message is established during item, and message is sent to the target MAC (Media Access Control) address of the message;Establish
Access list item comprise at least:MAC Address, network example mark, outgoing interface, wherein, the MAC Address is the source MAC of message
Address, the network example are identified as the ad hoc network instance identification that message is packaged before decapsulation, and the outgoing interface is:
The virtual interface that physical interface with receiving message matches.
9. equipment according to claim 7, it is characterised in that the equipment application is in the net for enabling across a network translation function
Network edge device, the network edge device are configured with the appointed ad hoc network example mark of each heterogeneous networks of its connection
Know, retransmission unit includes:
Receiving unit, the message that the ad hoc network instance identification for receiving by this device configuration encapsulates, is decapsulated to message;
Detection unit, for when the across a network forwarding-table item for forwarding the message is locally not present, detection to be local existing
The initial forwarding-table item of across a network in initially turn with the presence or absence of across a network corresponding to the target MAC (Media Access Control) address of message, purpose IP address
Forwarding list item,
Forward processing unit, for when the testing result of the detection unit is no, following ginseng to be comprised at least being locally created
The initial forwarding-table item of several across a networks:Source MAC, source IP address, target MAC (Media Access Control) address, purpose IP address, source network example mark
Knowledge, source network type, source node, and referred to using the network type belonging to the Network Side Interface in addition to the interface for receiving message
Fixed ad hoc network instance identification is encapsulated and sent by the Network Side Interface again to the message after decapsulation;The source MAC
Location, source IP address, target MAC (Media Access Control) address, purpose IP address be respectively the source MAC of message, source IP address, target MAC (Media Access Control) address,
Purpose IP address, the device identification that message carries before the source network type, source node are respectively decapsulation, the source network
Instance identification is the ad hoc network instance identification that message is packaged before decapsulation;And
For the detection unit testing result for be when, using the source net in the existing initial forwarding-table item of across a network
Network instance identification is encapsulated again to the message after decapsulation and the source node into the initial forwarding-table item of the across a network is sent, and this is reported
Text before decapsulation be packaged ad hoc network instance identification, the message carry network type, device identification respectively as
Purpose network example mark, purpose network type and destination node are recorded to the initial forwarding-table item of the across a network to update the inter-network
The initial forwarding-table item of network is across a network forwarding-table item.
10. equipment according to claim 9, it is characterised in that the forward processing unit further locally has use
When the across a network forwarding-table item of the message is forwarded, using the purpose network example mark in the across a network forwarding-table item to deblocking
Message after dress is encapsulated again and the destination node into the across a network forwarding-table item is sent.
11. the equipment according to claim 9 or 10, it is characterised in that the equipment further comprises:
Probe unit, for for local each across a network forwarding-table item, respectively timing into the across a network forwarding-table item with
Lower two addresses are to sending probe messages:First address pair:Source MAC+source IP address, the second address pair:Target MAC (Media Access Control) address
+ purpose IP address;Wherein, to the first address to the probe messages of transmission by the source network example mark in the across a network forwarding-table item
Know encapsulation, encapsulation is identified by the purpose network example in the across a network forwarding-table item to the probe messages of transmission to the second address;
If the first address is received before the active timer time-out set for the across a network forwarding-table item to, the second ground
When location is to the echo probe of return, the active timer of the across a network forwarding-table item is updated, otherwise, updates the across a network forward table
The ageing timer of item, start list item aging, the across a network forwarding-table item is deleted in ageing timer time-out.
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 CN104486217A (en) | 2015-04-01 |
CN104486217B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227466B (en) * | 2015-08-20 | 2019-01-11 | 北京百度网讯科技有限公司 | Communication processing method and device |
CN105591922B (en) * | 2015-10-13 | 2019-03-15 | 新华三技术有限公司 | A kind of transmission method and device of message |
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 |
CN109982117B (en) * | 2019-03-15 | 2021-06-04 | 兰州大学 | Relay processing method, device, storage medium and network equipment for video stream data |
Citations (4)
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 |
-
2014
- 2014-12-08 CN CN201410743057.0A patent/CN104486217B/en active Active
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104486217A (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10205657B2 (en) | Packet forwarding in data center network | |
EP3544240B1 (en) | Data processing | |
CN104486217B (en) | The message forwarding method and equipment of across a network | |
CN111935014B (en) | Message forwarding method and device based on SRv6 network, storage medium and electronic equipment | |
CN105827495B (en) | The message forwarding method and equipment of VXLAN gateway | |
CN104639414B (en) | A kind of message forwarding method and equipment | |
JP6034979B2 (en) | Packet transfer method and apparatus, and data center network | |
EP3313025A2 (en) | Data packet forwarding | |
CN106992917A (en) | Message forwarding method and device | |
CN105634901B (en) | Mac address information synchronous method and device based on CAS VXLAN | |
CN104092595B (en) | Message processing method and device in virtualization system based on 802.1BR | |
CN106059923B (en) | A kind of message forwarding method and device | |
CN103166864B (en) | A kind of private network vlan information management method and equipment | |
CN107404470A (en) | Connection control method and device | |
CN105227466B (en) | Communication processing method and device | |
CN114124618B (en) | Message transmission method and electronic equipment | |
CN109412927B (en) | Multi-VPN data transmission method and device and network equipment | |
CN107094110A (en) | A kind of DHCP message retransmission method and device | |
CN107547340A (en) | A kind of message forwarding method and device | |
US11102115B2 (en) | Forwarding packet | |
CN108667709B (en) | Message forwarding method and device | |
WO2015027910A1 (en) | Implementing network communication | |
WO2019238002A1 (en) | Message transmitting method, network edge device, and message transmission system | |
CN107666428A (en) | Silencing devices detection method and device | |
JP2017229027A (en) | Switch apparatus and relay 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 |