0% found this document useful (0 votes)
10 views21 pages

Foundational Computer Science Skills

The document provides an overview of computer networking terminologies, components, types of networks, network topologies, and internet protocols. It defines key concepts such as nodes, servers, protocols, and various network devices like switches and routers, while also detailing different network types including LAN, WAN, and PAN. Additionally, it explains the advantages and disadvantages of each network type and topology, as well as the functionality of protocols like HTTP, TCP, and FTP.

Uploaded by

issasaro983
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views21 pages

Foundational Computer Science Skills

The document provides an overview of computer networking terminologies, components, types of networks, network topologies, and internet protocols. It defines key concepts such as nodes, servers, protocols, and various network devices like switches and routers, while also detailing different network types including LAN, WAN, and PAN. Additionally, it explains the advantages and disadvantages of each network type and topology, as well as the functionality of protocols like HTTP, TCP, and FTP.

Uploaded by

issasaro983
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Demonstrating networking skills

Computer Networking Terminologies


Network: A collection of interconnected devices that can communicate and share resources with
each other.

Node: Any device connected to a network (computers, printers, servers, switches, routers).

Host: A computer or device that provides services, resources, or data to other devices on the
network. May work as a server offering info resources, services to other hosts or user on a n/w

Client: A device that requests and receives services or resources from a server.

Server: A powerful computer that provides services, resources, or data to clients.

Protocol: A set of rules and standards that govern how data is transmitted and received over a
network.

Bandwidth: The maximum amount of data that can be transmitted over a network connection in
a given time period, typically measured in bits per second (bps).

Throughput: The actual amount of data successfully transmitted over a network in a given time
period.

Latency: The time delay between sending data and receiving it, measured in milliseconds (ms).

Packet: A unit of data transmitted over a network, containing both the data and control
information like source and destination addresses.

a header (containing source/destination IP addresses, protocol, and packet sequence number),


the payload (the actual data being transmitted), and a trailer (containing error-checking
information)

IP Address: A unique numerical identifier assigned to each device on a network (e.g.,


[Link]).

MAC Address: Media Access Control address - a unique hardware identifier assigned to
network interface cards (NICs).

DNS (Domain Name System): A system that translates human-readable domain names (like
[Link]) into IP addresses.

Subnet: A logical subdivision of an IP network.


Computer Network Components
1. Network Interface Card (NIC)

 Hardware component that connects a computer to a network


 Has a unique MAC address
 Can be wired (Ethernet) or wireless (Wi-Fi)
 Handles data conversion between the computer and network

2. Switch

 Operates at Layer 2 (Data Link Layer) of the OSI model


 Connects multiple devices within a LAN
 Uses MAC addresses to forward data to specific devices
 More intelligent than hubs - sends data only to intended recipient

3. Router

 Operates at Layer 3 (Network Layer)


 Connects different networks together
 Uses IP addresses to route packets
 Provides network address translation (NAT)
 Often includes firewall capabilities
 Determines the best path for data transmission

4. Hub

 Operates at Layer 1 (Physical Layer)


 Simple device that broadcasts data to all connected ports
 Creates a single collision domain
 Less efficient than switches
 Largely replaced by switches in modern networks

5. Modem

 Converts digital signals to analog (modulation) and vice versa (demodulation)


 Connects local networks to ISP
 Types: DSL, cable, fiber optic, satellite

6. Access Point (WAP)

 Enables wireless devices to connect to a wired network


 Broadcasts Wi-Fi signals
 Often integrated into routers

7. Firewall

 Security device that filters network traffic


 Can be hardware or software-based
 Blocks unauthorized access while permitting legitimate communication
 Uses rules and policies to control traffic

8. Gateway

 Connects networks using different protocols


 Performs protocol conversion
 Acts as an entry/exit point for a network

9. Repeater

 Regenerates and amplifies signals


 Extends the range of network transmission
 Operates at Physical Layer

10. Bridge

 Connects two or more network segments


 Operates at Data Link Layer
 Filters traffic based on MAC addresses
 Reduces network congestion

11. Cables and Connectors

 Twisted Pair Cable: Most common (Cat5e, Cat6, Cat7)


 Coaxial Cable: Used for cable internet
 Fiber Optic Cable: High-speed, long-distance transmission
 Connectors: RJ-45 (Ethernet), RJ-11 (telephone), SC/LC (fiber)

Types of Networks
1. LAN (Local Area Network)

Definition: A network that connects computers and devices within a limited geographical area
such as a home, school or office building.

