Text this: Research of survival period optimization with ensuring reliable communication in WSN