CN104639440A - Method and device for realizing third tier forwarding and packaging protocol information in Internet - Google Patents

Method and device for realizing third tier forwarding and packaging protocol information in Internet Download PDF

Info

Publication number
CN104639440A
CN104639440A CN201510053111.3A CN201510053111A CN104639440A CN 104639440 A CN104639440 A CN 104639440A CN 201510053111 A CN201510053111 A CN 201510053111A CN 104639440 A CN104639440 A CN 104639440A
Authority
CN
China
Prior art keywords
switch
stacking
data message
port
down hop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510053111.3A
Other languages
Chinese (zh)
Other versions
CN104639440B (en
Inventor
刘东旭
祁正林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510053111.3A priority Critical patent/CN104639440B/en
Publication of CN104639440A publication Critical patent/CN104639440A/en
Application granted granted Critical
Publication of CN104639440B publication Critical patent/CN104639440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for realizing third tier forwarding and packaging protocol information in Internet. More than two first exchangers are in stacking connection; all second exchangers are in full connection with all the first exchangers; the first exchangers receive a data message with the need of carrying out third tier forwarding through a non-stackable port; an MAC (Media Access Control) address to be replaced, a next step-out port and a destination virtual port DVP value are obtained from third tier forwarding table items matched with the data message; the next step-out port is a port where the another first exchanger is connected with the second exchanger; the DVP value is obtained by mapping of a port, which is not connected with each first exchanger, of the corresponding exchanger; the MAC address in the data message is replaced by the MAC address to be replaced; a stacking protocol head carries the next step-out port and the DVP value; the data message which is packaged with the stacking protocol head and has the replaced MAC address is transferred to the other first exchanger by a stackable port.

Description

A kind ofly realize three layers in a network and forward and the method and apparatus of tunneling information
Technical field
The present invention relates to communication technical field, particularly relate to and a kind ofly realize three layers in a network and forward and the method and apparatus of tunneling information.
Background technology
The network equipment is virtual is a kind of trend, can streamlining management, reduce costs, realize flexible networking.At present, propose virtual in order to network enabled equipment of a lot of standardization agreement, such as 802.1BR, 802.1Qbg etc., by encapsulating the protocol label (TAG) of agreement in data message, realize in network model, controlling bridge (controlling bridge, CB) equipment and ports-Extending (port extender, PE) carry out data message forwarding according to stationary conduit between equipment, thus reach expansion CB port, the virtual effect arrived together of multiple stage physical equipment.
In described standard agreement, only having arranged switch (this switch can for CB equipment) can two layers of forwarding process of tunneling information, not agreement three layers of forwarding process.Wherein, according to two layers of forwarding process, after switch receives and needs to carry out two layers of data message forwarded, after searching two-layer retransmitting table item, only need to perform one-off, by this one-off to data message tunneling label, then two layers of forwarding can be completed according to outbound port forwarding data packets.
Namely three layers of forwarding of data message will be realized in a network, can be again data message tunneling information, switch is after receiving the data messages needing to carry out three layers of forwarding, after needing to search three layer retransmitting table items, replace object MAC and source MAC by one-off thus realize three layers of forwarding, also need afterwards by another one-off to message tunneling label, because current most of exchanger chip only supports one-off, so in normal networking situation, not only three layers of forwarding cannot be realized but also can tunneling information in a network.
Summary of the invention
In view of this, the present invention proposes and a kind ofly realize three layers in a network and forward and the method and apparatus of tunneling information, both can realize three layers of forwardings of data message, can also be data message tunneling information.
The technical scheme that the present invention proposes is:
Realize three layers in a network to forward and a method for tunneling information, first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and the method comprises:
Described first switch is received by non-stacking mouth to be needed to carry out three layers of data message forwarded, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
Realize three layers in a network to forward and a method for tunneling information, first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and the method comprises:
Described first switch receives the data message encapsulating stacking protocol header by stacking opening, stacking multi-protocol decapsulation is carried out to described data message, according to the DVP value tunneling information in described stacking protocol header, the data message encapsulating protocol information is forwarded by the down hop outbound port in described stacking protocol header, wherein, described down hop outbound port is the port that described first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
A kind ofly realize three layers in a network and forward and the device of tunneling information, described device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, described device comprises three layers of table look-up module and three layers of forwarding module;
Described three layers of table look-up module, need to carry out three layers of data message forwarded for being received by non-stacking mouth, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
Described three layers of forwarding module, for the MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
A kind ofly realize three layers in a network and forward and the device of tunneling information, described device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and described device comprises decapsulation module and forwarding module;
Described decapsulation module, for being received the data message encapsulating stacking protocol header by stacking opening, stacking multi-protocol decapsulation is carried out to described data message, obtain the DVP value in described stacking protocol header and down hop outbound port, wherein, described down hop outbound port is the port that described first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
Described forwarding module, for according to the DVP value tunneling information in described stacking protocol header, forwards the data message encapsulating protocol information by the down hop outbound port in described stacking protocol header.
As seen from the above technical solution, in the embodiment of the present invention, by the forwarding behavior of networking structure and the network equipment is combined, achieve and perform three layers of forwarding and tunneling information by two the first switches respectively to needing to carry out three layers of data message forwarded, wherein, three layers of forwarding are completed by first switch, then by stacking opening, data message is issued another the first switch, by this another the first switch tunneling information, thus can both realize data message three layers of forwarding, can also be data message tunneling information.
Particularly, when networking, first exchange piling of more than two is connected, and all second switches are connected entirely with stacking all first switches, when actual forwarding data packets, described first switch is received by non-stacking mouth to be needed to carry out three layers of data message forwarded, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.Wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
Visible, the embodiment of the present invention is by pre-setting special networking structure, and, limit the flow direction of data message for two the first switches must be flowed through successively, wherein, first the first switch flowed through carries out three layers of forwarding, the the first switch tunneling information flowed through afterwards, and, because the first switch flowed through afterwards can directly according to the DVP value tunneling information in stacking protocol header, therefore, inquiry forwarding-table item is only needed in whole process, namely three layer retransmitting table items are inquired about, make the present invention not only can not only realize three layers of encapsulation forwarding but also realize protocol information, forward efficiency can also be improved.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet by the existing three layers of forwarding of loopback cause for gossip and tunneling information;
Fig. 2 be the embodiment of the present invention provide realize three layers in a network and forward and the method flow diagram of tunneling information;
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 and adopts method shown in Fig. 2 to turn the schematic diagram of transmitting IP packet based on networking shown in Fig. 3;
Fig. 5 is the hardware configuration connection layout of the switch that the embodiment of the present invention provides;
Fig. 6 is the structural representation realizing three layers of forwarding the first device of tunneling information in a network that the embodiment of the present invention provides;
Fig. 7 is the structural representation realizing three layers of forwarding the second device of tunneling information in a network that the embodiment of the present invention provides.
Embodiment
To forward but also can the technical problem of tunneling information for three layers not only cannot have been realized at present in a network, and existed and a kind ofly to be forwarded and the scheme of tunneling information by existing three layers of loopback cause for gossip.In this scenario, MAC Address is replaced in the down hop action that on switch, three layer retransmitting table items are corresponding, and outbound port points to a loopback mouth, after switch receives and needs to carry out three layers of data message forwarded, first three layer retransmitting table items are searched, the replacement action of target MAC (Media Access Control) address and source MAC is completed according to three layer retransmitting table item lookup results, then message is got back to this switch from loopback choma, this switch searches two-layer retransmitting table item again, protocol label is added in the down hop action that two-layer retransmitting table item is corresponding, the action of this interpolation protocol label is performed after having searched two-layer retransmitting table item, thus 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, switch can be specially CB equipment.
As shown in Figure 1: IP message needs to mail to PC2 from PC1, wherein, PC1 is arranged in VLAN 10 (VLAN10), PC2 is arranged in VLAN 20 (VLAN20), CB receive this IP message and determine this IP message need to carry out three layers forward after, first three layer retransmitting table items are searched, replace the source MAC (SA) in this IP message and target MAC (Media Access Control) address (DA), then the IP message that substituted for source MAC and target MAC (Media Access Control) address is got back to this CB from loopback choma, after this CB receives this IP message from loopback mouth, search two-layer retransmitting table item, perform the down hop action that two-layer retransmitting table item is corresponding, protocol label is added in the down hop action that this two-layer retransmitting table item is corresponding, therefore this CB is that this IP message adds protocol label.
Visible, in scheme shown in Fig. 1, CB is by the table lookup operation of three layer retransmitting table items, in fact can realize IP message repeating to destination interface, but due to needs for IP message adds protocol label, and the MAC Address in substitute I P message is needed when forwarding for three layers, current chip all supports one-off usually, namely be merely able to once revise message content, therefore, substituted for the MAC Address in IP message after three layers are tabled look-up after, CB cannot be that this IP message adds protocol label again.In order to protocol label can be added for IP message, the IP message that have modified MAC Address is returned by loopback choma by CB, then two-layer retransmitting table item is searched, perform the down hop action that two-layer retransmitting table item is corresponding, by this down hop action is set to tunneling label, can be implemented as IP message and add protocol label, visible, the object that CB searches two-layer retransmitting table item after returning IP message from loopback choma is exactly will add protocol label for IP message.
As fully visible, in scheme shown in Fig. 1, CB in order to add protocol label while realizing three layers of forwarding, perform the operation that twice forwarding is tabled look-up, cause forward efficiency to reduce, and, when CB returns data message by loopback choma, because the bandwidth of loopback mouth is less, also can form bottleneck, reduce data message forwarding bandwidth.
Based on above-mentioned analysis, embodiments provide and a kind ofly realize three layers in a network and forward and the method for tunneling information, can three layers of forwarding be realized by once forwarding to table look-up and add protocol label, improve forward efficiency, and can avoid returning data message from loopback choma, improve data message forwarding bandwidth.
Fig. 2 be the embodiment of the present invention provide realize three layers in a network and forward and the method flow diagram of tunneling information.
As shown in Figure 2, this flow process comprises:
Step 201, first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches.
This step defines networking structure, once networking completes, when actual treatment data message, performs from step 202.
Step 202, described first switch is received by non-stacking mouth to be needed to carry out three layers of data message forwarded, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
Step 203, MAC Address in described data message is replaced with described MAC Address to be replaced by described first switch, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
Wherein, after the study completing three layer retransmitting table items, when the down hop outbound port of the first switch be the second switch be connected with non-first switch port time, further the down hop outbound port in described three layer retransmitting table items is revised as the port that another first switch is connected with described second switch, the DVP value in described three layer retransmitting table items is revised as the DVP value of the port mapping that described second switch is connected with non-first switch.
Wherein, another first switch described is when according to DVP value tunneling information in described stacking protocol header, specifically can search the down hop action that described DVP value is corresponding, described down hop action comprises for described data message tunneling information, performs described down hop action.
For data message tunneling information can be specially: insert protocol label information in described data message inside; Or, in described data message outer enclosure tunnel protocol information.
In a kind of application scenarios, the first switch is specially CB equipment, and the 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.
The stacking connection of CB1 and CB2, all CB are connected entirely with all PE, that is, every platform CB is connected respectively with all PE, and every platform PE is also connected respectively with all CB.
Wherein, PE is for expanding the port of CB, the physical port of PE all can be mapped to a virtual port (VP) on CB, this VP is empty port (the source virtual port in source entering on direction, SVP), empty port (destination virtual port, DVP) for the purpose of on outgoing direction, CB carries out MAC address learning based on SVP, searches destination interface based on DVP at outgoing direction entering direction.
The embodiment of the present invention does not limit the stack manner between CB, such as, can be stacking by the HG of HIGIG mouth.
After completing networking, CB1 and CB2 needs to carry out three layer retransmitting table item study, for CB1.Suppose that PC1 is arranged in VLAN 10 (VLAN10), PC2 is arranged in VLAN 20 (VLAN20), if the down hop outgoing interface in three layer retransmitting table items of PC1 to the PC2 that CB1 learns is the port that PE2 is connected with non-CB equipment, then the down hop outbound port in this three layer retransmitting table item is revised as the port that CB2 and PE2 is connected, the DVP value in this three layer retransmitting table item is revised as the DVP value of the port mapping that PE2 is connected with non-CB equipment.
As shown in Figure 4, it adopts method shown in Fig. 2 to turn the schematic diagram of transmitting IP packet for the embodiment of the present invention provides based on networking shown in Fig. 3.
When IP message needs to mail to PC2 from PC1, after this IP message enters CB1, by the object MAC of this IP message, CB1 determines that this IP message carries out two layers and forwards or three layers of forwarding.After determining that this IP message needs to carry out three layers of forwarding, search three layer retransmitting table items, from three layer retransmitting table items of this IP message coupling, obtain source MAC to be replaced and target MAC (Media Access Control) address, down hop outgoing interface and DVP value.From the process of above-mentioned amendment three layer retransmitting table item, the down hop outgoing interface in three layer retransmitting table items of this IP message coupling is the port that CB2 and PE2 is connected, and DVP value is the DVP value of the port mapping that PE2 is connected with non-CB equipment.
The source MAC of this IP message is replaced with the source MAC to be replaced of acquisition, the target MAC (Media Access Control) address of this IP message is replaced with the source MAC to be replaced of acquisition, and in stacking protocol header, insert DVP value and the down hop outbound port of acquisition, IP message after the replacement MAC Address encapsulating this stacking protocol header is issued on the CB at down hop outbound port place by stacking opening by CB1, i.e. CB2.
After CB2 receives this IP message by stacking opening, stacking multi-protocol decapsulation is carried out to this IP message, and the DVP value read in stacking protocol header and down hop outbound port, search the down hop action that this DVP value is corresponding, because this down hop action is for adding protocol label, therefore, CB2 is that protocol label is added in this IP message inside, then the IP message that with the addition of protocol label is issued PE2 via this down hop outbound port (port be namely connected with PE2).
Under normal circumstances, if mutual stacking connection between CB, and the down hop outbound port in three layer retransmitting table items of data message coupling is the port that PE is connected with non-CB equipment, then described data message can arrive described PE via the aggregation port of described PE on the CB that these are mutually stacking, in other words, when described down hop outbound port be PE be connected with non-CB equipment port time, on CB, three layer retransmitting table items can be finished for data message table look-up and after replacing MAC Address, be directly dealt into described PE (being designated as object PE).
But, in order to enable data message flow through two CB after enter object PE again, so that the CB first flowed through searches three layer retransmitting table items and replaces MAC Address, the CB flowed through afterwards performs the operation of tunneling information, in the embodiment of the present invention, by three layer retransmitting table items down hop outbound port be defined as the port that another CB is connected with object PE, the port that another CB is connected with object PE is revised as by down hop outbound port, after making data message enter current C B via non-stacking mouth, another CB can be entered via stacking opening, and avoid directly entering object PE from current C B.
Wherein, table look-up in order to avoid another CB described performs forwarding again, forward efficiency is caused to reduce, in the embodiment of the present invention, the destination interface of data message is carried in stacking protocol header, the i.e. DVP value of the port mapping be connected with non-CB of object PE, after CB receives data message from stacking opening, need to resolve stacking protocol header, therefore, after another CB described receives data message from stacking opening, by resolving stacking protocol header, described DVP value can be read, another CB described is after reading DVP value, be data message tunneling information according to DVP value, another CB described is made not need to search forwarding-table item, namely do not need to search two-layer retransmitting table item, just can be implemented as data message tunneling information.
Visible, the embodiment of the present invention has following effective effect:
By carrying out three layers of table look-up forwarding and DVP forwarding on two switches respectively, can complete respectively message MAC Address replace and protocol information encapsulation action, thus can both realize data message three layers of forwardings, can also be data message tunneling information; And in whole process, only need inquiry forwarding-table item, namely inquire about three layer retransmitting table items, improve forward efficiency; Further, data message is forwarded among the switches by stacking opening, compares and returns data message by loopback choma, and transmission bandwidth is larger, improves data message forwarding bandwidth.
For said method, the embodiment of the invention also discloses a kind of switch.Provide its hardware configuration connection layout below, specifically refer to Fig. 5.
Fig. 5 is the hardware configuration connection layout of the switch that the embodiment of the present invention provides.
As shown in Figure 5, this control bridge device comprises processor, network interface, internal memory and nonvolatile memory, and above-mentioned each hardware is connected by bus, wherein:
Nonvolatile memory, for store instruction codes; The operation that described instruction code completes when being executed by processor is mainly realizing three layers in a network and forward and the function that completes of the devices of tunneling information in internal memory.
Processor, for communicating with nonvolatile memory, reading and performing the described instruction code stored in nonvolatile memory, completes the above-mentioned function realizing three layers of device forwarding also tunneling information in a network and complete.
Internal memory, the operation completed when the described instruction code in nonvolatile memory is performed is mainly realizing three layers in a network and forward and the function that completes of the devices of tunneling information in internal memory.
Say from software view, be applied to switch realize in a network three layers forward and tunneling information device as shown in Figure 6 and Figure 7.
Fig. 6 is the structural representation realizing three layers of forwarding the first device of tunneling information in a network that the embodiment of the present invention provides.
Described first device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, as shown in Figure 6, this first device comprises three layers of table look-up module 601 and three layers of forwarding module 602.
Three layers of table look-up module 601, need to carry out three layers of data message forwarded for being received by non-stacking mouth, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
Three layers of forwarding module 602, for the MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
Described first device can also comprise three layer retransmitting table item generation modules.
Described three layer retransmitting table item generation modules, for learning described three layer retransmitting table items, when the down hop outbound port of the first switch be the second switch be connected with non-first switch port time, down hop outbound port in described three layer retransmitting table items is revised as the port that another first switch is connected with described second switch, the DVP value in described three layer retransmitting table items is revised as the DVP value of the port mapping that described second switch is connected with non-first switch.
Described first switch can be control bridge device, and described second switch can be ports-Extending equipment.
Fig. 7 is the structural representation realizing three layers of forwarding the second device of tunneling information in a network that the embodiment of the present invention provides.
Described second device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, as shown in Figure 7, this second device comprises decapsulation module 701 and forwarding module 702.
Decapsulation module 701, for being received the data message encapsulating stacking protocol header by stacking opening, stacking multi-protocol decapsulation is carried out to described data message, obtain the DVP value in described stacking protocol header and down hop outbound port, wherein, described down hop outbound port is the port that described first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
Forwarding module 702, for according to the DVP value tunneling information in described stacking protocol header, forwards the data on flows message encapsulating protocol information by the down hop outbound port in described stacking protocol header.
Wherein, forwarding module 702, specifically for searching down hop action corresponding to described DVP value, described down hop action comprises for described data message tunneling information, perform described down hop action, forwarded the data message encapsulating protocol information by the down hop outbound port in described stacking protocol header.
Forwarding module 702, specifically for inserting protocol label information according to the DVP value in described stacking protocol header in described data message inside, forwards the data message inserting protocol label information by the down hop outbound port in described stacking protocol header; Or, specifically for according to the DVP value in described stacking protocol header in described data message outer enclosure tunnel protocol information, forwarded the data message inserting protocol label information by down hop outbound port in described stacking protocol header.
Described first switch can be control bridge device, and described second switch can be ports-Extending equipment.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (14)

1. realize three layers in a network to forward and a method for tunneling information, it is characterized in that, first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and the method comprises:
Described first switch is received by non-stacking mouth to be needed to carry out three layers of data message forwarded, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
2. method according to claim 1, is characterized in that, the method also comprises:
Learn described three layer retransmitting table items, when the down hop outbound port of the first switch be the second switch be connected with non-first switch port time, down hop outbound port in described three layer retransmitting table items is revised as the port that another first switch is connected with described second switch, the DVP value in described three layer retransmitting table items is revised as the DVP value of the port mapping that described second switch is connected with non-first switch.
3. method according to claim 1, is characterized in that, described first switch controls bridge device, and described second switch is ports-Extending equipment.
4. realize three layers in a network to forward and a method for tunneling information, it is characterized in that, first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and the method comprises:
Described first switch receives the data message encapsulating stacking protocol header by stacking opening, stacking multi-protocol decapsulation is carried out to described data message, according to the DVP value tunneling information in described stacking protocol header, the data message encapsulating protocol information is forwarded by the down hop outbound port in described stacking protocol header, wherein, described down hop outbound port is the port that described first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch.
5. method according to claim 4, is characterized in that, describedly comprises according to the DVP value tunneling information in described stacking protocol header:
Search the down hop action that described DVP value is corresponding, described down hop action comprises for described data message tunneling information, performs described down hop action.
6. method according to claim 4, is characterized in that, described tunneling information comprises:
Protocol label information is inserted in described data message inside; Or,
In described data message outer enclosure tunnel protocol information.
7. method according to claim 4, is characterized in that, described first switch controls bridge device, and described second switch is ports-Extending equipment.
8. one kind realizes the device that three layers forward also tunneling information in a network, it is characterized in that, described device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, described device comprises three layers of table look-up module and three layers of forwarding module;
Described three layers of table look-up module, need to carry out three layers of data message forwarded for being received by non-stacking mouth, MAC Address to be replaced is obtained from three layer retransmitting table items that described data message mates, down hop outbound port and object empty port DVP value, wherein, described down hop outbound port is the port that another first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
Described three layers of forwarding module, for the MAC Address in described data message is replaced with described MAC Address to be replaced, described down hop outbound port and described DVP value is carried in stacking protocol header, data message after the replacement MAC Address encapsulating described stacking protocol header is transmitted to another first switch described by stacking opening, to make another first switch described, stacking multi-protocol decapsulation is carried out to the data message after encapsulating the replacement MAC Address of described stacking protocol header described in being received by stacking opening, according to described DVP value tunneling information, the data message encapsulating protocol information is forwarded by described down hop outbound port.
9. device according to claim 8, is characterized in that, described device also comprises three layer retransmitting table item generation modules;
Described three layer retransmitting table item generation modules, for learning described three layer retransmitting table items, when the down hop outbound port of the first switch be the second switch be connected with non-first switch port time, down hop outbound port in described three layer retransmitting table items is revised as the port that another first switch is connected with described second switch, the DVP value in described three layer retransmitting table items is revised as the DVP value of the port mapping that described second switch is connected with non-first switch.
10. device according to claim 8, is characterized in that, described first switch controls bridge device, and described second switch is ports-Extending equipment.
11. 1 kinds realize three layers in a network and forward and the device of tunneling information, it is characterized in that, described device is arranged in the first switch, described first exchange piling of more than two connects, and all second switches are connected entirely with stacking all first switches, and described device comprises decapsulation module and forwarding module;
Described decapsulation module, for being received the data message encapsulating stacking protocol header by stacking opening, stacking multi-protocol decapsulation is carried out to described data message, obtain the DVP value in described stacking protocol header and down hop outbound port, wherein, described down hop outbound port is the port that described first switch is connected with the second switch, and described DVP value is obtained by the port mapping be connected with non-first switch of described second switch;
Described forwarding module, for according to the DVP value tunneling information in described stacking protocol header, forwards the data message encapsulating protocol information by the down hop outbound port in described stacking protocol header.
12. devices according to claim 11, is characterized in that,
Described forwarding module, specifically for searching down hop action corresponding to described DVP value, described down hop action comprises for described data message tunneling information, performs described down hop action, is forwarded the data message encapsulating protocol information by the down hop outbound port in described stacking protocol header.
13. devices according to claim 11, is characterized in that,
Described forwarding module, specifically for inserting protocol label information according to the DVP value in described stacking protocol header in described data message inside, forwards the data message inserting protocol label information by the down hop outbound port in described stacking protocol header; Or,
Specifically for according to the DVP value in described stacking protocol header in described data message outer enclosure tunnel protocol information, forwarded the data message inserting protocol label information by down hop outbound port in described stacking protocol header.
14. devices according to claim 11, is characterized in that,
Described first switch controls bridge device, and described second switch is ports-Extending equipment.
CN201510053111.3A 2015-02-02 2015-02-02 A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network Active CN104639440B (en)

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 true CN104639440A (en) 2015-05-20
CN104639440B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016192686A1 (en) * 2015-06-04 2016-12-08 杭州华三通信技术有限公司 Data packet forwarding
CN106487689A (en) * 2015-09-02 2017-03-08 瑞昱半导体股份有限公司 Can apply to stack communicator and the method for communication system
CN108243084A (en) * 2018-01-24 2018-07-03 盛科网络(苏州)有限公司 Tunnel packet seals up the implementation method of dress in pile system
CN108259633A (en) * 2017-05-31 2018-07-06 新华三技术有限公司 Realize the method, system and device of management three layers of communication of message
CN111367844A (en) * 2019-03-13 2020-07-03 苏州库瀚信息科技有限公司 System, method and apparatus for a storage controller having multiple heterogeneous network interface ports
US11102115B2 (en) 2017-05-31 2021-08-24 New H3C Technologies Co., Ltd. Forwarding packet
CN114024902A (en) * 2022-01-05 2022-02-08 紫光恒越技术有限公司 Method and device for forwarding stacked messages, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016192686A1 (en) * 2015-06-04 2016-12-08 杭州华三通信技术有限公司 Data packet forwarding
US10333845B2 (en) 2015-06-04 2019-06-25 New H3C Technologies Co., Ltd Forwarding data packets
CN106487689A (en) * 2015-09-02 2017-03-08 瑞昱半导体股份有限公司 Can apply to stack communicator and the method for communication system
CN108259633A (en) * 2017-05-31 2018-07-06 新华三技术有限公司 Realize the method, system and device of management three layers of communication of message
CN108259633B (en) * 2017-05-31 2020-05-12 新华三技术有限公司 Method, system and device for realizing management message three-layer communication
US11102115B2 (en) 2017-05-31 2021-08-24 New H3C Technologies Co., Ltd. Forwarding packet
US11108594B2 (en) 2017-05-31 2021-08-31 New H3C Technologies Co., Ltd. Implementing three-layer communication
CN108243084A (en) * 2018-01-24 2018-07-03 盛科网络(苏州)有限公司 Tunnel packet seals up the implementation method of dress in pile system
CN111367844A (en) * 2019-03-13 2020-07-03 苏州库瀚信息科技有限公司 System, method and apparatus for a storage controller having multiple heterogeneous network interface ports
CN111367844B (en) * 2019-03-13 2020-12-15 苏州库瀚信息科技有限公司 System, method and apparatus for a storage controller having multiple heterogeneous network interface ports
CN114024902A (en) * 2022-01-05 2022-02-08 紫光恒越技术有限公司 Method and device for forwarding stacked messages, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN104639440B (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN104639440A (en) Method and device for realizing third tier forwarding and packaging protocol information in Internet
CN103200069B (en) A kind of method and apparatus of Message processing
EP2206052B1 (en) Methods and apparatus for managing addresses related to virtual partitions of a session exchange device
CN109873760A (en) Handle the method and apparatus of routing and the method and apparatus of data transmission
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
CN103457818B (en) Extend more hosts in bridge
CN113645136B (en) Method, network node and network system for forwarding message in network
CN104243302A (en) Service routing message processing method and device and network system
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
US8693478B2 (en) Multiple shortest-path tree protocol
CN101483595B (en) Data forwarding method and system based on T-MPLS network
CN104660508A (en) Message forwarding method and device
CN103685006A (en) Packet forwarding method for edge device and edge device
CN102792651B (en) At the device of MAC layer application service path Route Selection
CN107968749B (en) Method for realizing QinQ route termination, switching chip and switch
CN105591916A (en) Message transmission method and apparatus
CN104202300A (en) Data communication method and device based on network isolating device
CN105791214A (en) Method and apparatus for converting RapidIO message and Ethernet message
CN110034993A (en) Transmit method, equipment and the network system of data
CN105827495A (en) Message forwarding method and device for VXLAN gateway
CN105591868A (en) Virtual private network VPN access method and device
CN113411243A (en) Data transmission method and device
CN104811382A (en) Data packet processing method and device
CN106209638A (en) From VLAN to the message forwarding method of virtual expansible LAN and equipment
CN101848155A (en) Detection method of label switching path and label switching router

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
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.

GR01 Patent grant
GR01 Patent grant