Notes, summaries, assignments, exams, and problems for Computer science

Network Devices Explained: Bridges, Switches, and Routers

Computer science3.34 KB

Bridges and Switches: Essential Network Elements

Bridges (Puentes) and Switches are network elements that possess control capabilities, storing and forwarding the frames they receive through their ports based on their content.

They are primarily used to interconnect similar or different Local Area Networks (LANs). A bridge isolates traffic between network segments.

For instance, if an Ethernet network needs to exceed 2.5 km in length, a bridge can be installed to segment the network. By assigning each segment a length not exceeding 2.5 km, a total network length of up to 5 km can be achieved.

OSI Layer 2 Operation

Bridges operate at OSI Layer 2 (Data Link Layer). Their basic unit of operation is the frame.

Phases in Frame Pathing Between Segments:

...
Continue reading "Network Devices Explained: Bridges, Switches, and Routers" »

Wireless Network Technology: Key Concepts and Security

Computer science3.85 KB

1. Why Can IEEE 802.11 Transmit Further Than Bluetooth?

IEEE 802.11 (Wi-Fi) has a higher power output than Bluetooth.

2. Three Advantages of Wireless Over Wired Technology

  • Anytime, anywhere connectivity
  • Easy and inexpensive to install
  • Ease of adding additional devices

3. Two Benefits of Wireless Networks Over Wired Networks

  • Mobility
  • Reduced installation time

4. Factors Affecting the Number of Access Points Needed

Three factors that affect the number of access points needed for wireless connectivity are:

  • The size of the building
  • The number of solid interior walls in the building
  • The presence of microwave ovens in various offices

5. Why is Security Important in Wireless Networks?

Security is crucial because wireless networks broadcast data over a medium that

...
Continue reading "Wireless Network Technology: Key Concepts and Security" »

C Programming Language: Functions, Pointers, and Files

Computer science4.96 KB

Functions in C

Void functions provide a way to emulate what are called procedures in other languages (e.g., PASCAL). They are used when it is not required to return a value. Here is an example that prints the squares of certain numbers:

void square ()
{
int count;

for (counter = 1; count < 10; counter++)
printf ("%d\n", counter * counter);
}

main ()
{
square ();
}

Input and Output Parameters

To use parameters in/out, the formal parameter must be preceded by the ampersand symbol (&), and the current parameter must be a variable (not an expression). Input/output parameters are used when you want a procedure to change the contents of the current variable. The fact that these parameters are explicitly defined as variables makes the programmer aware of...

Continue reading "C Programming Language: Functions, Pointers, and Files" »

PAL Color Television System: Key Components & Functions

Computer science3.45 KB

Color Subcarrier Oscillator Fundamentals

The color subcarrier frequency must be very precise. To generate this precise frequency, a crystal oscillator is used. Its features include:

  • It operates at very specific frequencies.
  • Frequencies are easily synchronizable.
  • To correct the oscillator signal, the principle of correction by Phase-Locked Loop (PLL) is used.

The crystal circuit has three differentially-controlled phase parts:

  • The crystal oscillator provides a frequency signal, which can be stable and regulated.
  • The phase comparator provides the control voltage.
  • Phase reactance varies the oscillator capacitance.

PAL ID Circuit Function

The PAL ID circuit provides essential information to both the color suppression circuit and the PAL switch.

PAL Decoder:

...
Continue reading "PAL Color Television System: Key Components & Functions" »

Core Network Communication Protocols and Distributed Systems Explained

Computer science3.78 KB

Understanding Network Communication Models

Client-Server Communication Model

In the Client-Server model, one process (the server) executes orders or commands requested by another process (the client).

Distributed Applications

Distributed applications consist of different programs that may be located on various machines, such as client and server machines, working together to achieve a common goal.

Network Communication Layers

Network communication can be conceptualized at different levels:

  • Application Layer: Deals with the communication processes of application components.
  • Physical/Architectural Layer: Focuses on the physical transmission of information.

Protocols and Services

  • Protocol: A set of rules governing communication between two entities at a
