CN101426031B - Novel method and apparatus for Ether ring network address updating - Google Patents

Novel method and apparatus for Ether ring network address updating Download PDF

Info

Publication number
CN101426031B
CN101426031B CN 200810224710 CN200810224710A CN101426031B CN 101426031 B CN101426031 B CN 101426031B CN 200810224710 CN200810224710 CN 200810224710 CN 200810224710 A CN200810224710 A CN 200810224710A CN 101426031 B CN101426031 B CN 101426031B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
ring
node
forwarding
address
ethernet
Prior art date
Application number
CN 200810224710
Other languages
Chinese (zh)
Other versions
CN101426031A (en )
Inventor
吴少勇
王斌
Original Assignee
中兴通讯股份有限公司
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
Grant date

Links

Abstract

The invention discloses a address refreshing method for Ethernet ring comprising: configuring two-stage forwarding table for ring node of Ethernet ring; when topology changes of Ethernet ring, judging if the ring node is connected with topology changing point; if ring node is connected with topology changing point, the ring node deleting all address forwarding item of self two-stage forwarding table and creating message carrying address refreshing information to self node of adjacent ring; if ring node is not connected with topology changing point, the ring node receiving message carrying address refreshing information and from its adjacent node, then deleting all address forwarding items of two-stage forwarding table in self two-stage forwarding table; and forwarding the received messageto self node positioned at adjacent ring. The invention also discloses an address refreshing device. The inventive method and device can largely relieve harm of broadcasting storm of Ethernet ring.

Description

一种以太网环的地址刷新方法和装置 An address of an Ethernet ring method and apparatus for refreshing

技术领域 FIELD

[0001] 本发明涉及以太网环保护领域,特别是指一种以太网环的地址刷新方法和装置。 [0001] The present invention relates to the field of the Ethernet ring protection, in particular Ethernet address refers to a method and apparatus for refreshing the ring. 背景技术 Background technique

[0002] 在以太网的实际应用中,通过广泛采用各种以太网环保护技术,以实现主用路径和备用路径之间的冗余数据备份。 [0002] In the practical application of the Ethernet by a wide variety of Ethernet ring protection technology employed for redundancy backup of data between the master path and the backup path. 当主用路径和备用路径都完好时,阻塞备用路径的保护数据转发功能,使网络之间的保护数据在主用路径上传输;当主用路径发生故障时,打开备用路径的保护数据转发功能,网络之间的保护数据切换到备用路径上传输,这样可以防止在正常的网络状态下保护数据被重复接收和形成广播风暴。 When the active path and the backup path are intact, blocking alternate path protection data forwarding function, so that the protection of data between the network traffic on the primary route; when the primary path fails, open the protected data reserve path forwarding, network to protect data transmitted between the backup path switched, so that protection can be prevented in the normal state of the network and the received data is repeatedly broadcast storm. 在网络的主用路径出现故障时启用备用路径来传输保护数据,可以提高以太网的抗故障能力,并且切换时的收敛时间需要小于50ms,以达到网络之间保护数据传输的高实时性要求。 When enabled by the network of primary path fails alternate path to transmit data protection can be improved failure-resistant capability of Ethernet, the convergence time required to switch is less than 50ms when, in order to achieve real-time requirements of data transmission between network protection.

[0003] 图1所示为以太多环网的拓扑图,节点A至F都为具有以太网交换功能的节点,网络M和节点B直接相连接,网络N和节点D直接相连接。 [0003] In FIG. 1 is a ring Ethernet topology, nodes A to F are nodes with Ethernet switching functions, network node M and B are directly connected to the network N and the node D is directly connected. 网络M和网络N之间进行通信,网络M和网络N之间有2条物理路径,即:网络N〈一〉节点D〈一〉节点C〈一〉节点B〈一〉网络M,网络N〈一〉节点D〈一〉节点E〈一〉节点F〈一〉节点A〈一〉节点B〈一〉网络M。 Carried out between the network M and the network N there are two physical paths between the communication network M and the network N, that is: the network N <a> the node D <a> the node C <a> Node B <a> M network, the network N <1> the node D <1> node E <1> node F. <1> the node a <1> node B <1> network M.

[0004] 在应用以太网环保护技术时,定义了环保护链路和控制节点,S卩:在以太环网无故障的情况下,环上对数据报文进行阻塞,防止环路形成的链路为环保护链路,通过对这段环保护链路的操作,可以进行环网的主用路径和备用路径的切换。 [0004] In the application of the Ethernet ring protection technology, it defines a ring protection link and the control node, S Jie: in the Ethernet ring network without failure, the data packets on the ring is blocked, preventing the formation of loops of the chain path is the ring protection link, through the operation of this ring protection link, it can be switched the active path and the backup path of the ring network. 与环保护链路相连的节点, 称为控制节点或者主节点,在以太环网上可以选择某一个具有以太网交换功能的节点为控制节点。 Nodes connected to the ring protection link, called a control node or a master node in the Ethernet ring network can select a node having a function to control the Ethernet switching node. 如图2所示为以太多环网中链路完好时的通信路径拓扑图,环网包含的节点有A、 B、C、D、E 和F,包含的链路有<A,B>、<B, C>、<C,D>、<D,E>、<E,F> 和<F,A> 链路。 As shown in FIG. 2 is a multi-ring topology network communication path when the link is intact, there is node ring containing A, B, C, D, E and F., There is included a link <A, B>, <B, C>, <C, D>, <D, E>, <E, F> and <F, A> link. 以节点A 为控制节点,与节点A的a2端口的直连链路<F,A>为环保护链路。 A control node as the node, and node A port a2 direct link <F, A> a ring protection link. 当环上链路完好时,控制节点A阻塞与环保护链路<F,A>相连端口a2的数据报文转发功能,网络中无环路产生, 防止了由于网络环路引起的“广播风暴”,此时网络M和N的通信路径为:网络M〈一〉节点B<—>节点C〈一〉节点D〈一〉网络N。 When the link on the ring is intact, and the control node A blocking ring protection link <F, A> a2 port connected to a data packet forwarding, the network loop-produced, is prevented due to the "broadcast storm caused by the network loop "At this time, the network communication path M and N is: the network M <a> node B <-> the node C <a> the node D <a> network N.

[0005] 当链路发生故障时,控制节点放开与环保护链路相连端口的数据报文转发功能, 从而保障了业务的连通。 [0005] When a link fails, the control node unblocks the data packet ring protection link connected to the port forwarding function, in order to protect the communication service. 如图3所示为以太多环网中链路故障时的通信路径拓扑图,假设环上的<B,O链路发生了故障,那么控制节点A开放了端口a2的数据报文转发功能,则此时网络M和N的通信路径为:网络M〈一〉节点B〈一〉节点A〈一〉节点F〈一〉节点E〈一〉节点D〈一〉网络N。 3 is a multi-ring topology network communication path when a link failure is assumed that <B, O link fails on the ring, then the control node A open data packet forwarding port a2, At this time, the network communication path M and N is: the network M <a> node B <a> the node a <a> the node F <a> the node E <a> the node D <a> network N.

