Patent ID: 7848333

Claim:
A Multi-Protocol Label Switch (MPLS) processing method applied in a multi-port Virtual Local Area Network (VLAN), wherein the VLAN includes a node with a MPLS table item managing module and the method comprises: establishing a label switch path (LSP), by the node n the multi-port VLAN, through a label distribution protocol (LDP), and obtaining an address of a LDP peer entity at an opposite end and information binding a forwarding equivalence class (FEC) and a label or obtaining the address of the LDP peer entity at the opposite end and information binding an ingress label and an egress label wherein the address of the LDP peer entity at the opposite end is a next hop address; creating, by the MPLS table item managing module, a forwarding-relation table, and adding a forwarding-relation table item based upon the obtained information; obtaining, by the MPLS table item managing module, a specific egress port corresponding to the forwarding-relation table item from the multiple ports of the VLAN based upon the next-hop IP address; and accomplishing, by the node in the multi-port VLAN, the MPLS via the specific egress port; wherein obtaining a specific egress port corresponding to the forwarding-relation table item from the multiple ports of the VLAN based upon the next-hop IP address comprises: the MPLS table item managing module searching an address resolution protocol (ARP) table based upon the next-hop IP address to judge whether there is a corresponding table item of ARP; if there is a corresponding table item of ARP, the MPLS table item managing module establishes a correspondence relation of the forwarding-relation table item and a corresponding egress port and physical MAC address in the table item of ARP based upon information of the corresponding egress port and MAC address; and if there is no corresponding table item of ARP, the MPLS table item managing module marks the forwarding-relation table item with an UNAVAILABLE sign, transmits an ARP broadcast request in the VLAN based upon the next-hop IP address and an egress interface VLAN, receives an ARP response message sent from the opposite end, relearns and obtains the egress port and MAC address corresponding to the next-hop IP address based upon the received ARP response message sent from the opposite end, and a maintaining and managing module of the VLAN notifies the MPLS table item managing module to update the information of the egress port corresponding to the forwarding-relation table item based upon the received ARP information.