Now code works for tcp and udp for 100 nodes with ring topology