WO2009115037A1 - 以太网链路聚合端口配置的方法和设备 - Google Patents

以太网链路聚合端口配置的方法和设备 Download PDF

Info

Publication number
WO2009115037A1
WO2009115037A1 PCT/CN2009/070847 CN2009070847W WO2009115037A1 WO 2009115037 A1 WO2009115037 A1 WO 2009115037A1 CN 2009070847 W CN2009070847 W CN 2009070847W WO 2009115037 A1 WO2009115037 A1 WO 2009115037A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
port
physical port
packet
receiving
Prior art date
Application number
PCT/CN2009/070847
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 华为技术有限公司
Publication of WO2009115037A1 publication Critical patent/WO2009115037A1/zh

Links

Classifications

    • 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
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags

Definitions

  • the present invention relates to the field of data communications, and in particular, to a method and device for configuring an Ethernet link aggregation port.
  • Eth-Trunk (Ethernet Trunk) technology is used to bundle multiple physical Ethernet ports into one logical port.
  • Data communication devices such as Ethernet switches and routers, can use Trunk technology to increase network bandwidth, load sharing, and service protection.
  • the Eth-Trunk port is a logical port and does not carry true packet forwarding, the traffic of the logical port is still forwarded to a physical port to which it is bound according to a mechanism (such as hash). In this case, if the status of the Eth-Trunk member ports on the two ends of the link is inconsistent, packets will be lost.
  • a data communication device generally uses the following two methods to detect a state change event of a physical port: 1) A state change event of a physical port is detected by a CPU using a polling mechanism.
  • the process of detecting the state change event of the physical port by using the polling mechanism is that the system creates a polling task, and the interval t time queries whether the state of each port changes. If a change is found, for example, from DOWN to UP. , the polling task will handle the corresponding event.
  • the above-mentioned existing technology may cause the Eth-Trunk to lose packets when the member port is UP.
  • device A has a polling period of 100 milliseconds and device B has a polling period of 500 milliseconds.
  • A will detect the port UP and send the packet to the port.
  • B has not detected the port UP.
  • A sends the packet to the B through the Eth-Trunk. The message was lost.
  • the process of using the interrupt to notify the CPU of the state change event of the physical port is that when the state of the physical port changes, an interrupt is reported to the CPU, and the CPU can quickly process the state change event of the physical port after receiving the interrupt.
  • the embodiment of the present invention provides a method and device for configuring an Ethernet link aggregation port.
  • the technical solution is as follows:
  • a method for configuring an Ethernet link aggregation port includes:
  • the physical port is configured to receive only the packet and the packet is not sent. After a certain period of time, the physical port is configured to be in the normal forwarding state.
  • an apparatus comprising:
  • a determining module configured to determine a state change of a physical port of the device
  • a determining module configured to determine, after the determining module determines that the physical port is in a state change, whether the physical port is a port bound to an Ethernet link aggregation port, and whether the state change is changed from a blocking state to a a configuration module, configured to: when the determining module determines that the physical port is a port to which an Ethernet link aggregation port is bound, and the state change is changed from a blocked state to an open state, the physical The port is configured to send and receive packets without receiving packets. After a certain period of time, the status of the physical port is configured to be in the normal forwarding state.
  • the port after detecting that the state of the physical port bound to the Eth-Trunk is changed from DOWN to UP, the port is configured to receive only the packet and not send the packet, which effectively prevents the Eth-Trunk port from being The message was lost.
  • FIG. 1 is a schematic diagram of communication of a data communication device through an Eth-Trunk port in the prior art
  • FIG. 2 is a flowchart of a method for configuring an Ethernet link aggregation port according to Embodiment 1 of the present invention
  • 3 is a schematic structural diagram of a device according to Embodiment 2 of the present invention
  • FIG. 4 is another schematic structural diagram of a device according to Embodiment 2 of the present invention.
  • FIG. 5 is a block diagram showing still another structure of the apparatus provided in Embodiment 2 of the present invention. detailed description
  • the port after detecting that the state of the physical port bound to the Eth-Trunk is changed from DOWN to UP, the port is configured to receive only the packet and not send the packet, and the Eth-Trunk packet is prevented. The purpose of the loss.
  • the embodiment of the invention provides a method for configuring an Ethernet link aggregation port, which specifically includes:
  • the physical port is configured to receive packets only when the packets are not sent. After a certain period of time, the physical port is sent to the normal forwarding state.
  • the method for configuring the aggregation port of the Ethernet link includes:
  • the physical port is determined to be the port bound to the Eth-Trunk port, and the status change of the physical port is changed from DOWN to UP. If yes, execute 106; otherwise, end .
  • the physical port is configured to be transmitted and received by a chip or device having a forwarding engine function, for example, an ASIC (Application Specific Integrated Circuit), P (Network Processor, network processing). And so on.
  • a forwarding engine function for example, an ASIC (Application Specific Integrated Circuit), P (Network Processor, network processing). And so on.
  • the forwarding engine is a process for forwarding hardware of packets by looking up various entries. For example, by using the flexibility of P, add a Port Bitmap field to the Eth-Trunk's property register, configure the physical port's sending and receiving status through this field, and add the port number of the physical port whose port state has just changed from DOWN to UP to the Port Bitmap. For example, if port 1 and port 4 are changed from DOWN to UP, the port number is added to the Port Bitmap field. After the Eth-Trunk port forwards the packet to the physical port to which it is bound, the Port Bitmap field is found. If the port contains port 1 and port 4, the packet is not forwarded from port 1 or port 4. That is, the physical port receives only packets and does not send packets.
  • the transceiver status of the physical port in 106 is configured to be in a normal forwarding state.
  • the packet is sent to the normal forwarding state.
  • the physical port can receive both the packet and the packet. For example, for P, after the timer reaches the preset duration, the port number of the physical port is deleted from the Port Bitmap field, and the packet is forwarded to the physical port. , to achieve normal forwarding.
  • the T is not less than the polling period P of the receiver of the packet. In actual applications, T can be configured by the user through the command line or other methods.
  • the range of T can be selected as T greater than or equal to P and less than or equal to 1.5P. In addition, you can select a timer to time.
  • the physical port is configured to receive the packet
  • the physical port can be configured to receive the packet. Forward status.
  • the process of querying whether the physical port receives the packet is as follows: The ASIC chip or P stores the statistics of the number of packets received by each physical port on the data communication device, and each time the physical port receives a packet, the corresponding The count value of the statistics is increased by 1; the ASIC or P also provides an API (Application Programming Interface) function, and the data communication device can query whether the count value of the received message of the physical port is increased through the API function, and if so, it indicates The physical port has begun to receive the packet sent by the peer data communication device, that is, the peer data communication device and its corresponding physical port are already opened, that is, the physical port can send a message to the opposite end; the query time can be set by the user. The query can be queried periodically or not, but the length of the query does not exceed the polling period of the peer device. For example, it can be
  • the state change of the physical port may also be determined by interrupting the notification, that is, 101 to 70 in the above method.
  • the status of the physical port is configured to receive only the packet and not send the packet.
  • the Eth-Trunk member port is effectively prevented from being lost in the Up state. This improves the reliability of Eth-Trunk technology.
  • an embodiment of the present invention provides an apparatus, where the apparatus includes:
  • a determining module 301 configured to determine a state change of a physical port of the device
  • the determining module 302 is configured to determine, after the determining module 301 determines that the physical port is in a state change, whether the physical port is a port bound to the Ethernet link aggregation port, and whether the state change is changed from the blocked state to the open state;
  • the configuration module 303 is configured to: when the determining module 302 determines that the physical port is a port to which the Ethernet link aggregation port is bound, and the state change of the physical port is changed from the blocked state to the open state, the physical port is configured to be sent and received. After receiving a packet, the packet is not sent. After a certain period of time, the physical port is sent to the normal forwarding state.
  • the foregoing apparatus may further include:
  • the timing module 304 is configured to start timing after the configuration module 303 configures the sending and receiving state of the physical port to receive only the message and does not send the message state.
  • the configuration module 303 may specifically include:
  • the first configuration unit is configured to: when the determining module 302 determines that the physical port is a port to which the Ethernet link aggregation port is bound, and the state change of the physical port is changed from the blocked state to the open state, the physical port is configured to be sent and received. The status of the packet is not sent for receiving only packets.
  • the second configuration unit is configured to configure the sending and receiving state of the physical port to be a normal forwarding state when the timing module 304 is clocked for more than a preset duration, and the preset duration is not less than a polling period of the packet receiver.
  • the foregoing apparatus may further include:
  • the query module 305 is configured to: after the configuration module 303 configures the sending and receiving state of the physical port to receive only the packet, the physical port receives the packet;
  • the foregoing configuration module 303 may specifically include:
  • a third configuration unit configured to: when the determining module 302 determines that the physical port is a port to which the Ethernet link aggregation port is bound, and the state change is changed from the blocking state to the open state, configuring the sending and receiving state of the physical port to be only The status of the received message is not sent.
  • the fourth configuration unit is configured to configure the physical port to send and receive the physical port to the normal forwarding state after the query module 305 queries the physical port to receive the packet.
  • the determining module 301 may specifically include:
  • a detecting unit configured to poll and detect a state change of a physical port of the device
  • the determining module 301 may further include: a receiving unit, configured to receive an interrupt notification;
  • a determining unit configured to determine, when the receiving unit receives the interrupt notification, a state change of the physical port of the device.
  • the configuration module may be specifically a chip or device having a forwarding engine function, such as an ASIC or a P.
  • the timer module may be specifically a timer.
  • the configuration module configures the sending and receiving state of the physical port to receive only the packet.
  • the packet is sent to prevent the Eth-Trunk member from losing packets in the UP state. This improves the reliability of Eth-Trunk technology.
  • the embodiments of the present invention can be implemented by a combination of software and hardware, and the corresponding software can be stored in a readable storage medium, such as a hard disk, a floppy disk or an optical disk of a computer.

