Firstly, the question arises of how exactly does a data packet look when it is encoded. Usually, the data tends to be transmitted in the form of a packet or a frame. The following diagram is an example of a packet that is sent on an Econet network.

In a similar vein the packet structure can also be seen in a ring network.

Generally, the packet will have a fixed format, specified by the particular network protocol, usually containing the data to be transmitted, control signals, destination address, source address and some from of error control. It should be noted that the packet can either be character-oriented or bit-oriented.

In real life codes are required in order for successful communication to occur - for example, a language can be thought of in the context of a code. In the approach to data representation in the computer environment it is often useful to point out why certain codes, used in other aspects of society, are not implemented here. This can be shown, using Morse code as an example.

Therefore, specific codes are required for encoding computer information and basically these can be classified into two main areas - fixed length and variable length codes. Examples of fixed length coding would be ASCII, EBCDIC and Baudot code. On the other hand, an example of variable length coding is Huffman Coding.

Huffman coding is also an example of a data compression technique used when sending encoded information. Data compression is used to reduce the number of bits that have to be transmitted, in order to reduce the cost of using the network.

The last area that is encompassed in the concept of encoding data is the security and privacy of the transmitted information.

Finally, it is important to grasp exactly where on the ISO-OSI model the encoding area of a protocol is implemented. 1