What is Network Topologies, ring network and star network
Network topology refers to the structure of elements (nodes, links, etc.) within a network. It defines how devices (such as computers, routers, switches, etc.) are connected and how data flows between them. Network topologies are usually found in local area networks (LAN). Any given node in a LAN has one or more physical links to other devices in the network. Mapping these links graphically generates a geometric shape that can be used to describe the physical topology of the network. A variety of physical topologies are used in the LAN, including ring network, bus network, and star network.

What is Ring network
In a Ring network topology, each device is connected to two other devices, forming a closed loop. Through this loop, data can flow in one direction or in both directions.
Data is transmitted around the ring until it reaches its destination. Data is transmitted through a ring line among the devices along the route, with the previous device forwarding the data to the next device in the sequence.

ring network topology
What is Star network
In a star network topology, each communication equipement is connected to a central hub. Data on a star network passes through the hub before continuing to its destination. The hub manages and controls all the functions of the network. It also acts as a repeater for the flow of data. In a typical network, a hub can be a network switch, an Ethernet hub, a wireless access point, or a router.
When a device wants to communicate with another, it sends the data to the central hub, which then forwards the message to the intended recipient.A star topology reduces the impact of transmission line failures by connecting each host to the hub independently. Star network is one of the most common computer network topologies.

star network topology
Ring network vs Star network
The advantages of Ring network:
Efficiency: relatively few delays happened as each node only needs to process data from the previous node.
Manage easily: For small to medium sized networks, ring networks have a simpler structure and troubleshooting is more straightforward.
The disadvantage of Ring network:
Failure problem: If one connection in the network fails, it can bring down the entire network to fail. Although bi-directional ring networks mitigate this problem, it is still the biggest drawback of ring networks.
Difficulty in scaling: Ring networks may face more problems in scaling. Especially when the number of nodes increases, the delay in data transmission increases.

The advantages of Star network:
Reliability: If a device or connection fails, it only affects the specific device. The rest of the network remains functional. This makes troubleshooting easier and the network more reliable.
Scalability: Adding new devices is simple—just connect them to the hub or switch. The network doesn’t experience major performance degradation as more devices are added.
Easy to Manage: Since all devices are connected to a central point, network management and monitoring are easier. Issues can often be diagnosed quickly, and the centralized nature allows for straightforward implementation of security measures, access control, and updates.
Disadvantages:
Hub Dependency: The main downside of a star network is that if the central hub fails, the entire network goes down. This makes the hub a single point of failure. However, this can be mitigated by using redundant hubs.
Cost: A star network typically requires more cabling than simpler topologies like bus or ring networks. Additionally, hubs and switches can be costly, especially in larger networks.
Conclusion:
Ring network is now rarely used in modern applications due to its poor scalability, susceptibility to single points of failure as the network size increases.
Star network is now widely used in local area networks (LAN) in homes, offices and businesses. They offer better scalability, higher reliability and simpler management. The only drawback is the reliance on a central hub, but this can be mitigated by high quality equipment and redundant designs.