What is the main task of the communication logic layer in layer 2
The LLC sublayer primarily concerns:
* Multiplexing protocols transmitted over the MAC layer (when transmitting) and demultiplexing them (when receiving).
* Providing flow and error control
The protocol used for LLC on IEEE 802 networks and on some non-IEEE 802 networks such as FDDI is specified as IEEE 802.2 .
Some protocols other than IEEE 802 can be viewed as split into MAC and LLC layers. For example, while HDLC defines both MAC functions (packet framing) and LLC functions (protocol multiplexing, flow control, error detection and control by retransmitting dropped packets if specified), some protocols, such as Cisco HDLC, can use HDLC-like packets and their own LLC protocol.
The LLC header tells the data layer what to do with the packet after receiving the frame. It works like this: the host will receive the frame and look into the LLC header to see what the packet is for - for example, network layer IP or IPX.
LLC also performs encryption and decryption of SN-PDU packets (SNDCP).
The above details are on Wikipedia. http://en.wikipedia.org/wiki/Logical_Link_Control
source to share