Landscapes

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

Description

以太网链路聚合端口配置的方法和设备 技术领域
本发明涉及数据通信领域, 特别涉及一种以太网链路聚合端口配置的方法和设备。 背景技术 说
Eth-Trunk (Ethernet Trunk, 以太网链路聚合) 技术是将多个以太网物理端口捆绑为一个 逻辑端口来使用。 数据通信设备, 例如, 以太网交换机和路由器等, 可以使用 Trunk技术来 提高网络带宽, 进行负载分担与业务保护。
因为 Eth-Trunk端口是一个逻辑端口,并不承载真书正的报文转发,所以该逻辑端口的流量 仍然要按照某种机制 (例如哈希) 转发到其所绑定的某个物理端口。 在这种情况下, 如果链 路两端 Eth-Trunk成员端口的状态不一致就会导致报文丢失。
现有技术中, 数据通信设备一般采用以下两种方式来检测物理端口的状态改变事件: 1 ) 通过 CPU利用轮询机制检测物理端口的状态改变事件。
利用轮询机制检测物理端口的状态改变事件过程是, 系统创建一个轮询任务, 间隔 t时 间查询各个端口的状态是否发生变化, 如果发现有改变, 例如, 从 DOWN (阻塞)到 UP (打 开), 则轮询任务会进行相应的事件处理。
在实际应用中, 由于不同厂家生产的产品的轮询周期 t有很大的差别, 所以上述现有技 术可能会导致 Eth-Trunk在成员端口 UP的时候报文丢失。 参见图 1, 假设设备 A的轮询周期 为 100毫秒, 设备 B的轮询周期是 500毫秒。 这样当 Eth-Trunk的一个成员端口 UP的时候, 就会存在 A检测到了端口 UP, 并把报文发到了此端口, 但是 B还未检测到端口 UP, 结果造 成 A通过 Eth-Trunk发往 B的报文丢失。
2) 利用中断通知 CPU物理端口的状态改变事件。
利用中断通知 CPU的物理端口的状态改变事件的过程是, 当物理端口的状态改变时, 就 向 CPU上报一个中断, CPU收到该中断后可以很迅速的处理物理端口的状态改变事件。
上述方式在两端设备都是采用中断通知的条件下, 可以避免报文丢失的问题。 但是, 如 果两端设备不是都采用中断通知, 例如, 一端设备采用轮询方式, 还是会存在报文丢失的问 题。 参见图 1, 假设设备 A是中断通知, 设备 B是轮询。 当 Eth-Trunk端口的一个成员端口 UP的时候, A立刻检测到了端口 UP, 并把报文发到了此端口, 但是另一端 B也许还未轮询 到此端口 UP, 结果造成 A通过 Eth-Trunk端口发往 B的报文丢失。
综上所述, 在实现本发明的过程中, 发明人发现上述现有技术中至少存在以下缺点: 当两端数据通信设备都通过轮询方式, 或一端数据通信设备通过轮询方式检测物理端口 的状态改变事件时, 存在报文丢失的问题。 发明内容
为了防止以太网链路聚合端口丢失报文, 本发明实施例提供了一种以太网链路聚合端口 配置的方法和设备。 所述技术方案如下:
一方面, 提供了一种以太网链路聚合端口配置的方法, 所述方法包括:
确定物理端口的状态变化;
判断所述物理端口是否为以太网链路聚合端口所绑定的端口且所述状态变化是否由阻塞 状态变为打开状态;
如果是, 则将所述物理端口的收发状态配置为只接收报文不发送报文状态, 在经过一定 的时间后, 将所述物理端口的收发状态配置为正常转发状态。
另一方面, 还提供了一种设备, 所述设备包括:
确定模块, 用于确定所述设备的物理端口的状态变化;
判断模块, 用于当所述确定模块确定出所述物理端口发生状态变化后, 判断所述物理端 口是否为以太网链路聚合端口所绑定的端口且所述状态变化是否由阻塞状态变为打开状态; 配置模块, 用于当所述判断模块判断出所述物理端口是以太网链路聚合端口所绑定的端 口且所述状态变化是由阻塞状态变为打开状态时, 将所述物理端口的收发状态配置为只接收 报文不发送报文状态, 在经过一定的时间后, 将所述物理端口的收发状态配置为正常转发状 态。
本发明实施例提供的技术方案的有益效果是:
本发明实施例在检测到 Eth-Trunk端口所绑定的物理端口的状态由 DOWN变为 UP后, 将此端口配置为只接收报文而不发送报文, 有效地防止了 Eth-Trunk端口的报文丢失。 附图说明
图 1是现有技术中数据通信设备通过 Eth-Trunk端口通信的示意图;
图 2是本发明实施例 1提供的以太网链路聚合端口配置的方法的流程图; 图 3是本发明实施例 2提供的设备的结构示意图;
图 4是本发明实施例 2提供的设备的另一种结构示意图;
图 5是本发明实施例 2提供的设备的又一种结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作进 一步地详细描述。
本发明实施例在检测到 Eth-Trunk端口所绑定的物理端口的状态由 DOWN变为 UP后, 将此端口配置为只接收报文而不发送报文, 达到了防止 Eth-Trunk端口报文丢失的目的。
本发明实施例提供了一种以太网链路聚合端口配置的方法, 具体包括:
确定物理端口的状态变化;
判断物理端口是否为以太网链路聚合端口所绑定的端口且状态变化是否由阻塞状态变为 打开状态;
如果是, 则将物理端口的收发状态配置为只接收报文不发送报文状态, 在经过一定的时 间后, 将物理端口的收发状态配置为正常转发状态。
实施例 1
由于当一端数据通信设备通过轮询方式检测物理端口的状态改变时, 才会发生报文丢失 的问题, 因此本实施例中假设对端数据通信设备通过轮询方式检测物理端口的状态变化, 下 面以本端数据通信设备通过轮询方式检测物理端口的状态变化为例进行说明, 参见图 2, 本 实施例提供的以太网链路聚合端口配置的方法, 具体包括:
101: 依次检测物理端口的状态变化, 判断是否每个物理端口都检测过, 即是否完成一次 轮询, 如果是, 则执行 104; 否则, 执行 102。
102: 检测下一个物理端口。
103: 判断物理端口是否发生状态变化, 如果是, 则执行 105; 否则返回 101。
104: 间隔时间 t, 继续下一次轮询检测, 即返回 101。
105: 确定出物理端口发生状态变化后, 判断物理端口是否为 Eth-Trunk端口所绑定的端 口且该物理端口的状态变化是否为由 DOWN变为 UP, 如果是, 则执行 106; 否则, 结束。
106: 将物理端口的收发状态配置为只接收报文不发送报文状态。
本实施例中,通过具有转发引擎功能的芯片或设备配置物理端口的收发状态,例如, ASIC (Application Specific Integrated Circuit, 专用集成电路)、 P (Network Processor , 网络处理 器) 等。
转发引擎是一种通过查找各种表项, 实现报文的硬件转发的流程。 例如, 利用 P 的灵 活性, 在 Eth-Trunk的属性寄存器中增加一个 Port Bitmap字段, 通过该字段配置物理端口的 收发状态, 将端口状态刚从 DOWN变为 UP的物理端口的端口号加入 Port Bitmap字段, 例 如, 端口 1和端口 4从 DOWN变为 UP, 则将其端口号加入 Port Bitmap字段, 在 Eth-Trunk 端口在向其所绑定的物理端口转发报文后, 查找 Port Bitmap字段, 发现该字段中包含端口 1 和端口 4, 则不从端口 1和端口 4转发该报文, 即该物理端口只接收报文不发送报文。
107: 在经过一定的时间后, 将 106中的物理端口的收发状态配置为正常转发状态。 在 106中将物理端口的收发状态配置为只接收报文不发送报文状态后, 开始计时, 当计 时达到预设的时长 T时, 将物理端口的收发状态配置为正常转发状态 (该状态下物理端口既 可以接收报文又可以发送报文), 例如, 对于 P, 当计时达到预设的时长后, 将物理端口的 端口号从 Port Bitmap字段删除, 从而在报文转发到该物理端口后, 实现正常转发。 其中, T 不小于报文接收方的轮询周期 P, 在实际应用中, T 可以由用户通过命令行或者其他方式进 行配置, T的范围可以选为 T大于等于 P且小于等于 1.5P。 另外, 可以选择定时器进行计时。
另外, 在 106中将物理端口的收发状态配置为只接收报文不发送报文状态后, 还可以查 询该物理端口是否收到报文, 如果是, 则将该物理端口的收发状态配置为正常转发状态。 其 中, 查询该物理端口是否收到报文的过程如下: ASIC芯片或者 P里保存着数据通信设备上 每个物理端口接收报文数目的统计信息, 物理端口每收到一个报文后, 相应的统计信息的计 数值就增加 1 ; ASIC或 P还提供了 API (Application Programming Interface, 应用编程接口) 函数, 数据通信设备可以通过 API函数查询物理端口接收报文的计数值是否增加, 如果是就 表明该物理端口已经开始接收对端数据通信设备发送的报文, 即对端数据通信设备与其对应 的物理端口已经打开, 即可以通过该物理端口向对端发送报文; 查询的时间可以由用户设定, 可以定时查询, 也可以不定时查询, 但查询的时长最长不超过对端设备的轮询周期, 例如, 可以设定为 ls。
进一步地, 还可以通过中断通知的方式确定物理端口的状态变化, 即上述方法中 101至
104还可以由以下方式代替:
收到 CPU的中断通知后, 确定物理端口的状态变化。
本实施例在判断出物理端口是 Eth-Trunk端口所绑定的端口且该物理端口的状态变化由 DOWN变为 UP时, 将该物理端口的收发状态配置为只接收报文不发送报文, 有效地防止了 Eth-Trunk成员端口在 UP状态下的报文丢失, 提高了采用 Eth-Trunk技术进行通信的可靠性。 实施例 2
参见图 3, 本发明实施例提供了一种设备, 该设备包括:
确定模块 301, 用于确定该设备的物理端口的状态变化;
判断模块 302, 用于当确定模块 301确定出物理端口发生状态变化后, 判断物理端口是 否为以太网链路聚合端口所绑定的端口且状态变化是否由阻塞状态变为打开状态;
配置模块 303, 用于当判断模块 302判断出物理端口是以太网链路聚合端口所绑定的端 口且物理端口的状态变化是由阻塞状态变为打开状态时, 将物理端口的收发状态配置为只接 收报文不发送报文状态, 在经过一定的时间后, 将所述物理端口的收发状态配置为正常转发 状态。
进一步地, 参见图 4, 上述设备还可以包括:
计时模块 304, 用于在配置模块 303将物理端口的收发状态配置为只接收报文不发送报 文状态后, 开始计时。
相应地, 配置模块 303可以具体包括:
第一配置单元, 用于当判断模块 302判断出物理端口是以太网链路聚合端口所绑定的端 口且物理端口的状态变化是由阻塞状态变为打开状态时, 将物理端口的收发状态配置为只接 收报文不发送报文状态;
第二配置单元, 用于当计时模块 304计时超过预设的时长时, 将物理端口的收发状态配 置为正常转发状态, 预设的时长不小于报文接收方的轮询周期。
进一步地, 参见图 5, 上述设备还可以包括:
查询模块 305, 用于在配制模块 303将物理端口的收发状态配置为只接收报文不发送报 文状态后, 查询该物理端口是否收到报文;
相应地, 上述配置模块 303可以具体包括:
第三配置单元, 用于当判断模块 302判断出物理端口是以太网链路聚合端口所绑定的端 口且状态变化是由阻塞状态变为打开状态时, 将该物理端口的收发状态配置为只接收报文不 发送报文状态;
第四配置单元, 用于在查询模块 305查询到物理端口收到报文后, 将该物理端口的收发 状态配置为正常转发状态。
上述确定模块 301可以具体包括:
检测单元, 用于轮询检测该设备的物理端口的状态变化;
或上述确定模块 301还可以具体包括: 接收单元, 用于接收中断通知;
确定单元, 用于当接收单元收到中断通知后, 确定该设备的物理端口的状态变化。 进一步地,上述配置模块可以具体为 ASIC或 P等具有转发引擎功能的芯片或设备, 计 时模块可以具体为定时器。
本实施例在判断模块判断出物理端口是 Eth-Trunk端口所绑定的端口且状态变化是由阻 塞状态变为打开状态时, 通过配置模块将该物理端口的收发状态配置为只接收报文不发送报 文, 防止了 Eth-Trunk成员端口在 UP状态下报文丢失的问题, 提高了采用 Eth-Trunk技术进 行通信的可靠性。
本发明实施例可以通过软件和硬件相结合的方式实现, 相应的软件可以存储在可读取的 存储介质中, 例如, 计算机的硬盘、 软盘或光盘中。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则之 内, 所作的任何修改、 等同替换、 改进等, 均应报文含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种以太网链路聚合端口配置的方法, 其特征在于, 所述方法包括:
确定物理端口的状态变化;
判断所述物理端口是否为以太网链路聚合端口所绑定的端口且所述状态变化是否由阻塞 状态变为打开状态;
如果是, 则将所述物理端口的收发状态配置为只接收报文不发送报文状态, 在经过一定 的时间后, 将所述物理端口的收发状态配置为正常转发状态。
2. 根据权利要求 1所述的以太网链路聚合端口配置的方法, 其特征在于, 所述在经过一 定的时间后, 将所述物理端口的收发状态配置为正常转发状态, 具体包括:
在将所述物理端口的收发状态配置为只接收报文不发送报文状态后, 开始计时, 当所述 计时达到预设的时长时, 将所述物理端口的收发状态配置为正常转发状态, 所述预设的时长 不小于报文接收方的轮询周期。
3. 根据权利要求 1所述的以太网链路聚合端口配置的方法, 其特征在于, 所述在经过一 定的时间后, 将所述物理端口的收发状态配置为正常转发状态, 具体包括:
在将所述物理端口的收发状态配置为只接收报文不发送报文状态后, 查询所述物理端口 是否收到报文, 如果是, 则将所述物理端口的收发状态配置为正常转发状态。
4. 根据权利要求 1所述的以太网链路聚合端口配置的方法, 其特征在于, 所述确定物理 端口的状态变化具体为:
轮询检测物理端口的状态变化;
或收到中断通知后, 确定物理端口的状态变化。
5. 根据权利要求 1所述的以太网链路聚合端口配置的方法, 其特征在于, 所述将所述物 理端口的收发状态配置为只接收报文不发送报文状态, 具体为:
通过专用集成电路芯片或网络处理器将所述物理端口的收发状态配置为只接收报文不发 送报文状态。
6. 一种设备, 其特征在于, 所述设备包括:
确定模块, 用于确定所述设备的物理端口的状态变化;
判断模块, 用于当所述确定模块确定出所述物理端口发生状态变化后, 判断所述物理端 口是否为以太网链路聚合端口所绑定的端口且所述状态变化是否由阻塞状态变为打开状态; 配置模块, 用于当所述判断模块判断出所述物理端口是以太网链路聚合端口所绑定的端 口且所述状态变化是由阻塞状态变为打开状态时, 将所述物理端口的收发状态配置为只接收 报文不发送报文状态, 在经过一定的时间后, 将所述物理端口的收发状态配置为正常转发状 态。
7. 根据权利要求 6所述的设备, 其特征在于, 所述设备还包括:
计时模块, 用于在所述配置模块将所述物理端口的收发状态配置为只接收报文不发送报 文状态后, 开始计时。
相应地, 所述配置模块具体包括:
第一配置单元, 用于当所述判断模块判断出所述物理端口是以太网链路聚合端口所绑定 的端口且所述状态变化是由阻塞状态变为打开状态时, 将所述物理端口的收发状态配置为只 接收报文不发送报文状态;
第二配置单元, 用于当所述计时模块的计时超过预设的时长时, 将所述物理端口的收发 状态配置为正常转发状态, 所述预设的时长不小于报文接收方的轮询周期。
8. 根据权利要求 6所述的设备, 其特征在于, 所述设备还包括:
查询模块, 用于在所述配置模块将所述物理端口的收发状态配置为只接收报文不发送报 文状态后, 查询所述物理端口是否收到报文;
相应地, 所述配置模块具体包括:
第三配置单元, 用于当所述判断模块判断出所述物理端口是以太网链路聚合端口所绑定 的端口且所述状态变化是由阻塞状态变为打开状态时, 将所述物理端口的收发状态配置为只 接收报文不发送报文状态;
第四配置单元, 用于在所述查询模块查询到所述物理端口收到报文后, 将所述物理端口 的收发状态配置为正常转发状态。
9. 根据权利要求 6所述的设备, 其特征在于, 所述确定模块具体包括: 检测单元, 用于轮询检测所述设备的物理端口的状态变化;
或所述确定模块具体包括:
接收单元, 用于接收中断通知;
确定单元,用于当所述接收单元收到中断通知后, 确定所述设备的物理端口的状态变化。
10. 根据权利要求 6所述的设备, 其特征在于, 所述配置模块具体为专用集成电路芯片 或网络处理器。
PCT/CN2009/070847 2008-03-18 2009-03-17 以太网链路聚合端口配置的方法和设备 WO2009115037A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810102130.0 2008-03-18
CN2008101021300A CN101252532B (zh) 2008-03-18 2008-03-18 以太网链路聚合端口配置的方法和设备

