Patent ID: 8886042

Claim:
A method for scheduling an uplink message based on a Gigabit-Capable Passive Optical Network (GPON), the method comprising: configuring a private managed entity for an 802.1p entity, and defining a mapping relationship between a priority queue and a priority of an uplink message in the private managed entity; and scheduling, by the 802.1p entity, an uplink message from an optical network unit, mapping the uplink message to a corresponding GPON Encapsulation Method Port (GEM PORT), and creating a corresponding priority queue according to the mapping relationship between the priority queue and the priority of the uplink message defined in the private managed entity; wherein scheduling the uplink message from the optical network unit by the 802.1p entity and creating the corresponding priority queue according to the mapping relationship between the priority queue and the priority of the uplink message defined in the private managed entity comprises: A: searching the priority queue corresponding to the priority of each uplink message in order, if priorities of all uplink messages are traversed, ending the process, otherwise proceeding to B; and B: judging whether or not the found priority queue of the uplink message has been created, if so, returning to A to continue to search the priority queue corresponding to the priority of the next uplink message, otherwise creating the corresponding priority queue and then returning to A.