Lots of people do this, have a look at the Forces Sweetheart threads, it's common for us.
I had a job which helped as I was too bloody busy with teaching and my ds to worry about him being away.
Treat it as time you have with your dc and do all the domestic niff naff and trivia during the week. Take time to do things you enjoy that he doesn't, or see people that he doesn't particularly like.
I've been married for 22 years this September, of which 16 have been spent with him either at sea, or we have weekended, or when he was abroad and I was in Cornwall, we saw each other every six weeks. It works...don't fret. You need to trust each other though, and make sure you talk every day, and e-mail loads. I used to send him cards in the post as well to say Hi. Let him know he's missed, and it'll work out.
I have to be honest, it does affect the relationship with ds/dh, but that's why I made the decision to move abroad so the three of us could be together, and that has worked too. DS and I are much closer than ds and dh, but their relationship is beginning to get stronger, which is good.
I was lucky in that the separation normally had a defined period of a couple of years as the services change appointments every two years, so I think the longest we had was 4 years of sea time/weekending at the start of our marriage, and that was hard, but it gave me time to get my degree, so maybe it wasn't such a bad thing. I also had grown up with this lifestyle as my Dad was in the Navy too, so I knew roughly what to expect, although it's different doing it with your own dh, as opposed to seeing your Mum doing it.
Good luck, and be positive.