Publications (1)

Publication Number Publication Date
WO2009115037A1 true WO2009115037A1 (zh) 2009-09-24

Family

ID=39955725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070847 WO2009115037A1 (zh) 2008-03-18 2009-03-17 以太网链路聚合端口配置的方法和设备

Country Status (2)

Country Link
CN (1) CN101252532B (zh)
WO (1) WO2009115037A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620736A (zh) * 2019-10-23 2019-12-27 杭州迪普科技股份有限公司 一种流量调度的方法及装置
CN111988162A (zh) * 2019-05-24 2020-11-24 中兴通讯股份有限公司 一种管理端口配置模式的方法及装置
CN115065626A (zh) * 2022-05-07 2022-09-16 苏州盛科通信股份有限公司 一种Micro-BFD中源端口校验方法、装置、电子设备及存储介质

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252532B (zh) * 2008-03-18 2010-08-25 华为技术有限公司 以太网链路聚合端口配置的方法和设备
US8477791B2 (en) * 2009-05-13 2013-07-02 Avaya Inc. Method and apparatus for locally implementing port selection via synchronized port state databases maintained by the forwarding plane of a network element
US8619605B2 (en) * 2009-05-13 2013-12-31 Avaya Inc. Method and apparatus for maintaining port state tables in a forwarding plane of a network element
CN101610212B (zh) * 2009-07-27 2012-12-12 迈普通信技术股份有限公司 实现数据平面可靠通信的方法和板卡
CN101808043B (zh) * 2010-03-12 2012-09-05 成都市华为赛门铁克科技有限公司 端口汇聚trunk成员业务报文转发状态的检测方法及装置
CN102142931B (zh) * 2011-01-22 2013-07-10 北京华为数字技术有限公司 一种防止e-trunk丢包的方法、装置和系统
CN102281195B (zh) * 2011-08-03 2014-07-30 华为技术有限公司 交换机和交换机系统
CN103905326B (zh) * 2012-12-28 2017-11-24 迈普通信技术股份有限公司 以太网链路聚合的报文转发控制方法及网络设备
WO2015070383A1 (zh) * 2013-11-12 2015-05-21 华为技术有限公司 一种链路聚合的方法、装置和系统
CN103780472B (zh) * 2014-01-06 2017-08-22 新华三技术有限公司 一种聚合端口组的选中口管理方法及设备
CN104219155B (zh) * 2014-08-29 2018-10-26 新华三技术有限公司 一种聚合端口的代理方法和设备
CN104468203A (zh) * 2014-11-26 2015-03-25 上海斐讯数据通信技术有限公司 交换机聚合组中端口故障切换的配置方法
CN106533822B (zh) * 2015-09-14 2020-06-09 中兴通讯股份有限公司 物理端口控制方法及装置
CN106411599A (zh) * 2016-10-31 2017-02-15 杭州华三通信技术有限公司 一种聚合链路恢复方法及装置
CN116366536A (zh) * 2019-02-18 2023-06-30 中兴通讯股份有限公司 一种链路聚合端口切换方法、网络设备和计算机存储介质
CN110365538B (zh) * 2019-07-18 2022-09-13 北京百度网讯科技有限公司 端口状态控制方法、装置、设备及计算机可读存储介质
CN116055426B (zh) * 2023-03-06 2023-06-23 珠海星云智联科技有限公司 用于多绑定模式下流量卸载转发的方法、设备及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (zh) * 2005-01-17 2006-07-26 华为技术有限公司 以太网链路聚合方法
CN101060460A (zh) * 2006-06-09 2007-10-24 华为技术有限公司 防止以太网链路聚合逻辑端口报文丢失的方法及通信设备
CN101252532A (zh) * 2008-03-18 2008-08-27 华为技术有限公司 以太网链路聚合端口配置的方法和设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809021A (zh) * 2005-01-17 2006-07-26 华为技术有限公司 以太网链路聚合方法
CN101060460A (zh) * 2006-06-09 2007-10-24 华为技术有限公司 防止以太网链路聚合逻辑端口报文丢失的方法及通信设备
CN101252532A (zh) * 2008-03-18 2008-08-27 华为技术有限公司 以太网链路聚合端口配置的方法和设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988162A (zh) * 2019-05-24 2020-11-24 中兴通讯股份有限公司 一种管理端口配置模式的方法及装置
CN111988162B (zh) * 2019-05-24 2022-11-29 中兴通讯股份有限公司 一种管理端口配置模式的方法及装置
CN110620736A (zh) * 2019-10-23 2019-12-27 杭州迪普科技股份有限公司 一种流量调度的方法及装置
CN110620736B (zh) * 2019-10-23 2022-08-26 杭州迪普科技股份有限公司 一种流量调度的方法及装置
CN115065626A (zh) * 2022-05-07 2022-09-16 苏州盛科通信股份有限公司 一种Micro-BFD中源端口校验方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN101252532B (zh) 2010-08-25
CN101252532A (zh) 2008-08-27

