CN104639440B - A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network - Google Patents
A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network Download PDFInfo
- Publication number
- CN104639440B CN104639440B CN201510053111.3A CN201510053111A CN104639440B CN 104639440 B CN104639440 B CN 104639440B CN 201510053111 A CN201510053111 A CN 201510053111A CN 104639440 B CN104639440 B CN 104639440B
- Authority
- CN
- China
- Prior art keywords
- interchanger
- stacking
- data message
- dvp
- port
- 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
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network.More than two the first exchange piling connections, all second switch and all first interchangers connect entirely, first interchanger receives the data message for needing to carry out three layers of forwarding by non-stacking mouth, MAC Address to be replaced is obtained from three layer retransmitting table items of data message matching, next-hop exit port and purpose void port DVP values, next-hop exit port is the port that another first interchanger is connected with second switch, and DVP values are obtained by the port mapping being connected with non-first interchanger of second switch;MAC Address in data message is replaced with to MAC Address to be replaced, next-hop exit port and DVP values are carried in protocol header is stacked, the data message after the replacement MAC Address that will encapsulate stacking protocol header is transmitted to another first interchanger by stacking opening.
Description
Technical field
The present invention relates to communication technical field, realizes three layers of forwarding in a network more particularly to one kind and tunneling is believed
The method and apparatus of breath.
Background technology
The network equipment virtualization be a kind of trend, can streamlining management, reduce cost, realize flexible networking.At present,
Many standardization agreements are proposed to support the virtualization of the network equipment, such as 802.1BR, 802.1Qbg etc., by number
According to the protocol label (TAG) that agreement is encapsulated in message, realize that control bridge in network model (controlling bridge, CB) is set
It is standby to carry out data message forwarding according to fixed passage between ports-Extending (port extender, PE) equipment, expand so as to reach
Open up CB ports, more physical equipment virtualizations to effect together.
In the standard agreement, only having arranged interchanger (interchanger can be CB equipment) being capable of tunneling information
Two layers of forwarding process, three layers of forwarding process of not having an agreement.Wherein, needs are received according to two layers of forwarding process, interchanger
After the data message for carrying out two layers of forwarding, after lookup two-layer retransmitting table item, it is only necessary to perform one-off, once moved by this
Make to give data message tunneling label, then can complete two layers of forwarding according to exit port forwarding data packets.
Three layers of forwarding of data message are realized in a network, and and can is enough data message tunneling information, is exchanged
Machine passes through one-off after after receiving the data message for needing to carry out three layers of forwarding, it is necessary to search three layer retransmitting table items
To replace purpose MAC and source MAC so as to realize three layers of forwarding, also need to give message tunneling mark by another one-off afterwards
Label, because current most of exchanger chip only supports one-off, so in the case of normal networking, can not in a network both
Realize three layers of enough tunneling information of forwarding and can.
The content of the invention
In view of this, the present invention proposes a kind of method and dress for realizing three layers of forwarding and tunneling information in a network
Put, can both realize three layers of forwarding of data message, can also be data message tunneling information.
Technical scheme proposed by the present invention is:
A kind of method for realizing three layers of forwarding and tunneling information in a network, first exchange piling of more than two
Connection, and all first interchangers of all second switch and stacking connect entirely, and this method includes:
First interchanger receives the data message for needing to carry out three layers of forwarding by non-stacking mouth, from the datagram
MAC Address to be replaced, next-hop exit port and purpose void port DVP values are obtained in three layer retransmitting table items of text matching, wherein,
The next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are handed over by described second
The port mapping being connected with non-first interchanger changed planes obtains;
MAC Address in the data message is replaced with into the MAC Address to be replaced, carried in protocol header is stacked
The next-hop exit port and the DVP values, the data message after the replacement MAC Address for stacking protocol header will be encapsulated and led to
Cross stacking opening and be transmitted to another first interchanger, so that another first interchanger is to the institute that is received by stacking opening
State the data message after the replacement MAC Address for encapsulating the stacking protocol header and carry out stacking multi-protocol decapsulation, according to the DVP
It is worth tunneling information, the data message of protocol information is encapsulated by next-hop exit port forwarding.
A kind of method for realizing three layers of forwarding and tunneling information in a network, first exchange piling of more than two
Connection, and all first interchangers of all second switch and stacking connect entirely, and this method includes:
First interchanger is received by stacking opening encapsulates the data message for stacking protocol header, to the data message
Stacking multi-protocol decapsulation is carried out, according to the DVP value tunneling information in the stacking protocol header, passes through the stacking protocol header
In the forwarding of next-hop exit port encapsulate the data message of protocol information, wherein, the next-hop exit port is described first
The port that interchanger is connected with second switch, the DVP values are connected with non-first interchanger by the second switch
Port mapping obtains.
A kind of device for realizing three layers of forwarding and tunneling information in a network, described device are located at the first interchanger
In, first exchange piling connection of more than two, and all first interchangers of all second switch and stacking
Full connection, described device include three layers of table look-up module and three layers of forwarding module;
Three layers of table look-up module, for receiving the data message for needing to carry out three layers of forwarding by non-stacking mouth, from institute
State in three layer retransmitting table items of data message matching and obtain MAC Address to be replaced, next-hop exit port and purpose void port DVP
Value, wherein, the next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are by institute
The port mapping being connected with non-first interchanger for stating second switch obtains;
Three layers of forwarding module, for by the MAC Address in the data message with replacing with the MAC to be replaced
Location, the next-hop exit port and the DVP values are carried in protocol header is stacked, the replacement of the stacking protocol header will be encapsulated
Data message after MAC Address is transmitted to another first interchanger by stacking opening, so that another first interchanger
The data message after replacement MAC Address to encapsulating the stacking protocol header described in being received by stacking opening stacks
Multi-protocol decapsulation, according to the DVP values tunneling information, protocol information is encapsulated by next-hop exit port forwarding
Data message.
A kind of device for realizing three layers of forwarding and tunneling information in a network, described device are located at the first interchanger
In, first exchange piling connection of more than two, and all first interchangers of all second switch and stacking
Full connection, described device include decapsulation module and forwarding module;
The decapsulation module, the data message for stacking protocol header is encapsulated for being received by stacking opening, to the number
Stacking multi-protocol decapsulation is carried out according to message, obtains the DVP values and next-hop exit port in the stacking protocol header, wherein, it is described
Next-hop exit port is the port that first interchanger is connected with second switch, and the DVP values are by the second switch
The port mapping being connected with non-first interchanger obtain;
The forwarding module, for the DVP value tunneling information in the stacking protocol header, pass through the stacking
Next-hop exit port forwarding in protocol header encapsulates the data message of protocol information.
As seen from the above technical solution, in the embodiment of the present invention, by by the forwarding behavior of networking structure and the network equipment
It is combined, realizes by two the first interchangers to needing the data message for carrying out three layers of forwarding to perform three layers of forwarding and envelope respectively
Protocol information is filled, wherein, three layers of forwarding are completed by first interchanger, then issued data message by stacking opening another
The interchanger of platform first, by this another the first interchanger tunneling information, so as to both realize that the three of data message layers turn
Hair, can also be data message tunneling information.
Specifically, in networking, first exchange piling of more than two is connected, and all second switch and heap
Folded all first interchangers are connected entirely, and in actual forwarding data packets, first interchanger is received by non-stacking mouth
Need to carry out three layers of data message forwarded, MAC to be replaced is obtained from three layer retransmitting table items of data message matching
Address, next-hop exit port and purpose void port DVP values, the MAC Address in the data message are replaced with described to be replaced
MAC Address, the next-hop exit port and the DVP values are carried in protocol header is stacked, the stacking agreement will be encapsulated
Data message after the replacement MAC Address of head is transmitted to another first interchanger by stacking opening, so that described another the
One interchanger is to encapsulating the data message replaced after MAC Address of the stacking protocol header described in being received by stacking opening
Stacking multi-protocol decapsulation is carried out, according to the DVP values tunneling information, association is encapsulated by next-hop exit port forwarding
Discuss the data message of information.Wherein, the next-hop exit port is the port that another first interchanger is connected with second switch,
The DVP values are obtained by the port mapping being connected with non-first interchanger of the second switch.
It can be seen that the embodiment of the present invention is by pre-setting special networking structure, also, limit the flow direction of data message as
Two the first interchangers must be flowed through successively, wherein, the first interchanger for first flowing through carries out three layers of forwarding, the flowed through afterwards
One interchanger tunneling information, also, the first interchanger due to flowing through afterwards can be directly according in stacking protocol header
DVP value tunneling information, therefore, in whole process only need to inquire about a forwarding-table item, that is, inquire about three layer retransmitting table items, make
It of the invention can not only must not only realize three layers of forwarding but also realize the encapsulation of protocol information, additionally it is possible to improve forward efficiency.
Brief description of the drawings
Fig. 1 is the schematic flow sheet by the existing three layers of forwarding of loopback cause for gossip and tunneling information;
Fig. 2 is the method flow provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Figure;
Fig. 3 is the networking schematic diagram that the embodiment of the present invention provides method shown in application drawing 2;
Fig. 4 is that the embodiment of the present invention provides the signal for turning transmitting IP packet using method shown in Fig. 2 based on networking shown in Fig. 3
Figure;
Fig. 5 is the hardware configuration connection figure of interchanger provided in an embodiment of the present invention;
Fig. 6 is the first device provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Structural representation;
Fig. 7 is the second device provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Structural representation.
Embodiment
Technical problem for can not both realize three layers of enough tunneling information of forwarding and can in a network at present, has one
Kind passes through the existing three layers of forwarding of loopback cause for gossip and the scheme of tunneling information.In this scenario, three layer retransmitting table item on interchanger
Corresponding next-hop action is to replace MAC Address and exit port one loopback mouth of sensing, and interchanger, which receives, needs carry out three
After the data message of layer forwarding, three layer retransmitting table items are first looked for, purpose MAC is completed according to three layer retransmitting table item lookup results
The replacement action of address and source MAC, then returns to the interchanger, the interchanger searches two layers again by message from loopback choma
Forwarding-table item, next-hop action corresponding to two-layer retransmitting table item is addition protocol label, has searched two-layer retransmitting table item and has held afterwards
The action of the row addition protocol label, so as to realize tunneling information.
Fig. 1 is the schematic flow sheet by the existing three layers of forwarding of loopback cause for gossip and tunneling information.Wherein, interchanger can be with
Specially CB equipment.
As shown in Figure 1:IP messages need to be sent to PC2 from PC1, wherein, PC1 is located in VLAN 10 (VLAN10),
PC2 is located in VLAN 20 (VLAN20), and CB receives the IP messages and determines that the IP messages need to carry out three layers of forwarding
After, three layer retransmitting table items are first looked for, replace source MAC (SA) and target MAC (Media Access Control) address (DA) in the IP messages, then
The IP messages that substituted for source MAC and target MAC (Media Access Control) address are returned into the CB from loopback choma, the CB receives this from loopback mouth
After IP messages, two-layer retransmitting table item is searched, performs next-hop action corresponding to two-layer retransmitting table item, the two-layer retransmitting table item is corresponding
Next-hop action be addition protocol label, therefore the CB be the IP messages add protocol label.
It can be seen that in scheme shown in Fig. 1, for CB by the table lookup operation of three layer retransmitting table items, actually having been able to realization will
IP messages are forwarded to destination interface, but due to needing to add protocol label for IP messages, and need to replace when forwarding for three layers
MAC Address in IP messages, current chip generally all support one-off, that is, are merely able to once repair message content
Change, therefore, after the MAC Address in IP messages is substituted for after being tabled look-up at three layers, CB can not add agreement for the IP messages again
Label.In order to add protocol label for IP messages, CB returns the IP messages that have modified MAC Address by loopback choma, so
After search two-layer retransmitting table item, next-hop action corresponding to two-layer retransmitting table item is performed, by the way that next-hop action is arranged to
Tunneling label, it is possible to achieve add protocol label for IP messages, it is seen then that CB searches after loopback choma time IP messages
The purpose of two-layer retransmitting table item seeks to add protocol label for IP messages.
As fully visible, in scheme shown in Fig. 1, CB performs to add protocol label while three layers of forwarding is realized
The operation tabled look-up is forwarded twice, causes forward efficiency to reduce, also, when CB returns data message by loopback choma, due to loopback
The bandwidth of mouth is smaller, can also form bottleneck, reduces data message forwarding bandwidth.
Based on above-mentioned analysis, the embodiments of the invention provide one kind to realize three layers of forwarding and tunneling information in a network
Method, three layers of forwarding and addition protocol label can be realized by once forwarding to table look-up, forward efficiency is improved, and can keep away
Exempt to return data message from loopback choma, improve data message forwarding bandwidth.
Fig. 2 is the method flow provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Figure.
As shown in Fig. 2 the flow includes:
Step 201, the first exchange piling connection of more than two, and all second switch and stack all the
One interchanger connects entirely.
This step defines networking structure, once networking is completed, in actual treatment data message, since step 202
Perform.
Step 202, first interchanger receives the data message for needing to carry out three layers of forwarding by non-stacking mouth, from institute
State in three layer retransmitting table items of data message matching and obtain MAC Address to be replaced, next-hop exit port and purpose void port DVP
Value, wherein, the next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are by institute
The port mapping being connected with non-first interchanger for stating second switch obtains.
Step 203, the MAC Address in the data message is replaced with the MAC to be replaced by first interchanger
Address, the next-hop exit port and the DVP values are carried in protocol header is stacked, replacing for the stacking protocol header will be encapsulated
The data message changed after MAC Address is transmitted to another first interchanger by stacking opening, so that described another first exchanges
Machine carries out heap to the data message replaced after MAC Address that the stacking protocol header is encapsulated described in being received by stacking opening
Folded multi-protocol decapsulation, according to the DVP values tunneling information, protocol information is encapsulated by next-hop exit port forwarding
Data message.
Wherein, after the study of three layer retransmitting table items is completed, when the next-hop exit port of the first interchanger is the second friendship
Change planes the port being connected with non-first interchanger when, further the next-hop exit port in three layer retransmitting table item is revised as
The port that another first interchanger is connected with the second switch, the DVP values in three layer retransmitting table item are revised as institute
State the DVP values for the port mapping that second switch is connected with non-first interchanger.
Wherein, another first interchanger is in the DVP value tunneling information in the stacking protocol header, tool
Body can search next-hop corresponding to the DVP values and act, and the next-hop action includes being the data message tunneling
Information, perform the next-hop action.
Can be specially for data message tunneling information:Protocol label information is inserted inside the data message;
Or, in the data message outer enclosure tunnel protocol information.
In a kind of application scenarios, the first interchanger is specially CB equipment, and second switch is specially PE equipment.
As shown in figure 3, Fig. 3 is the networking schematic diagram that the embodiment of the present invention provides method shown in application drawing 2.
CB1 and CB2 stacks connection, and all CB and all PE are connected entirely, i.e. every CB connects respectively with all PE
Connect, every PE is also connected respectively with all CB.
Wherein, PE is used for the port for extending CB, and PE physical port can all be mapped to a virtual port (VP) on CB,
The VP is source void port (source virtual port, SVP) on direction is entered, on outgoing direction for the purpose of empty port
(destination virtual port, DVP), CB be based on SVP enter direction carry out MAC address learning, based on DVP in the side of going out
To lookup destination interface.
The embodiment of the present invention is not limited the stack manner between CB, such as can be to be stacked by the HG of HIGIG mouths.
After networking is completed, CB1 and CB2 need to carry out three layer retransmitting table item study, by taking CB1 as an example.Assuming that PC1 is positioned at void
Intending in LAN 10 (VLAN10), PC2 is located in VLAN 20 (VLAN20), if the three of PC1 to the PC2 that CB1 learns
Next-hop outgoing interface in layer retransmitting table item is the port that PE2 is connected with non-CB equipment, then by under in three layer retransmitting table item
One jumps out the port that port modifications are connected for CB2 with PE2, and the DVP values in three layer retransmitting table item are revised as into PE2 and non-CB and set
The DVP values of standby connected port mapping.
As shown in figure 4, it is provided for the embodiment of the present invention forwards IP reports based on networking shown in Fig. 3 using method shown in Fig. 2
The schematic diagram of text.
IP messages need from PC1 be sent to PC2 when, the IP messages enter after CB1, purpose MAC that CB1 passes through the IP messages
Determine that the IP messages carry out two layers of forwarding or three layers of forwarding.After it is determined that the IP messages need to carry out three layers of forwarding, three are searched
Layer retransmitting table item, source MAC and target MAC (Media Access Control) address to be replaced are obtained from three layer retransmitting table items of IP messages matching,
Next-hop outgoing interface and DVP values.It was found from the process of the above-mentioned layer retransmitting table item of modification three, three layer retransmitting tables of IP messages matching
Next-hop outgoing interface in is the port that CB2 is connected with PE2, and DVP values are the port mapping that PE2 is connected with non-CB equipment
DVP values.
The source MAC of the IP messages is replaced with to the source MAC to be replaced of acquisition, by the purpose MAC of the IP messages
Address replaces with the source MAC to be replaced of acquisition, and inserts in protocol header is stacked the DVP values of acquisition and next jump out end
Mouthful, the IP messages after the replacement MAC Address for encapsulating the stacking protocol header are issued next-hop exit port institute by CB1 by stacking opening
CB on, i.e. CB2.
After CB2 receives the IP messages by stacking opening, stacking multi-protocol decapsulation is carried out to the IP messages, and read stacking
DVP values and next-hop exit port in protocol header, search next-hop corresponding to the DVP values and act, because next-hop action is
Protocol label is added, therefore, CB2 is addition protocol label inside the IP messages, then will with the addition of the IP messages of protocol label
PE2 is issued via the next-hop exit port (port being connected with PE2).
Under normal circumstances, if being stacked with connecting between CB, and in three layer retransmitting table items of data message matching
Next-hop exit port is the port that PE is connected with non-CB equipment, then the data message can be via the PE in these mutual heaps
Aggregation port on folded CB reaches the PE, in other words, when the next-hop exit port is the end that PE is connected with non-CB equipment
Mouthful when, can be finished on CB for data message after three layer retransmitting table items table look-up and replace MAC Address, be directly sent to the PE
(being designated as purpose PE).
However, in order that data message enters back into purpose PE after can flowing through two CB, in order to the CB first flowed through
Search three layer retransmitting table items and replace MAC Address, the operation of the CB execute encapsulation protocol informations flowed through afterwards, the embodiment of the present invention
In, port that the next-hop exit port of three layer retransmitting table items is defined to purpose PE be connected on another CB, i.e., by next-hop
Exit port is revised as the port that another CB is connected with purpose PE so that after data message enters current CB via non-stacking mouth, energy
It is enough to enter another CB via stacking opening, and avoid directly entering purpose PE from current CB.
Wherein, tabled look-up in order to avoid another CB performs forwarding again, cause forward efficiency to reduce, the embodiment of the present invention
In, destination interface, the i.e. DVP of the purpose PE port mapping being connected with non-CB of data message are carried in protocol header is stacked
Value, CB from stacking opening receive data message after, it is necessary to parse stacking protocol header, therefore, another CB receives from stacking opening
To after data message, stack protocol header by parsing, can read the DVP values, another CB read DVP values with
Afterwards, it is data message tunneling information according to DVP values so that another CB need not search forwarding-table item, i.e. need not
Search two-layer retransmitting table item, it is possible to be embodied as data message tunneling information.
It can be seen that the embodiment of the present invention has following effective effect:
By carrying out three layers of table look-up forwarding and DVP forwardings respectively on two interchangers, message MAC can be respectively completed
Location is replaced and the action of protocol information encapsulation, so as to both realize the three of data message layers of forwarding, can also be datagram
Literary tunneling information;And only need to inquire about a forwarding-table item in whole process, that is, three layer retransmitting table items are inquired about, are improved
Forward efficiency;Also, data message is forwarded among the switches by stacking opening, data message is returned compared to by loopback choma,
Transmission bandwidth is bigger, improves data message forwarding bandwidth.
For the above method, the embodiment of the invention also discloses a kind of interchanger.Its hardware configuration connection figure is given below,
Specifically refer to Fig. 5.
Fig. 5 is the hardware configuration connection figure of interchanger provided in an embodiment of the present invention.
As shown in figure 5, the control bridge device includes processor, network interface, internal memory and nonvolatile memory, and it is above-mentioned
Each hardware is connected by bus, wherein:
Nonvolatile memory, for store instruction code;The operation that the instruction code is completed when being executed by processor
The function that the device for realizing three layers of forwarding and tunneling information in a network predominantly in internal memory is completed.
Processor, for being communicated with nonvolatile memory, read and perform stored in nonvolatile memory it is described
Instruction code, complete the function that the above-mentioned device for realizing three layers of forwarding and tunneling information in a network is completed.
Internal memory, the operation completed when the instruction code in nonvolatile memory is performed are mainly in internal memory
The function that the device of three layers of forwarding and tunneling information is completed is realized in a network.
For software view, the device for realizing three layers of forwarding and tunneling information in a network applied to interchanger
As shown in Figure 6 and Figure 7.
Fig. 6 is the first device provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Structural representation.
The first device is located in the first interchanger, first exchange piling connection of more than two, and institute
There are second switch and all first interchangers stacked to connect entirely, as shown in fig. 6, the first device includes three layers of table look-up module
601 and three layers of forwarding module 602.
Three layers of table look-up module 601, for receiving the data messages for needing to carry out three layers of forwarding by non-stacking mouth, from described
MAC Address to be replaced, next-hop exit port and purpose void port DVP are obtained in three layer retransmitting table items of data message matching
Value, wherein, the next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are by institute
The port mapping being connected with non-first interchanger for stating second switch obtains.
Three layers of forwarding module 602, for by the MAC Address in the data message with replacing with the MAC to be replaced
Location, the next-hop exit port and the DVP values are carried in protocol header is stacked, the replacement of the stacking protocol header will be encapsulated
Data message after MAC Address is transmitted to another first interchanger by stacking opening, so that another first interchanger
The data message after replacement MAC Address to encapsulating the stacking protocol header described in being received by stacking opening stacks
Multi-protocol decapsulation, according to the DVP values tunneling information, protocol information is encapsulated by next-hop exit port forwarding
Data message.
The first device can also include three layer retransmitting table item generation modules.
The three layer retransmitting table items generation module, it is next when the first interchanger for learning three layer retransmitting table item
When to jump out port be the port that second switch is connected with non-first interchanger, next in three layer retransmitting table item is jumped out
Port modifications are the port that another first interchanger is connected with the second switch, by the DVP in three layer retransmitting table item
Value is revised as the DVP values for the port mapping that the second switch is connected with non-first interchanger.
First interchanger can be control bridge device, and the second switch can be ports-Extending equipment.
Fig. 7 is the second device provided in an embodiment of the present invention for realizing three layers of forwarding and tunneling information in a network
Structural representation.
The second device is located in the first interchanger, first exchange piling connection of more than two, and institute
There are second switch and all first interchangers stacked to connect entirely, as shown in fig. 7, the second device includes decapsulation module
701 and forwarding module 702.
Decapsulation module 701, the data message for stacking protocol header is encapsulated for being received by stacking opening, to the data
Message carries out stacking multi-protocol decapsulation, obtains the DVP values and next-hop exit port in the stacking protocol header, wherein, under described
One to jump out port be the port that first interchanger is connected with second switch, and the DVP values are by the second switch
The port mapping being connected with non-first interchanger obtains.
Forwarding module 702, for the DVP value tunneling information in the stacking protocol header, pass through the stacking
Next-hop exit port forwarding in protocol header encapsulates the data on flows message of protocol information.
Wherein, forwarding module 702, acted specifically for searching next-hop corresponding to the DVP values, the next-hop action
Including for the data message tunneling information, performing the next-hop action, by next in the stacking protocol header
Jump out the data message that port forwarding encapsulates protocol information.
Forwarding module 702, inserted specifically for the DVP values in the stacking protocol header inside the data message
Protocol label information, the datagram of protocol label information is inserted by the next-hop exit port forwarding in the stacking protocol header
Text;Or, specifically for the DVP values in the stacking protocol header in the data message outer enclosure tunnel protocol information,
The data message of protocol label information is inserted by the next-hop exit port forwarding in the stacking protocol header.
First interchanger can be control bridge device, and the second switch can be ports-Extending equipment.
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
Any modification, equivalent substitution and improvements done within refreshing and principle etc., should be included within the scope of protection of the invention.
Claims (12)
- A kind of 1. method for realizing three layers of forwarding and tunneling information in a network, it is characterised in that the first of more than two Exchange piling connects, and all first interchangers of all second switch and stacking connect entirely, and this method includes:First interchanger receives the data message for needing to carry out three layers of forwarding by non-stacking mouth, from the data message MAC Address to be replaced, next-hop exit port and purpose void port DVP values are obtained in three layer retransmitting table items matched somebody with somebody, wherein, it is described Next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are by the second switch The port mapping being connected with non-first interchanger obtain;MAC Address in the data message is replaced with into the MAC Address to be replaced, in protocol header is stacked described in carrying Next-hop exit port and the DVP values, the data message after the replacement MAC Address for stacking protocol header will be encapsulated and pass through heap Folded mouth is transmitted to another first interchanger, so that another first interchanger is to the envelope that is received by stacking opening The data message after the replacement MAC Address of the stacking protocol header is filled and has carried out stacking multi-protocol decapsulation, sealed according to the DVP values Protocol information is filled, the data message of protocol information is encapsulated by next-hop exit port forwarding;Wherein, this method also includes:Learn three layer retransmitting table item, when the next-hop exit port of the first interchanger is second switch and non-first interchanger During connected port, the next-hop exit port in three layer retransmitting table item is revised as another first interchanger and described second The connected port of interchanger, is revised as the second switch by the DVP values in three layer retransmitting table item and is exchanged with non-first The DVP values of the connected port mapping of machine.
- 2. according to the method for claim 1, it is characterised in that first interchanger is to control bridge device, described second Interchanger is ports-Extending equipment.
- A kind of 3. method for realizing three layers of forwarding and tunneling information in a network, it is characterised in that the first of more than two Exchange piling connects, and all first interchangers of all second switch and stacking connect entirely, and this method includes:First interchanger is received by stacking opening encapsulates the data message for stacking protocol header, and the data message is carried out Multi-protocol decapsulation is stacked, according to the DVP value tunneling information in the stacking protocol header, by the stacking protocol header Next-hop exit port forwards the data message for encapsulating protocol information, wherein, the next-hop exit port is first exchange The port that machine is connected with second switch, the DVP values by the second switch the port being connected with non-first interchanger Mapping obtains.
- 4. according to the method for claim 3, it is characterised in that the DVP values in the stacking protocol header encapsulate Protocol information includes:Search next-hop corresponding to the DVP values to act, the next-hop action includes believing for the data message tunneling Breath, perform the next-hop action.
- 5. according to the method for claim 3, it is characterised in that the tunneling information includes:Protocol label information is inserted inside the data message;Or,In the data message outer enclosure tunnel protocol information.
- 6. according to the method for claim 3, it is characterised in that first interchanger is to control bridge device, described second Interchanger is ports-Extending equipment.
- 7. a kind of devices for realizing three layers of forwarding and tunneling information in a network, it is characterised in that described device is positioned at the In one interchanger, the connection of first exchange piling of more than two, and all second switch and stack all the One interchanger connects entirely, and described device includes three layers of table look-up module and three layers of forwarding module;Three layers of table look-up module, for receiving the data message for needing to carry out three layers of forwarding by non-stacking mouth, from the number MAC Address to be replaced, next-hop exit port and purpose void port DVP values are obtained in three layer retransmitting table items according to message matching, Wherein, the next-hop exit port is the port that another first interchanger is connected with second switch, and the DVP values are by described The port mapping being connected with non-first interchanger of two interchangers obtains;Three layers of forwarding module, for the MAC Address in the data message to be replaced with into the MAC Address to be replaced, The next-hop exit port and the DVP values are carried in protocol header is stacked, the replacement MAC of the stacking protocol header will be encapsulated Data message behind address is transmitted to another first interchanger by stacking opening, so that another first interchanger is to logical The data message crossed after the replacement MAC Address for encapsulating the stacking protocol header that stacking opening receives carries out stacking agreement Decapsulation, according to the DVP values tunneling information, the data for encapsulating protocol information are forwarded by the next-hop exit port Message;Wherein, described device also includes three layer retransmitting table item generation modules;The three layer retransmitting table items generation module, for learning three layer retransmitting table item, next when the first interchanger jumps out When port is the port that second switch is connected with non-first interchanger, by the next-hop exit port in three layer retransmitting table item It is revised as the port that another first interchanger is connected with the second switch, the DVP values in three layer retransmitting table item being repaiied It is changed to the DVP values for the port mapping that the second switch is connected with non-first interchanger.
- 8. device according to claim 7, it is characterised in that first interchanger is to control bridge device, described second Interchanger is ports-Extending equipment.
- 9. a kind of devices for realizing three layers of forwarding and tunneling information in a network, it is characterised in that described device is positioned at the In one interchanger, the connection of first exchange piling of more than two, and all second switch and stack all the One interchanger connects entirely, and described device includes decapsulation module and forwarding module;The decapsulation module, the data message for stacking protocol header is encapsulated for being received by stacking opening, to the datagram Text carries out stacking multi-protocol decapsulation, obtains the DVP values and next-hop exit port in the stacking protocol header, wherein, it is described next It is the port that first interchanger is connected with second switch to jump out port, the DVP values by the second switch with The connected port mapping of non-first interchanger obtains;The forwarding module, for the DVP value tunneling information in the stacking protocol header, pass through the stacking agreement Next-hop exit port forwarding in head encapsulates the data message of protocol information.
- 10. device according to claim 9, it is characterised in thatThe forwarding module, acted specifically for searching next-hop corresponding to the DVP values, the next-hop action is included for institute Data message tunneling information is stated, performs the next-hop action, passes through the next-hop exit port in the stacking protocol header Forwarding encapsulates the data message of protocol information.
- 11. device according to claim 9, it is characterised in thatThe forwarding module, association is inserted inside the data message specifically for the DVP values in the stacking protocol header Label information is discussed, the datagram of protocol label information is inserted by the next-hop exit port forwarding in the stacking protocol header Text;Or,It is logical specifically for the DVP values in the stacking protocol header in the data message outer enclosure tunnel protocol information The next-hop exit port forwarding crossed in the stacking protocol header inserts the data message of protocol label information.
- 12. device according to claim 9, it is characterised in thatFirst interchanger is control bridge device, and the second switch is ports-Extending equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510053111.3A CN104639440B (en) | 2015-02-02 | 2015-02-02 | A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510053111.3A CN104639440B (en) | 2015-02-02 | 2015-02-02 | A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104639440A CN104639440A (en) | 2015-05-20 |
CN104639440B true CN104639440B (en) | 2017-11-14 |
Family
ID=53217774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510053111.3A Active CN104639440B (en) | 2015-02-02 | 2015-02-02 | A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104639440B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106254256B (en) * | 2015-06-04 | 2019-08-16 | 新华三技术有限公司 | Data message forwarding method and equipment based on three layers of VXLAN gateway |
CN106487689B (en) * | 2015-09-02 | 2019-12-27 | 瑞昱半导体股份有限公司 | Communication device and method applicable to stacked communication system |
CN108259633B (en) | 2017-05-31 | 2020-05-12 | 新华三技术有限公司 | Method, system and device for realizing management message three-layer communication |
CN108259453B (en) | 2017-05-31 | 2020-03-06 | 新华三技术有限公司 | Message forwarding method and device |
CN108243084A (en) * | 2018-01-24 | 2018-07-03 | 盛科网络(苏州)有限公司 | Tunnel packet seals up the implementation method of dress in pile system |
CN111367844B (en) * | 2019-03-13 | 2020-12-15 | 苏州库瀚信息科技有限公司 | System, method and apparatus for a storage controller having multiple heterogeneous network interface ports |
CN114024902B (en) * | 2022-01-05 | 2022-04-08 | 紫光恒越技术有限公司 | Method and device for forwarding stacked messages, electronic equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5856974A (en) * | 1996-02-13 | 1999-01-05 | Novell, Inc. | Internetwork address mapping gateway |
CN102946356A (en) * | 2012-10-16 | 2013-02-27 | 杭州华三通信技术有限公司 | CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device |
CN103166874A (en) * | 2013-03-25 | 2013-06-19 | 杭州华三通信技术有限公司 | Message forwarding method and device |
CN103227757A (en) * | 2012-08-31 | 2013-07-31 | 杭州华三通信技术有限公司 | Message forwarding method and equipment |
-
2015
- 2015-02-02 CN CN201510053111.3A patent/CN104639440B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5856974A (en) * | 1996-02-13 | 1999-01-05 | Novell, Inc. | Internetwork address mapping gateway |
CN103227757A (en) * | 2012-08-31 | 2013-07-31 | 杭州华三通信技术有限公司 | Message forwarding method and equipment |
CN102946356A (en) * | 2012-10-16 | 2013-02-27 | 杭州华三通信技术有限公司 | CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device |
CN103166874A (en) * | 2013-03-25 | 2013-06-19 | 杭州华三通信技术有限公司 | Message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104639440A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104639440B (en) | A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network | |
CN104410541B (en) | The method and device that VXLAN internal layer virtual machine traffics are counted in intermediary switch | |
CN108259291B (en) | VXLAN message processing method, device and system | |
CN109873760A (en) | Handle the method and apparatus of routing and the method and apparatus of data transmission | |
CN104704778B (en) | Method and system for virtual and physical network integration | |
CN101155130B (en) | Method for learning MAC address and system and equipment for conveying VPLS client data | |
CN108476160A (en) | Based on the tunneling interchanger interconnection of layering overlay | |
CN106685826B (en) | Switchboard stacked system, from equipment, exchange chip and processing protocol message method | |
CN105591868B (en) | A kind of cut-in method and device of Virtual Private Network VPN | |
CN107689931A (en) | It is a kind of that Ethernet exchanging function system and method are realized based on domestic FPGA | |
CN106209638B (en) | From virtual LAN to the message forwarding method and equipment of virtual expansible local area network | |
CN107181663A (en) | A kind of message processing method, relevant device and computer-readable recording medium | |
CN107920023A (en) | A kind of realization method and system in secure resources pond | |
CN104065582B (en) | A kind of message transmitting method and gateway device | |
CN106209648B (en) | Multicast data packet forwarding method and apparatus across virtual expansible local area network | |
CN106254256A (en) | Data message forwarding methods based on three layers of VXLAN gateway and equipment | |
CN101110745A (en) | Method, device and system for engaging second layer network and third layer network | |
CN106209636B (en) | Multicast data packet forwarding method and apparatus from VLAN to VXLAN | |
CN105141538B (en) | A kind of across a network pile system and its processing method to message | |
CN104092595A (en) | Message processing method and device based on 802.1 BR virtualization system | |
CN110034993A (en) | Transmit method, equipment and the network system of data | |
CN106209637B (en) | From virtual expansible local area network to the message forwarding method and equipment of virtual LAN | |
CN107968749A (en) | Realize method, exchange chip and the interchanger of QinQ route terminations | |
CN101848155A (en) | Detection method of label switching path and label switching router | |
CN108040135A (en) | A kind of VPWS messages pass through the method and device of three layers of IP network |
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 |