What protocol does the IDE use to upload sketches to a board?

If you select File:Preferences and turn on Verbose Outputs, I expect what is shown there is what you would see.