Defect structure of glass and its impact on linear and nonlinear optical communications