Ok answers those questions:
1)are you connected wireless?
if so what brand of wireless equipement are you using (the apple airport station is known to be buggy)? Are the latest firmware updates installed?
2)is your modem a usb one? (they are much more prone to lockup than ethernet ones) If so ask your ISP for an ethernet one, it works much better.