Ecological study on metabolic function of algae-bacteria ecosystem