Characteristics:

 Ownership: Privately owned and managed


 Speed: High data transfer rates (100 Mbps to 10 Gbps or more)
 Cost: Relatively low setup and maintenance costs

Examples:

 Office network connecting computers, printers, and servers


 Home network connecting laptops, smartphones, smart TVs
 Computer lab in a school or university

Advantages:

 High-speed data transfer


 Easy resource sharing (files, printers, internet)
 Centralized data storage and backup
 Cost-effective

Disadvantages:

 Limited geographic coverage


 Security risks if not properly configured
 Requires maintenance and administration

2. MAN (Metropolitan Area Network)

Definition: A network that spans a city or large campus, connecting multiple LANs within a
metropolitan area.

Characteristics:

 Ownership: Can be owned by single organization or service provider


 Speed: Moderate to high (up to several Gbps)
 Cost: Higher than LAN, lower than WAN
 Purpose: Connects offices, branches, or campuses within a city

Examples:

 Cable TV networks in a city


 University campus network connecting multiple buildings
 City-wide Wi-Fi network
 Banking network connecting branches in a city

Advantages:

 Covers larger area than LAN


 High-speed connectivity
 Centralized management of network resources
 Cost-effective for organizations with multiple locations in a city

Disadvantages:

 Complex setup and management


 Higher costs than LAN
 Requires skilled technicians
 Potential security vulnerabilities

3. WAN (Wide Area Network)

Definition: A network that covers a broad geographical area, connecting multiple LANs and
MANs across cities, countries, or continents.

Characteristics:

 Ownership: Typically uses leased telecommunication lines


 Speed: Varies widely (from 56 Kbps to 100+ Gbps)
 Cost: High installation and operational costs
 Congestion: Higher traffic and potential for congestion

Technologies Used:

 Leased lines (T1, T3, E1, E3)


 MPLS (Multiprotocol Label Switching)
 Frame Relay
 ATM
 Satellite links
 VPN (Virtual Private Network)

Examples:

 The Internet (largest WAN)


 Corporate networks connecting offices worldwide
 Banking networks connecting international branches
 Airline reservation systems

Advantages:

 Connects geographically dispersed locations


 Enables global communication and resource sharing
 Centralized data management across locations
 Supports remote work and collaboration

Disadvantages:
 Expensive to set up and maintain
 Lower speeds compared to LAN
 Complex troubleshooting
 Security concerns over public networks
 Dependent on third-party service providers

4. PAN (Personal Area Network)

Definition: A network for personal devices within the range of an individual person, typically
within 10 meters.

Characteristics:

 Ownership: Owned by individual user


 Speed: Low to moderate (1 Mbps to 24 Mbps for Bluetooth)
 Cost: Very low
 Purpose: Connect personal devices

Examples:

 Smartphone connected to wireless earbuds


 Smartwatch syncing with phone
 Wireless keyboard and mouse connected to computer
 Fitness tracker syncing with smartphone
 File transfer between phones using Bluetooth

Advantages:

 Easy to set up
 Low cost
 Portable and flexible
 Low power consumption
 No infrastructure required

Disadvantages:

 Very limited range


 Limited data transfer speeds
 Interference from other devices
 Security concerns (especially with Bluetooth)
 Limited number of devices can connect simultaneously

Illustration of Network Topologies


Network topology refers to the arrangement of different elements (links, nodes) in a computer
network. There are two types: physical topology (actual layout) and logical topology (how data
flows).

1. Star Topology

Description: All devices are connected to a central hub or switch. Data passes through the
central device to reach its destination.

Structure:

Device A
|
Device D -- HUB/SWITCH -- Device B
|
Device C

Characteristics:

 Central node controls all communication


 Each device has dedicated connection to central device
 Most commonly used topology today

Advantages:

 Easy to install and configure


 Easy to add new devices
 Failure of one device doesn't affect others
 Easy to detect and isolate faults
 Better performance (no data collisions with switches)
 Centralized management

Disadvantages:

 Central device failure brings down entire network


 Requires more cable than bus topology
 Higher cost due to central device and cabling
 Performance depends on central device capacity

2. Ring Topology

Description: Devices are connected in a circular fashion where each device is connected to
exactly two other devices. Data travels in one direction (or both in dual ring) around the ring.

Structure:
Device A -- Device B
| |
Device D -- Device C

Characteristics:

 Data travels in circular pattern


 Each device acts as repeater
 Token passing protocol often used (Token Ring)
 Can be unidirectional or bidirectional