Similar Documents

Publication Publication Date Title
WO2009115037A1 (zh) 以太网链路聚合端口配置的方法和设备
US9819590B2 (en) Method and apparatus for notifying network abnormality
US6538990B1 (en) Method and system for congestion flow control in a high speed network
US11032205B2 (en) Flow control method and switching device
KR100378148B1 (ko) 전 2중이서네트용 802.3 매체접근제어 및 연관신호스킴
US6198722B1 (en) Flow control method for networks
US20080267081A1 (en) Link layer loop detection method and apparatus
JPH11506287A (ja) イーサネットパケットスイッチハブのためのフロー制御方法および装置
CN108632099B (zh) 一种链路聚合的故障检测方法及装置
Huang et al. Adjusting packet size to mitigate TCP incast in data center networks with COTS switches
Zhang et al. Congestion detection in lossless networks
Anderson et al. PCP: Efficient Endpoint Congestion Control.
US9246751B2 (en) Ethernet ring protection switching method, network device and system
Tam et al. Preventing TCP incast throughput collapse at the initiation, continuation, and termination
WO2012088910A1 (zh) 连通性故障检测方法和系统
WO2017041577A1 (zh) 一种管理链路聚合成员端口丢包的方法和装置
CN111130943B (zh) 快速环网切换的实现方法、交换机及计算机可读存储介质
JP4022017B2 (ja) Lan中継装置
CN101540722A (zh) 以太网链路聚合端口配置的方法和设备
CN112134797B (zh) 一种改善链路聚合协议超时的方法和设备
US7639628B2 (en) Response time detection in a network having shared interfaces
WO2010045798A1 (zh) 设置路径状态的方法和装置
WO2014134903A1 (zh) 一种通信设备及其主备倒换方法
CN114389965B (zh) 一种二层网络环路检测定位方法
WO2012171398A1 (zh) 实时处理系统中的共享资源访问方法和实时处理系统

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: 09723482

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09723482

Country of ref document: EP

Kind code of ref document: A1