[go: up one dir, main page]

WO2007051409A1 - A bridge, a bridged network and a data processing method in the bridged network - Google Patents

A bridge, a bridged network and a data processing method in the bridged network Download PDF

Info

Publication number
WO2007051409A1
WO2007051409A1 PCT/CN2006/002918 CN2006002918W WO2007051409A1 WO 2007051409 A1 WO2007051409 A1 WO 2007051409A1 CN 2006002918 W CN2006002918 W CN 2006002918W WO 2007051409 A1 WO2007051409 A1 WO 2007051409A1
Authority
WO
WIPO (PCT)
Prior art keywords
bridge
packet
registration
forwarding
tree
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.)
Ceased
Application number
PCT/CN2006/002918
Other languages
French (fr)
Chinese (zh)
Inventor
Shimin Zou
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2007051409A1 publication Critical patent/WO2007051409A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation

Definitions

  • the present invention relates to the field of communications, and in particular, to a data processing method in a bridge network, a bridge, and a bridge network. Background technique
  • the shortest path bridge project team of the International Standards Organization (IEEE) and the TRILL working group of the International Standards Organization (IETF) are currently conducting research in two ways.
  • the initial idea of the IEEE Shortest Path Bridge project team is: still use the spanning tree to forward all packets, generate a tree for each bridge as the root, and in order to forward packets according to the shortest path, whether it is broadcast packet ⁇ multicast data Packet ⁇ unknown data packet, or unicast data packet.
  • the first bridge that arrives at the data packet is used as the root for data packet forwarding (also called: the tree rooted at the entrance bridge). Forward).
  • This method actually means: Multiple trees are used for packet forwarding in the same broadcast domain.
  • the method of the IETF TRILL working group is:
  • the bridge has a router-like route calculation and forwarding function (also called the bridge is a RBridge), which can form a "routing bridge network topology" based on the link state protocol and can calculate The shortest path to any destination RBridge.
  • a router-like route calculation and forwarding function also called the bridge is a RBridge
  • the RBridge network can calculate the spanning tree according to the network topology, and broadcast packets ⁇ multicast packets ⁇ unknown packets are forwarded along the tree.
  • TRILL increases the processing of TTL in order to avoid the loop, which leads to a large hardware change, and only the transformation on the spanning tree has less impact on hardware changes.
  • the link state protocol is used to modify the Ethernet, in order to complete the functions of the existing fast spanning tree protocol and multiple spanning tree protocols, the link state protocol needs to do a lot of adaptation work, so the workload is not too small. Therefore, the IEEE currently does not determine which solution is a mandatory option. From the current IEEE research, it has carried out many studies on the scheme (1).
  • each bridge knows the entire network topology, it creates a spanning tree that includes the entire tree, so it knows the tree branch where any bridge is located, so once the tree is generated it knows How to forward data. If you use the original spanning tree protocol to create a tree, each bridge can only know that one tree passes through the root port and designated port of the bridge. It does not know the information of the entire tree. Therefore, if the portal is the root, the unicast packet is used. When forwarding, it does not know the tree branch to which the destination address is accessed. Therefore, the forwarding path needs to be obtained through address learning.
  • each tree is generated independently, which results in a path a from the edge bridge A to the edge bridge Z (with A as the root).
  • the path z from the edge bridge Z to the edge bridge A (with Z as the root) is inconsistent. Therefore, the forwarding mechanism rooted at the ingress bridge will result in the inability to obtain a normal forwarding path using the usual source address learning method. This is actually due to the difficulty of address learning due to path asymmetry.
  • the reason why the above two paths are inconsistent is because: When two or more (including two) equivalent paths occur, different trees are independently generated, and different blocking methods are used for the equal path to cause inconsistency in path selection.
  • the IEEE proposed (by Cisco) PATH vector symmetric path generation method (aq-nfinn-shortest-path-0905.pdf), which The purpose of this is to ensure that the path a from the edge bridge A to the edge bridge Z coincides with the path z from the edge bridge Z to the edge bridge A.
  • it is predetermined to use the N-bit PATH vector in the process of establishing the bridge using MSTP, N cannot be smaller than the number of bridges in the network, and each bridge is assigned a fixed bit.
  • the PATH vector is created and propagated as follows: Each bridge initializes an empty PATH vector as the root of the tree and adds the vector to the corresponding BPDU message in the root of the tree.
  • a PATH vector When a PATH vector is propagated to a bridge, if the bridge can determine that the port receiving the BPDU is the root port of the corresponding tree of the BPDU according to the unique minimum root cost, it will be assigned to itself in the PATH vector contained in the BPDU. Fill in the location 1 and store the vector locally, then continue to propagate the vector to the non-root port; otherwise, if the bridge calculates the two shortest equivalence root costs of the corresponding tree, it is processed as follows: Take the two, etc. The two PATH vectors corresponding to the valence root (and let the PATH vector be set to 1 for the bit of the bridge), determine the path corresponding to one of the PATH vectors according to a prescribed criterion. For example, two vector values are converted into an N-bit integer, and the path corresponding to the vector with the large value is blocked.
  • the spanning tree protocol process can determine the blocked path according to the corresponding two equivalent PATH vectors and adopt the same blocking criterion, thereby ensuring the positive and negative paths between the two points when forwarding data using different trees. Consistency (ie symmetry).
  • the number of bits in the PAHT vector is proportional to the network size, the number of bits in the PATH vector is very much related to the scalability of the network, so this method is not conducive to network expansion.
  • the current number of bits in the PATH vector is 64, which obviously does not meet the scalability requirements.
  • NEC proposed a technical solution for Ethernet-optimized packet forwarding method.
  • the patent number is US 2003-642480.
  • the patent name is: network system, spanning tree configuration method, spanning tree configuration node, spanning tree configuration program, one of which is basic.
  • the technical point is:
  • the bridge node periodically sends the learning packet in the opposite direction to the user packet path, including the TAG and its associated source address in the learning packet, and the source address is derived from a source address buffer table. .
  • the method can solve the learning of the forwarding tag TAG caused by the path asymmetry.
  • other bridge nodes along the learning path can learn to forward the TAG.
  • the traditional bridge learning method "source address learning method” is obviously also a reverse learning method, but since the packet forwarding uses a public tree, the path symmetry of the tree itself does not hinder learning, but when using different tree forwarding, the path Asymmetry hinders learning.
  • the patent proposes to let the bridge actively send the reverse learning package, but the patent does not learn from the source address, but learns the TAG associated with the source address.
  • the program does not describe the "How to choose the opposite path to spread the learning package", and this is the key to a problem.
  • the patent does not give a clear description of how to treat the original user packet address learning process.
  • the system uses TAG for forwarding and is therefore not compatible with existing technologies that currently use MAC addresses for forwarding data.
  • the system TAG learning is related to the source MAC address of a cache. Therefore, when this technology is adopted in the carrier Ethernet, the number of client MAC addresses is large, which will bring difficulties to the TAG allocation. A large number of TAGs will also be The carrier network creates a heavy load. Summary of the invention
  • the present invention provides a data processing method, a bridge, and a bridge network in a bridge network, which are used to solve the MAC address learning problem caused by the path asymmetry existing in the prior art.
  • the invention includes:
  • a data processing method in a bridge network, where the bridge network is connected through a bridge including:
  • the entry bridge to which the packet arrives is the root, the packet is forwarded according to the forwarding path table in the bridge network, and the data packet is sent out through the external port at the egress bridge.
  • a bridge comprising: a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;
  • a forwarding path table storage unit configured to store the forwarding path table
  • a packet forwarding unit configured to forward the received data packet according to the forwarding path table.
  • a bridged network, connected by a bridge, the bridge includes:
  • control protocol unit configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;
  • a forwarding path table storage unit configured to store the forwarding path table
  • a packet forwarding unit configured to forward the received data packet according to the forwarding path table.
  • a data processing method in a bridge network, where the bridge network is connected through a bridge including:
  • the tree rooted along the entry bridge to which the packet arrives is forwarded within the bridged network;
  • the tree rooted along the destination egress bridge that the packet leaves the bridging network arrives in the bridge network;
  • the packet is sent out through the external port at the egress bridge.
  • a bridge comprising:
  • control protocol unit configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of a spanning tree rooted at each edge bridge;
  • a forwarding path table storage unit configured to store the forwarding path table
  • the packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type.
  • a bridged network, connected by a bridge, the bridge includes:
  • control protocol unit configured to establish a forwarding path table, where the forwarding path table is for each side a forwarding path table of the spanning tree along the bridge;
  • a forwarding path table storage unit configured to store a forwarding path table
  • the packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type.
  • the winter invention overcomes the problem of MAC address learning caused by path asymmetry, establishes a forwarding path table that satisfies the shortest path forwarding, and can adopt an efficient path forwarding technology to satisfy the superior performance that the bridge network can provide as a carrier Ethernet.
  • FIG. 1 is a schematic structural diagram of a bridge network according to the first aspect of the present invention.
  • FIG. 2 is a schematic structural diagram of a bridge according to the first aspect of the present invention.
  • FIG. 3 is a schematic structural diagram of a control protocol body unit according to the first aspect of the present invention.
  • FIG. 4 is a schematic diagram of a process of establishing a forwarding path table according to the first solution of the present invention
  • Figure 5 is a schematic structural view of the second embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a bridge according to the second aspect of the present invention.
  • FIG. 7 is a schematic structural diagram of a data packet type determining unit in the second solution of the present invention.
  • FIG. 8 is a schematic structural diagram of a control protocol body unit in the second embodiment of the present invention. detailed description
  • the solution of the present invention is carried out around the first scheme of the IEEE: a shortest path forwarding method for researching data in a plurality of spanning trees established using a spanning tree protocol, wherein a packet forwarding method using an ingress bridge as a root is to be studied.
  • Option One a shortest path forwarding method for researching data in a plurality of spanning trees established using a spanning tree protocol, wherein a packet forwarding method using an ingress bridge as a root is to be studied.
  • the first solution is to establish an entry-origin-based shortest path forwarding system in a bridged network, including the following: In the bridge network, a tree is generated with each edge bridge as the root.
  • control protocol unit In addition to bridging the external port of the network, for other bridge ports, because the control protocol unit is responsible for establishing the forwarding path table, in order to avoid conflicts with the forwarding path table established by the original packet source address learning process, it is necessary to close the original Packet source address learning function.
  • the forwarding path table process is established by using a control protocol to establish a forwarding path table for each tree.
  • control protocol is used to establish a forwarding path table process
  • control protocol forwarding path table establishing process can control the bridge nodes of the bridged network and establish a corresponding forwarding path table.
  • the first bridge ie, the entrance bridge
  • the broadcast mode forwards the data packet
  • the sent data packet carries the root bridge address information
  • the existing MAC in MAC technology can be used to perform mapping association learning between the two destination addresses according to the MAC address of the external header of the data packet and the MAC address of the internal header.
  • the bridged network can adopt the existing MAC in MAC mechanism.
  • the packet has been added with an external MAC header.
  • the source address of the MAC header is the bridge of the entrance bridge.
  • the destination address of the MAC header can be the bridge address of the egress bridge or the external port address of the egress bridge.
  • the outlet of the bridge network needs to remove the external header of the package. In this scheme, the address format and the number of occupied bits of the external MAC header are allowed to be different from the internal MAC header.
  • the forwarding path table establishment process in the above solution is as follows:
  • each bridge node except the root bridge node actively sends a registration packet to the root port of the tree, and one registration packet carries one or more registration packets that need to be registered.
  • the network topology element address of the bridge (the MAC address of the external port of the bridge or the bridge MAC address of a bridge). For the convenience of presentation, these addresses are also referred to as registered addresses.
  • the destination MAC address of the registration packet is the specific control protocol body unit multicast address.
  • the bridge that initiates registration here is called the source bridge.
  • the intermediate bridge receives the transmitted registration packet and hands the packet to the control protocol body unit. Get one or more forwarding entries based on the registered address in the registration package and the associated registration packet receiving port: MAC address (corresponding registered address), port. The intermediate bridge adds the forwarding entry to the forwarding data table. The bridge then proceeds to forward the registration packet to the root port of the tree.
  • the root bridge After receiving the transmitted registration packet, the root bridge hands the packet to the control protocol unit.
  • the control protocol unit registers the registered address and the associated registration packet receiving port, thereby obtaining one or more forwarding entries: destination MAC address (source address of the symptom), and sending port.
  • the bridge adds the forwarding entry to the forwarding data table.
  • the control protocol body unit involved in the foregoing solution may be a logic control unit disposed on the bridge, and the set of logical control information is used to control the bridge to establish the forwarding path table, and the forwarding path table is Summarize to the forwarding database.
  • the root bridge may send the verification packet to the source bridge that sends the registration packet in the reverse direction; if the source bridge sending the registration packet does not receive the valid verification packet within a certain period of time, the method repeats Send the corresponding registration package, otherwise stop sending.
  • the verification process of the control packet can also be performed between the bridge that sends the adjacent registration packet and the bridge that receives the registration packet.
  • a bridge can send a control registration packet according to other needs, such as management configuration requirements, and perform related control on the sent registration packet.
  • the above process is actually the registration of the bridge network element address, that is, after receiving a registration packet, the bridge forms a forwarding entry according to the registered address and the receiving port. Further, the "unregistered" registration package can be sent as needed. After receiving an unregistered registration package, the bridge deletes a forwarding entry based on the registered address and the receiving port. As with the previous registration package process, the same control is required for deregistration.
  • the above process can be further optimized: If a bridge is a core node (no external port), it does not need to send the registration packet actively. If you do this, when a bridge finds it becomes an edge bridge, it should actively send the registration packet.
  • the sending of the above registration packet may also require no verification method, but the edge bridge periodically sends the registration packet, and the control protocol body unit has a corresponding aging mechanism for the registered address (the same as the traditional Bridge aging mechanism).
  • the data packet when the data packet arrives through the external port, it needs to encapsulate an external MAC header for the data packet, according to the mapping relationship between the destination MAC address of the data packet and the egress bridge address or the egress bridge external port address. Determine the egress bridge address or the egress bridge external port address and encapsulate the corresponding external MAC header destination address, and then use the formed forwarding path table to perform packet forwarding in the bridged network. For packets that cannot determine the destination address of the external MAC, broadcast or multicast can be performed.
  • FIG. 1 is a schematic diagram of a new bridge structure proposed by the present invention and a schematic diagram of a bridge network based on the bridge.
  • a tree is generated with each edge bridge as a root, and an edge bridge is generated.
  • the MAC in MAC encapsulation function a process of creating a forwarding path table can be initiated, and the core bridge can control the registration packet to establish a forwarding path table. After the packet from the external port arrives at the bridged network, the forwarding path table of the tree rooted at the ingress bridge in the bridged network is forwarded.
  • the bridge network is connected through a bridge node, and the bridge also includes:
  • control protocol unit configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;
  • a forwarding path table storage unit configured to store a forwarding path table
  • the packet forwarding unit is configured to forward the received data packet according to the forwarding path table.
  • the control protocol body unit further includes:
  • a registration packet sending unit configured to send a registration package to a root port of the tree.
  • the registration packet sending unit may send a registration packet to the root port of the tree to form a forwarding path table.
  • the registration packet processing unit processes the registration packet sent by other bridges to establish a forwarding path table.
  • the registration packet processing unit is configured to receive the registration packet, and extract registration packet carrying information to form a forwarding path table.
  • a confirmation packet sending unit configured to send a confirmation packet to a bridge that sends the registration packet after the registration packet processing unit receives the registration packet;
  • the confirmation packet sending unit is located in a control protocol body unit of the bridge receiving the registration packet, and is used for The receiving status of the registration packet is fed back.
  • the confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet.
  • the confirmation packet receiving determining unit is configured to determine whether the initiated registration packet normally arrives at the bridge that receives the registration packet.
  • the same bridge may be provided with multiple of the above functional units at the same time, which depends on the location of the bridge in the network. For example, if a registered bridge is initiated, it may also be the receiver of the registration packet in another registration process, so that the registration packet processing unit can be set in its control protocol unit, and the packet transmission unit can be confirmed.
  • FIGS. 2 and 3 are detailed structural diagrams of the control protocol body unit of the bridge that initiates registration in the scheme and the bridge that receives the registration.
  • the process of initiating a forwarding path table establishment is described.
  • the edge B and A know that the tree rooted at C is generated, the process of creating a forwarding path table is actively created, and the registration packet is sent.
  • the registration packet is always transmitted along the root port of the tree, and the control protocol body unit that receives the registration packet is based on the edge.
  • the address of the bridge ⁇ A and the receiving port establish a forwarding entry.
  • the receiving destination address of the registration packet shall be the control protocol body unit multicast address.
  • the root bridge C After receiving the registration packet and establishing the forwarding path entry, the root bridge C sends a confirmation message to the source bridge.
  • the forwarding path table cannot be established by the traditional address learning method due to the asymmetry of the path. If we can build a bridged network, the network does not need to learn the forwarding path table (except for the user-facing port), and the problem is solved.
  • multicast packets are submitted with the entrance bridge as the root (can contain broadcast packets ⁇ multicast) Packets ⁇ unknown packets, etc.), submit unicast packets with the exit bridge as the root.
  • each bridge After the tree is generated, in addition to the root bridge, each bridge establishes a forwarding path table that does not depend on the user data flow for the tree passing through the bridge: the root bridge MAC address or the root bridge external port MAC address, the root port ( The number of root ports corresponding to an address is not allowed to exceed one.
  • the forwarding path table can be automatically established by the data plane, or can be configured by the control protocol body unit, or manually configured.
  • the scheme can use the existing MAC in MAC technology to learn the mapping association between the MAC address of the external header of the packet and the MAC address of the internal header, and obtain an address mapping table.
  • the bridge network needs to adopt the following encapsulation mechanism:
  • the data packet adds an external MAC header, and the source MAC address contained in the external MAC header is the address of the ingress bridge or the ingress bridge.
  • the external port address, the destination address of the external MAC header is the address of the egress bridge or the external port address of the egress bridge.
  • the outer MAC header of the package needs to be removed at the exit of the bridged network.
  • the address format and occupied bits of the external MAC header are allowed to be different from the internal MAC header.
  • the packet to be sent to the internal port on the ingress bridge adopts the encapsulation mode: Encapsulate the local external access port address, you need to configure the bridge address information of the local access port to configure other bridges.
  • the type of the data packet is determined by using the address mapping table information. If the data packet is ⁇ broadcast packet ⁇ unknown data packet ⁇ multicast data packet, the tree with the entry root is used in the bridge network for packet forwarding. If it is a unicast packet, it is forwarded in the bridge network with the egress bridge as the root. When broadcasting or multicast forwarding packets, the encapsulated packets indicate the root of the forwarding.
  • packet forwarding can be done without the usual address learning inside the bridged network, because for unicast packets, the data is always forwarded towards the root port.
  • the system also implements the shortest path forwarding of packets.
  • FIG. 5 it is a schematic diagram of the structure of the bridged network in Option 2. As can be seen from the figure, the bridged network is connected through the bridge node, and the intermediate bridge and the edge bridge are wrapped.
  • the bridge includes: a control protocol body unit, configured to control establish a forwarding path table, where the forwarding path table is a bridge with each edge a forwarding path table for the spanning tree of the root; a forwarding path table storage unit, configured to store a forwarding path table;
  • the packet type judging unit is configured to judge the received packet type, and select a forwarding mode according to the packet type.
  • the packet type determining unit further includes:
  • a unicast packet forwarding unit configured to forward the unicast data packet by using an egress bridge as a root
  • a multicast packet forwarding unit configured to forward the broadcast or multicast data packet and the unknown data packet by using an ingress bridge as a root.
  • control protocol body unit further includes:
  • the registration packet processing unit receives the registration packet sent by the other bridges and establishes a forwarding path table; the registration packet sending unit is configured to send the registration packet to the designated port of all the bridges to be forwarded in the tree.
  • the verification packet sending unit is configured to send a confirmation packet to the bridge that sends the registration packet after receiving the registration packet sent by the other bridge.
  • the confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet.
  • FIG. 6 and FIG. 8 are schematic diagrams showing the structure of a bridge and a packet type judging unit that initiate registration in the scheme, and it can be seen that the bridge is provided with a control protocol body unit, a forwarding path table storage unit, and a packet type judging unit. Network element.
  • the packet type judging unit is provided with a unicast packet forwarding unit and a multicast packet forwarding unit.
  • a tree is generated with each edge bridge as the root, and the figure shows the tree generated by the bridge B as the root.
  • the data packet is forwarded toward the root port direction; when the data arrives at the ingress bridge B and the data packet is broadcasted when judging the data packet, the data is The packet is broadcast along a tree rooted at B.
  • the control protocol body unit of each edge bridge initiates a registration protocol registration process controlled by the control protocol according to the user source address it accesses to establish a forwarding path table.
  • the registered address is derived from the user source address obtained by the address learning when the user arrives at the edge bridge, and the network topology element address located on the bridge; the user address follows the original address to learn the aging process.
  • the registration address registration process controlled by the control protocol body unit follows the following steps: Each edge bridge selects a tree in which it is located, and sends a registration packet to all designated ports of the tree, and the destination address of the registration packet may be one. A specific multicast address.
  • a registration packet contains: a root bridge address, one or more registered addresses that need to be registered; the process can be further optimized to: The registration packet is not sent to the bridge external port.
  • each bridge After receiving the registration packet, each bridge obtains one or more forwarding path entries according to the receiving port and the registered address in the registration packet.
  • the forwarding entry includes: the registration address, the port, and continues according to the tree root bridge indicated by the registration package. Broadcast along the tree, sending the registration packet to a designated port other than the non-receiving port; the process can be further optimized to: The registration packet is not sent to the external port.
  • the sending of the foregoing registration packet may be performed by using a periodic discovery mechanism or a verification mechanism.
  • the periodic sending mechanism is: the root bridge node periodically sends the registration packet; the bridge node needs to obtain a corresponding aging mechanism for the forwarding entry established by the bridge node. .
  • the confirmation sending mechanism is: The bridge receiving the registration packet sends a confirmation message to the bridge that sends the registration packet after receiving the registration packet, and if the bridge sending the registration packet does not receive the confirmation packet within the set time threshold, then A registration package is sent to the bridge that receives the registration packet.
  • the edge bridge When the tree topology changes, the edge bridge immediately sends a registration packet according to the address it accesses, and the processing of the registration packet is the same as the above steps. Further, the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid a large number of broadcasts of the data packet to the network. influences.
  • the address registration process in scenario 3 can also be changed to the following steps:
  • Each edge bridge selects a tree in which it resides, periodically sends a registration packet to all designated ports of the tree.
  • the destination address of the registration packet can be a specific multicast address.
  • a registration packet also contains: Bridge Address, one or more registered addresses, registration type; registration types include: Add, Delete; The process can be further optimized to: The registration packet is not sent to the port.
  • each bridge After each bridge receives the registration packet, if the registration type is: Increase, one or more forwarding entries are obtained according to the receiving port and the address in the registration packet.
  • the forwarding entries include: registration address, port; if the registration type is: Delete , according to the address in the receiving port and the registration package, delete the original corresponding forwarding path table.
  • the edge bridge indicated by the registration packet continue to broadcast along the tree rooted at the edge bridge, that is, the registration packet is sent to the designated port other than the non-receiving port; the process can be further optimized to: The registration packet is not sent to the external port .
  • the edge bridge When the tree topology changes, the edge bridge immediately sends a registration packet according to the address it accesses, and the processing of the registration packet is the same as the above steps.
  • the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid a large number of broadcasts of the data packet to the network. influences.
  • Option 4 When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid a large number of broadcasts of the data packet to the network. influences.
  • the following shortest path system can be established in a bridged network, and the forwarding protocol table for the user address is established by the control protocol:
  • a tree is generated with each edge bridge as the root.
  • the first bridge ie, the entrance bridge
  • the first bridge that arrives at the packet is the root of the tree. Forward packets within the bridged network.
  • Each edge bridge initiates an address registration process based on the registered address it accesses to establish a forwarding path table.
  • the registered address is derived from: the user source address obtained by the address learning when the user data packet arrives at the edge bridge, and the network topology element address located on the bridge; the user address follows the original address learning aging process.
  • the address registration process follows the following steps:
  • the edge bridge sends a registration packet to each tree in which the edge bridge is located (where the edge bridge is not the root of the tree).
  • the registration packet address is a specific multicast address used.
  • a registration packet also contains: Address, one or more registered addresses; the message is forwarded along the root port of the specified tree.
  • each bridge After receiving the registration packet, each bridge obtains one or more forwarding entries according to the address in the receiving port and the registration packet.
  • the forwarding entry includes: the registration address, the port, and then the tree root bridge indicated by the registration package, continuing along The root port of the tree corresponding to the root bridge forwards the registration packet.
  • the transmission of the above registration packet may be sent using a periodic discovery mechanism or a verification mechanism.
  • the periodic sending mechanism is: The root bridge node periodically sends the registration packet; the bridge node needs to adopt a corresponding aging mechanism for the forwarding entry it establishes.
  • the confirmation sending mechanism is: After receiving the registration packet, the bridge receiving the registration packet sends a confirmation message to the bridge that sends the registration packet, and if the bridge sending the registration packet does not receive the confirmation packet within the set time value, Re-send the registration package to the bridge that receives the packet.
  • the edge bridge When the tree topology changes, the edge bridge immediately sends a registration packet according to the registered address it accesses, and the processing of the registration packet is the same as the above steps.
  • the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid broadcast of a large number of data packets to the network. influences.
  • the edge bridge sends a registration packet for each tree in which the edge bridge is located (the edge bridge is not the tree root of the tree).
  • the destination address of the message is a specific multicast address.
  • a registration packet also contains: 06 002918 Bridge address, one or more registered addresses, registration type; registration types include: Add, Delete; The message is forwarded along the root port of the specified tree.
  • each bridge After each bridge receives the registration package, if the registration type is: increase, 'the one or more forwarding items are obtained according to the registration port and the registration address in the registration package.
  • the forwarding items include: registration address, port; if the registration type is : Delete, according to the registered port and the registered address in the registration package, delete the original corresponding forwarding item: registration address, port. Then, according to the tree root bridge indicated by the registration package, continue to forward along the root port of the tree corresponding to the tree root bridge.
  • the edge bridge When the tree topology changes, the edge bridge immediately sends a registration packet according to the registered address it accesses, and the processing of the registration packet is the same as the above steps.
  • the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then send a unicast data packet to avoid the impact of a large number of data packet broadcasts on the network. .
  • the process of the present invention establishes a forwarding path table, which can close the original data plane address learning function and reduce the burden of hardware processing.
  • the control protocol body unit can establish a forwarding path table only for the bridge or bridge port address within the bridge network, the forwarding path table establishment process only performs the generation or change of the bridge network topology, and therefore the number of MAC addresses in the forwarding path table creation process. Greatly reduced, the time taken to establish the forwarding path table is also greatly shortened.
  • the forwarding path table may be established for the internal network topology element address of the bridge network. After the internal topology changes, the forwarding path table for the network topology element address is quickly established in the bridge network, so that the topology is not changed. Broadcast of user data packets.
  • control protocol spanning tree protocol
  • the control protocol is responsible for establishing the packet forwarding path table, and the original data plane address learning process can be closed, the software upgrade is easy, and the hardening is reduced. The burden of processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A data process method in the bridged network and a bridged network. The said bridged network, connected by the bridge, comprises: a tree is generated by regarding a edge bridge as a root, and a forwarding path table is established by sending the enrolling packet; the bridge port except the external port of the bridged network turns off the learning procedure of the source address of the data; when the data packet from the external of the bridged network arrives the bridged network, the data packet is forwarded in the bridged network by regarding the ingress bridge at which the data packet arrive as a root, and at a export the data packet is forwarded out through a external port. The present invention overcomes the problem of the learning of MAC address caused by the asymmetry of the path, and establishes the forward path table fulfilling the shortest path forwarding, and adopts the path forwarding technique with the high efficiency to fulfill the superiority performance proved by the bridged network as the operation Ethernet.

Description

一种桥接网络中的数据处理方法、 网桥及桥接网络 技术领域  Data processing method, bridge and bridge network in bridged network

本发明涉及通信领域, 尤其涉及一种桥接网络中的数据处理方法、 一种 网桥及一种桥接网络。 背景技术  The present invention relates to the field of communications, and in particular, to a data processing method in a bridge network, a bridge, and a bridge network. Background technique

在传统的以太网网桥互联的网络中, 由于在同一个广播域中采用相同的 树来进行数据包转发, 因此一般的情况下不能保证数据包按最短路径转发, 并且会导致数据集中在某些链路上传送。  In the traditional Ethernet bridge interconnected network, since the same tree is used for packet forwarding in the same broadcast domain, in general, the data packet cannot be forwarded according to the shortest path, and the data is concentrated in a certain Transfer on some links.

为了能够使网桥能够按最短路径转发数据, 目前有国际标准组织 IEEE的 最短路径桥项目组和国际标准组织 IETF的 TRILL工作组在分別按两个思路 进行研究。  In order to enable the bridge to forward data according to the shortest path, the shortest path bridge project team of the International Standards Organization (IEEE) and the TRILL working group of the International Standards Organization (IETF) are currently conducting research in two ways.

IEEE最短路径桥项目组的初步思路是: 仍使用生成树转发所有数据包, 以每个网桥为根生成一个树, 并且为了能按最短路径转发数据包, 不论是广 播数据包\组播数据包\未知数据包,或是单播数据包,在数据包的转发过程中, 都以数据包到达的第一个网桥为根进行数据包转发(也称: 以入口桥为根的 树进行转发)。 这个方法实际意味着: 在同一个广播域中, 采用多个树进行数 据包转发。  The initial idea of the IEEE Shortest Path Bridge project team is: still use the spanning tree to forward all packets, generate a tree for each bridge as the root, and in order to forward packets according to the shortest path, whether it is broadcast packet\multicast data Packet\unknown data packet, or unicast data packet. During the forwarding process of the data packet, the first bridge that arrives at the data packet is used as the root for data packet forwarding (also called: the tree rooted at the entrance bridge). Forward). This method actually means: Multiple trees are used for packet forwarding in the same broadcast domain.