[0006] 在以太环网中,每个环网上的节点连接着大量的子网,维护着一个庞大的地址转发表,在环网上转发一个报文需要花费较多的查表时间。 [0006] In the Ethernet ring network, each node ring connected to the Internet a large number of subnets, maintains a large address forwarding, forwarding a packet ring network needs to spend more time look-up table. 图2中,环上的链路<A,F>是环保护链路,节点A是控制节点,假设环上各个以太网交换节点连接了10000个子网,那么每个交换节点将维护一个庞大的地址转发表,每个转发表包含的转发条目最大可以达到5X1010个。 In FIG. 2, the link on the ring <A, F> is the ring protection link, the control node is the node A, assuming that each Ethernet switch node ring connected 10000 subnets, each switching node will maintain a large address forwarding table, each forwarding table contains the maximum forwarding entries can reach 5X1010 months. 当网络拓扑发生变化时,如链路发生故障引起的链路倒换,环上的各个节点将会刷新地址转发表,各个节点的地址转发表的全部刷新不仅加重了各个节点的地址学习任务,而且大大增加了以太环网上广播风暴的规模,对网络性能带来了极大的危害。 When the network topology changes, such as link failures caused by link switching occurs, each node on the ring will refresh the address forwarding table, each node forwarding address all the refresh address not only increased the learning tasks of each node, and greatly increased the size of the Ethernet ring network broadcast storm, the network performance has brought great harm. 发明内容 SUMMARY

[0007] 有鉴于此,本发明的主要目的在于提供一种以太环网的地址刷新方法和装置,能够降低以太环网上广播风暴的规模。 [0007] In view of this, the main object of the present invention to provide an Ethernet ring network address refreshing method and apparatus capable of reducing the size of the Ethernet ring broadcast storm.

[0008] 为达到上述目的,本发明的技术方案是这样实现的: [0008] To achieve the above object, the technical solution of the present invention is implemented as follows:

[0009] 本发明提供了一种以太网环的地址刷新方法,该方法包括: [0009] The present invention provides a refresh address is one kind of an Ethernet ring, the method comprising:

[0010] 为以太网环上的环上节点配置两级转发表,所述两级转发表由一级转发表和二级转发表组成; [0010] The two nodes are configured to ring on the ring on the Ethernet forwarding table, the forwarding table forwarding by the two primary and secondary forwarding composition;

[0011] 所述一级转发表的地址转发条目包括:目的、目的站和端口;目的表示数据报文的目的MAC地址;目的站表示数据报文在该环网上转发时下环处的环上节点MAC地址;端口表示在下环节点的输出端口或者数据报文本地交换的输出端口,其中,本地交换是指数据报文不进入环网但是需要经过环上的节点,并从该节点的一个端口输出,该端口就是数据报文本地交换的输出端口; Data indicating the destination node forwards packets at the ring nowadays ring network ring; object, and a destination port; object represents a destination MAC address of the data packet: [0011] The forwarding an address forwarding table entry comprises MAC address; port represents an output port lower ring node output port or data packets text exchange in which the local exchange means that the data packets do not enter the ring but to go through nodes on the ring, and a port output from the node the port is the output port exchange data packets of text;

[0012] 所述二级转发表的地址转发条目包括:目的站和端口;目的站表示数据报文下环处的环上节点的MAC地址,端口表示将数据报文输出给下环处的环上节点时的输出端口; [0012] The two forwarding address forwarding table entry comprising: a destination station and ports; destination MAC address of the node represents the data packets on the ring at the lower ring, the port indicates that the data packet is output to the ring at the ring when the output port on the node;

[0013] 当以太网环的拓扑发生变化时,判断环上节点是否与拓扑变化点相连接; [0013] When the Ethernet ring topology is changed, determining whether the node on the ring is connected to the topology change point;

[0014] 如果环上节点与拓扑变化点相连接,则所述环上节点删除自身二级转发表的所有地址转发条目,并生成携带地址刷新信息的报文发送给自身的相邻环上节点; [0014] If a ring topology change point node is connected, then the node deletes all addresses on the ring itself two forwarding forwarding entry, and generates refresh messages carrying address information to the adjacent ring node itself ;

[0015] 如果环上节点不与拓扑变化点相连接,则所述环上节点接收到来自其相邻节点的携带地址刷新信息的报文后,删除自身二级转发表的所有地址转发条目;并将接收的报文转发给自身的相邻环上节点,直到所述以太网环上的所有节点删除自身的二级转发表的所有地址转发条目。 [0015] If the ring node is not connected to the topology change point, the node on the ring after receiving the message carrying the address refreshing information from its neighboring node, to delete all forwarding addresses itself two published forwarding entry; and forwards the received packet to its adjacent ring node, until all addresses of all nodes on the two Ethernet rings deletes its forwarding table forwarding entry.

[0016] 所述与拓扑变化点连接的环上节点将携带地址刷新信息的报文送给与其相邻的环上节点,具体为: [0016] and the node ring topology change point connection carrying information packets refresh address to the adjacent node on the ring, specifically:

[0017] 所述与拓扑变化点连接的环上节点将携带地址刷新信息的报文发送给不与拓扑变化点连接的环上端口,并将携带地址刷新信息的报文转发给与所述端口连接的环上节 [0017] the ring node and the connection point of the topology change refresh messages carrying address information on the ring not connected to the port topology change to a point, and carries address refresh information packets forwarded to the port ring section connected

点ο Point ο

[0018] 所述以太网环上的所有节点删除自身的二级转发表的所有地址转发条目后,该方法还包括:依据在所述以太网环上转发的数据报文中包含的介质访问控制MAC头生成二级转发表中新的地址转发条目。 [0018] All nodes on the Ethernet ring remove all addresses its two forwarding table after forwarding entry, the method further comprising: forwarding media access based on the Ethernet data packet ring included in the control the MAC header generated two new forwarding address forwarding entry.

[0019] 所述MAC头包括:所述数据报文自带的MAC头和所述以太网环为所述数据报文配置的环MAC头;所述以太网环为所述数据报文配置的环MAC头中包括:环上源节点MAC地址和环上目的节点MAC地址。 [0019] The MAC header comprises: a MAC header of a data packet ring carrying the MAC header and the Ethernet ring configured for the packet data; ring for the data in the Ethernet packet configuration ring MAC header comprises: a source ring node and the MAC address MAC address of the destination node on the ring.

[0020] 本发明还提供了一种以太网环的地址刷新装置,该装置包括: [0020] The present invention further provides a refresh address is one kind of an Ethernet ring apparatus, the apparatus comprising:

[0021] 转发表配置模块,用于为以太网环上的环上节点配置两级转发表;所述两级转发表由一级转发表和二级转发表组成; [0021] The forwarding configuration module, a node configuration on the two rings on the ring Ethernet forwarding table; the two forwarding forwarding forwarding the primary and secondary composition;

[0022] 所述一级转发表的地址转发条目包括:目的、目的站和端口;目的表示数据报文的目的MAC地址;目的站表示数据报文在该环网上转发时下环处的环上节点MAC地址;端口表示在下环节点的输出端口或者数据报文本地交换的输出端口,其中,本地交换是指数据报文不进入环网但是需要经过环上的节点,并从该节点的一个端口输出,该端口就是数据报文本地交换的输出端口; Data indicating the destination node forwards packets at the ring nowadays ring network ring; object, and a destination port; object represents a destination MAC address of the data packet: [0022] The forwarding an address forwarding table entry comprises MAC address; port represents an output port lower ring node output port or data packets text exchange in which the local exchange means that the data packets do not enter the ring but to go through nodes on the ring, and a port output from the node the port is the output port exchange data packets of text;

[0023] 所述二级转发表的地址转发条目包括:目的站和端口;目的站表示数据报文下环处的环上节点的MAC地址,端口表示将数据报文输出给下环处的环上节点时的输出端口; [0023] The two forwarding address forwarding table entry comprising: a destination station and ports; destination MAC address of the node represents the data packets on the ring at the lower ring, the port indicates that the data packet is output to the ring at the ring when the output port on the node;

[0024] 检测模块,用于检测以太网环的拓扑是否发生变化,并得到检测结果; [0024] The detection module for detecting whether a change occurs in the Ethernet ring topology, and obtain a detection result;

[0025] 判断模块,用于依据所述检测结果,当以太网环的拓扑发生变化时,判断环上节点是否与拓扑变化点相连接,并得到判断结果; [0025] The determination module configured according to the detection result, when the Ethernet ring topology is changed, determining whether the node on the ring is connected to the point of the topology change, and obtain the judgment result;

