A Vienna, Virginia, man was sentenced to 18 years in prison for sex trafficking a child.