Buffer
mid 19th century: probably from obsolete buff (verb), imitative of the sound of a blow to a soft body.
wiktionary
buffer (plural buffers)
Agent noun from obsolete verb buff(“make a dull sound when struck”) (mid-16c.), from Old French buffe(“blow”).
The "bosun's mate" sense is said to be popularly explained by the mate being a "buffer", that is intermediary, between officers and men, but various other explanations have also been proposed. [1]
buffer (plural buffers)
etymonline
buffer (n.1)
"something that absorbs a blow, apparatus for deadening the concussion between a moving body and that against which it strikes," 1835, agent noun from obsolete verb buff "make a dull sound when struck" (mid-16c.), from Old French bufe "a blow, slap, punch" (see buffet (n.2)). Figurative sense of "anything that prevents impact or neutralizes the shock of impact of opposing forces" is from 1858.
buffer (v.)
"lessen the impact of," 1886, from buffer (n.). Related: Buffered; buffering.
buffer (n.2)
"one who or that which polishes by buffing," 1854, agent noun from buff (v.).