[0026] 地址刷新模块,用于依据所述判断结果,删除所述环上节点的两级转发表中二级转发表的所有地址转发条目,并生成携带地址刷新信息的报文发送给所述环上节点的相邻环上节点;或者接收来自相邻节点的携带地址刷新信息的报文,删除所述环上节点自身的两级转发表中二级转发表的所有地址转发条目,并将接收的报文转发给自身的相邻环上节 [0026] The refresh address module configured according to the determination result, the ring remove all forwarding addresses on the two two forwarding node forwarding entry, and generates refresh messages carrying address information transmitted to the on adjacent ring node on the ring; or carry the address refresh information received packet from an adjacent node, delete all the addresses on the ring node itself two two forwarding table forwarding forwarding entry, and received forwards the packet to its adjacent ring section

点ο Point ο

[0027] 所述地址刷新模块包括: [0027] The refresh address module comprises:

[0028] 报文生成子模块,用于生成携带地址刷新信息的报文; [0028] The message generation sub-module for generating refresh messages carrying address information;

[0029] 报文收发子模块,用于发送生成的报文给所述环上节点的相邻环上节点,或者接收来自相邻节点的携带地址刷新信息的报文; Packet to the adjacent nodes in the ring [0029] The packet transceiver sub-module, configured to send the generated ring node, or receive packet carries address refreshing information from neighboring nodes;

[0030] 删除子模块,用于删除所述环上节点自身的两级转发表中二级转发表的所有地址转发条目。 [0030] Delete sub-module configured to delete the two ring node itself to all addresses in the two forwarding forwarding forwarding entry.

[0031 ] 所述地址刷新模块进一步包括: [0031] The refresh address module further comprises:

[0032] 转发表恢复子模块,用于在所述删除子模块删除环上节点自身的两级转发表中二级转发表的所有地址转发条目后,依据在所述以太网环上转发的数据报文中包含的MAC头生成二级转发表中新的地址转发条目。 [0032] restores forwarding sub-module, configured to delete all addresses in the sub-module deletes the nodes on the ring itself two two forwarding table forwarding table after forwarding entry, based on the data forwarding Ethernet ring MAC header packet includes generating two new address forwarding table forwarding entry.

[0033] 本发明以太环网的地址刷新方法,为环上节点配置了一种两级转发表,该转发表包含一级转发表和二级转发表,当以太环网的拓扑发生变化需要更新环上节点的转发表时,对一级转发表不更新,只更新二级转发表,将二级转发表的所有转发条目删除,当报文上环处的环上节点依据该节点的一级转发表将该报文以广播的形式发送给环上其他节点后,其他节点就学习到了上环处的环上节点的MAC地址和该数据报文的源地址,如此,当环上节点再向该数据报文源地址的节点发送报文时,就不需要以广播的形式发送,如此大大降低了环网上的数据报文广播规模,减小了对网络的危害。 [0033] Ethernet ring network address refreshing method of the present invention, a configuration of two nodes on the ring forwarding, the forwarding comprises forwarding and a forwarding two, when the topology of the Ethernet ring network changes need to be updated when forwarding node on the ring, and the primary forwarding is not updated, only two forwarding table updates, deletes all the forwarding entries two forwarding table when the packet ring on the ring at that node level basis forwarding the packet transmitted in the form of a broadcast address to the source MAC address of the node to other nodes on the ring, the other nodes learn the ring and the ring at the data packet, so that when the ring node again when a node of the data packet source address to send the message, it does not send in the form of broadcast, and so greatly reduce the size of data packets broadcast the ring, reducing the harm to the network.

附图说明 BRIEF DESCRIPTION

[0034] 图1为现有技术以太多环网的拓扑图; [0034] FIG. 1 is a prior art multi-ring network topology;

[0035] 图2为现有技术以太多环网中链路完好时的通信路径拓扑图; [0035] FIG. 2 is a prior art communication path to the topology view of the ring Ethernet links intact;

[0036] 图3为现有技术以太多环网中链路故障时的通信路径拓扑图; [0036] FIG. 3 is a prior art multi-ring topology network communication path when the link failure;

[0037] 图4为本发明一种以太环网的地址刷新方法的流程图; [0037] FIG 4 is a flowchart INVENTION A method for refreshing a ring network address of the Ethernet;

[0038] 图5为本发明实施例一的以太多环网组网示意图; [0038] FIG. 5 is a schematic diagram ring Ethernet network embodiment of the present invention;

[0039] 图6为本发明实施例二的以太多环网组网示意图; [0039] FIG. 6 according to the second ring Ethernet networking diagram embodiment of the present invention;

[0040] 图7为本发明以太环网的地址刷新装置的组成结构示意图。 [0040] FIG. 7 is a schematic view of an Ethernet ring network address structure of an apparatus consisting of a refresh of the present invention. 具体实施方式 detailed description

[0041] 下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 Drawings and specific embodiments set forth in detail further aspect of the present invention [0041] The following binding.

[0042] 本发明以太环网的地址刷新方法中,以太环网的每个环上节点维护一种两级转发表,包含一个一级转发表和一个二级转发表,当以太环网由于拓扑发生变化需要刷新地址时,环上节点不刷新一级转发表,只刷新二级转发表,从而大大减轻了以太环网上广播风暴造成的危害。 [0042] Ethernet ring network address of the refresh method according to the invention, on each ring node maintains a two Ethernet ring network forwarding table, a forwarding table comprising a two and a forwarding, since when the Ethernet ring network topology when changes need to refresh address, the ring node is not forwarding a refresh, refresh only two forwarding table, thus greatly reducing the harm to the Ethernet ring network broadcast storm caused.

[0043] 本发明中,当数据报文在环网上转发时,为该数据报文封装一个环介质访问控制(MAC, Media Access Control)头,当数据报文由环网外进入环网上转发时称为上环,当数据报文从环网上出来到环网外传输时称为下环。 [0043] In the present invention, when the data packets are forwarded in the ring network, for a data packet encapsulation ring media access control (MAC, Media Access Control) header, when the data packet enters the ring by the outer ring network forwarding referred to as the ring, when the data packets from the ring to the outer ring called the lower ring transmission. 环MAC头中包含两个地址信息:一个是该数据报文上环处的环上节点的MAC地址,称为环上源节点MAC地址;一个是该数据报文下环处的环上节点的MAC地址,称为环上目的节点MAC地址。 Ring MAC header contains address information two: one is the MAC address of nodes on the ring at the data packet, the source node on the ring known as a MAC address; is a ring node packet ring at the lower data MAC address, referred to as a MAC address of the destination node on the ring.

[0044] 需要指出的是,一个在网络中传输的数据报文中本身也包含一个MAC头,该MAC头中包含的信息有:该数据报文的源MAC地址和目的MAC地址。 [0044] It is noted that, itself contains a header in a MAC data packet transmission network, the information included in the MAC header are: the data packet and the source MAC address destination MAC address. 如图2所示,当环网中链路完好时,假设一个数据报文从网络M传输到网络N,则传输路径为网络M〈一〉节点B〈一〉节点C< 一>节点D〈一〉网络N,可知该数据报文上环处的环上节点为节点B,下环处的环上节点为节点D。 2, when the ring network links intact, assume a data packet transmitted from the network M to the network N, the transmission path for the network M <a> Node B <a> the node C <a> the node D < a> network N, it can be seen at the ring node data packets to the node B, the ring node on the ring at node D. 假设该数据报文的源MAC地址为:M0,目的MAC地址为:N0,则该数据报文在环上转发时的数据结构如表1所示: Assuming that the data packet source MAC address: M0, the destination MAC address as: N0, then the data packet when forwarding the data structure on the ring shown in Table 1:

