2S (second sitting) class can be booked online using irctc.com, but 2S is not the same as the normal compartment. 2S means second sitting, it is a reserved class and you will have your seat number on your ticket, it is not the same as a general coach which is an unreserved class (UR).