With a degree in Optical Communications, are you trying to go into Optical Engineering or pursue further education in academia? How is the salary for the engineer compared to software?
Salary-wise it's difficult for me to answer, as most of the big industry players are in the US or Canada, but I'm in Europe. From hearsay a fresh PhD with reasonable publication list will get around 10k per month in the bay area. However, glassdoor might give you a better idea. Look for companies like: Infinera/ciena/acacia communications/juniper/mellanox/finisar/keysight...
After my PhD, I probably could have pursued a postdoc somewhere in Europe, but I decided to leave academia. I wanted to stay in Copenhagen and therefore had to change my field of work and will be working for a hearing aid company in their signal processing department.