Communicate with multiple arduinos with wifi shields

Hello to everyone,
I want your help for a project I want to do. I want to connect 6 arduinos with wifi shields to a network and send data from one to the other. I searched but I cannot find a solution for this. Should I use udp packets? How do I know which arduino is sending and which is receiving every time? Thanks in advance