Work Basics
Work Basics
Theory
Ethical Hacking
A network is a group of two or more computer systems or other devices
that are linked together to exchange data. In networks, computing devices
exchange data with each other using data links between nodes. These data links
are established with the help of cable media such as wires or wireless media
such as WiFi.
Types of Networks
OSI model
OSI (Open Systems Interconnection) is a reference model for how
applications communicate over a network. The main concept of OSI is that the
process of communication between two endpoints in a network can be divided
into seven distinct groups of related functions or layers. Each communicating
user or program is on a device that can provide those seven layers of function.
The seven Open Systems Interconnection layers are:
Layer 1: Physical Layer
This layer conveys the bit stream across the network either electrically,
mechanically or through radio waves. The physical layer covers a variety of
devices and mediums, among them cabling, connectors, receivers, transceivers,
and repeaters.
Layer 2: Data Link Layer
This layer sets up links across the physical network, putting packets into
network frames. This layer has two sublayers the logical link control layer and
the media access control layer (MAC). MAC layer types include Ethernet and
802.11 wireless specifications.
Layer 3: Network Layer
This layer handles addressing and routing the data. To transfer it from the
right source to the right destination. The IP address is part of the network layer.
Layer 4: Transport Layer
This layer manages packetization of data, then the delivery of the packets,
including checking for errors in the data once it arrives. On the internet, TCP
and UDP provide these services for most applications.
Layer 5: Session Layer
The session layer controls the connections between computers. It
establishes, manages and terminates the connections between the local and
remote application.
Layer 6: Presentation Layer
This layer is usually part of an operating system (OS) and converts
incoming and outgoing data from one presentation format to another for
example, from clear text to encrypted text at one end and back to clear text at
the other.
Layer 7: Application Layer
The application layer of the OSI model interacts with the end user.
Protocols at this layer handle the requests from different software applications.
If a web browser wants to download an image, an email client wants to check
the server, and a file-sharing program wants to upload a movie, the protocols in
the application layer will process those requests.
IP address
An Internet Protocol address (IP address) is a numerical label assigned to
each device connected to a computer network. IP address serves two purposes,
host or network interface identification and location addressing. Internet
Protocol version 4 (IPv4) defines an IP address as a 32-bit number and new
version of IP (IPv6), uses 128 bits for the IP address.
Private IP address: A private IP address is a non-Internet facing IP address.
Private IP addresses are provided by network devices, such as routers, using
network address translation (NAT).
Public IP address: A public IP address is an IP address that can be accessed
over the Internet. The public IP address is a globally unique IP address assigned
to a computing device.
IPv4: Internet Protocol Version 4 is the fourth revision of the Internet Protocol
used to identify devices on a network. IPv4 is the most widely deployed Internet
protocol used to connect devices to the Internet. IPv4 uses a 32-bit address
scheme allowing a total of 2^32 addresses.
IPv6: Internet Protocol Version 6 is the newest version of the Internet Protocol
reviewed in the IETF standards committees to replace the current version of
IPv4. IPv6 addresses are 128-bit IP address written in hexadecimal and
separated by colons. An example IPv6 address could be written like this 3ffe:
1900:4545:3:200: f8ff: fe21:67cf.
IP address classes
There are five classes of IP addresses, they are Class A, Class B, Class C, Class
D and Class E, where only A, B, and C are commonly used.
Subnetwork (Subnet)
A subnet is a logical subdivision of an IP network. Dividing a network
into two or more networks is known as subnetting. Computers that belong to a
subnet are addressed with a significant bit-group in their IP addresses.
Subnetting results in the logical division of an IP address into two parts, the
network address, and the host identifier.
Super network (Supernet)
Supernet is an Internet Protocol network that is formed, for combining
two or more networks into a larger network. The benefits of supernetting are
conservation of address space, gaining efficiency regarding memory storage and
route information processing.
TCP
TCP stands for Transmission Control Protocol, which is a widely used
protocol for data transmission over a network. TCP establishes a connection
between two hosts before transmitting data, to ensure that data transmitted over
the network reaches the destination without fail. TCP also known as a
connection-oriented protocol, establishes a reliable connection between sender
and receiver. TCP provides error and flow control mechanisms which help in
orderly transmission of data and retransmission of lost packets.
UDP
UDP stands for User Datagram Protocol, which is connectionless
protocol, mostly used for connections that can tolerate data loss. UDP is used by
applications on the internet that offer voice and video communications, which
can suffer some data loss without adversely affecting the quality. UDP does not
provide error and flow control mechanisms because of which it does not require
a connection to be established before transmitting data over the network.
ICMP
ICMP stands for Internet Control Message Protocol; this is widely used
for internet communication troubleshooting or generated in response to errors in
IP operations, this will send packets to the target machine and will see whether
the packets are delivered or not.
Address Resolution Protocol
Address Resolution Protocol (ARP) is a communication protocol used for
discovering the link layer address, such as a MAC address, associated with a
given network layer address. This mapping is a critical function in the Internet
Protocol suite. It works within the boundaries of a single network never routed
across internetworking nodes. ARP uses a simple message format containing
one address resolution request or response. The size of the ARP message
depends on the link layer and network layer address sizes.
Routing
Routing is the process of selecting a path for traffic in a network or across
multiple networks. In routing, network packets from their source toward their
destination are routed through intermediate network nodes by specific packet
forwarding mechanisms. Intermediate nodes are typically networked hardware
devices such as routers, bridges, gateways, firewalls, or switches. In routing,
process packets are directed on based on routing tables, which maintain a record
of the routes to various network destinations. An administrator specifies the
routing table.
Routing protocol
Routing protocol specifies how routers communicate with each other,
distributing information, which enables them to select routes between any two
nodes on a computer network. Routing algorithms determine to choose a
specific route. A routing protocol shares this information first among immediate
neighbors, and then throughout the network. The major types of routing
protocols.
● Routing Information Protocols (RIP)
● Interior Gateway Routing Protocol (IGRP)
● Open Shortest Path First (OSPF)
● Exterior Gateway Protocol (EGP)
● Enhanced Interior Gateway Routing Protocol (EIGRP)
● Border Gateway Protocol (BGP)
● Intermediate System-to-Intermediate System (IS-IS)
References: