On ships at sea there is a difference between “aye aye sir” and “yes sir”. Learn it here!
“Aye aye sir” indicates that an order has been received, is understood and will be carried out immediately, according to wikipedia.org.
“Yes sir” would only indicate agreement to an order.
Got anything to add?