Ecosystem can be defined as a system composed of biotic and abiotic components and the interactions between them. The energy flow in an ecosystem is always from producers to consumers moving in the upward direction, that is from producers→primary consumers→secondary consumers→tertiary consumers