Fair scheduling in networks through packet election