Transmitting packet
AssigneeNew H3C Technologies Co., Ltd.
InventorsLiwei Huang, Wei Wang
Life of this patent
Estimating the term…
Abstract
Provided are a method and device for transmitting a packet. According to an example of the method, a Controlling Bridge (CB) device maintains a mapping entry representing a correspondence between a Port Extender (PEX) device and a Media Access Control (MAC) address of a host connected with the PEX device in a mapping table. The CB device receives a first data packet transmitted by a first PEX device, and determines a mapping entry in which the MAC address of the host matches a destination MAC address of the first data packet by querying the mapping table. Then, the CB device transmits the first data packet to a second PEX device in the mapping entry.
Claims12
A method of transmitting a packet, comprising:
- maintaining, by a Controlling Bridge (CB) device, a mapping entry representing a correspondence between a Port Extender (PEX) device and a Media Access Control (MAC) address of a host connected with the PEX device in a mapping table;
- receiving, by the CB device, a first data packet from a first PEX device;
- determining, by the CB device, a mapping entry in which the MAC address of the host matches a destination MAC address of the first data packet by querying the mapping table;
- and
- transmitting, by the CB device, the first data packet to a second PEX device in the determined mapping entry,
- wherein maintaining the mapping entry representing the correspondence between the PEX device and the MAC address of the host connected with the PEX device in the mapping table comprises:
- receiving, by the CB device, a protocol packet from the PEX device, wherein the protocol packet carries the MAC address of the host that is learnt by the PEX device;
- and
- recording, by the CB device, a correspondence between an identifier of the PEX device and the MAC address of the host as a mapping entry in the mapping table, wherein the identifier is assigned by the CB device for the PEX device.
A method of transmitting a packet, comprising:
- learning, by a Port Extender (PEX) device, a Media Access Control (MAC) address of a host connected with the PEX device;
- recording, by the PEX device, a forwarding entry representing a correspondence between the MAC address of the host and a third interface in a forwarding table, wherein the third interface is an interface of the PEX device that is connected with the host;
- generating, by the PEX device, a protocol packet carrying the MAC address and transmitting the protocol packet to a Controlling Bridge (CB) device, so that the CB device maintains a mapping entry representing a correspondence between the MAC address of the host and the PEX device in a mapping table;
- querying, by the PEX device, the forwarding table with a destination MAC address of a data packet after receiving the data packet to determine a third interface corresponding to the destination MAC address, wherein the data packet is from another host, or the CB device, or another PEX device;
- and
- transmitting, by the PEX device, the data packet to the host via the third interface.
A Controlling Bridge (CB) device, comprising:
- a processor;
- and
- a non-transitory machine-readable storage medium that stores machine-executable instructions, wherein by reading and executing the machine-executable instructions, the processor is caused to:
- maintain a mapping entry representing a correspondence between a Port Extender (PEX) device and a Media Access Control (MAC) address of a host connected with the PEX device in a mapping table;
- receive a first data packet transmitted by a first PEX device;
- determine a mapping entry in which the MAC address of the host matches a destination MAC address of the first data packet by querying the mapping table;
- and
- transmit the first data packet to a second PEX device in the determined mapping entry,
- wherein when maintaining the mapping entry representing the correspondence between the PEX device and the MAC address of the host connected with the PEX device in the mapping table, the processor is further caused by the machine-executable instructions to:
- receive a protocol packet from the PEX device, wherein the protocol packet carries the MAC address of the host that is learnt by the PEX device;
- and
- record a correspondence between an identifier of the PEX device and the MAC address of the host as a mapping entry in the mapping table, wherein the identifier is assigned by the CB device for the PEX device.
Dependencies are inferred from the claim text.