Optical transmission is getting more popular in the access network due to the increasing demand for bandwidth. Gigabit-capable passive optical network (GPON) is the basic technology to support the structure of the next-generation fiber to the home (FTTH) system. This paper analyzed GPON protocols and network configuration, the information about dynamic bandwidth allocation (DBA) in GPON protocols, a new DBA algorithm based on the all the transmission containers (T- CONT) was proposed, elaborated the specific algorithm for improved scheme, and builds the GPON model for this algorithm and test its performance. The simulation results show this algorithm can satisfy the full service quality of service (QoS) requirements of GPON.