Networking | Linux | FOSS | Note-Keeping |

Pages

Showing posts with label CCNA-RS. Show all posts
Showing posts with label CCNA-RS. Show all posts

Monday, November 20, 2017

Cisco Packet Tracer 7.1 Installation on Ubuntu 16.04 LTS Linux

Cisco Packet Tracer (CPT) is a free Network and IoT Simulation & Visualization tool for starters in Cisco Networking Technologies. Packet Tracer's 32bit & 64bit versions are available for Microsoft Windows 7, 8.1 and 10, and a 64-bit version is available for Linux (Not available for macOS at this time). This tutorial will focus on installing Cisco Packet Tracer 7.1 on Ubuntu 16.04.3 LTS (Same process is valid for all Debian Linux based Distros):
  • Download Packet Tracer 7.1 from Cisco Networking Academy (NetAcad)
    (you must be a member of NetAcad to download CPT)
  • Open a terminal (by pressing Ctrl + Alt + t), and change directory to the downloaded file location (/home/User/Downloads' in this case) and extract the downloaded .tar file :
    $ cd ~/Downloads
    $ tar -xzvf Cisco_PacketTracer71_64bit_linux.tar.gz
  • Start the installation by typing '/.install' in extracted files directory:
    $ cd Cisco_PacketTracer71_64bit_linux
    $
    sudo ./install
  • You will be asked to read the terms (EULA):
    (Keep pressing 'Enter' key until EULA is read 100%)
  • Now you'll be asked to accept EULA:
    Do you accept the terms of the EULA? (Y)es/(N)o(Press 'Y' to accept EULA)
  • Enter location to install Cisco Packet Tracer or press enter for installation in default directory [/opt/pt]:
    (Press ‘Enter’ key to select the default location /opt/pt )
  • Now, you'll be asked, Should we create a symbolic link "packettracer" in /usr/local/bin for easy Cisco Packet Tracer startup? [Yn] (Press 'Y' to create a symbolic link)
  • After completion of installation, launch Packet Tracer 7.1 by typing packettracerin terminal.
    $packettracer
    Starting Packet Tracer 7.1
  • Enter your Cisco NetAcad Credentials to login or login as guest.


PS:

Some folks have reported that their Packet Tracer installation completed successfully, but 'packettracer' command didn't open CPT, and no error message was shown, like below: 
rana@Ubuntu16:~$ packettracer
Starting Packet Tracer 7.1
rana@Ubuntu16:~$ 
In this case, follow the below solution:
  • Open a terminal, and download Debian package containing the older version of 'libicui18n' (CPT requires libicui18n with an older version '52' instead of '55', which is not available in Ubuntu16.04 LTS.)
  • $wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.7_amd64.deb
  • Install the .deb package
    $sudo dpkg -i libicu52_52.1-3ubuntu0.7_amd64.deb
  • Now CPT should start correctly via 'packettracer' in a terminal.
    [Credits: Steve]

HTH,
Rana Tauqeer.
Share:

Saturday, August 26, 2017

Clock Rate or Clocking

Clock rate/Clocking is actual line speed and is configured on serial links in DCE side of network. When you set the clock rate for a serial interface, you are setting the speed of the interface, in other words, actual rate of data transfer. It has to do with the physical speed of the circuit (typically based on TDM architectures) where your clock cycle is 'x' times per second (deriving bandwidth of 'x' bits per second).  You can't send at speeds greater than your clock rate as this is a physical limiting!

The clock rate is used to match the clocks on the receiver and transmitter on remote and local router. The two routers need to sync up their clock perimeters in order to decode the packets coming on their interfaces.
Share:

Ethernet Frame - Explained!

Ethernet Frame


The Ethernet frame structure is defined in the IEEE 802.3 standard. Following explains a typical Ethernet Frame and description of each field in the frame:


  • Preamble – informs the receiving system that a frame is starting and enables synchronization. The Preamble consists of seven bytes all of the form 10101010, and is used by the receiver to allow it to establish bit synchronization (there is no clocking information on the Ether when nothing is being sent). This is a stream of bits used to allow the transmitter and receiver to synchronize their communication. The preamble is an alternating pattern of binary 56 ones and zeroes. The preamble is immediately followed by the Start Frame Delimiter. An alternating 1,0 pattern provides a 5 MHz clock at the start of each packet, which allows the receiving devices to lock the incoming bit stream.
  • SFD (Start Frame Delimiter) – signifies that the Destination MAC Address field begins with the next byte. The Start frame delimiter is a single byte, 10101011, which is a frame flag, indicating the start of a frame. This is always 10101011 and is used to indicate the beginning of the frame information. The preamble is seven octets and the SFD is one octet (synch). The SFD is 10101011, where the last pair of 1s allows the receiver to come into the alternating 1,0 pattern somewhere in the middle and still sync up to detect the beginning of the data.
  • Destination MAC – identifies the receiving system. This is the MAC address of the machine receiving data. This transmits a 48-bit value using the least significant bit (LSB) first. The DA is used by receiving stations to determine whether an incoming packet is addressed to a particular node. The destination address can be an individual address or a broadcast or multicast MAC address. Remember that a broadcast is all 1s—all Fs in hex—and is sent to all devices. A multicast is sent only to a similar subset of nodes on a network.
  • Source MAC – identifies the sending system. This is the MAC address of the machine transmitting data. The SA (Source Address) is a 48-bit MAC address used to identify the transmitting device, and it uses the least significant bit first. Broadcast and multicast address formats are illegal within the SA field.
  • Type – defines the type of routed protocol inside the frame, for example IPv4 or IPv6. 802.3 uses a Length field, but the Ethernet_II frame uses a Type field to identify the Network layer protocol. The old, original 802.3 cannot identify the upper-layer protocol and must be used with a proprietary LAN—IPX, for example. The Type field for IPv4 is 08-00, mostly just referred to as 0x800 in hexadecimal, and 0x86dd for IPv6.
  • Data and Pad – (aka Payload) contains the payload data. Padding data is added to meet the minimum length requirement for this field (46 bytes). This is the length of the entire Ethernet frame in bytes. It is rarely larger than 1500bytes as that is usually the maximum transmission frame size (MTU) for most serial connections. Ethernet networks tend to use serial devices to access the Internet. The data is inserted here. This is a packet sent down to the Data Link layer from the Network layer. The size can vary from 46 to 1,500 bytes.
  • FCS (Frame Check Sequence) – contains a 32-bit Cyclic Redundancy Check (CRC) which allows detection of corrupted data. This field contains the Frame Check Sequence (FCS) which is calculated using a Cyclic Redundancy Check(CRC). The FCS allows Ethernet to detect errors in the Ethernet frame and reject the frame if it appears damaged.FCS is a field at the end of the frame that’s used to store the cyclic redundancy check (CRC) answer. The CRC is a mathematical algorithm that’s run when each frame is built based on the data in the frame. When a receiving host receives the frame and runs the CRC, the answer should be the same. If not, the frame is discarded, assuming errors have occurred.
Share:

Friday, August 25, 2017

What is Ethernet?

Ethernet is a family of physical and data-link layer technologies for Local Area Networks (LANs) that is used to transport streams of data. It is a contention-based media access method that allows all hosts on a network to share the same link’s bandwidth. Ethernet uses both Data Link and Physical layer specifications.

Ethernet uses a protocol called Carrier Sense Multiple Access with Collision Detection (CSMA/CD), which helps devices share the bandwidth evenly while preventing two devices from transmitting simultaneously on the same network medium.

The type of network cabling and signaling specifications described in Ethernet were first developed by Xerox in the late 1970, which were later revised in IEEE 802.3

IEEE 802.3 is a standard specification for Ethernet, a method of physical communication in a local area network (LAN). In general, 802.3 specifies the physical media and the working characteristics of Ethernet, what is commonly known as the CSMA/CD protocol.

Four data rates are currently defined for operation over optical fiber and twisted-pair cables in IEEE 802.3:

10 Mbps         10Base-T Ethernet
100 Mbps        Fast Ethernet
1,000 Mbps      Gigabit Ethernet
10,000 Mbps     10 Gigabit Ethernet

Following are the main characteristics of Ethernet:
  • Easy to understand, implement, manage, and maintain
  • Allows low-cost network implementations
  • Provides extensive topological flexibility for network installation
  • Guarantees successful interconnection and operation of standards-compliant products, regardless of manufacturer

Share:

Tuesday, February 21, 2017

TCP/IP Model & Comparison with OSI Reference Model.

The Internet runs over TCP/IP, The Transmission Control Protocol/Internet Protocol, which is actually a suite of protocols, each performing a particular role to let computers speak the same language. TCP/IP was designed by the Defense Advanced Research Projects Agency (DARPA) in the 1970s—the design goal being to let dissimilar computers freely communicate, regardless of location. Most early TCP/IP work was done on Unix computers and now, TCP/IP is the de facto standard that unifies the Internet.

The OSI Reference Model and TCP/IP protocol suites were developed around the same time, and both of them had a model describing network communication. The OSI model is primarily used because of the amount of detail it provides. TCP/IP Model has four abstract layers, and focuses on layers 3 and 4 of the OSI reference model; the TCP/IP model groups the top three OSI layers into a single “Application” layer. This is because these functions typically occur before the data leaves the application itself. Also, because the Data Link and Physical layers of the OSI model are so closely related together, the TCP/IP model groups them into a single “Network Interface” layer. TCP/IP’s goal is to move messages through virtually any LAN product to set up a connection running virtually any network application. 

The graphic below compares both network models.


TCP/IP’s four abstract layers include:


Network interface:
This allows TCP/IP to interact with all modern network technologies by complying with the OSI model.

  • Internet: This defines how IP directs messages through routers over internetworks such as the Internet.
  • Transport: This defines the mechanics of how messages are exchanged between computers.
  • Application: This defines network applications to perform tasks such as file transfer, e-mail, and other useful functions.

Share:

Monday, February 20, 2017

The Layered Architecture & Reference Models.

A reference model is a conceptual blueprint of how communications should take place. It addresses all the processes required for an effective communication and divides them into logical groupings called layers. When a communication system is designed in this manner, it is known as a hierarchical or layered architectureThe most common Internetworking Models are OSI Reference Model, TCP/IP Model, and DoD Model.


Below are the advantages of Reference Models / layered architecture:

  • Reduces complexity and accelerates evolution. A vendor may concentrate its research and development works on a single layer without worrying the details of other layers, because changes made in one layer will not affect other layers.
  • Ensures interoperability among multiple vendors’ products, as vendors develop and manufacture their products based on open standards.

Explanation: It divides the network communication process into smaller and simpler components, facilitating component development, design, and troubleshooting.
It allows multiple-vendor development through the standardization of network components. It encourages industry standardization by clearly defining what functions occur at each layer of the model. It allows various types of network hardware and software to communicate. It prevents changes in one layer from affecting other layers to expedite development.


Share:

The OSI Reference Model.

The International Organization for Standardization (ISO), an international engineering organization based in Paris, first published the Open Systems Interconnection (OSI) reference model in 1978. This seven-layer model has become the standard for designing communication methods among network devices since than.

The OSI Reference Model (Open System Interconnection Reference Model) is used as an excellent way to describe and fully understand network communication. The OSI model divides networks into seven functional layerseach of which describes a  specific function or set of functions (specific aspects of network communication) performed when data is transferred between applications across the network and therefore is often called the Seven-LayerSstack(The OSI Model is a logical model, not a physical one).

In order to memorize the layers and their order, there are two handy memorization tips or acronyms that you can use to remember the layers:
  • All People Seem TNeed Data Processingwhere each word contains the first letter of the layers from the top-down, or you can use 
  • Please DNot Throw Sausage Pizza Awaywhere each word contains the first letter of the layers from the bottom-up.


The OSI model has seven different layers, divided into two groups. The top three layers define how the applications within the end stations will communicate with each other as well as with users. The bottom four layers define how data is transmitted end to end. 


Below describes the roles and functions of every layer in the OSI reference model:
  • Application Layer: This layer interfaces directly with the network-aware applications, giving it access to network resources. Without this layer, no user application would be able to get access to the network.
  • Presentation Layer: Encodes the data being sent or received into a generic format that will be understood by both devices. For example, a web browser might receive data in HTML format or a picture in JPG format, which are generic and well understood standards.
  • Session Layer: Begins, ends, and manages the sessions between devices.
  • Transport Layer: Handles the reliability of the connection and logical separation of applications. For example, if a computer is surfing the Internet with a web browser and at the same time listening to Internet-radio, this layer ensures the correct data arrives to the correct application. In addition, this layer handles flow-control (ensuring one side does not send information faster than the other can receive) and data integrity (ensuring the data is not corrupt). The most common Transport Layer protocol is TCP.
  • Network Layer: Provides logical addressing services allowing a device to dictate the source and destination address used for end-to-end communication. This layer is also responsible for routing the packet from its source to its destination. The most common Network layer protocol is IP.
  • Data Link Layer: Provides physical addressing services allowing a device to dictate the source and destination address used for local network communication. This layer permits communication between devices connected to the same network. This layer is also responsible for error detection (not correction).
  • Physical Layer: Defines the physical standards used for network communication.




It is important to note here that, peer layers form protocol-independent virtual links; each layer in the stack relies on the layers above and below it to operate, yet each operates independently of the others, as if it were having an exclusive conversation with its counterpart layer on the other computer. Each layer on the device is said to have established a virtual link with the same layer on the other device. With all seven virtual links running, a network connection is established, and the two devices are talking as if they were wired directly together.






Share:

What is a Network? & What are the Core Components of a Network?

"Collection of devices connected together to communicate and share resources is called a Network." or "The fabric that ties business applications (Web Browsers, FTP, Database Applications, Email, Instant Messengers, Online Gaming, Video conferencing/Streaming etc.,) together is called a Network".

The goal of a network is to establish communications and share resources throughout an organization or over the internet. Let’s take a look at some of the core building blocks (components) that make this communication possible:
  • Personal Computers (PCs) and Servers: These devices serve as the endpoints in the network and are responsible for sending and receiving data to and from the network.
  • Network Connections: You must have a way to attach a device to the network; this building block includes the network interface card (NIC), cabling and connectors.
  • Hubs and Switches: These devices provide points on which all the end systems of a network can attach.
  • Routers: Routers connect multiple networks together and find the best way to reach each network.
  • WLAN devices: These devices connect wireless devices such as computers, printers, and tablets to the network. Since pretty much every device manufactured today has a wireless NIC, you just need to configure a basic access point (AP) to connect to a traditional wired network.
  • Access Points or APs: These devices allow wireless devices to connect to a wired network and extend a collision domain from a switch. An AP can be a simple standalone device, but today they are usually managed by wireless controllers either in house or through the internet.
  • WLAN Controllers: These are the devices that network administrators or network operations centers use to manage access points in medium to large to extremely large quantities. The WLAN controller automatically handles the configuration of wireless access points and was typically used only in larger enterprise systems.
  • Firewalls & Intrusion Prevention Systems: These devices are network security systems that monitor and control the incoming and outgoing network traffic based on predetermined security rules, and is usually an Intrusion Detection & Protection System (IDS/IPS). Cisco PIX firewall and Cisco Adaptive Security Appliance (ASA) firewall typically establish a barrier between a trusted, secure internal network and the Internet, which is not secure or trusted.
These components can build a network within a local area (LAN) or across a wide area (WAN).


Interpretation of a Network Diagram or Placement of Core Network Components:

The following figures show placement of each of the core network components in a network topology:



Share:

Sitemap

Contact Form

Name

Email *

Message *

Total Pageviews

Search This Blog