NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Showing posts with label CCNA Network protocols. Show all posts
Showing posts with label CCNA Network protocols. Show all posts

Thursday, 20 December 2018

December 20, 2018

Ether Channel Configuration

What is LACP?

This is Standards-based (IEEE 802.3ad) negotiation protocol. Link Aggregation Control Protocol, is used to dynamically build an EtherChannel. There are different modes of LACP.
  • Active: The active end of the group sends out a LACP frame and initiates the negotiation to form the EtherChannel. Both ends could be active and the result would be the same.
  •  Passive: Passive Mode does not initiate the negotiation. It just responds to LACP packets initiated by other end. So if both ends were passive, the EtherChannel would not be formed.

What is PAgP? 

This is Cisco proprietary negotiation protocol. Port Aggregation Protocol is used to achieve the same goal as LACP. PAgP has 2 modes:
  •  Desirable: In this mode, the negotiation will be initiated by sending the special frames to form EtherChannel with the other end.
  • Auto: In this mode, negotiation is not initiated. It only responds to the special frames received for negotiation form the other end. So, if both ends are in Auto mode, EtherChannel would not be formed.
There is basically no difference between the two other than the names of the mode.

One thing to note is that there is no particular command to enable LACP or PAgP on a Cisco router. Instead, the mode names are used.

For example: If you use Desirable mode, then the router understands that you are implementing PAgP and if you use Active mode, the router will understand that you're trying to use LACP. 


Ether Channel Modes
-------------------------------------------------------------------------------------------------
Mode        Protocol                                Description
-------------------------------------------------------------------------------------------------
Auto         |  PAGP  |                  Sets the interface to respond to PAgP negotiation packets, but
                                                   the interface will start negotiations on its own.

Desirable  |  PAGP  |                 Sets the interface to actively attempt to negotiate a PAgP
                                                   connection.

On           | EtherChannel |         Forces the connection to bring all links up without using a
                                                   protocol to negotiate connections. This mode can only connect to
                                                  another device that is also set to on. When using this mode, the
                                                  switch does not negotiate the link using either PAgP or LACP.

Active      |  LACP   |                Sets the interface to actively attempt to negotiate connections
                                                 with other LACP devices.

Passive    |  LACP   |               Sets the interface to respond to LACP data if it receives
                                                 negotiation requests from other systems.

 ----------------------------------------------------------------------------------------------------------------

  EtherChannel Configuration:

SW1 
  • Conf t
  • interface range fastEthernet 0/1 - 2
  • speed auto
  • duplex full 
  • switchport trunk encapsulation dot1q
  • switchport mode trunk
  • channel-group 10 mode desirable


SW2
  • Conf t
  • interface range fastEthernet 0/1 - 2
  • speed auto
  • duplex full 
  • switchport trunk encapsulation dot1q
  • switchport mode trunk
  • channel-group 20 mode auto
 Note:channel group should not be same on both switches (Recommend)
SW1 
  • sh ip inter br
Port-channel 10        unassigned      YES unset  up                    up
  •  sh etherchannel summary
 Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------

10     Po10(SU)           PAgP   Fa0/1(I) Fa0/2(I)



SW2
  • sh ip inter br
Port-channel 20        unassigned      YES unset  up                    up
  •  sh etherchannel summary
 Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port


Number of channel-groups in use: 1
Number of aggregators:           1

Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------

20     Po20(SU)           LACP   Fa0/1(I) Fa0/2(I) 

  •  show etherchannel port-channel 
      Channel-group listing:
                    ----------------------

    Group: 20
    ----------
                    Port-channels in the group:
                    ---------------------------

    Port-channel: Po20    (Primary Aggregator)
    ------------

    Age of the Port-channel   = 00d:00h:11m:53s
    Logical slot/port   = 2/20      Number of ports = 0
    GC                  = 0x00000000      HotStandBy port = null
    Port state          = Port-channel
    Protocol            =   PAGP
    Port Security       = Disabled