Advantages:

 Equal access for all devices


 No data collisions with token passing
 Can handle high traffic better than bus
 Easy to identify cable faults
 Performance degrades gradually under heavy load

Disadvantages:

 Failure of single device can disrupt entire network (in single ring)
 Difficult to add or remove devices
 Troubleshooting is difficult
 Slower than star topology
 Entire network must be temporarily taken down to add devices

3. Mesh Topology

Description: Every device is connected to every other device in the network. Provides multiple
paths for data transmission.

Types:

Full Mesh:

 Every device connects to every other device


 Number of connections = n(n-1)/2 (where n = number of devices)
 Highly redundant and reliable

Partial Mesh:

 Some devices connect to all, others connect to only those they exchange most data with
 Balance between cost and redundancy

Characteristics:
 Multiple paths between devices
 High redundancy
 Self-healing capability

Advantages:

 Highly reliable and robust


 Failure of one link doesn't affect network
 Multiple paths ensure fast data transmission
 No traffic congestion
 Easy to isolate faults
 Secure (dedicated links)
 Data can be transmitted simultaneously

Disadvantages:

 Very expensive (requires many cables and ports)


 Complex installation and configuration
 Difficult to maintain
 Requires large space for cables
 High redundancy may be unnecessary for small networks

4. Bus Topology

Description: All devices are connected to a single central cable (backbone). Data sent by any
device travels along the backbone until it reaches its destination.

Structure:

(Backbone/Bus)

| | | |
Device A -- Device B -- Device C -- Device D

Characteristics:

 Single cable acts as shared communication medium


 Terminators at both ends prevent signal reflection
 Uses coaxial cable or twisted pair
 CSMA/CD (Carrier Sense Multiple Access with Collision Detection) protocol

Advantages:
 Easy to install and extend
 Requires less cable than star topology
 Cost-effective for small networks
 Easy to add new devices
 Works well for small networks

Disadvantages:

 Backbone failure brings down entire network


 Limited cable length and number of devices
 Difficult to troubleshoot
 Performance degrades with more devices
 Data collisions occur
 Slower than star topology
 Not suitable for large networks
 Security issues (all devices see all data)

Applications:

 Legacy Ethernet networks (10BASE2, 10BASE5)


 Small temporary networks
 Rarely used in modern networks

Internet Protocols
Protocols are standardized rules that define how data is transmitted and received over networks.

1. HTTP (Hypertext Transfer Protocol)

Definition: An application layer protocol used for transmitting hypermedia documents (HTML
pages) on the World Wide Web.

Characteristics:

 Layer: Application Layer (Layer 7)


 Port: 80 (HTTP), 443 (HTTPS)
 Connection: Request-response model
 Transport: Uses TCP

How it Works:

1. Client (browser) sends HTTP request to server


2. Server processes request
3. Server sends HTTP response back to client
4. Connection can be closed or kept alive
HTTP Methods:

 GET: Retrieve data from server


 POST: Submit data to server
 PUT: Update existing resource
 DELETE: Remove resource

HTTP Status Codes:

 1xx: Informational
 2xx: Success (200 OK, 201 Created)
 3xx: Redirection (301 Moved Permanently, 302 Found)
 4xx: Client errors (400 Bad Request, 404 Not Found)
 5xx: Server errors (500 Internal Server Error, 503 Service Unavailable)

HTTPS (HTTP Secure):

 Encrypted version using SSL/TLS


 Provides authentication and data integrity
 Port 443
 Essential for secure transactions

Advantages:

 Simple and easy to implement


 Platform independent
 Widely supported

Disadvantages:

 Stateless (requires cookies/sessions for state management)


 Not secure without encryption (HTTPS)
 Overhead for small transactions

2. TCP (Transmission Control Protocol)

Definition: A connection-oriented transport layer protocol that provides reliable, ordered


delivery of data between applications.

Characteristics:

 Layer: Transport Layer (Layer 4)


 Type: Connection-oriented
 Reliability: Guaranteed delivery with error checking
 Order: Maintains sequence of packets
 Flow Control: Prevents overwhelming receiver
 Congestion Control: Adjusts transmission rate

How it Works:

Three-Way Handshake (Connection Establishment):

1. SYN: Client sends synchronization packet


2. SYN-ACK: Server acknowledges and sends its own SYN
3. ACK: Client acknowledges server's SYN

Data Transfer:

 Data divided into segments


 Each segment numbered sequentially
 Receiver sends acknowledgments
 Lost segments are retransmitted