[0045] [0045]

WT源节点MAC地址:B 环上目的节点MAC地址;5— 7M MAC 地址:M0 "!的MAC地址:N0 控制域■ 负荷_ WT MAC address of the source node: B MAC address of the destination node on the ring; 5- 7M MAC address:! M0 "MAC address: N0 load control field ■ _

[0046] 表1 [0046] TABLE 1

[0047] 当该数据报文在环外传输时,去掉在环上转发时封装的环MAC头,此时数据报文的数据结构如表2所示: [0047] When the packet data is transmitted at the outer ring, the ring is removed in a ring forwards the encapsulated MAC header, the data structure of the data packet at this time are shown in Table 2:

[0048] [0048]

Figure CN101426031BD00071

[0049]表 2 [0049] TABLE 2

[0050] 下面将通过具体的实施例来说明本发明太环网的地址刷新方法的具体流程。 [0050] Next will be described the address very specific process of the present invention, ring refreshing method by specific examples.

[0051] 图4所示为本发明以太环网的地址刷新方法的流程示意图,如图4所示,该方法包括以下步骤: Process [0051] Figure 4 shows an Ethernet ring network address of the refresh method of the present invention. FIG, 4, the method comprising the steps of:

[0052] 步骤101,为以太环网上的各个节点配置两级转发表。 [0052] Step 101, arranged two for each node of an Ethernet ring network forwarding.

[0053] 在本发明的以太环网的地址刷新方法中,为以太环网上的各个节点配置了一种两级转发表,该两级转发表包含一个一级转发表和一个二级转发表。 [0053] In the address of the Ethernet ring network according to the present invention, the refresh process, each node configured as an Ethernet ring network of two forwarding table, the two forwarding and a forwarding table comprising a two forwarding a. 一级转发表中包含的地址转发条目有:目的、目的站和端口,其中,“目的”表示数据报文的目的MAC地址;“目的站” 表示数据报文在该环网上转发时下环处的环上节点MAC地址;“端口”表示在下环节点的输 An address forwarding table comprises forwarding entry are: object, and a destination port, where "object" represents a data packet destination MAC address; "destination" indicates the data packets to the ring network at the ring forward nowadays MAC address of the node on the ring; "port" indicates the lower transmission link point

Figure CN101426031BD00072

出端口或者数据报文本地交换的输出端口,其中,本地交换是指数据报文不进入环网但是需要经过环上的节点,并从该节点的一个端口输出,该端口就是数据报文本地交换的输出端口。 An output port port or datagram text exchange in which the local exchange means that the data packets do not enter the ring but to go through node on the ring, and from an output port of the node, the port is the datagram text exchange output port. 如图3所示,当一个数据报文需要从网络N传输到网络X时,需要经过端口d3输入节点D进行本地交换,由d4端口输出给网络X,则对于该数据报文而言,端口d4就是数据报文在节点D的本地交换输出端口。 3, when a data packet needs need to be transmitted from the network to the network N through port X is the input node D local switching d3, d4 from the output port to the network X, then for the data packet, the port d4 is the data packets to the local exchange node D output ports. 一级转发表的功能是查找数据报文在环上的目的节点的MAC地址,并支持报文的下环操作和本地交换。 A forwarding function is to find the MAC address of the destination node of the data packet on the ring, and the ring operation and local support for packet exchange.

[0054] 二级转发表包含的地址转发条目有:目的站和端口,其中“目的站”表示数据报文下环处的环上节点的MAC地址,“端口”表示将数据报文输出给下环处的环上节点时的输出端口。 [0054] The two address forwarding table comprises forwarding entry are: destination and port, wherein the "destination" indicates the MAC address of the node the data packet on the ring at the ring, "Port" indicates that the data packet is output to the when the output port ring at the ring node. 二级转发表的功能是查找数据报文在环上节点的环上出端口。 Two forwarding function is to find the data packets in the port on the ring node on the ring.

[0055] 如图5所示为本发明实施例一的以太多环网组网示意图,假设图中环网的环上节点D的一级转发表和二级转发表如表3 : In many network diagram ring, the ring is assumed that the node D in FIG ring network and forwarding of a first embodiment of the two [0055] As shown in FIG. 5 of the present invention, the forwarding table as shown in Table 3:

[0056] [0056]

Figure CN101426031BD00081

[0057]表 3 [0057] TABLE 3

[0058] 其中A0、A1为与节点A相连的子网,BO为与节点B相连的子网,D0、D2为与节点D 相连的子网,EO为与节点E相连的子网,Fl为与节点F相连的子网,“-”表示该端口未知。 [0058] wherein sub A0, A1 is connected to node A, BO subnet is connected to the node B, subnet D0, D2 connected to node D, node E with the EO subnet connected, Fl is subnet connected to the node F, "-" indicates that the port is unknown.

[0059] 结合图5和表3可知,节点D的一级转发表中的 [0059] in conjunction with FIG. 5 and Table 3, a forwarding node D in

[0060] [0060]

Figure CN101426031BD00082

[0061] 表示该数据报文在环网上转发经过节点D,从节点A下环,从节点A的某个端口输出给子网A0,其中“目的:A0”可以从数据报文的MAC头中得知;“目的站:A”可以从数据报文的环MAC头中得知;对于节点D而言,节点A的哪个端口与子网AO相连是未知的,但是节点A的转发表中存储了端口与子网AO的连接关系,当数据报文转发到节点A时,节点A依据自身的转发表将数据报文从相应的端口输出给子网AO。 [0061] indicates that the data packets are forwarded through the node D, ring from node A on the ring network, a port from the output node to a subnet A, A0, where "Objective: A0" may MAC header of the data packet from that; "destination: a" known from the ring MAC header in the data packet; for node D, the subnet which port a connected to the node AO is unknown, but the forwarding table stored in the node a the relationship between the port and the connection of subnets AO, when the data packet is forwarded to the node a, node a publication based on its own data packets transferred from the corresponding port output to the sub-AO.

[0062] 节点D的一级转发表中的 [0062] forwarding node D level in

[0063] [0063]

Figure CN101426031BD00083

[0064] 表示数据报文在环网上转发后,通过节点D下环,从端口d3输出给子网DO ;也可以表示数据报文没有上环,经过节点D进行报文的本地交换,通过端口d3输出给子网DO。 [0064] indicates data packet forwarding in the ring network, the node D through the loop, d3 output from the port to the DO subnet; can not represent the data packets on the ring, local exchange messages through nodes D, through port d3 output to the sub-DO. 其中,当环上节点接收到一个数据报文后,先对该数据报文自带的MAC头进行分析,依据该节点自身的转发表对该数据报文进行转发,如果该环上节点经过分析发现该数据报文的目的网络与自身是直接相连的,则直接将该数据报文转发给目的网络,不需要给该数据报文配置环MAC头,说明该数据报文没有上环,该节点只对该数据报文进行了本地交换的操作。 Wherein, when the node receives a data packet on the ring, to analyze the data packets carrying the MAC header, post the data packets are forwarded according to the forwarding node itself, if nodes on the ring after analysis found that the packet data destination network is directly connected to itself, directly forwards the data packet to the destination network, the packets do not need to configure ring MAC header, indicating that the data packet is not on the ring, the node only the data packets to the operation of the local exchange.

[0065] 节点D的二级转发表中的 [0065] The two forwarding node D in

[0066] [0066]

Figure CN101426031BD00091

