The RAF and the German military are to work side-by-side against the threat of Russia in the North Atlantic.