Advantages:

 Reliable data delivery


 Error checking and correction
 Flow control prevents data loss
 Ordered packet delivery
 Connection-oriented ensures both parties are ready

Disadvantages:

 Higher overhead than UDP


 Slower than UDP
 Connection setup time required
 Not suitable for real-time applications

Applications:

 Web browsing (HTTP/HTTPS)


 Email (SMTP, POP3, IMAP)
 File transfer (FTP)
 Remote access (SSH, Telnet)

3. FTP (File Transfer Protocol)

Definition: An application layer protocol used for transferring files between a client and server
on a network.
Characteristics:

 Layer: Application Layer (Layer 7)


 Ports:
o Port 21 (control/command connection)
o Port 20 (data transfer in active mode)
 Transport: Uses TCP
 Type: Connection-oriented

How it Works:

Two Connections:

1. Control Connection (Port 21): Commands and responses


2. Data Connection: Actual file transfer

Advantages:

 Simple file transfer


 Supports large file transfers
 Can transfer multiple files
 Resume interrupted transfers
 Directory navigation

Disadvantages:

 Not secure (credentials and data sent in plain text)


 Difficult to configure through firewalls
 No encryption without FTPS/SFTP
 Two-channel approach can be complex

Applications:

 Website file management


 Transferring files between servers
 Backing up data
 Distributing software

4. UDP (User Datagram Protocol)

Definition: A connectionless transport layer protocol that provides fast, unreliable delivery of
datagrams without guaranteed delivery or ordering.

Characteristics:

 Layer: Transport Layer (Layer 4)


 Type: Connectionless
 Reliability: No guarantee of delivery
 Order: No guarantee of sequence
 Speed: Faster than TCP
 Overhead: Minimal header (8 bytes)

How it Works:

1. Application creates datagram


2. UDP adds header
3. Datagram sent to network layer
4. No acknowledgment or retransmission
5. Receiver processes datagrams as they arrive

UDP Header Fields:

 Source Port: Sending application (optional)


 Destination Port: Receiving application
 Length: Size of datagram including header
 Checksum: Error detection (optional in IPv4)

Features:

 No connection establishment (no handshake)


 No congestion control
 No flow control
 Stateless protocol
 Broadcast and multicast support

Advantages:

 Fast transmission (no connection overhead)


 Low latency
 Suitable for real-time applications
 Smaller packet size
 Supports broadcast and multicast
 Simple protocol

Disadvantages:

 Unreliable delivery (packets can be lost)


 No error recovery
 No guaranteed ordering
 No congestion control
 Application must handle reliability if needed
Applications:

 DNS: Domain name lookups


 DHCP: IP address assignment
 Streaming: Video/audio streaming
 VoIP: Voice over IP
 Online Gaming: Real-time multiplayer games
 TFTP: Trivial File Transfer Protocol
 SNMP: Network management

Network Troubleshooting Tools


Network troubleshooting tools help diagnose connectivity issues, performance problems, and
network configuration errors.

Function of Various Network Troubleshooting Tools

1. Ping

Function: Tests connectivity between two devices by sending ICMP echo request packets and
measuring response time.

Purpose:

 Check if host is reachable


 Measure round-trip time (latency)
 Test packet loss
 Verify network connectivity

How it Works:

 Sends ICMP Echo Request packets


 Target responds with Echo Reply
 Measures time taken for round trip
 Reports statistics (packets sent, received, lost, min/max/avg time)

Output Information:

 Reply from IP address


 Time in milliseconds (TTL - Time To Live)
 Packet loss percentage
 Minimum, maximum, average round-trip time

Common Uses:

 Verify internet connection


 Test if server is responding
 Measure network latency
 Basic connectivity diagnosis

2. Traceroute (tracert in Windows)

Function: Traces the path packets take from source to destination, showing all intermediate
routers (hops).

Purpose:

 Identify network path to destination


 Locate where packets are being dropped
 Measure latency at each hop
 Diagnose routing problems

How it Works:

 Sends packets with incrementing TTL values


 Each router decrements TTL and sends ICMP Time Exceeded when TTL reaches 0
 Maps each hop along the route
 Displays IP address and response time for each router

Output Information:

 Hop number
 Router IP address and hostname
 Response time for each hop (usually 3 probes per hop)
 Asterisks (*) indicate timeouts

Common Uses:

 Identify slow network segments


 Find routing loops
 Determine geographic path of packets
 Locate network bottlenecks

3. Ipconfig (Windows) / ifconfig (Linux/Unix)

