Computer Networks Lab: Implementation Procedures

EXP 2 — Multi-User Chat Server (TCP)

Server

  1. Start server.
  2. Create ServerSocket and bind to port.
  3. Display server started.
  4. Accept client connection.
  5. Assign unique client ID.
  6. Send ID to client.
  7. Store client in list.
  8. Create thread for client.
  9. Read client messages continuously.
  10. Display messages on server.
  11. Enter target client ID and message for private send.
  12. Send message to selected client.
  13. Remove disconnected client.
  14. Repeat for new clients.

Client

  1. Start client.
  2. Connect to server (localhost:5000).
  3. Display connecting message.
Read More

Operating System Fundamentals: Structure, Processes, and File Systems

W1.1 Operating Systems Fundamentals

W1.1.1 OS Introduction

W1.1.2 Types of Operating Systems

Examples of Operating Systems include: Android, Linux, FreeBSD, MacOS, MS-DOS, Windows, uCOS, VxWorks. These systems are suited to small, medium, or large systems, exhibiting different characteristics regarding:

  • Responsiveness
  • Efficiency
  • Flexibility
  • Security
  • Reliability

W1.1.2 Different Kinds of OS

Operating systems are categorized based on their usage:

  • Single-user systems: Execute one program at a time for one user.
Read More

Network Protocols Implementation Steps: FTP, TCP, UDP

FTP Server Implementation Steps

  1. Start the program.
  2. Include necessary header files.
  3. Declare necessary variables.
  4. Print: “Enter the port address”.
  5. Create a TCP socket (‘SOCK_STREAM’) and store its file descriptor in ‘sd’.
  6. Check if the socket creation was successful. If not, print an error message.
  7. Setup server address structure (Family to IPv4 (‘AF_INET’), IP address to any available address (‘INADDR_ANY’)).
  8. Convert the port number to network byte order.
  9. Bind the socket to the server address.
Read More

Corporate Internationalization and Global Trade Strategies

Corporate Internationalization: Forms and Scope

Corporate internationalization occurs when a company operates beyond its home country.

Main Forms of Internationalization

  • Exports: Production remains in the home country, with sales conducted abroad.
  • Commercial Delegation: Production remains at home, utilizing a dedicated sales force abroad.
  • Production Plant Abroad: Production and sales occur in the destination country, often resulting in lower costs (e.g., transport, tariffs).

Internationalization of Purchases

  • Imports:
Read More

Python Socket Programming and CRC Implementation Techniques

Python Networking and Data Integrity Techniques

This document provides practical Python implementations for fundamental networking tasks using the socket module, alongside a crucial data integrity mechanism: Cyclic Redundancy Check (CRC).

1. Building a Basic HTTP Client

Downloading a Webpage via TCP Socket

This function demonstrates how to manually establish a TCP connection to a host on port 80 and send a raw HTTP GET request to retrieve content.

import socket

def download_webpage(host, path="/"):
Read More

Digital Logic Circuits: Flip-Flops, Registers, Counters & Parameters

Advantages of Edge-Triggered RS Flip-Flops

The primary advantage of an edge-triggered RS flip-flop over a clocked or gated RS flip-flop lies in its ability to respond to changes in input only at specific moments, typically on the rising or falling edge of a clock signal. Here are some key advantages:

  • Reduced Glitches: Edge-triggered flip-flops only sample the input signals at the moment of the clock edge, which minimizes the risk of glitches that can occur in gated flip-flops when inputs change while
Read More