The connection of objects to computer networks and the Internet is growing and humanity needs to manage its events and resources correctly to collect information from different sensors using these different objects and analyze these data. Based on these analyzes, Make a decision. Internet of Things is a new phenomenon in the world of technology and communications. In short, the Internet is a new technology, in which the ability to send data through communication networks, including the Internet or intranet, is provided. Wireless sensor networks are one of the basic parts of the Internet of Things, a popular field of research, such as monitoring, environmental control and body care, and military applications. This network has many challenges due to its small size and hardware and connectivity capabilities. Obviously, the inherent challenges of this type of network have been limited in the functions of aggregation, transmission and communication between the nodes and their routing. Due to the importance of saving time and cost, in this research, data routing of objects on the Internet is presented in a method based on the accumulation of discrete particles. Internet objects can be used for many applications in various industrial areas, including infrastructure, urban services, regulatory and security applications, and so on. However, collecting large amounts of data from such networks that contain images and videos often results in traffic congestion in the central network area. In order to solve this problem, we provide routing technology that determines routing by the discrete particle accumulation. By collecting roaming data related to intermediate nodes for processing, data collection can be achieved at a higher rate, hence the traffic in the network is effectively reduced. As a result, a significant reduction in latency can be achieved.