Function: Displays and manages network interface configuration information.

Purpose:

 View IP address, subnet mask, gateway


 Display MAC address
 Show DNS servers
 Renew/release DHCP leases

Output Information:

 Adapter name
 Physical (MAC) address
 DHCP enabled status
 IPv4/IPv6 addresses
 Subnet mask
 Default gateway
 DNS servers
 DHCP server address

Common Uses:

 Verify network configuration


 Troubleshoot DHCP issues
 Clear DNS cache
 Check IP address assignments

4. Nslookup

Function: Queries DNS servers to obtain domain name or IP address information.

Purpose:

 Resolve domain names to IP addresses


 Reverse lookup (IP to domain)
 Test DNS server functionality
 Verify DNS records

How it Works:

 Sends query to DNS server


 Returns requested DNS information
 Can operate in interactive or non-interactive mode

Common Queries:

 A Record: Domain to IPv4 address


 AAAA Record: Domain to IPv6 address
 MX Record: Mail server information
 NS Record: Name server information
 PTR Record: Reverse lookup (IP to domain)

Output Information:
 DNS server used for query
 Domain name
 IP address(es)
 Record type

Common Uses:

 Troubleshoot DNS resolution issues


 Verify DNS propagation
 Check mail server configuration
 Test DNS server response

5. Netstat

Function: Displays active network connections, listening ports, routing tables, and network
statistics.

Purpose:

 View active connections


 Monitor network traffic
 Identify listening services
 Display routing table
 Show network statistics

Output Information:

 Protocol (TCP/UDP)
 Local address and port
 Foreign address and port
 Connection state (LISTENING, ESTABLISHED, etc.)
 Process ID (PID)

Connection States:

 LISTENING: Waiting for connection


 ESTABLISHED: Active connection
 TIME_WAIT: Waiting after closing
 CLOSE_WAIT: Waiting for local application to close

Common Uses:

 Identify open ports


 Detect unauthorized connections
 Monitor network activity
 Troubleshoot connection issues
 Security auditing

6. Pathping (Windows)

Function: Combines features of ping and traceroute, providing detailed statistics about packet
loss at each hop.

Purpose:

 Identify network degradation points


 Measure packet loss at each router
 Provide comprehensive path analysis

How it Works:

 First performs traceroute to destination


 Then pings each hop multiple times (typically 100 pings)
 Calculates statistics for each hop
 Takes longer than traceroute (typically 5+ minutes)

Output Information:

 Route to destination
 Packet loss percentage per hop
 Average latency per hop
 Link loss between hops

Common Uses:

 Identify problematic network segments


 Diagnose packet loss issues
 Comprehensive network path analysis
 Troubleshooting intermittent problems

7. Nmap (Network Mapper)

Function: Network scanning and security auditing tool that discovers hosts and services on a
network.

Purpose:

 Discover active devices on network


 Identify open ports
 Determine services and versions
 OS detection
 Security vulnerability scanning
Key Features:

 Port scanning (TCP/UDP)


 Service version detection
 OS fingerprinting
 Script scanning (NSE - Nmap Scripting Engine)

Common Uses:

 Network inventory
 Security auditing
 Vulnerability assessment
 Finding unauthorized devices

8. Wireshark

Function: Network protocol analyzer that captures and displays packet data in real-time.

Purpose:

 Capture network traffic


 Analyze protocols
 Troubleshoot network problems
 Security analysis
 Network forensics

Key Features:

 Live packet capture


 Deep packet inspection
 Protocol decoding
 Filtering and searching
 Statistics and graphs
 Follow TCP streams

Capabilities:

 Capture packets from wired/wireless interfaces


 Display detailed protocol information
 Filter packets by various criteria
 Export captured data
 Reconstruct file transfers

Common Uses:

 Troubleshooting network issues


 Analyzing protocol behavior
 Security investigations
 Network optimization
 Learning network protocols
 Detecting malware communication

9. ARP (Address Resolution Protocol)

Function: Maps IP addresses to MAC addresses on local network.

Purpose:

 View ARP cache


 Clear ARP cache
 Add static ARP entries
 Troubleshoot connectivity issues

Key Commands:

 arp -a: Display ARP cache


 arp -d: Delete ARP entry
 arp -s: Add static ARP entry

Output Information:

 IP address
 MAC (Physical) address
 Type (dynamic or static)

Common Uses:

 Verify MAC address mappings


 Troubleshoot local network issues
 Detect ARP spoofing
 Clear stale ARP entries

You might also like