WO2012139434A1 - 一种设置以太节点检测帧超时时长的方法及系统 - Google Patents

一种设置以太节点检测帧超时时长的方法及系统 Download PDF

Info

Publication number
WO2012139434A1
WO2012139434A1 PCT/CN2012/071452 CN2012071452W WO2012139434A1 WO 2012139434 A1 WO2012139434 A1 WO 2012139434A1 CN 2012071452 W CN2012071452 W CN 2012071452W WO 2012139434 A1 WO2012139434 A1 WO 2012139434A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication port
state
detection frame
node
connected state
Prior art date
Application number
PCT/CN2012/071452
Other languages
English (en)
French (fr)
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
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to JP2014504147A priority Critical patent/JP5711420B2/ja
Priority to EP12771571.2A priority patent/EP2698949B1/en
Priority to KR1020137030127A priority patent/KR101538348B1/ko
Publication of WO2012139434A1 publication Critical patent/WO2012139434A1/zh

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/18Loop-free operations
    • 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/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Definitions

  • the present invention relates to Ethernet technology, and in particular, to a method and system for setting an Ethernet node to detect a frame timeout duration.
  • Ethernet storm caused by Ethernet closed loop.
  • Ethernet According to the Ethernet principle, when an Ethernet node receives a broadcast frame, it forwards it to other ports except the receiving port. If there is a closed loop in the Ethernet, each node in the closed loop will forward the broadcast frame endlessly, and the bandwidth occupied by the broadcast traffic will increase rapidly. This phenomenon is called "network storm". As shown in FIG. 1, the node S1, the node S2, the node S3, and the node S4 form an Ethernet closed loop.
  • the node S3 When the node S3 receives a broadcast frame, it will forward to the node S2, and then the node S2 forwards to the node S1, and the node S1 The node S4 forwards, the node S4 forwards to the node S3, and the node S3 continues to forward to the node S2, thus forming a cyclic forwarding of the broadcast frame S3->S2->S1->S4->S3... ... with the broadcast As the number of frames increases, the bandwidth occupied by broadcast traffic will increase rapidly, which may lead to "network storms".
  • the node sends a detection frame, and if the node can receive the detection frame sent by itself, the description There is a closed loop between the sending port and the receiving port of the node, and the isolated port is required to avoid the closed loop.
  • the detection frame carries its own flag (such as the node MAC address) and the port number information of the sending port.
  • the node receives a detection frame from a communication port, it first determines the node flag in the detection frame. Whether it is the same as its own node flag.
  • the isolation rule may be that the port number of the communication port receiving the detection frame in this node is greater or smaller than the port number of the transmission port carried in the detection frame.
  • the isolation operation means that the port is prohibited from forwarding data (that is, data received from other nodes must not be forwarded) and the port is allowed to receive protocol data (package). Including detection frames).
  • the node does not receive the detection frame sent by itself after the communication port is isolated for a period of time. The isolation of the communication port is removed. The length of the period is called the frame timeout duration, which is also called the loop elimination timing duration.
  • the node After the detection frame of the port expires, the node does not receive the detection frame sent by itself, and the closed loop disappears, and the isolated port is reopened, which will re-form the closed loop.
  • the node S1 in the closed loop formed by the node S1, the node S2, the node S3, and the node S4, after receiving the detection frame sent by itself, the node S1 isolates the corresponding port, and similarly, the node S2, the node S3, and the node S4 both receive.
  • the detection frames sent by themselves are isolated from the corresponding ports. As shown in Figure 3, eventually, each node cannot forward data, resulting in the entire network being unavailable.
  • the node S1 when each node in the closed loop isolates the port, the node S1 will not receive the detection frame sent by itself after the detection frame of the port expires, and will reopen the isolated port (ie, release the isolation). Similarly, the node S2 and the node S3 and node S4 will not receive the detection frame sent by themselves after the port detection frame times out, and will also reopen the isolated port (that is, release the isolation), thus re-forming the closed loop. In addition, this method cannot detect the specific looping point position, which brings difficulties to the maintenance of the network.
  • the technical problem to be solved by the present invention is to provide a method and system for setting an Ethernet node to detect a frame timeout period, preventing bandwidth waste caused by data loop caused by network closed loop, ensuring communication of a node while preventing re-formation of a closed loop, and improving network performance. .
  • the present invention provides a method for setting an Ethernet node to detect a frame timeout duration, which includes: When the Ethernet node determines that the communication port maintains the connectivity state or changes from the connected state to the non-connected state, the detection frame timeout duration of the communication port is set to a value in the first time zone; the Ethernet node detects the state of the communication port. After the transition from the non-connected state to the connected state, the detection frame timeout duration of the communication port is set to a value in the second time zone, and the value in the second time zone is greater than the value in the first time zone.
  • the non-connected state of the communication port comprises a non-working state, a fault state, or a state incapable of transmitting and receiving data.
  • the method further includes: the Ethernet node isolating the communication port when the detection frame sent by the communication port receives the detection frame sent by the communication port and the port number of the communication port satisfies the isolation rule. If the Ethernet node does not receive the detection frame sent by itself after detecting the frame timeout period after isolating the communication port, immediately cancel the isolation of the communication port, or release the communication port after performing a random delay. Isolation.
  • the method wherein a communication frame corresponding to a different Ethernet node is in the first time zone, the detection frame timeout duration is the same or different; the communication port corresponding to the different Ethernet node is located in the The detection frame timeout durations in the second time zone are the same or different.
  • the present invention further provides a system for setting an Ethernet node to detect a frame timeout period, including an Ethernet node, where
  • the Ethernet node is configured to determine that the status of the communication port remains unchanged or changes from the connected state to the non-connected state, and the detection frame timeout period of the communication port is set to a value in the first time region; After the state of the communication port is changed from the non-connected state to the connected state, the detection frame timeout duration of the communication port is set to a value in the second time zone, and the value in the second time zone is greater than the first time zone. Value.
  • the system wherein the non-connected state of the communication port includes a non-working state, a fault state, or a number of unreachable According to the state.
  • the timeout period of the detection frames in the first time zone for the communication ports of different Ethernet nodes is the same or different;
  • the detection frame timeouts for the communication ports of different Ethernet nodes located in the second time zone are the same or different.
  • the present invention further provides a loop detection method, including: when the Ethernet node determines that the communication port maintains the connectivity state or changes from the connected state to the non-connected state, the detection of the communication port is set.
  • the timeout period of the frame is the value in the first time zone.
  • the timeout period of the detection frame of the communication port is set to the value in the second time zone. The value in the second time zone is greater than the value in the first time zone;
  • Each of the Ethernet nodes forming a closed loop determines the looping point of the closed loop by the last Ethernet node in which the open loop can be converted into a closed loop and the isolated port is formed from the closed loop to the open loop.
  • the non-connected state of the communication port includes a non-working state, a fault state, or a state in which data cannot be transmitted or received.
  • the detection frame timeouts of the communication ports corresponding to the different Ethernet nodes located in the first time zone are the same or different;
  • the detection frame timeouts corresponding to the communication ports of different Ethernet nodes located in the second time zone are the same or different.
  • the bandwidth caused by the data loop caused by the ring is wasted, ensuring the node to communicate while preventing the re-formation of the closed loop and improving the network performance.
  • the invention can also detect the looping point, which is convenient for network maintenance.
  • FIG. 1 is a schematic diagram of a "network storm" formed by an Ethernet closed loop in the prior art
  • FIG. 2 is a schematic diagram of avoiding an Ethernet closed loop in the prior art
  • FIG. 3 is a schematic diagram of an isolation port of all nodes of an Ethernet closed loop in the prior art
  • FIG. 5 is a schematic diagram of a network connection in a specific embodiment 1;
  • FIG. 6 is a first schematic diagram of another network connection in the first embodiment
  • FIG. 7 is a second schematic diagram of another network connection in the first embodiment.
  • the method for setting the timeout period for detecting the frame time of the Ethernet node includes: setting the detection frame timeout period of the communication port when the Ethernet node determines that the communication port maintains the connectivity state or changes from the connected state to the non-connected state.
  • the value in the first time zone (expressed as T1); after the Ethernet node detects that the state of the communication port is changed from the non-connected state to the connected state, the detection frame timeout duration of the communication port is set to the value in the second time zone. (Set to T2), where the value in the second time zone is greater than the value in the first time zone.
  • the non-connected state of the communication port includes a non-working state, a fault state, or a state in which data cannot be transmitted or received.
  • the Ethernet node isolates the communication port when the detection frame sent by the communication port receives the detection frame sent by the communication port and the port number of the communication port satisfies the isolation rule; the Ethernet node detects the frame timeout after the communication port is isolated.
  • the isolation of the communication port is immediately released, or after the random delay is performed, the isolation of the communication port is released.
  • each node can receive the self-issued
  • the frame is detected and the corresponding port is isolated to disconnect the closed loop.
  • the detection frame timeout period of the communication port that is switched from the non-connected state to the connected state is set to T2, and the detection frame timeout period T1 of the port that is larger than the non-looping node is opened, and the other nodes first open the isolated port. It can continue to receive the detection frame sent by itself, keeping the port isolated, preventing the re-generation of the closed loop and the cyclic forwarding of the data frame.
  • the detection frame timeout durations of the communication ports of different Ethernet nodes in the first time zone are the same or different; the detection frame timeout durations of the communication ports of different Ethernet nodes in the second time zone are the same or different.
  • the embodiment of the present invention provides a loop detection method, including: when an Ethernet node determines that a communication port maintains a connectivity state or changes from a connected state to a non-connected state, setting the communication port.
  • the timeout period of the detection frame is the value in the first time zone.
  • the timeout period of the detection frame of the communication port is set to a value in the second time zone.
  • the value in the second time zone is greater than the value in the first time zone; and each of the Ethernet nodes forming the closed loop converts the open loop into a closed loop and is isolated from the process of forming a closed loop to an open loop.
  • the Ethernet node where the port is located determines the looping point for this closed loop.
  • the non-connected state of the communication port includes a non-working state, a fault state, or a state in which data cannot be transmitted or received.
  • the detection frame timeout durations of the communication ports of different Ethernet nodes in the first time zone are the same or different; the detection frame timeout durations of the communication ports of different Ethernet nodes in the second time zone are the same or different.
  • FIG. 6 when a link is newly connected between the node S3 and the node S4, a closed loop is formed, and the node S3 and the node S4 detect that the port is in a non-working state (non- The state of the connected state is converted to the connected state, and the detection frame timeout period of the port S3 and the node S4 resetting the port is a large value T2.
  • the node S4 sets the detection frame timeout duration of the port A to 1.5 seconds, and the node S3 sets the port.
  • the detection frame timeout period of B is set to 1.1 seconds, and the port states of the node S1 and the node S2 are not changed, and the detection frame timeout duration of the ports D, E, F, G is maintained by the original value T1, for example, 0.5 seconds.
  • the isolation rule is that when the port number of the communication port that receives the detection frame is greater than the port number of the transmission port carried in the detection frame, the communication port that receives the detection frame is isolated.
  • the node S1, the node S2, the node S3 and the node S4 are all able to receive the detection frame sent by themselves. If the port number of the F port of the node S1 is greater than the G port, the node S1 receives the self from the F port. After the detection frame sent by the G port, the F port is isolated. Similarly, the node S2 isolates the D port, the node S3 isolates the B port, and the node S4 isolates the A port. At this point, the original closed loop cannot communicate normally. After 0.5 seconds, nodes S1 and S2 do not receive the detection frames sent by themselves, and release the isolation of ports F and D respectively.
  • the detection frame timeout period of node S3 is a small value (1.1 seconds), and will be released after waiting for 1.1 seconds.
  • the port is de-isolated.
  • the node S4 can still receive the detection frame sent by itself (in order through SI, S2, S3), the isolation of port A will not be released, and only the port A of node S4 will be In the isolated state, this node S4 is a looping point.
  • the network can be reconnected, which ensures maximum availability and prevents the Ethernet from re-forming the closed loop, which helps the network administrator to conveniently locate it.
  • the waste of bandwidth caused by the data loop caused by the closed loop ensures the node to communicate and prevent the re-formation of the closed loop and improve the network performance.
  • the embodiment of the invention can also detect the looping point and facilitate network maintenance.
  • a method and system for setting an Ethernet node to detect a frame timeout duration can prevent bandwidth waste caused by data loop caused by network closed loop, ensure node communication and prevent re-formation of closed loop, and improve network performance.
  • the embodiment of the invention can also detect the looping point, which is convenient for network maintenance.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种设置以太网节点检测帧超时时长的方法及系统,此方法包括:以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非连通状态时,设置此通信端口的检测帧超时时长为第一时间区域内的值;以太网节点检测到通信端口的状态从非连通状态转换为连通状态后,设置此通信端口的检测帧超时时长为第二时间区域内的值,其中,第二时间区域内的值大于第一时间区域内的值。本发明中设置以太网节点检测帧超时时长的方式可以防止网络闭环导致的数据循环引起的带宽浪费,保障节点连通信的同时防止重新形成闭环,提高网络性能。本发明还可以检测出成环点,便于网络维护。

Description

一种设置以太节点检测帧超时时长的方法及系统
技术领域
本发明涉及以太网技术, 尤其涉及一种设置以太网节点检测帧超时时长 的方法及系统。
背景技术
随着以太网应用范围的扩大, 可靠性问题越来越突出, 一种比较典型的 问题是以太网闭环导致的 "网络风暴" 。
根据以太网原理, 当以太网节点收到一个广播帧后, 会向除接收端口外 的其它端口转发。 如果以太网中存在闭环, 则闭环中的各个节点会无休止的 转发此广播帧, 广播流量占用带宽迅速增大, 这种现象即称为 "网络风暴" 。 如图 1所示, 节点 Sl、 节点 S2、 节点 S3和节点 S4组成了以太网闭环, 当 节点 S3收到一个广播帧后,会向节点 S2转发,接着节点 S2向节点 S1转发, 节点 S1向节点 S4转发, 节点 S4向节点 S3转发, 节点 S3继续向节点 S2转 发, 这样形成了广播帧的循环转发 S3->S2->S1->S4->S3... ... , 随着广播帧的 增加, 广播流量占用的带宽会迅速增大, 可能导致 "网络风暴" 。
为了避免这种以太网闭环导致的流量浪费, 现有技术大都釆用了闭环检 测方法, 其实现的基本原理是: 节点发送一个检测帧, 如果该节点能够收到 自己发出的检测帧, 则说明该节点的发送端口和接收端口之间存在闭环, 需 要隔离端口以避免闭环。 其中, 节点发送检测帧时, 在检测帧中携带自身标 志 (例如节点 MAC地址) 以及发送端口的端口号信息, 此节点从一个通信 端口收到一个检测帧时, 先判断检测帧中的节点标志是否与本身的节点标志 相同, 如果相同, 则说明收到的检测帧就是该节点发出的, 进一步判断此通 信端口的端口号是否满足隔离规则, 如果满足则隔离此通信端口。 此隔离规 则可以是此节点中接收此检测帧的通信端口的端口号大于或小于此检测帧中 携带的发送端口的端口号。 其中, 隔离操作是指禁止此端口转发数据(即不 得将从其它节点接收到的数据转发出去) 同时允许此端口接收协议数据(包 括检测帧)。节点在隔离通信端口后一段时长内没有收到本身发送的检测帧, 则解除对此通信端口的隔离, 此段时长称为测帧超时时长, 也称为成环消失 定时时长。
上述方法简单实用但是也存在一定的局限性。 在现有以太网络中, 当节 点端口的状态从非连通状态转换连通状态时,例如此端口新连接了一条链路, 则可能导致闭环, 此端口所在的节点称为成环点。 形成闭环后, 闭环上的各 个节点都能够检测到闭环, 并且隔离相应端口, 这样虽然避免了闭环, 但是 闭环上的各个节点都不能转发数据, 导致了网络的不可用。 此外, 在闭环上 各个节点检测到闭环后都隔离端口, 端口的检测帧超时时长后, 节点收不到 自身发出的检测帧, 认为闭环消失, 重新打开被隔离的端口, 这样会重新形 成闭环。 如图 2所示, 节点 Sl、 节点 S2、 节点 S3和节点 S4形成的闭环中, 节点 S1收到自己发出的检测帧后, 隔离相应端口, 同理, 节点 S2、 节点 S3 和节点 S4都会收到自己发出的检测帧, 分别隔离相应端口, 如图 3所示, 最终各个节点都不能转发数据, 导致整个网络不可用。 另外, 当闭环中各个 节点隔离端口后, 节点 S1 在端口的检测帧超时时长后收不到自身发出的检 测帧, 将重新打开被隔离的端口 (即解除隔离) , 同理, 节点 S2、 节点 S3 和节点 S4 分别在端口检测帧超时时长后收不到自身发出的检测帧, 也会重 新打开被隔离的端口 (即解除隔离) , 这样, 会重新形成闭环。 另外, 这种 方法无法检测到具体的成环点位置, 为网络的维护带来了困难。
目前, 针对上述检测到闭环的节点隔离端口导致网络大规模不可用和各 检测到闭环的节点打开端口后重新形成闭环, 以及难以检测到成环点位置的 问题, 尚没有解决方案。
发明内容
本发明要解决的技术问题是提供一种设置以太网节点检测帧超时时长的 方法及系统, 防止网络闭环导致的数据循环引起的带宽浪费, 保障节点连通 信的同时防止重新形成闭环, 提高网络性能。
为了解决上述技术问题, 本发明提供了一种设置以太网节点检测帧超时 时长的方法, 其包括: 以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非 连通状态时, 设置此通信端口的检测帧超时时长为第一时间区域内的值; 以 太网节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通 信端口的检测帧超时时长为第二时间区域内的值, 所述第二时间区域内的值 大于所述第一时间区域内的值。
可选地, 所述的方法, 其中, 所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
可选地, 所述的方法, 其还包括: 所述以太网节点在通信端口的检测帧超时时长内收到本身发送的检测帧 并且此通信端口的端口号满足隔离规则时, 隔离此通信端口; 所述以太网节点在隔离通信端口后的检测帧超时时长内未收到本身发送 的检测帧时, 立即解除对此通信端口的隔离, 或者在进行随机延时后, 再解 除对此通信端口的隔离。 可选地, 所述的方法, 其中, 对应于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超 时时长相同或不相同; 对应于不同以太网节点的通信端口位于所述第二时间 区域内的检测帧超时时长相同或不相同。 为了解决上述技术问题, 本发明还提供了一种设置以太网节点检测帧超 时时长的系统, 包括以太网节点, 其中,
所述以太网节点, 设置为判断通信端口的状态维持连通性状态不变或者 从连通状态转换为非连通状态时, 设置此通信端口的检测帧超时时长为第一 时间区域内的值; 以及检测到通信端口的状态从非连通状态转换为连通状态 后, 设置此通信端口的检测帧超时时长为第二时间区域内的值, 所述第二时 间区域内的值大于所述第一时间区域内的值。
可选地, 所述的系统, 其中, 所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
可选地, 所述的系统, 其中,
对于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超时 时长相同或不相同;
对于不同以太网节点的通信端口位于所述第二时间区域内的检测帧超时 时长相同或不相同。
为了解决上述技术问题, 本发明还提供了一种成环点检测方法, 包括: 以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非连通 状态时, 设置此通信端口的检测帧超时时长为第一时间区域内的值; 以太网 节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通信端 口的检测帧超时时长为第二时间区域内的值, 所述第二时间区域内的值大于 第一时间区域内的值;
形成闭环的各以太网节点从形成闭环到开环的过程中, 将最后一个使此 开环能够转换为闭环的并且被隔离的端口所在的以太网节点确定为此闭环的 成环点。
可选地, 所述的方法, 其中,
所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
可选地, 所述的方法, 其中,
对应于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超 时时长相同或不相同;
对应于不同以太网节点的通信端口位于所述第二时间区域内的检测帧超 时时长相同或不相同。
环导致的数据循环引起的带宽浪费, 保障节点连通信的同时防止重新形成闭 环, 提高网络性能。 本发明还可以检测出成环点, 便于网络维护。 附图概述
图 1为现有技术中以太网闭环形成 "网络风暴" 的示意图;
图 2为现有技术中避免以太网闭环的示意图;
图 3为现有技术中以太网闭环所有节点隔离端口的示意图;
图 4为本发明的实施流程的示意图;
图 5为具体实施例一中网络连接情况的示意图;
图 6为具体实施例一中另一网络连接情况的示意图一;
图 7为具体实施例一中另一网络连接情况的示意图二。
本发明的较佳实施方式
下文中将结合附图对本发明的实施方式进行详细说明。 需要说明的是, 组合。
如图 4所示, 设置以太网节点检测帧超时时长的方法包括: 以太网节点 判断通信端口维持连通性状态不变或者从连通状态转换为非连通状态时, 设 置此通信端口的检测帧超时时长为第一时间区域内的值(表示为 T1 ); 以太 网节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通信 端口的检测帧超时时长为第二时间区域内的值(设置为 T2 ) , 其中, 第二时 间区域内的值大于第一时间区域内的值。
通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数据的 状态。
以太网节点在通信端口的检测帧超时时长内收到本身发送的检测帧并且 此通信端口的端口号满足隔离规则时, 隔离此通信端口; 以太网节点在隔离 通信端口后的检测帧超时时长内未收到本身发送的检测帧时, 立即解除对此 通信端口的隔离, 或者在进行随机延时后, 再解除对此通信端口的隔离。
通过上述方法的设置, 各节点形成闭环后, 各节点均能收到本身发出的 检测帧, 并陆续隔离相应端口使闭环断开。 由于从非连通状态转换为连通状 态的通信端口的检测帧超时时长设置为 T2,大于非成环节点的端口的检测帧 超时时长 T1 , 其它节点会先打开被隔离的端口, 此时成环节点能够够继续收 到自己发出的检测帧, 使端口保持隔离状态, 阻止了闭环的再次生成和数据 帧的循环转发。
对于不同以太网节点的通信端口位于第一时间区域内的检测帧超时时长 相同或不相同; 对于不同以太网节点的通信端口位于第二时间区域内的检测 帧超时时长相同或不相同。
在上述方法基础上,本发明实施方式提供了一种成环点检测方法, 包括: 以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非连通 状态时, 设置此通信端口的检测帧超时时长为第一时间区域内的值; 以太网 节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通信端 口的检测帧超时时长为第二时间区域内的值, 其中, 第二时间区域内的值大 于第一时间区域内的值; 形成闭环的各以太网节点从形成闭环到开环的过程 中, 将最后一个使此开环能够转换为闭环的并且被隔离的端口所在的以太网 节点确定为此闭环的成环点。
通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数据的 状态。
对于不同以太网节点的通信端口位于第一时间区域内的检测帧超时时长 相同或不相同; 对于不同以太网节点的通信端口位于第二时间区域内的检测 帧超时时长相同或不相同。
上述方法对应的系统通过以太网节点完成上述方法,此处不再重复说明。
具体实施例一
如图 5所示为一以太网拓朴图, 节点 Sl、 节点 S2、 节点 S3和节点 S4 组成的网络中没有闭环, 各个节点均收不到自身发出的检测帧, 没有端口隔 离, 各节点能够正常通信。 如图 6所示, 当在节点 S3和节点 S4之间新连接 一条链路后, 形成了闭环, 节点 S3和节点 S4检测到端口由非工作状态(非 连通状态的一种)转换为连通状态, 节点 S3和节点 S4重新设置端口的检测 帧超时时长为较大值 T2,例如节点 S4将端口 A的检测帧超时时长设置为 1.5 秒, 节点 S3将端口 B的检测帧超时时长设置为 1.1秒, 而节点 S1和节点 S2 的端口状态未改变, 则端口 D、 E、 F、 G的检测帧超时时长依保持原值 T1 例如 0.5秒。 假设隔离规则为接收到检测帧的通信端口的端口号大于此检测 帧中携带的发送端口的端口号时, 隔离接收到检测帧的通信端口。 由于闭环 的形成, 节点 Sl、 节点 S2、 节点 S3和节点 S4均能够收到自己发出的检测 帧, H没节点 S1的 F端口的端口号大于 G端口,则节点 S1在 F端口收到本 身从 G端口发出的检测帧后, 隔离 F端口, 同理, 节点 S2隔离 D端口, 节 点 S3隔离 B端口, 节点 S4隔离 A端口。 至此, 原闭环不能正常通信。 0.5 秒后,节点 S1和 S2未收本身发送的检测帧,分别解除对端口 F和 D的隔离, 节点 S3的检测帧超时时长为较小值 ( 1.1秒) , 在等待 1.1秒后也会解除对 相应端口解除隔离, 此时节点 S4仍可接收到自身发出的检测帧 (依次通过 SI , S2、 S3 ) , 则不会解除对端口 A的隔离, 最终只会有节点 S4的 A端口 处于被隔离状态, 此节点 S4便为成环点, 如图 7所示, 此时网络能够重新 连通, 保障了最大的可用性, 同时防止了以太网重新形成闭环, 有助于网络 管理者方便的定位到导致闭环的节点和链路。
闭环导致的数据循环引起的带宽浪费, 保障节点连通信的同时防止重新形成 闭环, 提高网络性能。 本发明实施方式还可以检测出成环点,便于网络维护。
需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互任意组合。 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
工业实用性 本发明实施方式的一种设置以太网节点检测帧超时时长的方法及系统, 可以防止网络闭环导致的数据循环引起的带宽浪费, 保障节点连通信的同时 防止重新形成闭环, 提高网络性能。 本发明实施方式还可以检测出成环点, 便于网络维护。

Claims

权 利 要 求 书
1、 一种设置以太网节点检测帧超时时长的方法, 其包括:
以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非 连通状态时, 设置此通信端口的检测帧超时时长为第一时间区域内的值; 以 太网节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通 信端口的检测帧超时时长为第二时间区域内的值, 所述第二时间区域内的值 大于所述第一时间区域内的值。
2、 如权利要求 1所述的方法, 其中, 所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
3、 如权利要求 1或 2所述的方法, 其还包括:
所述以太网节点在通信端口的检测帧超时时长内收到本身发送的检测帧 并且此通信端口的端口号满足隔离规则时, 隔离此通信端口; 所述以太网节点在隔离通信端口后的检测帧超时时长内未收到本身发送 的检测帧时, 立即解除对此通信端口的隔离, 或者在进行随机延时后, 再解 除对此通信端口的隔离。
4、 如权利要求 1或 2所述的方法, 其中, 对应于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超 时时长相同或不相同; 对应于不同以太网节点的通信端口位于所述第二时间 区域内的检测帧超时时长相同或不相同。
5、一种设置以太网节点检测帧超时时长的系统,包括以太网节点,其中, 所述以太网节点, 设置为判断通信端口的状态维持连通性状态不变或者 从连通状态转换为非连通状态时, 设置此通信端口的检测帧超时时长为第一 时间区域内的值; 以及检测到通信端口的状态从非连通状态转换为连通状态 后, 设置此通信端口的检测帧超时时长为第二时间区域内的值, 所述第二时 间区域内的值大于所述第一时间区域内的值。
6、 如权利要求 5所述的系统, 其中, 所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
7、 如权利要求 5或 6所述的系统, 其中,
对于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超时 时长相同或不相同;
对于不同以太网节点的通信端口位于所述第二时间区域内的检测帧超时 时长相同或不相同。
8、 一种成环点检测方法, 其包括:
以太网节点判断通信端口维持连通性状态不变或者从连通状态转换为非 连通状态时, 设置此通信端口的检测帧超时时长为第一时间区域内的值; 以 太网节点检测到通信端口的状态从非连通状态转换为连通状态后, 设置此通 信端口的检测帧超时时长为第二时间区域内的值, 所述第二时间区域内的值 大于第一时间区域内的值;
形成闭环的各以太网节点从形成闭环到开环的过程中, 将最后一个使此 开环能够转换为闭环的并且被隔离的端口所在的以太网节点确定为此闭环的 成环点。
9、 如权利要求 8所述的方法, 其中,
所述通信端口的非连通状态包括非工作状态、 故障状态或者不能收发数 据的状态。
10、 如权利要求 8或 9所述的方法, 其中,
对应于不同以太网节点的通信端口位于所述第一时间区域内的检测帧超 时时长相同或不相同;
对应于不同以太网节点的通信端口位于所述第二时间区域内的检测帧超 时时长相同或不相同。
PCT/CN2012/071452 2011-04-13 2012-02-22 一种设置以太节点检测帧超时时长的方法及系统 WO2012139434A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2014504147A JP5711420B2 (ja) 2011-04-13 2012-02-22 イーサネットノードの検出フレームタイムアウト時間の設定方法及びシステム
EP12771571.2A EP2698949B1 (en) 2011-04-13 2012-02-22 METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
KR1020137030127A KR101538348B1 (ko) 2011-04-13 2012-02-22 이더넷 노드의 검출 프레임 타임아웃 지속시간을 설정하는 방법 및 시스템

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110092503.2A CN102739466B (zh) 2011-04-13 2011-04-13 一种设置以太网节点检测帧超时时长的方法及系统
CN201110092503.2 2011-04-13

Publications (1)

Publication Number Publication Date
WO2012139434A1 true WO2012139434A1 (zh) 2012-10-18

Family

ID=46994296

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071452 WO2012139434A1 (zh) 2011-04-13 2012-02-22 一种设置以太节点检测帧超时时长的方法及系统

Country Status (5)

Country Link
EP (1) EP2698949B1 (zh)
JP (1) JP5711420B2 (zh)
KR (1) KR101538348B1 (zh)
CN (1) CN102739466B (zh)
WO (1) WO2012139434A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105281831B (zh) * 2015-12-04 2018-05-25 上海斐讯数据通信技术有限公司 光网络环路检测方法、系统及光网络设备
CN105897515A (zh) * 2016-06-12 2016-08-24 烽火通信科技股份有限公司 基于ipran设备的以太网环路检测及处理方法
CN108768691A (zh) * 2018-04-16 2018-11-06 复旦大学 基于snmp协议的以太网自动拓扑发现及成环定位检测系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988476A (zh) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 一种自适应快速环路检测和环路阻断的方法及装置
CN101141366A (zh) * 2006-09-07 2008-03-12 华为技术有限公司 一种在环状以太网中避免数据环路的方法
EP2194676A1 (en) * 2007-09-25 2010-06-09 ZTE Corporation Ethernet ring system, its main node and intialization method
WO2011020330A1 (zh) * 2009-08-20 2011-02-24 中兴通讯股份有限公司 以太网拓扑管理的方法与装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002261785A (ja) * 2001-03-02 2002-09-13 Hitachi Ltd シリアルバス処理方法および装置
JP3860017B2 (ja) * 2001-11-13 2006-12-20 シャープ株式会社 データ通信方法、送受信回路、該送受信回路を備えた情報機器および情報通信ネットワーク
US7835265B2 (en) * 2002-10-31 2010-11-16 Conexant Systems, Inc. High availability Ethernet backplane architecture
JP2004222106A (ja) * 2003-01-17 2004-08-05 Fujitsu Ltd スパニングツリープロトコル使用のlanにおけるループ発生の検出及び解除方法並びに中継装置
JP2006050222A (ja) * 2004-08-04 2006-02-16 Canon Inc パケットの無限ループ回避方法
US7911938B2 (en) * 2006-01-20 2011-03-22 Cisco Technology, Inc. System and method for preventing loops in the presence of control plane failures
CN101072154B (zh) * 2007-03-02 2011-09-21 中兴通讯股份有限公司 以太环网切换方法
US7944815B2 (en) * 2008-02-14 2011-05-17 Allied Telesis Holdings K.K. System and method for network recovery from multiple link failures
CN101741647B (zh) * 2009-12-31 2012-09-05 中兴通讯股份有限公司 一种测量以太环网切换时间的方法及装置
CN101931573B (zh) * 2010-08-31 2012-07-04 武汉烽火网络有限责任公司 以太网环路定位方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141366A (zh) * 2006-09-07 2008-03-12 华为技术有限公司 一种在环状以太网中避免数据环路的方法
CN1988476A (zh) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 一种自适应快速环路检测和环路阻断的方法及装置
EP2194676A1 (en) * 2007-09-25 2010-06-09 ZTE Corporation Ethernet ring system, its main node and intialization method
WO2011020330A1 (zh) * 2009-08-20 2011-02-24 中兴通讯股份有限公司 以太网拓扑管理的方法与装置

Also Published As

Publication number Publication date
EP2698949A4 (en) 2014-12-24
CN102739466B (zh) 2017-10-17
KR20140009488A (ko) 2014-01-22
CN102739466A (zh) 2012-10-17
EP2698949A1 (en) 2014-02-19
EP2698949B1 (en) 2019-06-19
JP5711420B2 (ja) 2015-04-30
JP2014513891A (ja) 2014-06-05
KR101538348B1 (ko) 2015-07-22

Similar Documents

Publication Publication Date Title
WO2008131624A1 (fr) Système ethernet réparti et son utilisation pour détection de dysfonctionnement
JP5150652B2 (ja) 同期ネットワークデバイス
CN100450036C (zh) 一种rrpp与局部stp组网故障恢复时防止环路的方法和装置
WO2016116050A1 (zh) 环保护链路故障保护方法、设备及系统
CN101072154B (zh) 以太环网切换方法
WO2012065400A1 (zh) 一种设备的保护方法及装置
WO2010031210A1 (zh) 一种跨环转发协议帧的方法及以太网多环中的共享节点
WO2010031296A1 (zh) 以太网环路保护故障恢复的控制方法及以太网环路节点
WO2017000832A1 (zh) Mac地址的同步方法、装置及系统
EP2466804B1 (en) Protection switching method for ethernet automatic protection switching (eaps) ring network and master node in eaps ring network
CN101714939A (zh) 一种以太环网主节点的故障处理方法及相应以太环网
WO2014201903A1 (zh) 分布式弹性网络互连系统中协作方法和系统
US10090952B2 (en) Master/slave negotiation associated with a synchronous ethernet network
CN101217445B (zh) 防止环路产生的方法和以太环网系统
WO2012139434A1 (zh) 一种设置以太节点检测帧超时时长的方法及系统
WO2010139173A1 (zh) 一种地址刷新方法及系统
EP2697940A1 (en) Handling a fault in an ethernet ring network
WO2012068866A1 (zh) 一种以太环网中刷新mac的方法及系统
CN101237319A (zh) 以太环网中的时间同步方法和以太环网系统
WO2014040422A1 (zh) 介质访问控制地址学习控制方法、装置和路由桥
WO2012174957A1 (zh) 一种分布式链路聚合方法及实现该方法的节点
JP5954793B2 (ja) 通信接続装置、通信制御装置およびそのプログラム並びに通信制御方法
KR101256649B1 (ko) 네트워크에서 노드의 보호 절체 방법
WO2012094924A1 (zh) 一种避免以太网闭环的方法和系统
JP5388211B2 (ja) 通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12771571

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2014504147

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2012771571

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20137030127

Country of ref document: KR

Kind code of ref document: A