Receiving data using Wifi and Sending using Ethernet in Arduino YUN

HI…i am doing small project on Arduino YUN

the components include an Arduino Yun board , a wireless router and a network switch.

the main process to happen is, i have to connect my Arduino to the wireless router via WIFI of YUN and acquire data from another device connected to the same router with the help of IP address and send the acquired data through the Ethernet port of YUN to a network switch and depending upon the encoded IP address data should be sent to a particular device. i came across some examples with seperate wifi shields but i am not able to get a clear knowledge on YUN…CAN ANYONE HELP ME WITH THIS…I AM TOO CONFUSED ON THIS ONE…Any help is highly appreciated…

I have attached the block diagram for better understanding, if i am not clear…

Thank You in advance…

BLOCK.JPG