In today's world m-Health (also termed as Mobile Health) is an integral part of the healthcare industry. M-health uses various kinds of mobile devices such as mobile phones, personal digital assistants, tablets, laptops, and wireless-based arrangements to collect and transfer run-time medical data between patients and healthcare institutions. The entire process of the m-healthcare system is dependent on a cloud system. As a result of services provided through the cloud platform, it is observed that network equipment is likely prone to different types of attacks in the system. The most extensively used of these attacks are Distributed Denial of Services (DDoS) attack which can halt the network service instantly and prevent the accessing of sensitive data. The attack can destroy the privacy and security of the data by injecting wrong information into it. The most crucial way in the battle against DDoS attacks is the fast detection and taking apart of network traffic. In this research work, four layers of m-healthcare architecture and the specific reasons for DDoS attacks in the system architecture are explained properly. A novel DDoS detection algorithm is proposed for the early detection of the attack in the system. The DDoS preventive algorithms are designed efficiently to restrict the access of attackers in the system. Further, the effect of the different types of DDoS attacks with their preventive approaches experimented in the cloud-based simulation environment. The maximum success and average success of the attacker concerning time are also analyzed as a part of the research paper.