10gig software switch is easy, 10gig software router medium, 10gig software dpi challange
it's a nice exercise but the power and space requirements in relation to the performance will generally not be favorable unless you are severely constrained in up-front budget