...
Continue reading "Core Network Communication Protocols and Distributed Systems Explained" »

Understanding DNS Protocols and Network Naming

Computer science2.6 KB

DNS Protocols and Services

In data networks, devices are labeled with a numeric IP address so they can participate in sending and receiving network messages. However, most people spend much time trying to remember these numerical addresses. Therefore, domain names were created to convert the numeric addresses into a simple and recognizable name.

The DNS protocol defines an automated service that matches resource names with the numeric network address requested.

Top Level Domains (TLDs)

The different top-level domains represent the kind of organization or the country of origin. Examples of top-level domains are:

  • .au: Australia
  • .co: Colombia
  • .com: A firm or industry
  • .jp: Japan
  • .org: A nonprofit organization

The Application Layer

The application layer is...

Continue reading "Understanding DNS Protocols and Network Naming" »

Key Concepts in Operating Systems

Computer science3.92 KB

Operating System Process Management

Process States

Different states a process can be in:

  • Execution: The process is executing instructions and has been granted CPU time.
  • Ready: A process is ready to be executed, waiting for its turn to use its time slice and access system resources.
  • Blocked: The process is held or blocked for some reason, waiting for an event (e.g., I/O completion).

Process State Transitions

Transitions between process states:

  • Transition A: Occurs when a running process needs a resource, signal, etc., to continue execution and moves to the blocked state.
  • Transition B: Occurs when a process has used its allocated CPU time slice and moves from execution back to the ready state.
  • Transition C: Occurs when a process in the ready state moves
...
Continue reading "Key Concepts in Operating Systems" »

Vijeo Designer HMI XBT-G Configuration

Computer science5.33 KB

1) Entering Configuration Screen

To enter the configuration screen from runtime mode:

  • It depends on the configuration of the last application downloaded.

2) Dip Switch Settings

According to the dip switch settings shown in the figure:

  • Starting from the CF card is disabled, you can download, and forced closure is disabled.

3) Screen Ventilation

To facilitate the ventilation of the screen, the manufacturer recommends a minimum distance of 100mm from any adjoining structure or equipment.

4) XBT-G LED Indicator

If the LED on the right side of the XBT-G screen lights orange, this means:

  • Backlight is off.

5) COM1 Connector (SUB D25)

The female SUB D25 connector, COM1, of the XBT-G screen is used for:

  • Serial communication with the PLC.

6) XBT-G Back Protection

The

...
Continue reading "Vijeo Designer HMI XBT-G Configuration" »

Computer Character Encoding Standards: ASCII and EBCDIC

Computer science4.06 KB

Computer Character Encoding Standards

ASCII Code: American Standard Code for Information Interchange

The ASCII Code is the most popular coding method used by computers to convert characters (letters, numbers, punctuation, etc.) to digital form. The standard ASCII has 128 positions, represented by 7 binary digits. There is also an extended version with 256 characters.

EBCDIC Code: Extended Binary Coded Decimal Interchange Code

The EBCDIC Code is used by IBM for its business systems, including the IBM PC series. Each character is represented by 8 bits, allowing for the representation of $2^8 = 256$ characters.

The Standard IEEE 754

The IEEE 754 Standard is a computer program specification that dictates how arithmetic instructions for floating-point...

Continue reading "Computer Character Encoding Standards: ASCII and EBCDIC" »

Digital and Analog Signals: Input and Output Channels

Computer science2.58 KB

Digital Awareness

When you want to receive digital information from the outside: The business card input channels are available, usually in groups of 8 bits, to which binary information is assigned by a program. These can be assigned to an internal variable state of a byte by a reading instruction that may have a port. There can be one or more bytes of input, assigning each an address.

Analog Outputs

To send analog control signals to the outside, the tallies have one or more channels of output through their respective A/D converters. A 1V analog converter generates a constant proportional to the numerical value of the digital data that it has on its input lines. Internally, they have a 5V memory. Different voltage ranges can be obtained using...

Continue reading "Digital and Analog Signals: Input and Output Channels" »