Tuesday 10 December 2013

OSI Reference Model


OSI Reference Model

(Open System Interconnection)

This model was established in 1970 by ISO. It is data communication model.
It is logical and conceptual model.
This model has 7 layers:
1. Application Layer
2. Presentation Layer
3. Session Layer
4. Transport Layer
5. Network Layer
6. Data link Layer
7. Physical Layer

1) Application Layer

Deals with the communication of software on different machines.
For example: HTTP, FTP, SMTP, Telnet and DNS servers, all operating systems, web browsers, communication software (messengers, Skype etc).

2) Presentation Layer

Three activities are taking place at this layer:
1) Encryption: The process of converting the plain text in to cipher text for data confidentiality is called encryption. i.e. DES, 3DES and AES
2) Translation: Coverts protocol from one form to other. Like IPX to IP and vise versa.
3) Compression: It simply works with the compression of data like win zip.

3) Session Layer

A time period in which two machines communicate is called a session.
This layer deals with:

  • Session establishment: To establish a session before data communication.
  • Session management: To manage the session throughout the communication.
  • Session termination: To manually terminate the session or there is a network down.


4) Transport Layer

  • It uses protocols to transfer data from one machine to another machine.
  • Two protocols work on this layer, TCP/IP and UDP.

TCP/IP (Transmission control protocol/Internet protocol)

  • It provides error recovery.
  • It relies on IP for end-to-end delivery of data, including routing issues.

Functions of TCP/IP
1. Multiplexing using port number

  • TCP identifies applications by their port numbers.
  • Multiplexing relies on the use of a concept called a socket
  • Socket consist of three things

1. IP address
2. Transport protocol (TCP or UDP)
3. Port number

  • Multiplexing helps in running multiple applications on a machine. PC keeps every application separate and transfers data accordingly.
  • Every application and protocol has port number.
  • Port number identifies data that which application this data belong to.
  • Like:

Telnet 23
SMTP 25
HTTP 80
HTTPS 443
DNS 53
Range of Port number is 1 – 65536.
1 – 1024 are already assigned.

2. Error recovery

  • TCP numbers data bytes using the sequence and acknowledgement fields in the tcp header
  • TCP sends data in sequence
  • Sender also sends re-transmission timer.

3. Flow control using Windowing

  • TCP implements flow control by taking advantage of sequence and acknowledgement fields in the TCP header.
  • Window size is the number of packets sent before getting acknowledgement.
  • It starts with smaller size of window than gradually increases until some error occurs.

UDP (user data gram protocol)

  • It is connection less protocol.
  • It also works at transport layer.
  • It does not do any error recovery thus it takes less bandwidth.
  • It perform
  • Data transfer
  • Data segmentation
  • Multiplexing using port numbers


5) Network Layer

  • It deals with the function of path selection and logical addressing
  • The protocols use are:
  • IP (internet protocol) in TCP/IP
  • IPX in Novell
  • DDR in AppleTalk
  • Every network and host has IP address.
  • Router works on this layer
IP define three different network classes:
  • Class A 1-126
  • Class B 128-191
  • Class C 192-223


6) Data Link Layer

  • This layer is divided into two sub-layers
  • LLC Sub-layer: it create link between network and data link layer. For example ARP.
  • Mac Sub-layer: it deals with error detection, addressing and orderly delivery of frames.
  • Addressing: In many networks more than two devices are attached to the same physical network.
  • Data link layer defines addresses to make sure that correct device listen and receive data.
  • In Ethernet data link layer uses Media Access Control (MAC) address.
  • It is 48-bit long address.
  • It also performs error detection.
  • It put a field of FCS (frame check sequence) in a frame. This field holds the value of CRC (cyclical redundancy check) algorithm.
  • This CRC value is calculated by mathematical formula applied on data in the frame.
  • Same value in generated on destination, if values are same than there is no error.
  • It does not perform error recovery only error detection


7) Physical layer

  • It is pure hardware layer of OSI model.
  • On this layer frame is converted into bits.
  • Hubs, repeaters and all cables work on this layer.

Data on different layers

  • Data on Transport layer is called a segment.
  • Data on Network layer is called a packet.
  • Data on Data link layer is called a frame.
  • Data on Physical layer is converted into bits.



Monday 9 December 2013

INTRODUCTION TO NETWORKING

INTRODUCTION TO NETWORKING


COMMUNICATION MODES

1. Simplex (one way communication)
2. Half Duplex (two way communication but not simultaneously)
3. Full Duplex (two way communication simultaneously)

Duplex and Speed Mismatch Issue

This issue creates if any switch and NIC not have the same setting, due to this packets starts to drops.
Syntax:
Switch (config) #int fa0/1
Switch (config-if) #duplex full
Switch (config-if) #speed 100

Manufacturing Terms of Cisco

EOS (End of sale)
It is use for such product whose manufacturing become terminates, but is warranty is valid due to sold in market before.
EOL (End of life)
It is use for such product whose manufacturing as well as warranty become stop. So the Cisco does not support such device and consider as garbage.
IOS (Internetwork operating system)
It is the operating system use by router or layer-3 switches.
Examples: version 12.3, 12.2, 12.1, 12.0, 11.3

SWITCH

It is a device use for networking (LAN), they based on specific chip that is represented by ASIC (Application specific Integrated chip).

Modular Switch

Such switches in which we can add the additional cards when need.
Layer-2 Switches
Such switches which only do switching.
Examples: (CISCO Express 500) and (CISCO Catalyst 2940, 2950, 2960 series).
Layer-3 Switches
Such switches which can do switching as well as routing.
Example: (CISCO Catalyst 3550, 360, 370, 4500, 6500 Series).

ROUTER
It is a internetworking device (WAN), they based on microprocessor.

Cisco Switch And Router Hardware Components
1) RAM 2) NVRAM 3) FLASH 4) ROM

RAM
It is such memory where the running configuration (user configuration) exists.

NVRAM
It is such memory where the data stored permanently and this configured data is refer by the term “start-up-configuration”.

FLASH
It is such memory where the IOS present and here the data also present permanently.

ROM
It is such memory where all modes of switch or router exist, these modes called the ROM monitor mode; they come after the IOS load.

Switches and Routers boot sequence




  • At Post point, the hardware is check.
  • At Flash point, IOS files or IOS check.




Best Regards, 


S. N. Jafar