The invention discloses a method and a device for a VPWS message to
traverse a three-layer IP network. A control plane and a
forwarding plane are included. A main control board multi-core CPU is takenas the core of the control plane, the multiple control plane protocols of a
routing protocol, a LDP protocol, a GRE protocol and an ARP protocol are operated, and various table items including a
routing table, an MPLS
label table, a GRE session table, and an ARP table, which are required when the
forwarding plane processes data, are generated. The
forwarding plane is implemented by a main controlboard switching
chip and an interface board FPGA. The main control board switch
chip and the interface board FPGA are cooperated with each other to process a VPWS data packet. When an UNI interface receives the packet, the main control board switching
chip is responsible for receiving the data packet, after corresponding
processing, the data packet is sent to the interface board FPGA, and the FPGA packages and processes the data packet and then sends the data packet. When the NNI interface receives the packet, the interface board FPGA is responsible for receiving the data packet to carry outunpacking
processing, and then the data packet is sent to the main control board switching chip, and the main control board switching chip processes the data packet and then sends the data packet out.The Wire-speed forwarding of VPWS over GRE can be realized and the forwarding performance of a device port is ensured.