In this paper, we give a systematic study of the boundary layer behavior for linear convection-diffusion equation in the zero viscosity limit. We analyze the boundary layer structures in the viscous solution and derive the boundary condition satisfied by the viscosity limit as a solution of the inviscid equation. The results confirm that the Neumann type of far-field boundary condition is preferred in the outlet and characteristic boundary dondition. Under some appropriate regularity and compatibility conditions on the initial and boundary data, we obtain optimal error estimates between the full viscous solution and the inviscid solution with suitable boundary layer corrections. These results hold in arbitrary space dimensions and similar statements also hold for the strip problem This model well describes the behavior at the far-field for many physical and engineering systems such as fluid dynamical equation and electro-magnetic equation. The results obtained here should provide some theoretical guidance for designing effective far-field boundary conditions.