finish the framework of DNetwork