You are making a confusion between the verb to consist of (which must be used here) and the verb to constitute . Check the dictionaries. The medium consists of a hardware layer and a software layer ...
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.