Forwarding packets in an edge device
AssigneeHangzhou H3C Technologies Co., Ltd.
InventorsWan Zhou, Xianzhi Guo
Life of this patent
Estimating the term…
Abstract
An edge device searches a MAC table to obtain information of a public network egress interface for a packet which is to be sent from a local site to a remote site to access a service, replaces a VLAN ID in the packet with a VLAN ID used for transmission in a public network, and sends the packet in which the VLAN ID has been replaced to a remote site according to the information of the public network egress interface.
Claims14
A method for forwarding packets in an edge device, wherein the edge device is applicable in a system where layer-2 interconnections between sites are implemented by virtual links, said method comprising:
- the edge device searching a media access control (MAC) table to obtain information of a public network egress interface for a packet which is to be sent from a local site to a remote site to access a service;
- searching in a virtual local area network (VLAN) mapping relation table and replacing a VLAN ID in the packet with a VLAN ID that is used to transmit a packet of the service in a public network according to an item of the VLAN mapping relation table, wherein each item of the VLAN mapping relation table associates a VLAN ID used in the local site for packets of a service with a VLAN ID used for transmitting packets of the service in the public network;
- and
- sending the packet in which the VLAN ID has been replaced to the remote site by using the information of the public network egress interface.
An edge device applicable in a system where layer-2 interconnections between sites are implemented by virtual links, the edge device comprising:
- a control module, a forwarding chip, an interface module, and a rule module;
- wherein the forwarding chip is to search a media access control (MAC) table to obtain information of a public network egress interface for a packet which is to be sent from a local site to a remote site to access a service;
- the control module is to search in a virtual local area network (VLAN) mapping relation table in the rule module and replace a VLAN ID in the packet with a VLAN ID used for transmitting a packet of the service in a public network;
- the rule module is to store the VLAN mapping relation table, each item of which associates a VLAN ID used in the local site for a service with a VLAN ID used for transmitting packets of the service in the public network;
- and
- the interface module is to send the packet in which the VLAN ID has been replaced to the remote site by using the information of the public network egress interface.
Dependencies are inferred from the claim text.