IETF TRILL工作组的方法是: 网桥具有类似路由器的路由计算和转发功 能(也称该网桥为路由桥), 它能基于链路状态协议形成 "路由桥网络拓朴" 并能以此计算出任一目的路由桥的最短路径。 对单播数据包, 它能根据数据 包对应的出口路由桥地址按最短路径进行转发(而不是基于最终的目的节点 地址, 即不基于目的主机的 MAC地址)。 另外, 路由桥网络可以根据网絡拓 朴计算出生成树, 广播数据包\组播数据包\未知数据包沿着树进行转发。  The method of the IETF TRILL working group is: The bridge has a router-like route calculation and forwarding function (also called the bridge is a RBridge), which can form a "routing bridge network topology" based on the link state protocol and can calculate The shortest path to any destination RBridge. For unicast packets, it can be forwarded by the shortest path based on the egress RB address corresponding to the packet (rather than based on the final destination address, ie not based on the destination host's MAC address). In addition, the RBridge network can calculate the spanning tree according to the network topology, and broadcast packets\multicast packets\unknown packets are forwarded along the tree.

IEEE之所以采用与 IETF TRILL工作组不同的方法实现最短路径桥是因 为: 它认为 TRILL为了避免环路增加了 TTL等处理, 从而导致硬件改动比较 大, 而只在生成树上改造对硬件的改动影响比较小。 The reason why the IEEE uses the different methods from the IETF TRILL working group to implement the shortest path bridge is the cause. It is: It is considered that TRILL increases the processing of TTL in order to avoid the loop, which leads to a large hardware change, and only the transformation on the spanning tree has less impact on hardware changes.

目前 IEEE在最短路径桥研究中 , 它围绕着生成树提出了两个方案: Currently IEEE is in the shortest path bridge study, which proposes two schemes around spanning tree:

( 1 )使用原来的生成树协议生成树: RSTP/MSTP; (1) Use the original spanning tree protocol spanning tree: RSTP/MSTP;

( 2 )使用链路状态协议来建立生成树。  (2) Establish a spanning tree using a link state protocol.

若使用链路状态协议对以太网进行改造, 为了完成已有快速生成树协议、 多生成树协议实现的功能, 链路状态协议需要做很多适配工作, 因此工作量 也不算小。 因此目前 IEEE没有确定哪个方案作为必选方案。 从目前 IEEE的 研究看, 它对方案 (1 )进行了诸多研究。  If the link state protocol is used to modify the Ethernet, in order to complete the functions of the existing fast spanning tree protocol and multiple spanning tree protocols, the link state protocol needs to do a lot of adaptation work, so the workload is not too small. Therefore, the IEEE currently does not determine which solution is a mandatory option. From the current IEEE research, it has carried out many studies on the scheme (1).

当利用生成树协议建立的树被建立后, 如何转发数据呢? 若利用链路状 态协议来建立生成树, 由于每个网桥知道整个网络拓朴, 它创建生成树包括 了整个树, 因此它知道任何网桥所在的树分支, 因此一旦树生成它便知道了 如何转发数据。 若使用原有的生成树协议创建树, 每个网桥只能知道一个树 经过该网桥的根端口和指定端口, 它不知道整个树的信息, 因此若以入口为 根进行单播数据包转发时, 它不知道目的地址所接入的树分支, 因此需要通 过地址学习获得转发路径。  How do you forward data when a tree created using the spanning tree protocol is created? If the link state protocol is used to establish the spanning tree, since each bridge knows the entire network topology, it creates a spanning tree that includes the entire tree, so it knows the tree branch where any bridge is located, so once the tree is generated it knows How to forward data. If you use the original spanning tree protocol to create a tree, each bridge can only know that one tree passes through the root port and designated port of the bridge. It does not know the information of the entire tree. Therefore, if the portal is the root, the unicast packet is used. When forwarding, it does not know the tree branch to which the destination address is accessed. Therefore, the forwarding path needs to be obtained through address learning.

但是每个树独立生成, 则会导致从边沿桥 A到边沿桥 Z的路径 a (以 A 为树根 ) 同从边沿桥 Z到边沿桥 A的路径 z (以 Z为树根) 不一致。 因此, 以入口桥为根的转发机制会导致无法采用通常的源地址学习方法获得正常的 转发路径。 这实际是由于路径不对称造成了地址学习的困难。 之所以导致上 述两个路径的不一致是因为: 当出现两个以上(包括两个)等价路径时, 不 同的树独立生成时对等价路径采用不同的阻塞方法造成路径选择的不一致。  However, each tree is generated independently, which results in a path a from the edge bridge A to the edge bridge Z (with A as the root). The path z from the edge bridge Z to the edge bridge A (with Z as the root) is inconsistent. Therefore, the forwarding mechanism rooted at the ingress bridge will result in the inability to obtain a normal forwarding path using the usual source address learning method. This is actually due to the difficulty of address learning due to path asymmetry. The reason why the above two paths are inconsistent is because: When two or more (including two) equivalent paths occur, different trees are independently generated, and different blocking methods are used for the equal path to cause inconsistency in path selection.

为了使服务提供者网络有能力避免储存和处理过多的 MAC地址,从而提 高服务提供者网络的性能, 北电提出了一个专利号为 "US 2004/0184408" 的 技术方案, 采用了 MAC in MAC机制。 基本技术内容是: 当用户数据包到达 服务提供者网桥(即服务提供者网络的边界设备), 服务提供者再封装一个外 部的 MAC头, 外部的 MAC头是包含源服务提供者地址和目的服务提供者地 址。 为了封装外部头,服务提供者边界设备需要利用接收到的有外部 MAC头 的数据包的源地址进行用户目的 MAC地址和服务提供者目的地址的映射学 习。 这里的服务提供者地址指的是服务提供者网络内部的地址。 该技术能使 服务提供者网络的核心桥屏蔽掉客户 MAC地址。 In order to enable the service provider network to avoid storing and processing too many MAC addresses to improve the performance of the service provider network, Nortel has proposed a technical solution with the patent number "US 2004/0184408", using MAC in MAC mechanism. The basic technical content is: When the user data packet arrives at the service provider bridge (ie, the border device of the service provider network), the service provider re-encapsulates an external MAC header, and the external MAC header contains the source service provider address and destination. Service provider Address. In order to encapsulate the external header, the service provider border device needs to utilize the received source address of the data packet with the external MAC header for mapping learning of the user's destination MAC address and the service provider's destination address. The service provider address here refers to the address inside the service provider network. This technology enables the core bridge of the service provider network to mask out the customer MAC address.

现有技术一的技术方案:  The technical solution of the prior art one:

在以入口根最短路径转发系统中, 为了克服路径不对称造成的学习障碍, 在 IEEE 提出 了 ( 由思科提出 ) PATH 向量对称路径生成方法 ( aq-nfinn-shortest-path-0905.pdf), 它的目的是: 确保从边沿桥 A到边沿桥 Z 的路径 a同从边沿桥 Z到边沿桥 A的路径 z的一致。 为了实施该方法, 预先 确定在利用 MSTP建立桥的过程中使用 N位 PATH向量, N不能小于网络内 网桥的数量, 并且给每个网桥分配一个固定 bit位。  In the shortest path forwarding system with the entry root, in order to overcome the learning obstacle caused by path asymmetry, the IEEE proposed (by Cisco) PATH vector symmetric path generation method (aq-nfinn-shortest-path-0905.pdf), which The purpose of this is to ensure that the path a from the edge bridge A to the edge bridge Z coincides with the path z from the edge bridge Z to the edge bridge A. To implement the method, it is predetermined to use the N-bit PATH vector in the process of establishing the bridge using MSTP, N cannot be smaller than the number of bridges in the network, and each bridge is assigned a fixed bit.

为了兼容 MSTP原有的 MSTP协议, 目前规定将优先权向量(priority vector ) 中的 {Root ID, Root Path Cost, Bridge ID, Port ID}中的 Bridge ID换成 了 PATH向量, 所以该向量的位数是 64。  In order to be compatible with the original MSTP protocol of MSTP, it is currently required to replace the Bridge ID in {Root ID, Root Path Cost, Bridge ID, Port ID} in the priority vector with the PATH vector, so the bit of the vector The number is 64.

另外预先采用一个算法(或静态配置)确保链路正反向的代价是一致的。 在多个生成树的建立过程中 , 按如下步骤创立和传播 PATH向量: 每个网桥作为树根初始化一个空的 PATH 向量, 并把该向量添加到和该 树根相应的 BPDU 消息中传播。  In addition, an algorithm (or static configuration) is used in advance to ensure that the cost of the link is reversed. During the establishment of multiple spanning trees, the PATH vector is created and propagated as follows: Each bridge initializes an empty PATH vector as the root of the tree and adds the vector to the corresponding BPDU message in the root of the tree.

当一个 PATH 向量传播到某个网桥时, 若该网桥能根据唯一最短根代价 确定收到 BPDU的端口为该 BPDU相应树的根端口,则在 BPDU包含的 PATH 向量中将分配给自己的位置填写 1 并在本地储存该向量, 然后继续向非根端 口传播该向量; 否则, 若网桥计算出相应树的两个最短等价根代价, 则它按 下面步骤处理: 取出该两个等价根对应的两个 PATH向量(并让 PATH向量关 于本桥的 bit位都置 1 ),按一个规定准则确定阻塞其中一个 PATH向量对应的 路径。 例如, 将两个向量值换算成一个 N位整数, 值大的向量对应的路径被 阻塞。  When a PATH vector is propagated to a bridge, if the bridge can determine that the port receiving the BPDU is the root port of the corresponding tree of the BPDU according to the unique minimum root cost, it will be assigned to itself in the PATH vector contained in the BPDU. Fill in the location 1 and store the vector locally, then continue to propagate the vector to the non-root port; otherwise, if the bridge calculates the two shortest equivalence root costs of the corresponding tree, it is processed as follows: Take the two, etc. The two PATH vectors corresponding to the valence root (and let the PATH vector be set to 1 for the bit of the bridge), determine the path corresponding to one of the PATH vectors according to a prescribed criterion. For example, two vector values are converted into an N-bit integer, and the path corresponding to the vector with the large value is blocked.

通过上述方法可保证不同的树在其生成过程中, 当出现等价路径, 不同 的生成树的协议过程能根据相应的两个等价 PATH 向量并采取相同的阻塞准 则来确定被阻塞的路径, 从而保证在使用不同的树进行转发数据时保证两个 点之间的正反路径的一致性(即对称性)。 Through the above method, different trees can be guaranteed in the process of generating, when an equivalent path occurs, different The spanning tree protocol process can determine the blocked path according to the corresponding two equivalent PATH vectors and adopt the same blocking criterion, thereby ensuring the positive and negative paths between the two points when forwarding data using different trees. Consistency (ie symmetry).

现有技术一的缺点:  Disadvantages of prior art one:

由于 PAHT向量的位数与网络规模成正比关系, PATH向量的位数与网络 的扩展性的关联非常大, 因此这种方法很不利于网络的扩展。 为了协议的兼 容性, 目前 PATH向量的位数是 64, 显然已不满足扩展性需求。  Since the number of bits in the PAHT vector is proportional to the network size, the number of bits in the PATH vector is very much related to the scalability of the network, so this method is not conducive to network expansion. For the compatibility of the protocol, the current number of bits in the PATH vector is 64, which obviously does not meet the scalability requirements.

另外, 由于该方案只能用于点对点链路的情形, 对多点接入的链路, 仍 然会导致路径的不对称性。  In addition, since the scheme can only be used in the case of a point-to-point link, the link to the multi-point access still causes path asymmetry.

现有技术二的技术方案:  The technical solution of the prior art 2:

NEC提出了一个以太网优化的数据包转发方法的技术方案, 专利号为: US 2003-642480 , 专利名称为: 网络系统、 生成树配置方法、 生成树配置节 点、 生成树配置程序, 其中一个基本技术点是:  NEC proposed a technical solution for Ethernet-optimized packet forwarding method. The patent number is US 2003-642480. The patent name is: network system, spanning tree configuration method, spanning tree configuration node, spanning tree configuration program, one of which is basic. The technical point is:

( 1 )通过在入口桥插入 TAG转发标志, 实现对数据包的快速转发; ( 2 )通过使用以目的 (出口桥)为根的树转发数据能够使数据包沿着最 短路径到达目的地。  (1) Fast forwarding of data packets by inserting a TAG forwarding flag at the ingress bridge; (2) By forwarding data using a tree rooted at the destination (egress bridge), the data packet can be routed along the shortest path to the destination.

对传统的以太网,一个用户数据包在它经历的路径上是以 MAC地址进行 转发的,而此专利想实现的一个目标是:用位数较少的 TAG标签来替换 MAC 地址。  For traditional Ethernet, a user packet is forwarded with a MAC address on the path it goes through, and one goal that the patent wants to achieve is to replace the MAC address with a TAG tag with a small number of bits.

但是如何插入 TAG,如何将用户数据包经历的路径上 MAC置换成 TAG, 该专利没有给出方法, 为此 NEC紧接着又提出了一个新的技术方案, 专利号 为: 003-642481 , 专利名称为: 网络系统、 学习桥节点、 学习方法和它的程序。 它解决的一个基本问题是: 能够在路径不对称的树拓朴中, 使网络入口桥能 学习到用于转发数据包到目的地的转发标记 TAG ( TAG和一个 ϋ的 MAC地 址关联)。 为此它提出了基本方法: 网桥节点周期性地沿着和用户数据包路径 相反方向发送学习包, 在学习包中包含 TAG和其相关的源地址, 源地址来源 于一个源地址緩冲表。该方法能解决路径不对称引起的转发标记 TAG的学习, 能在网桥学习包的发送中, 使其它沿学习路径的网桥节点学习到转发 TAG。 实际上传统的桥学习方法 "源地址学习方法" 显然也是逆向学习方法, 但由于数据包转发使用的是公共树, 树本身的路径对称性不会阻碍学习, 但 当使用不同树转发时, 路径不对称阻碍了学习。 为了克服这一点, 该专利提 出让网桥来主动发送反向学习包, 只不过该专利不是针对源地址学习, 而是 学习和源地址相关的 TAG。 However, how to insert TAG, how to replace the MAC on the path that the user data packet goes through with TAG, the patent does not give a method. For this reason, NEC then proposes a new technical solution, patent number: 003-642481, patent name For: network system, learning bridge node, learning method and its programs. A basic problem it solves is: Being able to learn in the tree topology of path asymmetry that the network ingress bridge can learn the forwarding tag TAG (the TAG and a MAC MAC address association) used to forward the packet to the destination. To this end, it proposes a basic method: The bridge node periodically sends the learning packet in the opposite direction to the user packet path, including the TAG and its associated source address in the learning packet, and the source address is derived from a source address buffer table. . The method can solve the learning of the forwarding tag TAG caused by the path asymmetry. In the transmission of the bridge learning packet, other bridge nodes along the learning path can learn to forward the TAG. In fact, the traditional bridge learning method "source address learning method" is obviously also a reverse learning method, but since the packet forwarding uses a public tree, the path symmetry of the tree itself does not hinder learning, but when using different tree forwarding, the path Asymmetry hinders learning. In order to overcome this, the patent proposes to let the bridge actively send the reverse learning package, but the patent does not learn from the source address, but learns the TAG associated with the source address.

现有技术二的缺点:  Disadvantages of prior art 2:

该方案在 "如何选择相反路径传播学习包" 上没有给予描述, 而此是一 个问题的关键。 在如何对待原来的用户数据包地址学习过程上, 该专利没有 给予明确的描述。该系统采用了 TAG进行转发,因此不能兼容目前使用 MAC 地址进行转发数据的现有技术。  The program does not describe the "How to choose the opposite path to spread the learning package", and this is the key to a problem. The patent does not give a clear description of how to treat the original user packet address learning process. The system uses TAG for forwarding and is therefore not compatible with existing technologies that currently use MAC addresses for forwarding data.

该系统 TAG学习是和一个高速緩冲存储器的源 MAC地址相关,因此在运 营商以太网中采用此技术时, 客户 MAC地址数量很大时会给 TAG分配带来困 难, 大量的 TAG也会对运营商网络造成大的负荷。 发明内容  The system TAG learning is related to the source MAC address of a cache. Therefore, when this technology is adopted in the carrier Ethernet, the number of client MAC addresses is large, which will bring difficulties to the TAG allocation. A large number of TAGs will also be The carrier network creates a heavy load. Summary of the invention

本发明提供一种桥接网络中的数据处理方法、 网桥及桥接网络, 用以解 决现有技术中存在的路径不对称引起的 MAC地址学习问题。  The present invention provides a data processing method, a bridge, and a bridge network in a bridge network, which are used to solve the MAC address learning problem caused by the path asymmetry existing in the prior art.

本发明包括:  The invention includes:

一种桥接网络中的数据处理方法, 所述的桥接网络, 通过网桥连接, 包 括:  A data processing method in a bridge network, where the bridge network is connected through a bridge, including:

生成以所述桥接网络的每个边沿桥为根的树, 并发送注册包建立每个树 的转发路径表;  Generating a tree rooted at each edge bridge of the bridged network, and transmitting a registration packet to establish a forwarding path table for each tree;

当来自桥接网络外部的数据包到达桥接网络时, 以数据包到达的入口桥 为根, 在桥接网络内依据所述转发路径表转发数据包, 并在出口桥将数据包 通过外部端口发送出去。  When a packet from outside the bridge network arrives at the bridge network, the entry bridge to which the packet arrives is the root, the packet is forwarded according to the forwarding path table in the bridge network, and the data packet is sent out through the external port at the egress bridge.

一种网桥, 包括: 控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以入口桥 为根的生成树的转发路径表; A bridge, comprising: a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;

转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table;

数据包转发单元, 用于依据所述转发路径表转发接收到的数据包。  a packet forwarding unit, configured to forward the received data packet according to the forwarding path table.

一种桥接网络, 通过网桥连接, 该网桥包括:  A bridged network, connected by a bridge, the bridge includes:

控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以入口桥 为根的生成树的转发路径表;  a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;

转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table;

数据包转发单元, 用于依据所述转发路径表转发接收到的数据包。  a packet forwarding unit, configured to forward the received data packet according to the forwarding path table.

一种桥接网络中的数据处理方法, 所述的桥接网络, 通过网桥连接, 包 括:  A data processing method in a bridge network, where the bridge network is connected through a bridge, including:

生成以每个边沿桥为根的树, 所述树上的网桥节点通过发送注册包, 建 立关于根网桥的转发路径表;  Generating a tree rooted at each edge bridge, and the bridge node on the tree establishes a forwarding path table about the root bridge by sending a registration packet;

当来自桥接网络外部的数据包到达桥接网络时:  When a packet from outside the bridged network reaches the bridged network:

对多播数据包, 沿着数据包到达的入口桥为根的树在桥接网络内进行转 发; 或  For multicast packets, the tree rooted along the entry bridge to which the packet arrives is forwarded within the bridged network; or

对单播数据包, 沿着数据包离开桥接网絡到达的目的出口桥为根的树在 桥接网络内进行转发;  For a unicast packet, the tree rooted along the destination egress bridge that the packet leaves the bridging network arrives in the bridge network;

在出口桥将所述数据包通过外部端口发送出去。  The packet is sent out through the external port at the egress bridge.

一种网桥, 包括:  A bridge, comprising:

控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以每个边 沿桥为根的生成树的转发路径表;  a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of a spanning tree rooted at each edge bridge;

转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table;

数据包类型判断单元, 用于判断接收到的数据包类型, 并根据所述数据 包类型选择转发方式。  The packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type.

一种桥接网络, 通过网桥连接, 该网桥包括:  A bridged network, connected by a bridge, the bridge includes:

控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以每个边 沿桥为根的生成树的转发路径表; a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is for each side a forwarding path table of the spanning tree along the bridge;

转发路径表存储单元, 用于存储转发路径表;  a forwarding path table storage unit, configured to store a forwarding path table;

数据包类型判断单元, 用于判断接收到的数据包类型, 并根据所述数据 包类型选择转发方式。  The packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type.

冬发明克服路径不对称引起的 MAC地址学习问题,建立满足最短路径转 发的转发路径表, 并且能采用高效的路径转发技术满足桥接网络能作为运营 商以太网所应提供的优越性能。 附图说明  The winter invention overcomes the problem of MAC address learning caused by path asymmetry, establishes a forwarding path table that satisfies the shortest path forwarding, and can adopt an efficient path forwarding technology to satisfy the superior performance that the bridge network can provide as a carrier Ethernet. DRAWINGS

图 1为本发明方案一的桥接网络结构示意图;  1 is a schematic structural diagram of a bridge network according to the first aspect of the present invention;

图 2为本发明方案一的网桥结构示意图;  2 is a schematic structural diagram of a bridge according to the first aspect of the present invention;

图 3为本发明方案一的控制协议体单元的结构示意图;  3 is a schematic structural diagram of a control protocol body unit according to the first aspect of the present invention;

图 4为本发明方案一的转发路径表建立的过程示意图;  4 is a schematic diagram of a process of establishing a forwarding path table according to the first solution of the present invention;

图 5为本发明方案二的结构示意图;  Figure 5 is a schematic structural view of the second embodiment of the present invention;

图 6为本发明方案二的网桥结构示意图;  6 is a schematic structural diagram of a bridge according to the second aspect of the present invention;

图 7为本发明方案二中数据包类型判断单元的结构示意图;  7 is a schematic structural diagram of a data packet type determining unit in the second solution of the present invention;

图 8为本发明方案二中控制协议体单元的结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of a control protocol body unit in the second embodiment of the present invention. detailed description

下面结合说明书附图来说明本发明的具体实施方式。  Specific embodiments of the present invention are described below in conjunction with the drawings.

本发明方案围绕着 IEEE的第一方案进行:在使用生成树协议建立的多个 生成树中研究数据的最短路径转发方法, 其中要研究以入口桥做为根的数据 包转发方法。 方案一:  The solution of the present invention is carried out around the first scheme of the IEEE: a shortest path forwarding method for researching data in a plurality of spanning trees established using a spanning tree protocol, wherein a packet forwarding method using an ingress bridge as a root is to be studied. Option One:

方案一是在一个桥接网络中, 建立了以入口为根的最短路径转发系统, 包括以下内容: 在桥接网中, 以每个边沿桥为根生成一个树。 The first solution is to establish an entry-origin-based shortest path forwarding system in a bridged network, including the following: In the bridge network, a tree is generated with each edge bridge as the root.

除桥接网络外部端口, 对其它网桥端口, 由于控制协议体单元负责建立 转发路径表, 为了避免其与原有的数据包源地址学习过程所建立的转发路径 表发生冲突, 需要关闭原有的数据包源地址学习功能。  In addition to bridging the external port of the network, for other bridge ports, because the control protocol unit is responsible for establishing the forwarding path table, in order to avoid conflicts with the forwarding path table established by the original packet source address learning process, it is necessary to close the original Packet source address learning function.

采用控制协议建立转发路径表过程建立每个树的转发路径表。  The forwarding path table process is established by using a control protocol to establish a forwarding path table for each tree.

在这里, 使用了控制协议建立转发路径表过程, 该控制协议转发路径表 建立过程可以控制桥接网络的桥节点, 建立相应的转发路径表。  Here, the control protocol is used to establish a forwarding path table process, and the control protocol forwarding path table establishing process can control the bridge nodes of the bridged network and establish a corresponding forwarding path table.

在上述的桥接网络中, 当来自桥接网络外部的数据到达桥接网络时, 以 数据包到达的第一个网桥(即入口桥)为树根在桥接网络内转发数据包, 并 且若以组播或广播方式转发数据包, 发送的数据包要携带根网桥地址信息。  In the above-mentioned bridge network, when data from outside the bridge network arrives at the bridge network, the first bridge (ie, the entrance bridge) that arrives at the data packet forwards the data packet in the bridge network, and if multicast Or the broadcast mode forwards the data packet, and the sent data packet carries the root bridge address information.

在边沿桥, 可以采用现有 MAC in MAC技术, 根据数据包外部头目的 MAC地址和内部头目的 MAC地址进行两个目的地址的映射关联学习。  In the edge bridge, the existing MAC in MAC technology can be used to perform mapping association learning between the two destination addresses according to the MAC address of the external header of the data packet and the MAC address of the internal header.

使用该方案时, 桥接网络可以采用现有 MAC in MAC机制, 在入口桥, 在数据发送到内部端口前, 数据包已添加一个外部 MAC头, 该 MAC头包含 的源地址是入口桥的网桥地址或入口桥的外部端口地址 ,该 MAC头包含的目 的地址可以是出口桥的网桥地址或出口桥的外部端口地址。 在桥接网络的出 口需要将封装的外部头去掉。在本方案中, 允许外部 MAC头的地址格式和占 用位数不同于内部 MAC头。  When using this scheme, the bridged network can adopt the existing MAC in MAC mechanism. At the ingress bridge, before the data is sent to the internal port, the packet has been added with an external MAC header. The source address of the MAC header is the bridge of the entrance bridge. The address or the external port address of the ingress bridge. The destination address of the MAC header can be the bridge address of the egress bridge or the external port address of the egress bridge. The outlet of the bridge network needs to remove the external header of the package. In this scheme, the address format and the number of occupied bits of the external MAC header are allowed to be different from the internal MAC header.

上述方案中的转发路径表建立过程如下:  The forwarding path table establishment process in the above solution is as follows:

当一个树生成后, 树上除根网桥节点以外的每个网桥节点的控制协议体 单元主动向树的根端口发送注册包, 一个注册包携带需要注册的一个或多个 该发送注册包的网桥的网络拓朴元素地址(桥接网络外部端口的 MAC地址或 一个桥的桥 MAC地址)。 为表述方便也称这些地址为注册地址。 注册包的目 的 MAC地址是特定的控制协议体单元组播地址。这里发起注册的网桥被称为 源网桥。  After a tree is generated, the control protocol body unit of each bridge node except the root bridge node actively sends a registration packet to the root port of the tree, and one registration packet carries one or more registration packets that need to be registered. The network topology element address of the bridge (the MAC address of the external port of the bridge or the bridge MAC address of a bridge). For the convenience of presentation, these addresses are also referred to as registered addresses. The destination MAC address of the registration packet is the specific control protocol body unit multicast address. The bridge that initiates registration here is called the source bridge.

中间网桥收到传送过来的注册包, 将该包交给控制协议体单元。 根据注 册包中注册地址和相关的注册包接收端口, 而得到一个或多个转发项: 目的 MAC 地址(相应的注册地址)、 端口。 中间网桥把该转发项添加到转发数据 表中。 然后该网桥继续向树的根端口转发注册包。 The intermediate bridge receives the transmitted registration packet and hands the packet to the control protocol body unit. Get one or more forwarding entries based on the registered address in the registration package and the associated registration packet receiving port: MAC address (corresponding registered address), port. The intermediate bridge adds the forwarding entry to the forwarding data table. The bridge then proceeds to forward the registration packet to the root port of the tree.

根网桥收到传送过来的注册包后, 将该包交给控制协议体单元。 控制协 议体单元 居注册包中注册地址和相关的注册包接收端口, 从而得到一个或 多个转发项: 目的 MAC地址(相症的源地址)、 发送端口。 网桥把该转发项 添加到转发数据表中。  After receiving the transmitted registration packet, the root bridge hands the packet to the control protocol unit. The control protocol unit registers the registered address and the associated registration packet receiving port, thereby obtaining one or more forwarding entries: destination MAC address (source address of the symptom), and sending port. The bridge adds the forwarding entry to the forwarding data table.

上述方案中涉及到的控制协议体单元, 可以是设置在网桥上的逻辑控制 单元, 通过设定的逻辑控制信息, 控制所述的网桥建立所述的转发路径表, 并将转发路径表汇总至转发数据库。  The control protocol body unit involved in the foregoing solution may be a logic control unit disposed on the bridge, and the set of logical control information is used to control the bridge to establish the forwarding path table, and the forwarding path table is Summarize to the forwarding database.

进一步, 当根网桥收到注册包后, 可以沿着反方向向发送注册包的源网 桥发送证实包; 若发送注册包的源网桥在一定时间未收到有效的证实包, 则 重复发送相应的注册包, 否则停止发送。 控制包的证实过程也可在相邻的发 送注册包的网桥和接收注册包的网桥间进行。  Further, after receiving the registration packet, the root bridge may send the verification packet to the source bridge that sends the registration packet in the reverse direction; if the source bridge sending the registration packet does not receive the valid verification packet within a certain period of time, the method repeats Send the corresponding registration package, otherwise stop sending. The verification process of the control packet can also be performed between the bridge that sends the adjacent registration packet and the bridge that receives the registration packet.

进一步, 一个网桥可以根据其它需要, 如应管理配置需求发送一个控制 注册包, 对所发送的注册包进行相关控制。  Further, a bridge can send a control registration packet according to other needs, such as management configuration requirements, and perform related control on the sent registration packet.

以上的过程实际是桥接网络拓朴元素地址的注册 , 即收到一个注册包后 , 网桥根据注册地址和接收端口形成一个转发项。 进一步, 还可根据需要发送 "取消注册" 的注册包, 当收到一个取消注册的注册包后, 网桥根据注册地 址和接收端口删除一个转发项。 象前面的注册包处理过程一样, 对取消注册 包同样需要证实控制。  The above process is actually the registration of the bridge network element address, that is, after receiving a registration packet, the bridge forms a forwarding entry according to the registered address and the receiving port. Further, the "unregistered" registration package can be sent as needed. After receiving an unregistered registration package, the bridge deletes a forwarding entry based on the registered address and the receiving port. As with the previous registration package process, the same control is required for deregistration.

上述过程可以进一步被优化: 若一个网桥是核心节点 (没有外部端口), 则它不需要主动发送注册包。 如果这样做, 则当一个桥发现它变成边沿桥时, 它应主动发送注册包。  The above process can be further optimized: If a bridge is a core node (no external port), it does not need to send the registration packet actively. If you do this, when a bridge finds it becomes an edge bridge, it should actively send the registration packet.

当网络拓朴变化时, 删除原有转发路径表并重新生成新树, 之后可重复 上述步骤。  When the network topology changes, delete the original forwarding path table and regenerate the new tree. Then repeat the above steps.

上述注册包的发送也可不需要采取证实的方法, 而是让边沿桥周期性地 发送注册包, 并且控制协议体单元要对注册地址有相应的老化机制 (同传统 桥的老化机制)。 The sending of the above registration packet may also require no verification method, but the edge bridge periodically sends the registration packet, and the control protocol body unit has a corresponding aging mechanism for the registered address (the same as the traditional Bridge aging mechanism).

釆用上述最短路径转发系统, 当数据包通过外部端口到达后, 需对数据 包封装一个外部 MAC头, 其中根据数据包的目的 MAC地址与出口桥地址或 与出口桥外部端口地址的映射关系表, 确定出口桥地址或出口桥外部端口地 址并封装相应的外部 MAC头目的地址,然后可以利用形成的转发路径表在桥 接网络内进行数据包转发。对不能确定外部 MAC目的地址的数据包,可进行 广播或组播。  Using the shortest path forwarding system described above, when the data packet arrives through the external port, it needs to encapsulate an external MAC header for the data packet, according to the mapping relationship between the destination MAC address of the data packet and the egress bridge address or the egress bridge external port address. Determine the egress bridge address or the egress bridge external port address and encapsulate the corresponding external MAC header destination address, and then use the formed forwarding path table to perform packet forwarding in the bridged network. For packets that cannot determine the destination address of the external MAC, broadcast or multicast can be performed.

如图 1 所示, 是本发明提出的新的网桥结构示意图及基于该网桥的一种 桥接网络的结构示意图, 在该网络系统中, 以每个边沿桥为根生成一个树, 边沿桥具有 MAC in MAC封装功能, 能发起创建一个转发路径表过程, 核心 桥能控制注册包建立转发路径表。 来自外部端口的数据包到达桥接网络后, 在桥接网络内以入口桥为根的树的转发路径表被转发。  FIG. 1 is a schematic diagram of a new bridge structure proposed by the present invention and a schematic diagram of a bridge network based on the bridge. In the network system, a tree is generated with each edge bridge as a root, and an edge bridge is generated. With the MAC in MAC encapsulation function, a process of creating a forwarding path table can be initiated, and the core bridge can control the registration packet to establish a forwarding path table. After the packet from the external port arrives at the bridged network, the forwarding path table of the tree rooted at the ingress bridge in the bridged network is forwarded.

从图中可见, 该桥接网络通过网桥节点连接, 该网桥还包括:  As can be seen from the figure, the bridge network is connected through a bridge node, and the bridge also includes:

控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以入口桥 为根的生成树的转发路径表;  a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge;

转发路径表存储单元, 用于存储转发路径表;  a forwarding path table storage unit, configured to store a forwarding path table;

数据包转发单元: 用于依据所述转发路径表转发接收到的数据包。  The packet forwarding unit is configured to forward the received data packet according to the forwarding path table.

所述的控制协议体单元, 还包括:  The control protocol body unit further includes:

注册包发送单元, 用于向树的根端口发送注册包。  A registration packet sending unit, configured to send a registration package to a root port of the tree.

该注册包发送单元, 可以向树的根端口发送注册包, 以形成转发路径表。 注册包处理单元, 对接收到其他网桥发送的注册包进行处理, 建立转发 路径表。  The registration packet sending unit may send a registration packet to the root port of the tree to form a forwarding path table. The registration packet processing unit processes the registration packet sent by other bridges to establish a forwarding path table.

该注册包处理单元, 用于接收所述的注册包, 并提取注册包携带信息, 形成转发路径表。  The registration packet processing unit is configured to receive the registration packet, and extract registration packet carrying information to form a forwarding path table.

证实包发送单元, 用于在注册包处理单元收到注册包后, 向发送注册包 的网桥发送证实包;  a confirmation packet sending unit, configured to send a confirmation packet to a bridge that sends the registration packet after the registration packet processing unit receives the registration packet;

该证实包发送单元, 位于接收注册包的网桥的控制协议体单元, 用于对 注册包的接收状态进行反馈。 The confirmation packet sending unit is located in a control protocol body unit of the bridge receiving the registration packet, and is used for The receiving status of the registration packet is fed back.

证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果在设 定的时间阈值内没有收到证实包, 则重新向接收注册包的网桥发送注册包。  The confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet.

该证实包接收判定单元, 用于判定所发起注册包是否正常到达接收注册 包的网桥。  The confirmation packet receiving determining unit is configured to determine whether the initiated registration packet normally arrives at the bridge that receives the registration packet.

上述方案中, 同一个网桥可能同时设置有上述功能单元中的多个, 这需 要根据所述网桥在网络中的位置而定。 比如发起一个注册的网桥, 可能也会 在另外一个注册过程中, 作为注册包的接收方, 这样, 就可以在其控制协议 体单元设置注册包处理单元, 证实包发送单元等。  In the above solution, the same bridge may be provided with multiple of the above functional units at the same time, which depends on the location of the bridge in the network. For example, if a registered bridge is initiated, it may also be the receiver of the registration packet in another registration process, so that the registration packet processing unit can be set in its control protocol unit, and the packet transmission unit can be confirmed.

图 2和图 3是该方案中发起注册的网桥及接收注册的网桥的控制协议体 单元的细化结构图。  2 and 3 are detailed structural diagrams of the control protocol body unit of the bridge that initiates registration in the scheme and the bridge that receives the registration.

如图 4所示,描述的是发起转发路径表建立过程。 当边沿 B、 A知道以 C 为根的树生成后, 主动创建一个转发路径表建立过程, 发送注册包, 注册 包始终沿着树的根端口传送, 收到注册包的控制协议体单元根据边沿桥^ A 的地址和接收端口建立一个转发项。 为了能使控制协议体单元处理收到的控 制注册包, 注册包的接收目的地址应是控制协议体单元组播地址。 根网桥 C 收到注册包并建立转发路径表项后, 向源网桥发送一个证实消息。 方衆二:  As shown in FIG. 4, the process of initiating a forwarding path table establishment is described. When the edge B and A know that the tree rooted at C is generated, the process of creating a forwarding path table is actively created, and the registration packet is sent. The registration packet is always transmitted along the root port of the tree, and the control protocol body unit that receives the registration packet is based on the edge. The address of the bridge ^ A and the receiving port establish a forwarding entry. In order to enable the control protocol body unit to process the received control registration packet, the receiving destination address of the registration packet shall be the control protocol body unit multicast address. After receiving the registration packet and establishing the forwarding path entry, the root bridge C sends a confirmation message to the source bridge. Fang Zhong 2:

当在同一个广播域使用不同树而按最短路径转发数据时 , 因路径的不对 称导致不能采用传统地址学习方法建立转发路径表。 假如我们能建立一个桥 接网络, 在该网絡根本不需要通过地址学习来获得转发路径表(除面向用户 的端口), 问题也就迎刃而解了。 我们可按如下步骤建立一个能实现这样功能 的入口根网桥和出口根网桥结合的最短路径转发系统:  When data is forwarded by the shortest path using different trees in the same broadcast domain, the forwarding path table cannot be established by the traditional address learning method due to the asymmetry of the path. If we can build a bridged network, the network does not need to learn the forwarding path table (except for the user-facing port), and the problem is solved. We can establish a shortest path forwarding system combining the ingress root bridge and the egress root bridge to achieve such a function as follows:

使用该方法时, 除网桥的外部端口, 对其它网桥端口, 需要关闭原有的 用户数据包源地址学习过程。  When using this method, in addition to the external port of the bridge, for other bridge ports, the original user packet source address learning process needs to be closed.

在该方案中, 以入口桥为根递交多播数据包(可以包含广播数据包 \组播 数据包 \未知数据包等), 以出口桥为根递交单播数据包。 In this scheme, multicast packets are submitted with the entrance bridge as the root (can contain broadcast packets\multicast) Packets\unknown packets, etc.), submit unicast packets with the exit bridge as the root.

