You can use a router of your choice/need.
Google modems compatible with comcast/xfinity. Wehn you get the modem you will have to get on the phone with Xfinity techie to enable the moden.
Really very easy to do. I did mine several years ago....and if I could do it....can't be too difficult!
_____________________________________________