SW2
  • show interfaces Port-channel 20 (To check bandwidth of etherchannel)
Port-channel 20 is up, line protocol is up (connected)
  Hardware is EtherChannel, address is 00e0.b008.3130 (bia 00e0.b008.3130)
  MTU 1500 bytes, BW 500000 Kbit, DLY 1000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Half-duplex, 500Mb/s
  input flow-control is off, output flow-control is off
  Members in this channel: Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4 ,
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:08, output 00:00:05, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Friday, 10 February 2017

February 10, 2017

IP header

IP header

An IP header is a prefix to an IP packet that contains information about the IP version, length of the packet, source and destination IP addresses, etc. It consists of the following fields:
February 10, 2017

ICMP (Internet Control Message Protocol)

ICMP (Internet Control Message Protocol)

ICMP (Internet Control Message Protocol) is a network layer protocol that reports errors and provides information related to IP packet processing. ICMP is used by network devices to send error messages indicating, for example, that a requested service is not available or that a host isn’t reachable.
ICMP is commonly used by network tools such as ping or traceroute. Consider the following example that illustrates how ping can be used to test the reachability of a host:
February 10, 2017

APIPA (Automatic Private IP Addressing)

APIPA (Automatic Private IP Addressing)

Automatic Private IP Addressing (APIPA) is a feature in Windows operating systems that enables computers to automatically self-configure an IP address and subnet mask when their DHCP server isn’t reachable. The IP address range for APIPA is 169.254.0.1-169.254.255.254, with the subnet mask of 255.255.0.0.
February 10, 2017

NTP (Network Time Protocol)

NTP (Network Time Protocol)

Network Time Protocol (NTP) is an application layer protocol used for clock synchronization between hosts on a TCP/IP network. The goal of NTP is to ensure that all computers on a network agree on the time, since even a small difference can create problems. For example, if there is more than 5 minutes difference on your host and the Active Directory domain controller, you will not be able to login into your AD domain.
NTP uses a hierarchical system of time sources. At the top of the structure are highly accurate time sources – typically atomic or GPS clocks. These clocks are known as stratum 0 servers. Stratum 1 servers are directly linked to stratum 0 servers and computers run NTP servers that deliver the time to stratum 2 servers, and so on (image source: Wikipedia):
February 10, 2017

HTTP & HTTPS

HTTP & HTTPS

 

HTTP (Hypertext Transfer Protocol)

HTTP is an client-server protocol that allows clients to request web pages from web servers. It is an application level protocol widely used on the Internet. Clients are usually web browsers. When a user wants to access a web page, a browser sends an HTTP Request message to the web server. The server responds with the requested web page. Web servers usually use TCP port 80.

February 10, 2017

SNMP (Simple Network Management Protocol)

SNMP (Simple Network Management Protocol) 

Simple Network Management Protocol (SNMP) is an application layer protocol that is used for network device management. This protocol can collects and manipulate valuable network information from switches, routers, servers, printers, and other network-attached devices.
An SNMP-managed network consists of two components:
February 10, 2017

FTP & TFTP

FTP & TFTP

FTP (File Transfer Protocol)

FTP is a network protocol used to transfer files from one computer to another over a TCP network. Like Telnet, it uses a client-network arhitecture, which means that a user has to have an FTP client installed to access an FTP server running on the remote machine. After establishing an FTP connection, the user can download or upload files to and from the FTP server.

February 10, 2017

Telnet & SSH

Telnet & SSH

Telnet

Telnet is a network protocol that allows a user to communicate with a remote device. It is a virtual terminal protocol used mostly by network administrators to remotely access and manage devices. Administrator can access the device by “telnetting” to the IP address or hostname of a remote device.
February 10, 2017

DHCP & DNS

DHCP & DNS 

DHCP (Dynamic Host Configuration Protocol)