在树生成后, 除根网桥外, 每个网桥针对经过该网桥的树建立一个不依 赖用户数据流的转发路径表:根网桥 MAC地址或根网桥外部端口 MAC地址、 根端口 (不允许一个地址对应的根端口数超过一个), 该转发路径表可由数据 平面自动建立, 也可由控制协议体单元进行配置, 或者采用人工配置的方式。  After the tree is generated, in addition to the root bridge, each bridge establishes a forwarding path table that does not depend on the user data flow for the tree passing through the bridge: the root bridge MAC address or the root bridge external port MAC address, the root port ( The number of root ports corresponding to an address is not allowed to exceed one. The forwarding path table can be automatically established by the data plane, or can be configured by the control protocol body unit, or manually configured.

该方案可以采用现有 MAC in MAC技术进行数据包外部头 ϋ的 MAC地 址和内部头目的 MAC地址的映射关联学习, 获得地址映射表。  The scheme can use the existing MAC in MAC technology to learn the mapping association between the MAC address of the external header of the packet and the MAC address of the internal header, and obtain an address mapping table.

在该方案中, 桥接网络需要采用如下的封装机制: 在入口桥, 在数据发 送到内部端口前, 数据包添加一个外部 MAC头, 该外部 MAC头包含的源地 址是入口桥的地址或入口桥的外部端口地址,该外部 MAC头包含的目的地址 是出口桥的地址或出口桥的外部端口地址。 在桥接网络的出口需要将封装的 外部 MAC头去掉。允许外部 MAC头的地址格式和占用位数不同于内部 MAC 头。  In this scheme, the bridge network needs to adopt the following encapsulation mechanism: In the ingress bridge, before the data is sent to the internal port, the data packet adds an external MAC header, and the source MAC address contained in the external MAC header is the address of the ingress bridge or the ingress bridge. The external port address, the destination address of the external MAC header is the address of the egress bridge or the external port address of the egress bridge. The outer MAC header of the package needs to be removed at the exit of the bridged network. The address format and occupied bits of the external MAC header are allowed to be different from the internal MAC header.

若在入口桥需发送到内部端口的数据包采用的封装模式是: 封装本地外 部接入端口地址, 则需要把本地接入端口所在的网桥地址信息配置其它网桥。  If the packet to be sent to the internal port on the ingress bridge adopts the encapsulation mode: Encapsulate the local external access port address, you need to configure the bridge address information of the local access port to configure other bridges.

当数据包到达入口桥时, 结合地址映射表信息判断数据包的类型, 若是 广播数据包 \未知数据包 \组播数据包, 则在桥接网络内使用以入口为根的树进 行数据包转发, 若是单播数据包, 则在桥接网络内以出口桥为根的树进行转 发。 进行广播或组播转发数据包时, 封装的数据包要指明转发使用的树根。  When the data packet arrives at the ingress bridge, the type of the data packet is determined by using the address mapping table information. If the data packet is \ broadcast packet\unknown data packet\multicast data packet, the tree with the entry root is used in the bridge network for packet forwarding. If it is a unicast packet, it is forwarded in the bridge network with the egress bridge as the root. When broadcasting or multicast forwarding packets, the encapsulated packets indicate the root of the forwarding.

显然在该系统中, 在桥接网络内部不需要通常的地址学习就可完成数据 包转发, 这是因为对单播数据包, 数据始终朝着根端口转发。 该系统同时实 现了数据包的最短路径转发。  Obviously in this system, packet forwarding can be done without the usual address learning inside the bridged network, because for unicast packets, the data is always forwarded towards the root port. The system also implements the shortest path forwarding of packets.

如图 5 所示, 是方案二中桥接网络的结构示意图, 从图中可见, 该桥接 网络通过网桥节点连接, 包舍中间桥及边沿桥。  As shown in Figure 5, it is a schematic diagram of the structure of the bridged network in Option 2. As can be seen from the figure, the bridged network is connected through the bridge node, and the intermediate bridge and the edge bridge are wrapped.

如图 6所示, 是本方案网桥的结构示意图, 从图中可见, 该网桥包括: 控制协议体单元, 用于控制建立转发路径表, 所述的转发路径表为以每 个边沿桥为根的生成树的转发路径表; 转发路径表存储单元, 用于存储转发路径表; As shown in FIG. 6 , it is a schematic structural diagram of the solution bridge. As shown in the figure, the bridge includes: a control protocol body unit, configured to control establish a forwarding path table, where the forwarding path table is a bridge with each edge a forwarding path table for the spanning tree of the root; a forwarding path table storage unit, configured to store a forwarding path table;

数据包类型判断单元, 用于判断接收到的数据包类型, 并根据数据包类 型选择转发方式。  The packet type judging unit is configured to judge the received packet type, and select a forwarding mode according to the packet type.

如图 7所示, 所述的数据包类型判断单元进一步包括:  As shown in FIG. 7, the packet type determining unit further includes:

单播数据包转发单元, 用于将所述的单播数据包以出口桥为树根进行转 发;  a unicast packet forwarding unit, configured to forward the unicast data packet by using an egress bridge as a root;

多播数据包转发单元, 用于将所述的广播或多播数据包以及未知数据包 以入口桥为树根进行转发。  And a multicast packet forwarding unit, configured to forward the broadcast or multicast data packet and the unknown data packet by using an ingress bridge as a root.

如图 8所示, 上迷网絡中, 控制协议体单元, 还包括:  As shown in FIG. 8, in the network, the control protocol body unit further includes:

注册包处理单元, 接收其他网桥发送的注册包并建立转发路径表; 注册包发送单元, 用于向树上所有要转发的网桥的指定端口发送注册包。 证实包发送单元, 用于在收到其他网桥发送的注册包后, 向发送注册包 的网桥发送证实包。  The registration packet processing unit receives the registration packet sent by the other bridges and establishes a forwarding path table; the registration packet sending unit is configured to send the registration packet to the designated port of all the bridges to be forwarded in the tree. The verification packet sending unit is configured to send a confirmation packet to the bridge that sends the registration packet after receiving the registration packet sent by the other bridge.

证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果在设 定的时间阈值内没有收到证实包, 则重新向接收注册包的网桥发送注册包。  The confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet.

图 6和图 8为该方案中发起注册的网桥及数据包类型判断单元的结构示 意图, 可以看出该网桥设置有控制协议体单元、 转发路径表存储单元和数据 包类型判断单元等相关网元。 该数据包类型判断单元设置有单播数据包转发 单元以及多播数据包转发单元。  6 and FIG. 8 are schematic diagrams showing the structure of a bridge and a packet type judging unit that initiate registration in the scheme, and it can be seen that the bridge is provided with a control protocol body unit, a forwarding path table storage unit, and a packet type judging unit. Network element. The packet type judging unit is provided with a unicast packet forwarding unit and a multicast packet forwarding unit.

图 5给出的桥接网络中, 以每个边沿桥为根生成一个树, 其中图示给出 了以网桥 B为根生成的树。 当数据达到入口桥 A且判断该数据包的出口桥为 B时, 该数据包它朝着根端口方向进行转发; 当数据到达入口桥 B时且判断 该数据包时广播数据包时, 该数据包沿着以 B为根的树进行广播。 方案三:  In the bridged network shown in Figure 5, a tree is generated with each edge bridge as the root, and the figure shows the tree generated by the bridge B as the root. When the data reaches the ingress bridge A and judges that the egress bridge of the data packet is B, the data packet is forwarded toward the root port direction; when the data arrives at the ingress bridge B and the data packet is broadcasted when judging the data packet, the data is The packet is broadcast along a tree rooted at B. third solution:

方案一和方案二都是在 MAC in MAC中的应用, 本发明方案还可以应用 于其它网络机制,若不使用 MAC in MAC机制或只对部分外部端口釆用 MAC in MAC机制, 我们可以在一个桥接网络中建立如下的最短路径系统, 并由控 制协议体单元建立关于注册地址的转发路径表: Both scheme 1 and scheme 2 are applied in MAC in MAC, and the solution of the invention can also be applied to other network mechanisms, if MAC in MAC mechanism is not used or MAC is only used for some external ports. In the MAC mechanism, we can establish the following shortest path system in a bridged network, and establish a forwarding path table for the registered address by the control protocol body unit:

1、 以每个边沿桥为根生成一个树, 使用入口为根的树转发广播数据包 \ 组播数据包 \未知数据包, 使用出口为根的树转发单播数据包。  1. Generate a tree with each edge bridge as the root, use the tree with the entry root to forward the broadcast packet \ multicast packet \ unknown packet, and use the tree with the exit root to forward the unicast packet.

2、 使用该方法时, 除外部端口, 对其它网桥端口, 需要关闭原有的用户 数据包源地址学习功能。  2. When using this method, in addition to the external port, for other bridge ports, the original user packet source address learning function needs to be turned off.

3、 每个边沿桥的控制协议体单元根据它接入的用户源地址, 发起一个控 制协议控制的注册地址注册过程, 以建立转发路径表。 注册地址来源于用户 数据包到达边沿桥时进行地址学习所获得的用户源地址、 位于本网桥的网络 拓朴元素地址; 该用户地址遵循原有地址学习老化过程。  3. The control protocol body unit of each edge bridge initiates a registration protocol registration process controlled by the control protocol according to the user source address it accesses to establish a forwarding path table. The registered address is derived from the user source address obtained by the address learning when the user arrives at the edge bridge, and the network topology element address located on the bridge; the user address follows the original address to learn the aging process.

该方案三中, 控制协议体单元控制的注册地址注册过程遵循如下步骤: 每个边沿桥选取它所在的一个树, 向该树的所有指定端口发送注册包, 该注册包的目的地址可以是一个特定的组播地址, 此外, 一个注册包还含有: 根网桥地址、 一个或多个需要注册的注册地址; 该过程可进一步被优化为: 注册包不发送到网桥外部端口。  In the third scheme, the registration address registration process controlled by the control protocol body unit follows the following steps: Each edge bridge selects a tree in which it is located, and sends a registration packet to all designated ports of the tree, and the destination address of the registration packet may be one. A specific multicast address. In addition, a registration packet contains: a root bridge address, one or more registered addresses that need to be registered; the process can be further optimized to: The registration packet is not sent to the bridge external port.

每个桥收到注册包后, 根据接收端口和注册包中的注册地址获得一个或 多个转发路径表项, 转发项包括: 注册地址、 端口, 并根据注册包指明的树 根网桥, 继续沿树进行广播, 即将注册包发送到非接收端口以外的指定端口; 该过程可进一步被优化为: 注册包不发送到外部端口。  After receiving the registration packet, each bridge obtains one or more forwarding path entries according to the receiving port and the registered address in the registration packet. The forwarding entry includes: the registration address, the port, and continues according to the tree root bridge indicated by the registration package. Broadcast along the tree, sending the registration packet to a designated port other than the non-receiving port; the process can be further optimized to: The registration packet is not sent to the external port.

上述注册包的发送可采用周期发现机制或证实机制发送注册包, 周期性 发送机制是: 根网桥节点周期性地发送注册包; 网桥节点要对它建立的转发 项釆取相应的老化机制。  The sending of the foregoing registration packet may be performed by using a periodic discovery mechanism or a verification mechanism. The periodic sending mechanism is: the root bridge node periodically sends the registration packet; the bridge node needs to obtain a corresponding aging mechanism for the forwarding entry established by the bridge node. .

证实发送机制是: 接收注册包的网桥收到注册包后向发送注册包的网桥 发送一个证实消息, 若发送注册包的网桥在设定的时间阈值内没有收到证实 包, 则重新向接收注册包的网桥发送注册包。  The confirmation sending mechanism is: The bridge receiving the registration packet sends a confirmation message to the bridge that sends the registration packet after receiving the registration packet, and if the bridge sending the registration packet does not receive the confirmation packet within the set time threshold, then A registration package is sent to the bridge that receives the registration packet.

进一步可做如下的优化: 当树拓朴发生变化时, 边沿桥立即根据它所接 入的地址发送注册包, 对注册包的处理同上述步骤。 进一步, 数据平面的数据包转发可做如下优化: 当拓朴发生变化时, 边 沿桥需等待一定时间的注册包处理, 然后再发送单播用户数据包, 以避免数 据包的大量广播对网络的影响。 Further optimization can be made as follows: When the tree topology changes, the edge bridge immediately sends a registration packet according to the address it accesses, and the processing of the registration packet is the same as the above steps. Further, the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid a large number of broadcasts of the data packet to the network. influences.

方案三中的地址注册过程也可更改为如下步骤:  The address registration process in scenario 3 can also be changed to the following steps:

每个边沿桥选取它所在的一个树, 周期性地向该树的所有指定端口发送 注册包, 该注册包的目的地址可以是一个特定的组播地址, 此外, 一个注册 包还含有: 网桥地址、 一个或多个注册地址、 注册类型; 注册类型包括: 增加、 删除; 该过程可进一步被优化为: 注册包包不发送到端口。  Each edge bridge selects a tree in which it resides, periodically sends a registration packet to all designated ports of the tree. The destination address of the registration packet can be a specific multicast address. In addition, a registration packet also contains: Bridge Address, one or more registered addresses, registration type; registration types include: Add, Delete; The process can be further optimized to: The registration packet is not sent to the port.

每个网桥收到注册包后, 若注册类型为: 增加, 则根据接收端口和注册 包中的地址获得一个或多个转发项, 转发项包括: 注册地址、 端口; 若注册 类型为: 删除, 则根据根据接收端口和注册包中的地址, 删除原来的相应的 转发路径表。 然后根据注册包指明的边沿桥, 继续沿着以边沿桥为根的树进 行广播, 即将注册包发送到非接收端口以外的指定端口; 该过程可进一步被 优化为: 注册包不发送到外部端口。  After each bridge receives the registration packet, if the registration type is: Increase, one or more forwarding entries are obtained according to the receiving port and the address in the registration packet. The forwarding entries include: registration address, port; if the registration type is: Delete , according to the address in the receiving port and the registration package, delete the original corresponding forwarding path table. Then, according to the edge bridge indicated by the registration packet, continue to broadcast along the tree rooted at the edge bridge, that is, the registration packet is sent to the designated port other than the non-receiving port; the process can be further optimized to: The registration packet is not sent to the external port .

进一步可做如下的优化: 当树拓朴发生变化时, 边沿桥立即根据它所接 入的地址发送注册包, 对注册包的处理同上述步骤。  Further optimization can be made as follows: When the tree topology changes, the edge bridge immediately sends a registration packet according to the address it accesses, and the processing of the registration packet is the same as the above steps.

进一步, 数据平面的数据包转发可做如下优化: 当拓朴发生变化时, 边 沿桥需等待一定时间的注册包处理, 然后再发送单播用户数据包, 以避免数 据包的大量广播对网络的影响。 方案四:  Further, the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid a large number of broadcasts of the data packet to the network. influences. Option 4:

若不使用 MAC in MAC机制或只对部分外部端口采用 MAC in MAC机 制, 则可以在一个桥接网络中建立如下的最短路径系统, 并由控制协议建立 关于用户地址的转发路径表:  If the MAC in MAC mechanism is not used or only the MAC in MAC mechanism is used for some external ports, the following shortest path system can be established in a bridged network, and the forwarding protocol table for the user address is established by the control protocol:

1、 在一个桥接网络中, 以每个边沿桥为根生成一个树, 当来来自桥接网 络外部的数据到达桥接网络时, 以数据包到达的第一个网桥(即入口桥) 为 树根在桥接网络内转发数据包。 2、 使用该方法时, 除外部端口, 对其它网桥端口, 需要关闭原有的用户 数据包源地址学习功能。 1. In a bridged network, a tree is generated with each edge bridge as the root. When the data from outside the bridged network reaches the bridged network, the first bridge (ie, the entrance bridge) that arrives at the packet is the root of the tree. Forward packets within the bridged network. 2. When using this method, in addition to the external port, for other bridge ports, the original user data packet source address learning function needs to be turned off.

3、 每个边沿桥根据它接入的注册地址, 发起一个地址注册过程, 以建立 转发路径表。 注册地址来源于: 用户数据包到达边沿桥时进行地址学习所获 得的用户源地址、 位于本网桥的网络拓朴元素地址; 该用户地址遵循原有地 址学习老化过程。  3. Each edge bridge initiates an address registration process based on the registered address it accesses to establish a forwarding path table. The registered address is derived from: the user source address obtained by the address learning when the user data packet arrives at the edge bridge, and the network topology element address located on the bridge; the user address follows the original address learning aging process.

地址注册过程遵循如下步骤: :  The address registration process follows the following steps:

边沿桥对它所在的每个树(其中边沿桥不是树的树根), 发送注册包, 该 注册包目的地址是使用的一个特定的组播地址, 此外, 一个注册包还含有: 根网桥地址、 一个或多个注册地址; 该消息沿着指定的树的根端口进行转发。  The edge bridge sends a registration packet to each tree in which the edge bridge is located (where the edge bridge is not the root of the tree). The registration packet address is a specific multicast address used. In addition, a registration packet also contains: Address, one or more registered addresses; the message is forwarded along the root port of the specified tree.

每个网桥收到注册包后, 根据接收端口和注册包中的地址获得一个或多 个转发项, 转发项包括: 注册地址、 端口, 然后 居注册包指明的树根网桥, 继续沿着树根网桥所对应的树的根端口转发注册包。  After receiving the registration packet, each bridge obtains one or more forwarding entries according to the address in the receiving port and the registration packet. The forwarding entry includes: the registration address, the port, and then the tree root bridge indicated by the registration package, continuing along The root port of the tree corresponding to the root bridge forwards the registration packet.

上述注册包的发送可采用周期发现机制或证实机制发送。  The transmission of the above registration packet may be sent using a periodic discovery mechanism or a verification mechanism.

周期性发送机制是: 根网桥节点周期性地发送注册包; 桥节点要对它建 立的转发项采取相应的老化机制。  The periodic sending mechanism is: The root bridge node periodically sends the registration packet; the bridge node needs to adopt a corresponding aging mechanism for the forwarding entry it establishes.

证实发送机制是: 接收注册包的网桥收到注册包后向发送注册包的网桥 发送一个证实消息, 若发送注册包的网桥在设定的时间阐值内没有收到证实 包, 则重新向接收数据包的网桥发送注册包。  The confirmation sending mechanism is: After receiving the registration packet, the bridge receiving the registration packet sends a confirmation message to the bridge that sends the registration packet, and if the bridge sending the registration packet does not receive the confirmation packet within the set time value, Re-send the registration package to the bridge that receives the packet.

进一步可做如下的优化: 当树拓朴发生变化时, 边沿桥立即根据它所接 入的注册地址发送注册包, 对注册包的处理同上述步驟。  Further optimization can be made as follows: When the tree topology changes, the edge bridge immediately sends a registration packet according to the registered address it accesses, and the processing of the registration packet is the same as the above steps.

进一步, 数据平面的数据包转发可做如下优化: 当拓朴发生变化时, 边 沿桥需等待一定时间的注册包处理, 然后再发送单播用户数据包, 以避免大 量数据包的广播对网絡的影响。  Further, the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then sends a unicast user data packet to avoid broadcast of a large number of data packets to the network. influences.

上述地址注册过程也更改为如下步骤:  The above address registration process is also changed to the following steps:

边沿桥针对它所在的每个树(其中边沿桥不是树的树根), 发送注册包, 该消息目的地址是一个特定的组播地址, 此外, 一个注册包还含有: 树根网 06 002918 桥地址、 一个或多个注册地址、 注册类型; 注册类型包括: 增加、 删除; 该 消息沿着以指定的树的根端口进行转发。 The edge bridge sends a registration packet for each tree in which the edge bridge is located (the edge bridge is not the tree root of the tree). The destination address of the message is a specific multicast address. In addition, a registration packet also contains: 06 002918 Bridge address, one or more registered addresses, registration type; registration types include: Add, Delete; The message is forwarded along the root port of the specified tree.

每个网桥收到注册包后, 若注册类型为: 增加, '则根据接收端口和注册 包中的注册地址获得一个或多个转发项, 转发项包括: 注册地址、 端口; 若 注册类型为: 删除, 则根据根据接收端口和注册包中的注册地址, 删除原来 的相应的转发项: 注册地址、 端口。 然后根据注册包指明的树根网桥, 继续 沿着树根网桥所对应的树的根端口进行转发。  After each bridge receives the registration package, if the registration type is: increase, 'the one or more forwarding items are obtained according to the registration port and the registration address in the registration package. The forwarding items include: registration address, port; if the registration type is : Delete, according to the registered port and the registered address in the registration package, delete the original corresponding forwarding item: registration address, port. Then, according to the tree root bridge indicated by the registration package, continue to forward along the root port of the tree corresponding to the tree root bridge.

进一步可做如下的优化: 当树拓朴发生变化时, 边沿桥立即根据它所接 入的注册地址发送注册包, 对注册包的处理同上述步骤。  Further optimization can be made as follows: When the tree topology changes, the edge bridge immediately sends a registration packet according to the registered address it accesses, and the processing of the registration packet is the same as the above steps.

进一步, 数据平面的数据包转发可做如下优化: 当拓朴发生变化时, 边 沿桥需等待一定时间的注册包处理, 然后再发送单播数据包, 以避免大量数 据包的广播对网络的影响。  Further, the data packet forwarding of the data plane can be optimized as follows: When the topology changes, the edge bridge needs to wait for a certain period of registration packet processing, and then send a unicast data packet to avoid the impact of a large number of data packet broadcasts on the network. .

本发明方案建立转发路径表的过程, 可以关闭原有的数据平面地址学习 功能, 并且减轻了硬件处理的负担。  The process of the present invention establishes a forwarding path table, which can close the original data plane address learning function and reduce the burden of hardware processing.

由于在桥接网络内部, 控制协议体单元可以只针对桥或桥端口地址建立 转发路径表, 转发路径表建立过程只针对桥接网络拓朴的生成或变化进行, 因此转发路径表创建过程的 MAC地址数量大大减小,建立转发路径表的占用 的时间也大大缩短。  Since the control protocol body unit can establish a forwarding path table only for the bridge or bridge port address within the bridge network, the forwarding path table establishment process only performs the generation or change of the bridge network topology, and therefore the number of MAC addresses in the forwarding path table creation process. Greatly reduced, the time taken to establish the forwarding path table is also greatly shortened.

由于转发路径表的建立可以是针对桥接网络内部网络拓朴元素地址, 内 部拓朴变化后桥接网络中会迅速建立关于网络拓朴元素地址的转发路径表, 从而不会导致拓朴变化后的大量用户数据包的广播。  The forwarding path table may be established for the internal network topology element address of the bridge network. After the internal topology changes, the forwarding path table for the network topology element address is quickly established in the bridge network, so that the topology is not changed. Broadcast of user data packets.

由于本技术方案在克服了路径不对称树引起的学习困难后, 还有上述相 当大的优点, 因此即使在使用 PATH 向量生成的对称树系统中, 我们仍可采 用本技术方案完成转发路径表的建立, 并且除了边沿桥外, 不需要在数据平 面根据用户数据流从事地址学习过程。  Since the technical solution overcomes the learning difficulties caused by the path asymmetry tree, and has the above-mentioned considerable advantages, even in the symmetric tree system generated by using the PATH vector, we can still use the technical solution to complete the forwarding path table. Established, and in addition to the edge bridge, there is no need to engage in an address learning process based on the user data stream in the data plane.

本发明实施例完全由控制协议(生成树协议) 负责数据包转发路径表建 立, 可以关闭原有的数据平面地址学习过程, 软件升级容易, 并且减轻了硬 件处理的负担。 In the embodiment of the present invention, the control protocol (spanning tree protocol) is responsible for establishing the packet forwarding path table, and the original data plane address learning process can be closed, the software upgrade is easy, and the hardening is reduced. The burden of processing.

显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本 发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of the inventions

Claims

权 利 要 求 Rights request 1、 一种桥接网络中的数据处理方法, 所述的桥接网络, 通过网桥连接, 其特征在于: A data processing method in a bridge network, wherein the bridge network is connected through a bridge, and is characterized by: 生成以所述桥接网络的每个边沿桥为根的树, 并发送注册包建立每个树 的转发路径表;  Generating a tree rooted at each edge bridge of the bridged network, and transmitting a registration packet to establish a forwarding path table for each tree; 当来自桥接网络外部的数据包到达桥接网络时, 以数据包到达的入口桥 为根, 在桥接网络内依据所述转发路径表转发数据包, 并在出口桥将数据包 通过外部端口发送出去。  When a packet from outside the bridge network arrives at the bridge network, the entry bridge to which the packet arrives is the root, the packet is forwarded according to the forwarding path table in the bridge network, and the data packet is sent out through the external port at the egress bridge. 2、 如权利要求 1所述的方法, 其特征在于, 所述的数据包在入口桥被封 装上外部地址, 并在出口桥将封装的外部地址解封装。  2. The method of claim 1 wherein said data packet is encapsulated with an external address at the ingress bridge and the outer address of the encapsulation is decapsulated at the egress bridge. 3、 如权利要求 1所述的方法, 其特征在于, 所述的转发路径表建立, 包 括以下步骤:  3. The method according to claim 1, wherein the forwarding path table is established, and the method comprises the following steps: A、 当以边沿桥为根的树生成后, 所述树上的网桥, 向树的根端口发送注 册包发起注册, 所述注册包携带源地址、 目的地址和注册地址信息;  A. After the tree is generated by the edge bridge, the bridge on the tree sends a registration packet to the root port of the tree to initiate registration, where the registration packet carries the source address, the destination address, and the registered address information. B、 收到注册包的网桥, 根据所述的注册地址信息和接收端口, 得到转发 项并记录后, 继续向所述根端口转发所述的注册包, 直至所述的注册包转发 至所述 ^^端口;  B. The bridge receiving the registration packet, according to the registered address information and the receiving port, after obtaining the forwarding item and recording, continuing to forward the registration packet to the root port until the registration packet is forwarded to the Said ^^ port; C、 所述根端口接收所述的注册包, 根据注册包中的注册地址信息, 得到 转发项并记录。  C. The root port receives the registration packet, and obtains a forwarding item according to the registered address information in the registration package and records the packet. 4、 如权利要求 3所述的方法, 其特征在于, 所述的步骤 A中:  4. The method of claim 3, wherein in step A: 所述的注册地址信息是:  The registered address information is: 一个或多个注册地址, 或  One or more registered addresses, or 桥接网络外部端口地址、 网桥的网桥地址或用户 MAC地址;  Bridge the external port address of the network, the bridge address of the bridge, or the user MAC address; 所述的目的地址是: 组播地址;  The destination address is: a multicast address; 所述的源地址是发起注册网桥地址。  The source address is the originating registration bridge address. 5、 如权利要求 3所述的方法, 其特征在于, 所述的步骤 B和步骤 C中, 所述的转发项包含: 目的 MAC地址、 发送端口标识。 5. The method according to claim 3, wherein in the step B and the step C, The forwarding entry includes: a destination MAC address and a sending port identifier. 6、 如权利要求 3所述的方法, 其特征在于, 还包括步驟: 所述根端口接 收到注册包后, 向所述发起注册的网桥发送证实包。  The method according to claim 3, further comprising the step of: after receiving the registration packet, the root port sends a confirmation packet to the bridge that initiates registration. 7、 如权利要求 3所述的方法, 其特征在于, 还包括: 所述发起注册的网 桥发送取消注册包; 已注册网桥收到取消注册包后, 取消已经进行的注册, 并删除相应的转发项。  7. The method according to claim 3, further comprising: sending the unregistered packet by the bridge that initiates registration; after receiving the unregistered packet, the registered bridge cancels the registration already performed, and deletes the corresponding Forwarding item. 8、 如权利要求 3所述的方法, 其特征在于, 当所述的桥接网络发生网络 拓朴变化时, 所述桥接网络的网桥删除原有的转发路径表; 并在树重新生成 时, 重新形成新的转发路径表。  The method according to claim 3, wherein when the network topology changes in the bridge network, the bridge of the bridge network deletes the original forwarding path table; and when the tree is regenerated, Re-form a new forwarding path table. 9、如权利要求 3所述的方法,其特征在于,所述的步骤 A是周期进行的。 9. The method of claim 3 wherein said step A is performed periodically. 10、 如权利要求 1 所述的方法, 其特征在于, 除桥接网络外部端口的其 它端口, 关闭数据包源地址学习功能。 10. The method of claim 1, wherein the packet source address learning function is turned off except for bridging other ports of the network external port. 11、 一种网桥, 其特征在于, 包括:  11. A bridge, characterized by comprising: 控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以入口桥 为根的生成树的转发路径表;  a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of the spanning tree rooted at the ingress bridge; 转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table; 数据包转发单元, 用于依据所述转发路径表转发接收到的数据包。  a packet forwarding unit, configured to forward the received data packet according to the forwarding path table. 12、 如权利要求 11所述的网桥, 其特征在于, 所述的控制协议体单元还 包括:  The bridge according to claim 11, wherein the control protocol body unit further comprises: 注册包处理单元, 用于接收其他网桥发送的注册包并建立转发路径表; 注册包发送单元, 用于向树的根端口发送注册包。  a registration packet processing unit, configured to receive a registration packet sent by another bridge and establish a forwarding path table; and a registration packet sending unit, configured to send a registration packet to a root port of the tree. 13、 如权利要求 12所述的网桥, 其特征在于, 所述的控制协议体单元还 包括:  The bridge according to claim 12, wherein the control protocol body unit further comprises: 证实包发送单元, 用于在注册包处理单元收到注册包后, 向发送注册包 的网桥发送证实包;  a confirmation packet sending unit, configured to send a confirmation packet to a bridge that sends the registration packet after the registration packet processing unit receives the registration packet; 证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果所述 发送注册包的网桥在设定的时间阈值内没有收到证实包, 则重新向接收注册 包的网桥发送注册包。 a confirmation packet receiving determining unit, configured to set a time threshold for receiving the verification packet, and if the bridge that sends the registration packet does not receive the confirmation packet within the set time threshold, re-registering with the receiving The bridge of the packet sends the registration packet. 14、 一种桥接网络, 通过网桥连接, 其特征在于, 该网桥包括: 控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以入口桥 为根的生成树的转发路径表;  A bridge network, connected by a bridge, wherein the bridge includes: a control protocol body unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding tree with an entry bridge as a root Path table 转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table; 数据包转发单元, 用于依据所述转发路径表转发接收到的数据包。  a packet forwarding unit, configured to forward the received data packet according to the forwarding path table. 15、 如权利要求 14所述的网络, 其特征在于, 所述的控制协议体单元还 包括:  The network according to claim 14, wherein the control protocol body unit further comprises: 注册包处理单元, 用于接收其他网桥发送的注册包并建立转发路径表; 注册包发送单元, 用于向树的根端口发送注册包。  a registration packet processing unit, configured to receive a registration packet sent by another bridge and establish a forwarding path table; and a registration packet sending unit, configured to send a registration packet to a root port of the tree. 16、 如权利要求 15所述的网络, 其特征在于, 所述的控制协议体单元还 包括:  The network according to claim 15, wherein the control protocol body unit further comprises: 证实包发送单元, 用于在注册包处理单元收到注册包后, 向发送注册包 的网桥发送证实包;  a confirmation packet sending unit, configured to send a confirmation packet to a bridge that sends the registration packet after the registration packet processing unit receives the registration packet; 证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果在设 定的时间阈值内没有收到证实包, 则重新向接收注册包的网桥发送注册包。  The confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet. 17、 一种桥接网络中的数据处理方法, 所述的桥接网络, 通过网桥连接, 其特征在于:  17. A data processing method in a bridged network, wherein the bridged network is connected by a bridge, and is characterized by: 生成以每个边沿桥为根的树, 所述树上的网桥节点通过发送注册包, 建 立关于根网桥的转发路径表;  Generating a tree rooted at each edge bridge, and the bridge node on the tree establishes a forwarding path table about the root bridge by sending a registration packet; 当来自桥接网络外部的数据包到达桥接网络时:  When a packet from outside the bridged network reaches the bridged network: 对多播数据包, 沿着数据包到达的入口桥为根的树在桥接网络内进行转 发; 或  For multicast packets, the tree rooted along the entry bridge to which the packet arrives is forwarded within the bridged network; or 对单播数据包, 沿着数据包离开桥接网络到达的目的出口桥为根的树在 桥接网络内进行转发;  For a unicast packet, the tree rooted along the destination egress bridge that the packet leaves the bridging network arrives in the bridge network; 在出口桥将所述数据包通过外部端口发送出去。  The packet is sent out through the external port at the egress bridge. 18、 如权利要求 17所述的方法, 其特征在于, 所述的转发路径表建立, 包括: 18. The method of claim 17, wherein the forwarding path table is established, include: 当以边沿桥为根的树生成后, 所述树上除根网桥外的网桥, 建立转发项, 所述转发项包括: 目的 MAC地址、发送端口标识, 其中发送端口是树的根端 口, 或  After the tree is rooted on the edge bridge, the bridge is configured with a forwarding entry, and the forwarding entry includes: a destination MAC address and a sending port identifier, where the sending port is a root port of the tree. Or 当以边沿桥为根节点的树生成后, 所述树上的除根网桥外的网桥, 建立 转发项, 所述转发项包括: 目的 MAC地址、 发送端口标识, 其中目的 MAC 地址是树的根网桥 MAC地址, 发送端口是树的根端口。  After the tree with the edge bridge as the root node is generated, the bridges other than the root bridge on the tree establish a forwarding entry, where the forwarding entry includes: a destination MAC address, a sending port identifier, where the destination MAC address is a tree Root bridge MAC address, the send port is the root port of the tree. 19、如权利要求 18所述的方法,其特征在于, 所述的转发路径表的建立, 包括:  The method of claim 18, wherein the establishing of the forwarding path table comprises: A、 当以边沿桥为根节点的树生成后, 所述树上的根网桥, 向树的所有指 定端口发送注册包, 所述注册包包含源地址、 目的地址和注册地址信息; A. After the tree with the edge bridge as the root node is generated, the root bridge on the tree sends a registration packet to all specified ports of the tree, where the registration packet includes a source address, a destination address, and a registered address information. B、 所述桥接网络内除根网桥外的网桥收到注册包后, 根据所述的注册地 址信息, 得到转发项并记录后, 向树的所有指定端口转发所述的注册包, 直 至所述的注册包转发到树的所有除根网桥端口以外的端口。 B. After receiving the registration packet, the bridge other than the root bridge in the bridge network obtains the forwarding entry according to the registered address information, and then forwards the registration packet to all designated ports of the tree until the The registration packet described is forwarded to all ports of the tree other than the root bridge port. 20、 如权利要求 19所述的方法, 其特征在于, 所述的步骤 B中, 所述的 转发项包含: 目的 MAC地址、 发送端口标识。  The method according to claim 19, wherein, in the step B, the forwarding item includes: a destination MAC address, and a sending port identifier. 21、 如权利要求 19所述的方法, 其特征在于, 所述的步骤 A中: 所述的注册地址信息可以是一个或多个注册地址;  The method according to claim 19, wherein in the step A: the registered address information may be one or more registered addresses; 所述注册地址是桥接网络外部端口的地址或根网桥的网桥地址或用户 MAC地址;  The registered address is an address of an external port of the bridge network or a bridge address or a user MAC address of the root bridge; 所述的目的地址是组播地址;  The destination address is a multicast address; 所述的源地址是根网桥地址。  The source address is a root bridge address. 22、 如权利要求 19所述的方法, 其特征在于, 还包括, 所述树的根网桥 发送取消注册包, 当网桥收到取消注册包后, 取消已经进行的注册, 删除相 应的转发项。  The method according to claim 19, further comprising: the root bridge of the tree sends an unregistered packet, and after the bridge receives the unregistered packet, cancels the registration that has been performed, and deletes the corresponding forwarding. item. 23、 如权利要求 19所述的方法, 其特征在于, 当所述的桥接网络拓朴结 构发生变化时, 网桥删除原有的转发路径表; 并在树重新生成时, 重新形成 新的转发路径表。 The method according to claim 19, wherein when the bridge topology changes, the bridge deletes the original forwarding path table; and when the tree is regenerated, the method is re-formed New forwarding path table. 24、 如权利要求 19所述的方法, 其特征在于, 所述的步骤 A是周期进行 的。  24. The method of claim 19, wherein said step A is performed periodically. 25、 如权利要求 17所述的方法, 其特征在于, 所述的多播数据包, 包括 组播数据包、 广播数据包和未知数据包。  The method according to claim 17, wherein the multicast data packet comprises a multicast data packet, a broadcast data packet, and an unknown data packet. 26、 如权利要求 17所述的方法, 其特征在于, 除桥接网络外部端口外的 其它桥端口, 关闭数据包源地址学习功能。  26. The method of claim 17, wherein the packet source address learning function is turned off except for bridge ports other than the external port of the bridge. 27、 一种网桥, 其特征在于, 包括:  27. A bridge, characterized by comprising: 控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以每个边 沿桥为根的生成树的转发路径表;  a control protocol unit, configured to establish a forwarding path table, where the forwarding path table is a forwarding path table of a spanning tree rooted at each edge bridge; 转发路径表存储单元, 用于存储所述转发路径表;  a forwarding path table storage unit, configured to store the forwarding path table; 数据包类型判断单元, 用于判断接收到的数据包类型, 并根据所述数据 包类型选择转发方式。  The packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type. 28、 如权利要求 27所述的网桥, 其特征在于, 所述的数据包类型判断单 元进一步包括:  The bridge according to claim 27, wherein the packet type judging unit further comprises: 单播数据包转发单元, 用于在接收到的数据包为单播数据包时, 将所述 单播数据包以出口桥为树根进行转发;  a unicast data packet forwarding unit, configured to forward the unicast data packet to an egress bridge as a root when the received data packet is a unicast data packet; 多播数据包转发单元, 用于在接收到的数据包为多播数据包时, 将所述 多播数据包以入口桥为树根进行转发。  And a multicast packet forwarding unit, configured to: when the received data packet is a multicast data packet, forward the multicast data packet by using an ingress bridge as a root. 29、 如权利要求 28所述的网桥, 其特征在于, 所述的控制协议体单元还 包括:  The bridge according to claim 28, wherein the control protocol body unit further comprises: 注册包处理单元, 接收其他网桥发送的注册包并建立转发路径表; 注册包发送单元, 用于向树上所有要转发的网桥的指定端口发送注册包。 The registration packet processing unit receives the registration packet sent by the other bridges and establishes a forwarding path table; the registration packet sending unit is configured to send the registration packet to the designated port of all the bridges to be forwarded in the tree. 30、 如权利要求 29所述的网桥, 其特征在于, 所述的控制协议体单元还 包括: The bridge of claim 29, wherein the control protocol body unit further comprises: 证实包发送单元, 用于在收到其他网桥发送的注册包后, 向发送注册包 的网桥发送证实包; 证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果在设 定的时间阈值内没有收到证实包, 则重新向接收注册包的网桥发送注册包。 a confirmation packet sending unit, configured to send a confirmation packet to a bridge that sends the registration packet after receiving the registration packet sent by the other bridge; The confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, the registration packet is resent to the bridge receiving the registration packet. 31、 一种桥接网络, 通过网桥连接, 其特征在于, 该网桥包括: 控制协议体单元, 用于建立转发路径表, 所述的转发路径表为以每个边 沿桥为根的生成树的转发路径表;  31. A bridge network, connected by a bridge, wherein the bridge includes: a control protocol body unit, configured to establish a forwarding path table, where the forwarding path table is a spanning tree rooted at each edge bridge Forwarding path table; 转发路径表存储单元, 用于存储转发路径表;  a forwarding path table storage unit, configured to store a forwarding path table; 数据包类型判断单元, 用于判断接收到的数据包类型, 并根据所述数据 包类型选择转发方式。  The packet type judging unit is configured to judge the received packet type, and select a forwarding manner according to the packet type. 32、 如权利要求 31所述的网络, 其特征在于, 所述的数据包类型判断单 元进一步包括:  The network of claim 31, wherein the packet type judging unit further comprises: 单播数据包转发单元, 用于在接收到的数据包为单播数据包时, 将所述 单播数据包以出口桥为树根进行转发;  a unicast data packet forwarding unit, configured to forward the unicast data packet to an egress bridge as a root when the received data packet is a unicast data packet; 多播数据包转发单元, 用于在接收到的数据包为多播数据包时, 将所述 多播数据包以入口桥为树根进行转发。  And a multicast packet forwarding unit, configured to: when the received data packet is a multicast data packet, forward the multicast data packet by using an ingress bridge as a root. 33、 如权利要求 31所述的网络, 其特征在于, 所述的控制协议体单元还 包括:  The network according to claim 31, wherein the control protocol body unit further comprises: 注册包处理单元, 接收其他网桥发送的注册包并建立转发路径表; 注册包发送单元, 用于向树上所有要转发的网桥的指定端口发送注册包。 The registration packet processing unit receives the registration packet sent by the other bridges and establishes a forwarding path table; the registration packet sending unit is configured to send the registration packet to the designated port of all the bridges to be forwarded in the tree. 34、 如权利要求 31所述的网络, 其特征在于, 所述的控制协议体单元还 包括: 34. The network of claim 31, wherein the control protocol body unit further comprises: 证实包发送单元, 用于在收到其他网桥发送的注册包后, 向发送注册包 的网桥送证实包;  a confirmation packet sending unit, configured to send a confirmation packet to a bridge that sends the registration packet after receiving the registration packet sent by the other bridge; 证实包接收判定单元, 用于设定接收所述证实包的时间阈值, 如果在设 定的时间阈值内没有收到证实包, 则重新向接收注册包的网桥发送注册包。  The confirmation packet reception determining unit is configured to set a time threshold for receiving the verification packet, and if the verification packet is not received within the set time threshold, resend the registration packet to the bridge receiving the registration packet.
PCT/CN2006/002918 2005-11-04 2006-10-31 A bridge, a bridged network and a data processing method in the bridged network Ceased WO2007051409A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510119755.4 2005-11-04
CN200510119755A CN1960325B (en) 2005-11-04 2005-11-04 A data processing method in a bridge network and a bridge network

Publications (1)

Publication Number Publication Date
WO2007051409A1 true WO2007051409A1 (en) 2007-05-10

Family

ID=38005445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002918 Ceased WO2007051409A1 (en) 2005-11-04 2006-10-31 A bridge, a bridged network and a data processing method in the bridged network

Country Status (2)

Country Link
CN (1) CN1960325B (en)
WO (1) WO2007051409A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI454127B (en) * 2011-08-26 2014-09-21 Tecom Co Ltd Bridging method for un-registered terminal to make ip phone call and application program for the same
CN112527247A (en) * 2019-09-17 2021-03-19 西安诺瓦星云科技股份有限公司 LED display control system simulation method, device and system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882784B (en) * 2012-10-16 2018-03-23 新华三技术有限公司 LSP information from flooding method and apparatus in SPBM
CN103200089B (en) * 2013-04-15 2016-10-19 杭州华三通信技术有限公司 Message forwarding method and device in virtual private local area network service network
CN104320349B (en) * 2014-10-31 2017-12-15 新华三技术有限公司 A kind of multicast forwarding list item update method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6535491B2 (en) * 1997-12-24 2003-03-18 Cisco Technology, Inc. Method and apparatus for rapidly reconfiguring computer networks using a spanning tree algorithm
US6721275B1 (en) * 1999-05-03 2004-04-13 Hewlett-Packard Development Company, L.P. Bridged network stations location revision
US20050188106A1 (en) * 2004-02-11 2005-08-25 Alcatel Managing L3 VPN virtual routing tables

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717950B2 (en) * 2002-01-20 2004-04-06 General Instrument Corporation Method and apparatus for priority-based load balancing for use in an extended local area network
CN1163023C (en) * 2002-11-08 2004-08-18 华为技术有限公司 A data transmission method between network bridges
WO2005079025A1 (en) * 2004-02-18 2005-08-25 Ntt Docomo, Inc. Packet transfer system, radio base station, and packet transfer route optimization method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6535491B2 (en) * 1997-12-24 2003-03-18 Cisco Technology, Inc. Method and apparatus for rapidly reconfiguring computer networks using a spanning tree algorithm
US6721275B1 (en) * 1999-05-03 2004-04-13 Hewlett-Packard Development Company, L.P. Bridged network stations location revision
US20050188106A1 (en) * 2004-02-11 2005-08-25 Alcatel Managing L3 VPN virtual routing tables

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GAO DEYUN, CAO YANFEI, ZHANG ZHANBIAO: "The application of generating tree algorithm in the LAN", TELECOMMUNICATION ENGINEERING, no. 3, 30 June 2000 (2000-06-30), XP008080508 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI454127B (en) * 2011-08-26 2014-09-21 Tecom Co Ltd Bridging method for un-registered terminal to make ip phone call and application program for the same
CN112527247A (en) * 2019-09-17 2021-03-19 西安诺瓦星云科技股份有限公司 LED display control system simulation method, device and system
CN112527247B (en) * 2019-09-17 2024-05-14 西安诺瓦星云科技股份有限公司 LED display control system simulation method, device and system

Also Published As

Publication number Publication date
CN1960325A (en) 2007-05-09
CN1960325B (en) 2010-05-05

Similar Documents

Publication Publication Date Title
CN107637031B (en) Path computation element central controller for network traffic
CN107534613B (en) Multi-region source route multicast method using subtree identifier
WO2008025299A1 (en) A root path computation method in shortest path bridge
US20120327811A1 (en) Virtual network connection method, network system, and network device
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2015074394A1 (en) Method and device for message forwarding
CN102130826A (en) Message transmitting method and device
WO2011060667A1 (en) Method and device for link protection in virtual private local area network
WO2006005260A1 (en) A virtual private network and the method for the control and transmit of the route
WO2018032962A1 (en) Method, device and system for information synchronization
WO2013026384A1 (en) Service data transmission method, network node and system
WO2008011818A1 (en) Method of realizing hierarchy-virtual private lan service and network system
JP7536093B2 (en) Packet forwarding method, first network device, and first device group
WO2011103759A1 (en) Method for establishing associated bidirectional label switching path and system thereof
WO2005060275A1 (en) Multiple isp local area network egress selecting method
WO2006099786A1 (en) A method for implementing on-ring process, off-ring process and data forwarding in resilience packet data ringnet and a network device thereof
WO2012122844A1 (en) Method and system for domain-based interconnection of transparent interconnection over lots of links network
US20070036161A1 (en) System and method of routing Ethernet MAC frames using Layer-2 MAC addresses
CN104937878B (en) The method that Protocol Independent Multicast tree is established in the presence of unidirectional tunnel
EP2670088B1 (en) Trill network interconnection method and system
WO2011127849A2 (en) Method and network device for transmitting data stream
WO2007003088A1 (en) A method and system for updating a route
WO2015079615A1 (en) Communication system, communication method, network information combination apparatus, processing rule conversion method, and processing rule conversion program
CN100502343C (en) Method of intercommunication of multi-protocol label exchange virtual special network
CN115801663B (en) Route generation method, device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06805119

Country of ref document: EP

Kind code of ref document: A1