SMS: Optimization and Communication in UAV Networks