[0067] 表示该数据报文在环上转发经过节点D,从端口dl输出给节点E,并从节点E下环。 [0067] indicates that the data packet forwarding in the ring through nodes D, from the port to the output dl node E, and the loop from node E. 需要指出的是,该数据经过节点D也可以从端口d2输出给节点E,但是如果在该环网上选择A为控制节点,链路<A,F>为环保护链路,那么当环网中链路完好时,节点A阻塞了与环保护链路<A,F>相连的端口a2的转发功能,那么此时该报文只能通过端口dl输出给节点E,该路径比较短;当环网中链路有故障时,假设链路<D,E>出现了故障,那么此时该报文只能通过端口d2输出给节点E,该路径比较长。 It should be noted that the data may be via node D E d2 from the output port to the node, but if the control node A is selected, the link <A, F> a ring protection link in the ring network, then when the ring network when the link is in good condition, the node a blocks the forwarding port a2 is the ring protection link <a, F> connected, then the time packet only through the output port dl to the node E, the path is short; when the ring when the network link is faulty, assuming link <D, E> fails, then the time packet only through the output port d2 to the node E, the path is relatively long. 基于这两种情况,节点D的二级转发表可以优先存储与较短的路径相连的端口,当然根据需要也可以有其他的优先原则。 Based on these two cases, the two nodes D may be connected to the port forwarding table storing priority shorter path, of course, may be necessary in other priority principle.

[0068] 步骤102,判断以太环网的拓扑是否发生变化,如果没有发生变化说明环网的链路完好,在以后的通信中继续判断以太环网的拓扑状态;如果发生变化则执行步骤103。 [0068] Step 102, it is determined whether the Ethernet ring network topology changes, described ring network links intact if not changed, continues to determine the state of an Ethernet ring network topology in subsequent communication; A change in step 103 is executed.

[0069] 在一般的以太网通信中,有时会因为通信链路发生故障或者发生链路的故障恢复正常致使以太网的拓扑发生变化。 [0069] In general Ethernet communication, sometimes because of a communication link failure or link failure occurs resulting in restoration of normal Ethernet topology changes. 在对以太环网上节点的转发表中的地址进行刷新之前要判定环网的拓扑是否发生了变化。 Before forwarding the Ethernet ring network node address to be refreshed to determine whether a ring network topology changes. 以太环网的拓扑是否发生变化是由节点检测相邻链路的状态来判定的,如果链路发生故障或者故障恢复,该链路两端的节点会向其在环网上的相邻节点周期性地发送协议报文,通知其相邻的节点链路发生了故障或故障已经恢复,该相邻的节点收到协议报文后再向其在环网上的相邻节点发送此协议报文,如此环网上所有的节点就会知道环网的拓扑发生了变化。 Ethernet ring network topology changed by whether or not the state detecting neighboring nodes to determine the link, the link fails or if the failure is recovered, the ends of the link node to its neighboring nodes will periodically ring network protocol messages, to inform its neighboring nodes link fails or a fault has been restored, the adjacent node receives packets and then send the protocol packets to neighboring nodes in the ring network, so ring All nodes on the ring network topology will know the changes.

[0070] 步骤103,判断节点是否与拓扑变化点相连接,如果是则执行步骤104 ;如果不是则执行步骤105。 [0070] Step 103, it is determined whether the node is connected to the topology change point, if step 104 is performed; if not step 105 is performed.

[0071] 此处的拓扑变化点就是指网环上链路状态发生变化的部分,如发生故障的链路或者故障恢复的链路等。 [0071] The topology change point herein refers to the portion of the wire loop on the link status changes, such as link failure or link failure recovery occurs like.

[0072] 环上节点会不断的检测与其相连的链路的状态,则当链路状态发生变化时节点就会检测到,说明该节点就是与拓扑变化点连接的节点。 [0072] ring node will continue to detect the state of the link connected thereto, when the link state changes will be detected by the node, indicating that the node is the node connected to the topology change point.

[0073] 步骤104,节点向其完好端口周期性地发送携带地址刷新信息的报文,同时删除自身两级转发表中二级转发表的所有地址转发条目。 [0073] Step 104, the node periodically sends its port intact refresh messages carry the address information, and delete forwarding all their two two forwarding address forwarding entry.

[0074] 如果节点是与拓扑变化点连接的节点,那么该节点中与拓扑变化点连接的端口被称为该节点损坏的端口,节点上不与拓扑变化点相连的环上端口称为该节点完好的端口。 Port [0074] If the node is connected to the node topology change point, the port is connected to the node changes the topology of the node is called a point of damage, the port is called ring node is not connected to the node topology change point port intact. 此时,节点将损坏的端口关闭,向其所有完好的端口以报文的形式发送地址刷新信息,同时该节点对自身的两级转发表进行地址刷新的操作:删除二级转发表中的所有地址转发条目。 In this case, the node will damage the port is closed, intact sent to all ports to form packet address refresh information, while the two nodes for their own forwarding address refresh operations: Remove all second forwarding table address forwarding entry. 其中节点的完好端口将携带地址刷新信息的报文转发给与其连接的环上节点。 Wherein intact port node carrying information of the refresh address forwards the packet to the node connected thereto on the ring. 如图5 所示,假设环上链路<D,E>的状态发生了变化,那么端口dl为损坏的端口,端口d2为完好的端口,节点D将端口dl关闭,向端口d2发送携带地址刷新信息的报文,然后端口d2将该报文转发给节点C。 5, the link on the ring is assumed that <D, E> changes state, the port is damaged port dl, d2 port is port intact, node D will close the port dl, d2 message carrying the address to the port refresh message information, and then d2 port forwards the packet to the node C.

[0075] 步骤105,节点收到其相邻的环上节点发送的携带地址刷新信息的报文后,删除自身两级转发表中二级转发表的所有地址转发条目;并将接收的报文转发出去。 [0075] Step 105, after receiving the node address carried in the message information refresh, remove all the address forwarding table itself two two forwarding table forwarding entry sent by the node on the ring adjacent thereto; and the received packet forwarded.

[0076] 如果节点不是与拓扑变化点连接的节点,那么该节点会收到与其相邻的环上节点发送来的携带有地址刷新信息的报文,然后依据该报文,对其自身的两级转发表执行地址刷新的操作:删除二级转发表中的所有地址转发条目;同时该节点将接收到的报文再转发给其另外一个相邻的节点,如此,环上的所有节点都会知道当前需要进行刷新地址的操作。 [0076] If the node is not connected with the topology change point, then the node will receive the node sends to the adjacent ring carries the address refresh message information, and then based on the packet, two of its own level execution forwarding address refresh operations: delete all addresses forwarding entry two forwarding table; at the same time the node will receive the packet forwarding to another one of its neighboring nodes so that all nodes on the ring will know the current required to operate the refresh address. 该报文的转发直到环上所有的节点删除自身两级转发表中二级转发表的所有转发条目为止。 The packet is forwarded until all nodes delete their own two ring up all the forwarding forwarding forwarding table entries in two.

[0077] 需要指出的,当对环上节点的二级转发表刷新以后,有数据报文需要在环网上进行转发时,首先需要为该数据报文封装环MAC头,根据数据报文上环处的环上节点MAC地址,可以确定环MAC头中的环上源节点MAC地址,根据该上环处的环上节点的一级转发表, 可以确定环MAC头中的环上目的节点MAC地址。 [0077] It should be noted, When two nodes in the ring for forwarding refresh, data packets need to be forwarded when the first data packet need for the MAC header encapsulation ring on the ring network, the ring according to the data packet at ring node MAC address, the MAC header can be determined cycloalkyl ring MAC address of the source node, according to the nodes in the ring on the ring at a forwarding, the destination node may determine the cyclic ring MAC header MAC address . 依据环MAC头,该上环处的环上节点将该数据报文以广播的形式发送给环上其他的节点,这些节点就会根据报文中的环MAC头和报文自带的MAC头,学习到该上环处的环上节点的MAC地址和产生该数据报文的节点的MAC 地址,生成二级转发表中新的地址转发条目,同时该数据报文的环上目的节点将该数据报文转发出去,如此经过多次数据报文的转发后,环上各节点的二级转发表中就会存储新的地址转发条目。 MAC header based ring, nodes on the ring at the ring sends the data packet in broadcast mode to other nodes on the ring, these nodes will loop packets according to the packet MAC header and the MAC header carrying , learns the MAC address of the node on the ring at the ring node and generating a MAC address of the data packet, generates two new address forwarding table forwarding entry, while the packet data destination node of the ring data packets are forwarded out so many times after the data packet forwarding, forwarding each ring on the secondary node will store the new address forwarding entry.

