Tutorial 3
Figure 24.7 Encoding format TCP/IP Protocol Suite
TCP/IP Protocol Suite Gauge = مقياس Octet string = byte string representing arbitrary binary or textual data up to 65535 bytes long TCP/IP Protocol Suite
Example 24.1 Figure 24.8 shows how to define INTEGER 14. Note that we have used both binary representation and hexadecimal representation for the tag. The size of the length field is from Table 24.1. TCP/IP Protocol Suite
Figure 24.8 Example 24.1: INTEGER 14 TCP/IP Protocol Suite
Example 24.2 Figure 24.9 shows how to define the OCTET STRING “HI.” TCP/IP Protocol Suite
Figure 24.9 Example 24.2: OCTET STRING “HI” TCP/IP Protocol Suite
Example 24.3 Figure 24.10 shows how to define ObjectIdentifier 1.3.6.1 (iso.org.dod.internet). TCP/IP Protocol Suite
Figure 24.10 Example 24.3: ObjectIndentifier 1.3.6.1 Object identifier :is string of decimal numbers that uniquely identify an object TCP/IP Protocol Suite
Example 24.4 Figure 24.11 shows how to define IPAddress 131.21.14.8. TCP/IP Protocol Suite
Figure 24.11 Example 24.4: IPAddress 131.21.14.8 TCP/IP Protocol Suite
1- Show how do you encode your name using SMI format ( use the Unicode)?For example NOUF 00000100 01001110 01001111 01010101 01000110
2- Show how do you encode an Octetstring with length 1000 bytes 00000100 10000010 00000011 11101000 The value 8+32+64+128+265+ 512 =1000
3- According to the SMI encoding format, what is the maximum length that can be presented using a single byte for the length field? give an example of a length that is more than the maximum length and show how it will be encoded. The maximum length that can be presented using a single bite is 127 or 01111111 .So 128 will be presented using 2 bytes as follows Tag field 10000001 10000000 The value