This process is one aspect of homeostasis : the keeping of a constant internal environment . This process is one aspect of homeostasis : a dynamic state of stability between an animal 's internal environment and its external environment ( the study of such processes in zoology has been called ecophysiology or physiological ecology ) .