Manually setting an IP adress on the PS3 can prevent connection issues. It can be particularly useful when playing online games. This does not solve the problem completely but setting a static IP does help in keeping a constant connection to the router because it removes DHCP from the equation.
To set a manual IP you must first find the Gateway, DNS, Subnet Mask and pick a suitable IP for your PS3.
To find this information log onto a computer that is using the network and do the following:
Start -> Run -> cmd -> ipconfig/all (take not of the information here)
To pick a suitable IP address add 1 to the IP Address of the machine you are using. (If the laptop you run ipconfig on says it has an IP address of 192.168.1.12 then make the PS3 static IP address 192.168.1.13.
Once you have the required information you can now go into the setting on the PS3:
*In this example we are using a wireless network
Internet connection settings -> Custom -> Wireless -> Enter manually -> Select your wireless network -> Select whatever encryption protocol is highlighted -> Type in the key for your wireless network -> Manual -> IPV4 Address -> Type in subnet mask -> Type in default gateway -> Use the same primary and secondary DNS addresses as used in ipconfig -> Use default setting for MTU -> Do not use proxy -> Enable UPnP
*If you find you are getting frequently disconnected from the router try disabling the Media Server under Network Settings