The growing need for faster and more effective data handling and data transfer capabilities of a network require energy-efficient and more powerful smart sensor devices. These devices have become increasingly necessary in wireless sensor networks (WSN). The architecture or topology of WSN can greatly impact the organizational efficacy and connectivity among the sensor nodes employed within the given area. It is foremost important to implement a robust network topology which must be capable of ensuring continuous and reliable communication within the whole network. This research paper presents an effective approach based on Ant colony scheme to optimize mesh network topology ant colony optimization (ACO) is used to place the sensor nodes optimally in the given area of the whole network. The proposed research carries out comprehensive performance evaluation of the network under various QoS parameters such as bandwidth, throughput, delay, residual energy and routing load. These parameters shows the effectiveness or adaptability of the network with different and dynamically changing communication requirements suggested by this topology scheme. The network based on the proposed method has been simulated several times and the achieved simulation patterns have been analyzed under the mentioned QoS constraints.