Optical-fiber nonlinearity: measurements and countermeasures