Computer Peripherals: A Comprehensive Guide

Computer Peripherals

Computer peripherals are devices that connect to a computer and enable communication with the outside world. They are essential for inputting data, outputting information, storing data, and communicating with other devices.

Types of Peripherals

  • Input devices: These devices allow users to input data into the computer, such as keyboards, mice, scanners, and microphones.
  • Output devices: These devices display or present information from the computer, such as monitors, printers, and
Read More

Docker Commands Cheat Sheet

Logging into Docker

Quick peek into any file

$ cat

Creating a file in terminal

$ vim

:wq!

Clean up commands

$ docker stop $(docker container ls -aq)

$ docker rm $(docker container ls -aq)

$ docker rmi $(docker images -q)

Current directory (application artifacts)

$ ls

$ ls -l

$ ls -lrt

Current file path

$ pwd

Listing images and containers

$ docker ls

Pulling an image

$ docker image pull

Building an image

$ docker image build -t .

Inspecting images and containers

$ docker inspect

Tagging an Image

$ docker image tag

Read More

Understanding Network Protocols and Devices: A Comprehensive Guide

kB1v7cEAQiIAAAAASUVORK5CYII=


2oQJpij8+0gAAAAASUVORK5CYII=

9vaqHIijDyDgIlA1DzEggMAMBJBwzACv9KZwjKVbCPIBATkC4DNzfgRfGJcPIDyZBQHwMAuM6KRCBJBw7NjocIw7Ni5Uqw4B8Lk6k0PhAhEADws0CkTaBAJIODZhpjQh4RjTcEMrIFAiAuBziVaBTLUhAB7WZnHomwsBJBy5kCywHzjGAo0CkYBAIgLgcyJwaAYEMiIAHmYEE11VhQASjh2bG45xx8aFatUhAD5XZ3IoXCAC4GGBRoFIm0AACccmzJQmJBxjGm5oBQRKRAB8LtEqkKk2BMDD2iwOfXMh8P8Bkz22UfUVIzEAAAAASUVORK5CYII=

Network Protocols: Stop-and-Wait and Sliding Window

The Stop-and-Wait protocol ensures reliable data transmission by having the sender transmit a single frame and wait for an acknowledgment (ACK) from the receiver before sending the next frame. This process guarantees delivery but can be inefficient due to waiting times. The sliding window protocol improves efficiency by allowing the sender to transmit multiple frames before receiving acknowledgments. Two main types of sliding window protocols exist:

Read More

Compiler Design Phases: From Lexical Analysis to Code Generation

Lexical Analysis

The first phase of a compiler, lexical analysis or scanning, involves reading the source program’s character stream and grouping them into meaningful sequences called lexemes. For each lexeme, the lexical analyzer generates a token, which is then passed to the syntax analysis phase. The token consists of a token-name, an abstract symbol used during syntax analysis, and an attribute-value pointing to the token’s symbol table entry. The symbol table stores information like name and

Read More

Understanding Network Devices: Hubs, Bridges, and Switches

HUBS, BRIDGES, SWITCHES

HUBS:

Active central element of star layout

  • Physically star, logically bus
  • If two stations transmit at the same time, collision occurs
  • Transmission from any station received by all other stations

• Each station connected to hub by two lines

  • Transmit and receive on two unshielded twisted pairs

• Hub acts as a repeater

  • When a single station transmits, hub repeats the signal on the outgoing line to each station.

Backbone hub interconnects LAN segments

  • Extends max distance between nodes
  • But
Read More

Understanding Network Protocols and Technologies: A Comprehensive Guide

Network Address Translation (NAT)

Function and Violation of Protocol Stack Layers

NAT serves to replace the source IP address and port number of outgoing datagrams with the NAT IP address and a new port number. This allows remote clients and servers to respond using the NAT IP address and new port number as the destination address. NAT maintains a translation table that stores the mapping between the original source IP address and port number and the corresponding NAT IP address and new port number.

Read More