ISO-OSI Model

 

The OSI (Open System Interconnection) Reference Model divides the network architecture in seven separate layers which, from top to bottom, are the Application, Presentation, Session, Transport, Network, Data Link and Physical Layer.

1. Physical Layer:

The first and the lowest layer of the OSI Model, It defines the electrical and physical specifications for the devices, specifically the relationship between a device and a physical medium, such as a LAN Network Interface Card (NIC) and the UTP Cat 5e twisted pair cable. In the simplest terms, the Physical layer tells a device how to receive or to transmit on a specific physical medium. The data unit used in by the Physical layer is the Bit, meaning all data here is represented in its binary form, of 0’s and 1’s. Other examples include EIA RS-232, DSL, ISDN, Firewire, IRDA, USB, SONET/SDH, Fiber Media Converters, modems.

2. Data Link Layer:

The Data Link Layer, handles the functional and the procedural ways to transfer data between network devices and to detect and to eventually correct errors that occur at the Physical layer. The Data Link Layer is concerned with the local delivery of frames between devices on the same LAN. The Data Link Layer has two sublayers: the Logical Link Control (LLC) layer and the Media Access Control (MAC) Layer.

The LLC sublayer handles the multiplexing of the protocols, provides flow control, acknowledgement and error notification.

The MAC sublayer of the Data Link Layer is sometimes referred as the layer which determines who is allowed to access the media at any one time and other times it refers to a frame structure with a MAC address inside. Example of services at this sublayer are: Physical Addressing (MAC addressing), LAN switching, Spanning tree protocol, Quality of Service (QoS), Virtual LANs (VLANs).

The Data Link Layer also handles the encapsulation of the Network Layer packets into frames.

3. Network Layer:

The Network Layer is the third one in the OSI Reference Model. The Network Layer is responsible for end-to-end packet delivery and routing while maintaining QoS and error control functions. The Network Layer also provides the connection model: connection-oriented or connectionless. For example, the telephone system is connection-oriented, because the called user has to pick up the phone before a communication can be established. The logical IP addressing is also handled by the Network Layer for both IPv4 and IPv6. At this layer, data is represented as packets.

4. Transport Layer:

The forth layer of the OSI Model is the Transport Layer. The Transport Layer provides transparent data transfer, controls the reliability of a given link through flow control, segmentation/desegmentation, same order delivery, port numbering and error control. Typical example of Layer 4 protocols are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). Other examples include AppleTalk Transaction Protocol (ATP), Fiber Channel Protocol (FCP), NetBIOS Frames Protocol (NBF), and Stream Control Transmission Protocol (SCTP). At this layer, data is represented as segments.

5.Session Layer:

Upper in the hierarchy is the Session Layer. This layer is responsible for opening, closing and managing a session between end-user application processes. It also provides full-duplex, half-duplex and simplex operation, session checkpointing an recovery. Example of session protocols are: L2TP (Layer 2 Tunneling Protocol), NetBIOS, PAP (Password Authentication Protocol), PPTP (Point-to-Point Tunneling Protocol), RPC (Remote Procedure Call protocol).

6. Presentation Layer:

The Presentation Layer is handling the delivery and formatting of information to the application layer for further processing or display and vice-versa. At this layer encryption and data compression are usually made, also. Examples of Presentation Layer protocols are: ASCII (American Standard Code for Information Interchange), EBCDIC (Extended Binary Coded Decimal Interchange Code), LPP (Lightweight Presentation Protocol), RDP (Remote Desktop Protocol), and NCP (NetWare Core Protocol).

7. Application Layer:

The 7th Layer of the OSI Reference Model, the Application Layer, is the closest layer to the user, which means, both the OSI application layer and the user interact directly with the software application. An easy to understand example is Telnet. Telnet is a remote terminal program. When a user tries to enter a command, the application layer will take that command, send it to the lower layers in a format which is understandable, and when the data is received by the other end, the command is executed. Other examples of Application Layer protocols include: HTTP (Hyper-Text Transfer Protocol), FTP (File Transfer Protocol), SMTP (Simple Mail Transfer Protocol), SNMP (Simple Network Management Protocol).

 

