Most network infrastructure has at least a few hours backup on it. By the look of the equipment I see here and there I'd say they run for days without a working grid in a lot of places. Wired phone networks keep working if your modem is powered. The exchanges also have hard core power backup, usually diesel generators too.