DHCP is a network protocol that is used to assign various network parameters to a device. This greatly simplifies administration, since there is no need to assign static network parameters for each device separately. DHCP is a client-server protocol. A client is a device that is configured to use DHCP to request network parameters from a DHCP server. DHCP server maintains a pool of available IP addresses and assignes one of them to the host. A DHCP server can also provide some other parameters, such as:
• subnet mask
• default gateway
• domain name
• DNS server

Tuesday, 7 February 2017

February 07, 2017

ARP

ARP

ARP (Address Resolution Protocol) is a network protocol used to find out the hardware (MAC) address of a device from an IP address. It is used when a device wants to communicate with some other device on a local network (for example on an Ethernet network that requires physical addresses to be known before sending packets). The sending device uses ARP to translate IP addresses to MAC addresses. The device sends an ARP request message containing the IP address of the receiving device. All devices on a local network segment see the message, but only the device that has that IP address responds with the ARP reply message containing its MAC address. The sending device now has enough information to send the packet to the receiving device.
February 07, 2017

Ports explained

Ports explained

A port is a 16-bit number used to identify specific applications and services. TCP and UDP specify the source and destination port numbers in their packet headers and that information, along with the source and destination IP addresses and the transport protocol (TCP or UDP), enables applications running on hosts on a TCP/IP network to communicate.
Applications that provide a service (such as FTP or and HTTP servers) open a port on the local computer and listen for connection requests. A client can request the service by pointing the request to the application’s IP address and port. A client can use any locally unused port number for communication. Consider the following example:
February 07, 2017

UDP explained

UDP explained

One other important protocol in the TCP/IP site is User Datagram Protocol (UDP). This protocol is basically a scaled-down version of TCP. Just like TCP, this protocol provides delivery of data between applications running on hosts on a TCP/IP network, but, unlike TCP, it does not sequence the data and does not care about the order in which the segments arrive at the destination. Because of this it is considered to be an unreliable protocol. UDP is also considered to be a connectionless protocol, since no virtual circuit is established between two endpoints before the data transfer takes place.
February 07, 2017

TCP explained

TCP explained

One of the main protocols in the TCP/IP suite is Transmission Control Protocol (TCP). TCP provides reliable and ordered delivery of data between applications running on hosts on a TCP/IP network. Because of its reliable nature, TCP is used by applications that require high reliability, such as FTP, SSH, SMTP, HTTP, etc.
February 07, 2017

TCP/IP suite of protocols

TCP/IP suite of protocols


The TCP/IP suite is a set of protocols used on computer networks today (most notably on the Internet). It provides an end-to-end connectivity by specifying how data should be packetized, addressed, transmitted, routed and received on a TCP/IP network. This functionality is organized into four abstraction layers and each protocol in the suite resides in a particular layer.
The TCP/IP suite is named after its most important protocols, the Transmission Control Protocol (TCP) and the Internet Protocol (IP). Some of the protocols included in the TCP/IP suite are:
  • ARP (Address Resolution Protocol) – used to convert an IP address to a MAC address.
  • IP (Internet Protocol) – used to deliver packets from the source host to the destination host based on the IP addresses.
  • ICMP (Internet Control Message Protocol) – used to detects and reports network error conditions. Used in ping.
  • TCP (Transmission Control Protocol) – a connection-oriented protocol that enables reliable data transfer between two computers.
  • UDP (User Datagram Protocol) – a connectionless protocol for data transfer. Since a session is not created before the data transfer, there is no guarantee of data delivery.
  • FTP (File Transfer Protocol) – used for file transfers from one host to another.
  • Telnet (Telecommunications Network) – used to connect and issue commands on a remote computer.
  • DNS (Domain Name System) – used for host names to the IP address resolution.
  • HTTP (Hypertext Transfer Protocol) – used to transfer files (text, graphic images, sound, video, and other multimedia files) on the World Wide Web.

The following table shows which protocols reside on which layer of the TCP/IP model: