A novel dynamic bandwidth allocation algorithm named GTH-DBA is proposed for metro networks. A testbed is constructed to test its performance. Numeric results show that this algorithm is effective to improve the bandwidth efficiency of the metro networks.