Compare client/server architecture, mainframebased legacy systems, and P2P architecture and comment.

Compare client/server architecture, mainframebased legacy systems, and P2P architecture and comment on their differences.