[0078] 下面结合具体实施例对上述的地址刷新方法进一步详细阐述。 [0078] The following examples in conjunction with the specific embodiments set forth in more detail above address refresh method. 如图6所示,以太环网的链路<C,D>发生了故障,节点C和节点D检测到故障后,刷新各自的二级转发表(不刷新一级转发表),并分别阻塞cl端口和d2端口的数据报文转发功能;节点C和节点D分别沿c2端口和dl端口向外发送携带地址刷新信息的报文。 Shown in Figure 6, the Ethernet ring network link <C, D> a failure occurs, the node C and the node D detects a fault, the respective secondary forwarding refresh (refresh without a forwarding table), and were blocked cl port and data port d2 packet forwarding function; nodes C and D respectively carry the address and sends out a refresh message information along the port c2 and dl port. 以太环网上的控制节点A收到报文后,打开a2端口的数据报文转发功能,并刷新自己的二级转发表(不刷新一级转发表)。 After the Ethernet ring network control node A receives the message, open a2 port data packet forwarding, and refresh their two forwarding table (not refresh a forwarding table). 环网上的其它节点收到报文后也刷新各自的二级转发表(不刷新一级转发表)。 Other nodes ring network receives the packets also refresh their secondary forwarding (not refresh a forwarding table).

[0079] 下面结合图6分析本发明的刷新方法解决广播风暴的情况,以环上节点B为例,节点B的二级转发表被刷新了,但是一级转发表没有被刷新。 [0079] below with reference to FIG. 6 where the refresh analysis method of the present invention to solve the broadcast storm, the node B on the ring, for example, two Node-B forwarding been refreshed, but not updated a forwarding table. 如果与节点B相连的子网BO向与节点E相连的子网EO发送报文Pd,节点B收到该Pd报文后,对其进行封装,封装后该Pd 报文中包含了该报文上环处的环上节点,即节点B的MAC地址等信息,然后节点B依据自身的一级转发表将该报文在环上广播出去;环上的各个节点收到封装后的报文Pd后,不仅学习到了子网BO的MAC地址,而且学习到了节点B的MAC地址。 If the subnet connected BO Node B transmits packet Pd, Pd Node B receives the packet to the subnet node E connected with EO, encapsulates it, encapsulates the packet contains Pd message ring at the ring node, i.e. the node B of the MAC address, then the node B based on their forwarding a packet broadcasted in the ring; each node on the ring after receiving the encapsulated packet Pd after not only learned the MAC address of the subnet BO, and learned the MAC address of node B. 因此,与节点A、C、D、E和节点F相连的所有子网向与节点B相连的子网{B0,Bi,...,B9999}发送的报文不需要以广播方式发送,从而大大减少了环网上的数据报文广播。 Thus, all subnet nodes A, C, D, E and F are connected to node {B0, Bi, ..., B9999} transmitting packets need not be transmitted to the node B connected to the subnet broadcast manner, so that greatly reducing the ring network broadcast packets.

[0080] 传统的地址刷新,由于节点B采用单级转发表,所有地址转发条目都被刷新。 [0080] The traditional address refresh, since the node B single-stage forwarding, forwarding addresses all entries are refreshed. 如果与节点B相连的子网BO向与节点E相连的子网EO发送报文Pd,节点B收到该报文后,直接在环上广播报文Pd,环上的各个节点收到报文Pd后,仅仅学习到了子网BO的MAC地址。 If the subnet BO Node B connected to Pd subnet to send packets to node E connected to the EO, the Node B receives the packet, Pd direct broadcast packets, each node on the ring receives packets on the ring after pd, only learned the MAC address of the subnet BO. 因此,与环网节点A、C、D、E和节点F相连的所有子网向与节点B相连的子网BO发送的报文不需要以广播方式发送,但是发往{B0,B1,...,B9999}子网的报文仍然需要以广播方式在环上发送。 Thus, the packets need not all subnets connected to the ring nodes A, C, D, E and the node F transmits to the Node B and BO subnet connected broadcasts, but sent to {B0, B1 ,. .., B9999} subnet packets still needs to be sent on the ring in broadcast mode. 也就是说,在该实施例中,传统的地址刷新方法引起的广播风暴规模是本发明所引起的广播风暴规模的9999倍。 That is, in this embodiment, the refresh address conventional methods due to the size of a broadcast storm is 9999 times the size of the broadcast storm caused by the present invention. [0081] 图7所示为本发明以太环网的地址刷新装置的组成结构示意图,如图7所示,该装置包括:转发表配置模块10、检测模块20、判断模块30和地址刷新模块40,其中, Means a structure diagram of an address [0081] Figure 7 shows an Ethernet ring network of the present invention, refresh, as shown in FIG. 7, the apparatus comprising: a forwarding configuration module 10, a detecting module 20, a refresh address determining module 30 and the module 40 ,among them,

[0082] 转发表配置模块10,用于为以太环网上的环上节点配置两级转发表,其中两级转发表包括一级转发表和二级转发表,一级转发表的地址转发条目包括:目的、目的站和端口;二级转发表的地址转发条目包括:目的站和端口。 [0082] The forwarding module 10 is configured, for the Ethernet ring network is a ring arranged two forwarding node, wherein the two forwarding comprises forwarding and a forwarding two, an address forwarding table includes forwarding entries : object, and a destination port; two forwarding address forwarding table entry comprising: a destination station and ports.

[0083] 检测模块20,用于检测以太环网的拓扑是否发生变化,并得到检测结果。 [0083] The detection module 20 for detecting whether the Ethernet ring network topology changes, and the obtained detection result.

[0084] 判断模块30,用于依据检测模块20的检测结果,当以太环网的拓扑发生变化时, 判断环上节点是否与拓扑变化点相连接,并得到判断结果。 [0084] The determining module 30, according to the detection result of the detection module 20, when the Ethernet ring network topology is changed, determining whether the node on the ring is connected to the point of the topology change, and obtain the judgment result.

[0085] 地址刷新模块40,用于依据判断模块30的判断结果,如果环上节点与拓扑变化点相连接,则该环上节点删除转发表配置模块10中自身两级转发表中二级转发表的所有地址转发条目,并生成携带地址刷新信息的报文发送给自身的相邻环上节点;如果环上节点不与拓扑变化点相连接,则该环上节点接收到来自其相邻节点的携带地址刷新信息的报文后,删除转发表配置模块10中自身两级转发表中二级转发表的所有地址转发条目;并将接收的报文转发给自身的相邻环上节点,直到以太环网上的所有节点删除自身的二级转发表的所有地址转发条目。 [0085] The refresh address module 40, a determination module 30 based on the determination result, if the ring topology change point node is connected to the node on the ring itself deleted forwarding module arranged in two forwarding table 10 two revolutions All published forwarding entry addresses, and generates a refresh messages carrying address information to the adjacent ring node itself; if the node is not connected to the ring topology change point, the node on the ring receives from its neighboring node refresh address is carried in the message information, forwarding the configuration module 10 to delete all the addresses in the forwarding table itself two two forwarding table forwarding entry; and forwards the received packet to its adjacent ring node, until All the addresses of all the Ethernet ring network node deletes its two forwarding forwarding entries.

