Federated Learning Optimization: A Comparative Study of Data and Model Exchange Strategies in Dynamic Networks