I hope this is helpful to all.

what DHCP is and how to configure a Cisco router to use as DHCP Server ?

 

Every computer on a network needs to have an IP address. Servers, routers and other network devices whose locations (physical and logical) are not likely to change, must use IP addresses statically assigned by a network administrator. Other devices, such as employee’s workstations, laptops and IP phones, do not require a statically assigned IP address. These devices are likely to change their location and sometimes there are too many of them in your organization. Consider your organization has 300 employees and each employee has one workstation, one laptop and one IP phone. You, as a network administrator, must manually configure the IP address on each employee’s equipments. This would take a lot of time just for the initial configuration. If, in time, some of them will change their location, most probably they will need the IP address reconfigured.

Using a DHCP server in your network, you will be able to automatically assign IP addresses depending on their physical or logical location. DHCP servers send the IP address, subnet mask, gateway and DNS servers configuration to the clients.

DHCP works in client/server mode. A DHCP server is accepting requests made by clients. When a DHCP client wants to make a request to get the IP address configuration, it sends a DHCPDISCOVER broadcast message. When the server receives the message, it searches for an available IP address to lease, creates an ARP entry consisting of the MAC address of the requesting host and the leased IP address and sends the binding offer with a DHCPOFFER unicast message. When the client receives the DHCPOFFER messages, it sends back an DHCPREQUEST broadcast message to notify the server of his acceptance. The server then acknowledges back with a DHCPACK unicast message which terminates the conversation.

DHCP is able to use two types of IP address allocation:

* Automatic – the IP address is assigned permanently to a device.
* Dynamic – the IP address assigned to a device is selected from a pool of available addresses for a limited period of time chosen by the server or until the client tells the DHCP server that it no longer needs the address.

DHCP uses User Datagram Protocol (UDP) as its transport protocol. The client uses port 67 to send messages, and the servers sends messages on port 68.

Cisco routers running IOS provide full support for a router to act as a DHCP server.

There are three steps required when you create a DHCP server:

   1. Define a range of addresses that the DHCP server will not allocate, usually the static addresses used by routers and servers.
   2. Create a DHCP pool with the ip dhcp pool command.
   3. Configure the pool.

Router(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.9
Router(config)#ip dhcp excluded-address 192.168.10.254
Router(config)#ip dhcp pool LAN-POOL
Router(dhcp-config)#network 192.168.10.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#dns-server 192.168.10.254
Router(dhcp-config)#domain-name ciscokits.com
Router(dhcp-config)#exit
Router(config)#service dhcp

To verify the operation of DHCP use the show ip dhcp binding command.

Router# show ip dhcp binding

Bindings from all pools not associated with VRF:

IP address          Client-ID/              Lease expiration        Type

Hardware address/

User name

192.168.10.10       0100.6973.5bdd.35       Sep 10 2009 04:36 AM    Automatic

To verify the server is sending and receiving DHCP messages, use show ip dhcp statistics.

Router# show ip dhcp server statistics

Memory usage          40392

Address pools         3

Database agents       1

Automatic bindings    190

Manual bindings       1

Expired bindings      3

Malformed messages    0

Secure arp entries    1

Message               Received

BOOTREQUEST           12

DHCPDISCOVER          200

DHCPREQUEST           178

DHCPDECLINE           0

DHCPRELEASE           0

DHCPINFORM            0

Message               Sent

BOOTREPLY             12

DHCPOFFER             190

DHCPACK               172

DHCPNAK               6

If your DHCP server is in other network than the clients, you must configure your router to act as a DHCP relay agent. DHCP relay agents forward to received broadcast frames as unicast frames to a specified host. For example, the clients are in the 192.168.10.0/24 network, and the DHCP server is at 192.168.11.1. For the clients to be able to reach the DHCP server, you must use the ip helper-address ip-address interface configuration command, which forwards the broadcast frames for UDP services like DHCP, TACACS, DNS, DHCP, TFTP, NetBIOS to the specified address. This command must be applied to the interface connected to the client.

Router(config)#interface Fa0/0
Router(config-if)#ip helper-address 192.168.11.1

 

I hope this is helpful to all.