This document presents a study on security and quality of service (QoS) implementations in peer-to-peer (P2P) overlay networks, highlighting the decentralized nature of P2P systems and their vulnerabilities to various attacks due to lack of authentication. It discusses the role of swarm intelligence in optimizing security measures and resource distribution, as well as various algorithms that improve the efficiency and performance of P2P networks. The paper emphasizes the need for effective security methods and trust management to ensure safe and efficient content distribution in these networks.