Patent ID: 8665888

Claim:
A method for packet transmission in an optical communication system, wherein an Optical Line Terminal (OLT) at a central office end in the optical communication system comprises one or more ports, and each port is connected to one or more Optical Network Units (ONUs) at a remote end, the method comprising: receiving, from a port, a first uplink packet from an ONU, wherein the first uplink packet comprises a Logical Link Identifier (ID) for identifying a logical link between the OLT and the ONU; determining a first ID corresponding to the first uplink packet according to the first uplink packet, wherein the first ID comprises an ONU ID for identifying the ONU or a Port ID for identifying the port; acquiring a Multiprotocol Label Switching (MPLS) tunnel label corresponding to the Logical Link ID and the first ID according to the Logical Link ID and the first ID; and transmitting a second uplink packet on an MPLS tunnel corresponding to the MPLS tunnel label, wherein the second uplink packet comprises data in the first uplink packet and the MPLS tunnel label; wherein the acquiring the MPLS tunnel label corresponding to the Logical Link ID (LLID) and the first ID according to the LLID and the first ID comprises: searching a preset corresponding relation between the LLID, the first ID and a logical partition ID/index ID, according to the Logical Link ID and the first ID, and acquiring a logical partition ID/index ID corresponding to the LLID and the first ID, searching a preset corresponding relation between a logical partition ID/index ID and an MPLS tunnel label according to the acquired logical partition ID/index ID, and acquiring the MPLS tunnel label, wherein the LLID comprises a Gigabit Passive Optical Network (GPON) Encapsulation Method (GEM) Port ID and the MPLS tunnel label comprises an MPLS label Switched Path (LSP) label.