[0086] 其中,地址刷新模块40进一步包括:删除子模块41、报文生成子模块42、报文收发子模块43、和转发表恢复子模块44,其中, [0086] wherein the refresh address module 40 further comprising: deleting sub-module 41, a message generation sub-module 42, packet reception and transmission sub-module 43, and restores forwarding sub-module 44, wherein,

[0087] 删除子模块41,用于依据判断模块30的判断结果或者依据报文生成子模块42生成的携带地址刷新信息的报文,删除转发表配置模块10中环上节点自身的两级转发表中二级转发表的所有地址转发条目。 [0087] Delete sub-module 41, based on a determination result of the determining module 30 or according to sub-module 42 generates a message packet carries address refresh information generated, deleted forwarding forwarding node itself two ring configuration module 10 All addresses in the two forwarding forwarding entries.

[0088] 报文生成子模块42,用于依据判断模块30的判断结果生成携带地址刷新信息的报文。 [0088] The message generation sub-module 42, configured to generate refresh messages carrying address information on the basis of the determination result of the determination module 30.

[0089] 报文收发子模块43,用于将报文生成子模块42的携带地址刷新信息的报文发送给与拓扑变化点连接的环上节点的相邻环上节点,或者接收来自相邻节点的携带地址刷新信息的报文。 [0089] The packet reception and transmission sub-module 43, a message generation sub-module to adjacent ring node on the ring 42 on the packets sent to a topology change point connection carrying address refreshing information, or receive from the adjacent node refresh messages carrying address information.

[0090] 转发表恢复子模块44,用于在删除子模块43删除环上节点自身的两级转发表中二级转发表的所有地址转发条目后,依据在所述以太网环上转发的数据报文中包含的MAC 头生成二级转发表中新的地址转发条目。 [0090] forwarding recover sub-module 44, configured to delete the deleted sub-module 43 ring node addresses of all its two two forwarding table forwarding table after forwarding entry, data forwarding is based on the Ethernet ring MAC header packet includes generating two new address forwarding table forwarding entry.

[0091] 以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 [0091] The above are only preferred embodiments of the present invention but are not intended to limit the scope of the present invention.

Claims (5)

  1. 1. 一种以太网环的地址刷新方法,其特征在于,该方法包括:为以太网环上的环上节点配置两级转发表,所述两级转发表由一级转发表和二级转发表组成;所述一级转发表的地址转发条目包括:目的、目的站和端口;目的表示数据报文的目的MAC地址;目的站表示数据报文在该环网上转发时下环处的环上节点MAC地址;端口表示在下环节点的输出端口或者数据报文本地交换的输出端口,其中,本地交换是指数据报文不进入环网但是需要经过环上的节点,并从该节点的一个端口输出,该端口就是数据报文本地交换的输出端口;所述二级转发表的地址转发条目包括:目的站和端口;目的站表示数据报文下环处的环上节点的MAC地址,端口表示将数据报文输出给下环处的环上节点时的输出端口;当以太网环的拓扑发生变化时,判断环上节点是否与拓扑变化点相 A ring Ethernet address updating method, wherein the method comprises: a node configured as two rings on the ring on the Ethernet forwarding table, the forwarding of a two forwarding and two revolutions data indicating the destination node forwards packets at the ring nowadays ring network ring; object, and a destination port; object represents a destination MAC address of the data packet:; a published composition of the forwarding address forwarding table entry comprises MAC address; port represents an output port lower ring node output port or data packets text exchange in which the local exchange means that the data packets do not enter the ring but to go through nodes on the ring, and a port output from the node the port is the datagram exchange text output port; said secondary address forwarding table forwarding entry comprising: a destination station and ports; destination MAC address of the node represents the data packets on the ring at the lower ring, the port means data packets to the output port when the node on the ring at the ring; when the Ethernet ring topology is changed, determining whether the node on the ring and topology change point relative 接;如果环上节点与拓扑变化点相连接,则所述环上节点删除自身二级转发表的所有地址转发条目,并生成携带地址刷新信息的报文发送给自身的相邻环上节点;如果环上节点不与拓扑变化点相连接,则所述环上节点接收到来自其相邻节点的携带地址刷新信息的报文后,删除自身二级转发表的所有地址转发条目;并将接收的报文转发给自身的相邻环上节点,直到所述以太网环上的所有节点删除自身的二级转发表的所有地址转发条目。 Bonding; If ring node point is connected to the topology change, then the node deletes all addresses on the ring itself two forwarding forwarding entry, and that carries the packet to its adjacent ring node address refreshing information; If no change point is connected to the node on the ring topology, then the rear ring node receives from its neighbors carry the address of refresh messages, deletion of all forwarding addresses itself two published forwarding entry; and receiving the forwards the packet to its neighboring ring nodes, all addresses until all the nodes on the Ethernet ring to delete their secondary forwarding forwarding entries.
  2. 2.根据权利要求1所述以太网环的地址刷新方法,其特征在于,所述与拓扑变化点连接的环上节点将携带地址刷新信息的报文送给与其相邻的环上节点,具体为:所述与拓扑变化点连接的环上节点将携带地址刷新信息的报文发送给不与拓扑变化点连接的环上端口,并将携带地址刷新信息的报文转发给与所述不与拓扑变化点连接的环上端口连接的环上节点。 2. The address of the Ethernet ring according to claim 1 refreshing claim, characterized in that the node ring topology change and the point of attachment will carry the address information of the refresh messages to the nodes on the ring adjacent thereto, in particular is: the node ring topology change and the point of attachment of the refresh messages carrying address information to the port on the ring not connected to the topology change point, and forwarded to the packets carrying the address information of the refresh does not port connected to the ring node on the ring topology change point of attachment.
  3. 3.根据权利要求1或2所述以太网环的地址刷新方法,其特征在于,所述以太网环上的所有节点删除自身的二级转发表的所有地址转发条目后,该方法还包括:依据在所述以太网环上转发的数据报文中包含的介质访问控制MAC头生成二级转发表中新的地址转发条目。 The Ethernet address of the ring 1 or 2 of the refresh method according to claim, characterized in that all the addresses of all the nodes on the two Ethernet rings deletes its forwarding table forwarding entry, the method further comprising: medium access based on the forwarding the Ethernet data packet ring included in the MAC header to generate two control forwarding table entry for the new forwarding address.
  4. 4.根据权利要求3所述以太网环的地址刷新方法,其特征在于,所述MAC头包括:所述数据报文自带的MAC头和所述以太网环为所述数据报文配置的环MAC头;所述以太网环为所述数据报文配置的环MAC头中包括:环上源节点MAC地址和环上目的节点MAC地址。 4. The Ethernet address of the loop 3 refresh request method, wherein the MAC header comprises: a data packet that comes with the Ethernet MAC header and the data packet is a ring configuration MAC header ring; the ring Ethernet MAC header for the data packet ring configuration includes: a ring node on the source MAC address and the MAC address of the destination node on the ring.
  5. 5. 一种以太网环的地址刷新装置,其特征在于,该装置包括:转发表配置模块,用于为以太网环上的环上节点配置两级转发表;所述两级转发表由一级转发表和二级转发表组成;所述一级转发表的地址转发条目包括:目的、目的站和端口;目的表示数据报文的目的MAC地址;目的站表示数据报文在该环网上转发时下环处的环上节点MAC地址;端口表示在下环节点的输出端口或者数据报文本地交换的输出端口,其中,本地交换是指数据报文不进入环网但是需要经过环上的节点,并从该节点的一个端口输出,该端口就是数据报文本地交换的输出端口;所述二级转发表的地址转发条目包括:目的站和端口;目的站表示数据报文下环处的环上节点的MAC地址,端口表示将数据报文输出给下环处的环上节点时的输出端口;检测模块,用于检测以太网环的拓扑是否发 A ring Ethernet address of the refresh means, wherein, the apparatus comprising: a forwarding configuration module for the ring on the Ethernet ring arranged two forwarding node; the two forwarding by a and a two-level forwarding forwarding composition; the address of a forwarding table forwarding entry includes: destination, and destination port; object represents a destination MAC address of the data packet; data indicating the destination station to forward the packet ring network node ring nowadays annulus MAC address; port represents a lower ring node output port of the output port or data packets text exchange in which the local exchange means that the data packets do not enter the ring but to go through node on the ring, and a port output from the node, the port is the output port exchange data packets of text; the two forwarding address forwarding table entry comprising: a destination station and ports; represents a destination ring node data packets at the ring MAC address, the port indicates that the output data packet to the output port at a node on the ring at the ring; a detection module configured to detect whether the ring topology Ethernet hair 变化,并得到检测结果; 判断模块,用于依据所述检测结果,当以太网环的拓扑发生变化时,判断环上节点是否与拓扑变化点相连接,并得到判断结果;地址刷新模块,用于依据所述判断结果,删除所述环上节点的两级转发表中二级转发表的所有地址转发条目,并生成携带地址刷新信息的报文发送给所述环上节点的相邻环上节点;或者接收来自相邻节点的携带地址刷新信息的报文,删除所述环上节点自身的两级转发表中二级转发表的所有地址转发条目,并将接收的报文转发给自身的相邻环上节点。 Changes, and to obtain a detection result; determining module, configured according to the detection result, when the Ethernet ring topology is changed, determining whether the node is connected to the ring topology change point, and obtain the judgment result; address refresh module, with according to the determination result, the ring remove all forwarding addresses on the two two forwarding node forwarding entry, and the adjacent ring that carries the address refreshing information packet to a node on the ring node; or receiving packet carries address refreshing information from neighboring nodes, to delete two forwarding node itself all forwarding addresses two forwarding entry on the ring, and forwards the received packet to itself adjacent ring nodes.
