Funeral Arrangements

Could somebody shed some light on how a funeral is supposed to be performed from Islamic perspective. After how long should the body be buried after death? What are important rituals. It would be beneficial for people like me who have not attended one.

People who are in the West, do you have to book a spot for yourself in the cemetery? How does the whole processes work? Merci.