Traffic generation algorithms