CN 200810224710 2008-12-09 2008-12-09 Novel method and apparatus for Ether ring network address updating CN101426031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810224710 CN101426031B (en) 2008-12-09 2008-12-09 Novel method and apparatus for Ether ring network address updating

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810224710 CN101426031B (en) 2008-12-09 2008-12-09 Novel method and apparatus for Ether ring network address updating

Publications (2)

Publication Number Publication Date
CN101426031A true CN101426031A (en) 2009-05-06
CN101426031B true CN101426031B (en) 2011-09-21

Family

ID=40616359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810224710 CN101426031B (en) 2008-12-09 2008-12-09 Novel method and apparatus for Ether ring network address updating

Country Status (1)

Country Link
CN (1) CN101426031B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938395B (en) * 2009-07-03 2014-08-13 中兴通讯股份有限公司 Method and system for refreshing single ring address of Ethernet ring network
CN102035711B (en) 2009-09-24 2014-02-05 中兴通讯股份有限公司 Method and system for preventing address table from being refreshed repeatedly in protection of Ethernet ring
CN102215119B (en) * 2010-04-12 2016-03-30 中兴通讯股份有限公司 Ethernet ring network stored in the node apparatus and maintenance method information
CN101895454A (en) * 2010-07-19 2010-11-24 南京邮电大学 Multi-layer subring-based address flush method
CN101888340B (en) * 2010-07-19 2012-11-28 南京邮电大学 Method for refreshing regional addresses of subring
CN102594631B (en) * 2011-01-12 2017-07-14 中兴通讯股份有限公司 One way to avoid closed-loop method and system for Ethernet
WO2014134806A1 (en) * 2013-03-07 2014-09-12 Telefonaktiebolaget L M Ericsson (Publ) Method and device for protection switching of ethernet ring
CN104469845A (en) * 2013-09-18 2015-03-25 华为技术有限公司 Message processing method, system and equipment
CN107302463B (en) * 2017-08-09 2018-08-17 武汉微创光电股份有限公司 Auto Contrast ring configuration method of detection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000019680A2 (en) 1998-09-17 2000-04-06 Tod Mcnamara System and method for network flow optimization using traffic classes
EP1187400A2 (en) 2000-08-09 2002-03-13 Nec Corporation Method and system for routing packets over parallel links between neighbor nodes
CN1671122A (en) 2004-03-19 2005-09-21 港湾网络有限公司 Method for implementing message forwarding along RPR ring and RPR network
CN1725731A (en) 2005-05-19 2006-01-25 杭州华为三康技术有限公司 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning
CN101272352A (en) 2008-05-20 2008-09-24 杭州华三通信技术有限公司 Looped network routing method and looped network node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000019680A2 (en) 1998-09-17 2000-04-06 Tod Mcnamara System and method for network flow optimization using traffic classes
EP1187400A2 (en) 2000-08-09 2002-03-13 Nec Corporation Method and system for routing packets over parallel links between neighbor nodes
CN1671122A (en) 2004-03-19 2005-09-21 港湾网络有限公司 Method for implementing message forwarding along RPR ring and RPR network
CN1725731A (en) 2005-05-19 2006-01-25 杭州华为三康技术有限公司 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning
CN101272352A (en) 2008-05-20 2008-09-24 杭州华三通信技术有限公司 Looped network routing method and looped network node

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HoRang Jang等.Hierachical Broadcast Ring Architecture for High-speed Ethernet Networks.《INFOCOM 2006.25th IEEE International Conference on Computer Communications.Proceedings》.2006,1-5.
黄陶明等.RRPP以太环网保护协议.《现代计算机》.2007,(第269期),18-19.

Also Published As

Publication number Publication date Type
CN101426031A (en) 2009-05-06 application

Similar Documents

Publication Publication Date Title
US20080068985A1 (en) Network redundancy method and middle switch apparatus
US6987727B2 (en) Automatic protection switching using link-level redundancy supporting multi-protocol label switching
US20100165883A1 (en) Ring topology discovery mechanism
US20060215544A1 (en) Packet repeater
US20020101875A1 (en) Spanning tree alternate routing bridge protocol
US20050201273A1 (en) Label-switched path network with alternate routing control
US20100110881A1 (en) Method for protection switching in ethernet ring network
US20030117946A1 (en) Method to protect RPR networks of extended topology, in particular RPR ring-to-ring and meshed backbone networks, and relating RPR network
US20080259786A1 (en) System and method for supporting sdh/sonet aps on ethernet
US20070286069A1 (en) Method For Implementing Working/Standby Transmission Path
US20080222447A1 (en) Prevention of frame duplication in interconnected ring networks
US20060092856A1 (en) Node device
US20120147740A1 (en) Technique for dual homing interconnection between communication networks
US20090059799A1 (en) Scaling oam for point-to-point trunking
US20090168647A1 (en) Interworking an Ethernet Ring Network and an Ethernet Network with Traffic Engineered Trunks
JP2005130049A (en) Node
US20090268746A1 (en) Communication system, communication method, node, and program for node
US20030152027A1 (en) Packet protection method and transmission device in ring network, and program therefor
CN1909496A (en) Intersecting Ether ring net and its automatic protecting method, node device for Ether ring net
US20090175176A1 (en) Multi-point and rooted multi-point protection switching
JP2003258822A (en) Packet ring network and inter-packet ring network connection method used in the same
CN1645834A (en) Method and device for loop discovery, space reuse and protection conversion in MAC bridge connecting network
CN1671122A (en) Method for implementing message forwarding along RPR ring and RPR network
US20100189115A1 (en) Edge node redundant system in label switching network
US20120039164A1 (en) System And Method Of Implementing Lightweight Not-Via IP Fast Reroutes In A Telecommunications Network

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted