0% found this document useful (0 votes)
2 views4 pages

Networking Basic Notes

In networking, a domain is a unique name identifying a network, while hosting refers to storing a website on a server for public access. For example, registering a domain like mybusiness.com and finding a hosting provider to store the website illustrates their relationship. Additionally, the document discusses various routing protocols, the TCP/IP model, web browsers, CSS properties, and the differences between classes and IDs in styling HTML elements.

Uploaded by

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

Networking Basic Notes

In networking, a domain is a unique name identifying a network, while hosting refers to storing a website on a server for public access. For example, registering a domain like mybusiness.com and finding a hosting provider to store the website illustrates their relationship. Additionally, the document discusses various routing protocols, the TCP/IP model, web browsers, CSS properties, and the differences between classes and IDs in styling HTML elements.

Uploaded by

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

What is Domain and hosting in networking Explain with Example?

In networking, a domain is a collection of computers and devices that are part of the same network and share a common
domain name. A domain name is a unique name that identifies a specific network or organization on the internet. For
example, [Link] is a domain name that identifies the Google network on the internet.

On the other hand, hosting refers to the process of storing a website or web application on a server so that it can be
accessed by people on the internet. A hosting provider is a company that offers this service by providing space on a
server, bandwidth, and other resources needed for a website to function properly.

To illustrate the relationship between domain and hosting, let's consider an example. Suppose you want to create a
website for your business. First, you would need to register a domain name, such as [Link]. Once you have a
domain name, you would then need to find a hosting provider that can store your website on a server and make it
accessible to the public.

You can think of the domain name as the address of your business, while hosting is like renting a physical space to store
your products and services. In the same way, a domain name allows people to find your website on the internet, while
hosting provides the infrastructure needed for your website to function properly.

An authoritative name server (also called an "authoritative DNS server") is a type of DNS server that
provides authoritative answers to DNS queries for a specific domain name.

When a user enters a domain name (such as "[Link]") into their web browser, the browser
needs to know the IP address of the server hosting the website in order to connect to it. The
browser sends a DNS query to a DNS resolver, which in turn sends a query to a series of DNS
servers to resolve the domain name to an IP address.

If the DNS server receiving the query is authoritative for the domain name being queried, it can
provide a definitive answer. An authoritative name server contains a complete and accurate
database of all the resource records for the domain name it is authoritative for, including the IP
address(es) of the servers hosting the website.

In summary, authoritative name servers play a critical role in the process of resolving domain names
to IP addresses, and ensure that users can connect to the correct server when accessing websites on
the internet.

Link state routing is a type of routing protocol used in computer networks to determine the best path for data
to travel from one network node to another. The process of selecting the best path in link state routing involves several
criteria, including:

Shortest Path: Link state routing protocol determines the shortest path between the source and destination nodes
based on the distance or cost metric of each link. The cost metric can be based on factors such as bandwidth, delay, and
congestion.

Bandwidth: The link state routing protocol takes into account the available bandwidth of each link while selecting the
best path. The path with the highest available bandwidth is preferred over the path with lower bandwidth.

Delay: The link state routing protocol considers the delay or latency of each link while selecting the best path. The path
with the lowest delay is preferred over the path with higher delay.
Load Balancing: Link state routing protocols can balance the traffic load across multiple paths between the source and
destination nodes to avoid congestion and optimize network performance.

Reliability: The link state routing protocol considers the reliability of each link while selecting the best path. The path
with the highest reliability is preferred over the path with lower reliability.

In summary, the link state routing protocol selects the best path based on a combination of factors, including shortest
path, bandwidth, delay, load balancing, and reliability, to ensure efficient and reliable data transmission in the network.

Distance vector routing is another type of routing protocol used in computer networks to determine the best
path for data to travel from one network node to another. Unlike link state routing, distance vector routing selects the
best path based on the number of hops or the distance to the destination network. The process of selecting the best
path in distance vector routing involves the following criteria:

Hop Count: The distance vector routing protocol selects the path with the least number of hops to the destination
network. The hop count is a simple metric that measures the number of routers or nodes that a packet must traverse
to reach the destination network.

Routing Metrics: Distance vector routing protocols can also use additional metrics such as bandwidth, delay, and load
balancing to select the best path. In this case, the routing table for each router contains not only the number of hops to
each network but also other metrics such as the available bandwidth and delay.

Routing Updates: Distance vector routing protocols rely on periodic updates from neighboring routers to determine the
best path. Each router exchanges routing information with its neighbors and updates its routing table accordingly. The
updates contain information about the distance and metrics to each network, and the router selects the best path based
on this information.

Split Horizon: Distance vector routing protocols use a technique called split horizon to avoid loops in the network. With
split horizon, a router does not advertise routes to a network back to the same network from which it received the
update.

In summary, distance vector routing selects the best path based on the number of hops or distance to the destination
network, along with additional metrics such as bandwidth, delay, and load balancing. The protocol uses periodic updates
and split horizon to avoid loops in the network and ensure efficient data transmission.

The TCP/IP model is a conceptual framework for how data is transmitted over a network. It is a protocol suite
that is used for communication between devices on the internet and other networks. The TCP/IP model consists of four
layers, each with a specific function. These layers are:
1. Application Layer: This layer represents the protocols and interfaces that applications use to access network
services. Examples of protocols at this layer include HTTP, SMTP, FTP, and Telnet.
2. Transport Layer: The Transport Layer provides end-to-end communication services to applications. The primary
protocol at this layer is the Transmission Control Protocol (TCP), which provides reliable, ordered, and error-
checked delivery of data between applications. The User Datagram Protocol (UDP) is another protocol at this
layer that provides unreliable, unordered, and unchecked delivery of data.
3. Internet Layer: This layer handles the routing of data packets between networks. The Internet Protocol (IP) is
the primary protocol at this layer, which provides addressing and routing of packets across the internet.
4. Link Layer: The Link Layer handles the physical transmission of data packets over a network. This layer includes
hardware and software components such as network interface cards, Ethernet, and Wi-Fi.
The TCP/IP model is often compared to the OSI model, another conceptual framework for how data is transmitted over
a network. However, the TCP/IP model is more commonly used in practice, particularly on the internet.
The TCP/IP and OSI models are two conceptual frameworks for how data is transmitted over a network. Here are some
key differences between them:

1. Number of Layers: The OSI model has seven layers, while the TCP/IP model has four layers.
2. Layer Names and Functions: The names and functions of the layers are different between the two models. For
example, the Transport Layer in TCP/IP includes both the functions of the OSI Transport and Session Layers, while
the TCP/IP Internet Layer includes the functions of the OSI Network Layer and some aspects of the Data Link Layer.
3. Protocol Implementation: The OSI model is a theoretical model, while the TCP/IP model is based on protocols
that have been implemented in practice. The TCP/IP model is more commonly used on the Internet and in real-
world networking, while the OSI model is primarily used for teaching and theoretical discussions.
4. Standardization: The OSI model has been standardized by the International Organization for Standardization
(ISO), while the TCP/IP model has not been officially standardized.
5. Compatibility: Most network devices support both the TCP/IP and OSI models, and many protocols are compatible
with both models. However, some protocols are specific to one model or the other.

Overall, while the two models have some similarities and overlap in functionality, the TCP/IP model is more widely used
and practical, while the OSI model is more theoretical and used primarily for teaching and academic purposes.

A web browser is a software application used to access and display web pages on the internet. Here are some of the key
functions of a web browser:
1. Retrieving Web Pages: A web browser retrieves web pages from servers on the internet, using protocols such
as HTTP (Hypertext Transfer Protocol) or HTTPS (HTTP Secure).
2. Rendering Web Pages: A web browser displays web pages on the user's device, interpreting HTML (Hypertext
Markup Language) and CSS (Cascading Style Sheets) code to render text, images, and other content.
3. Managing Bookmarks and History: A web browser allows users to save and organize bookmarks for frequently
visited websites, and also maintains a history of visited websites.
4. Managing Cookies: A web browser allows websites to store small text files called cookies on the user's device,
which can be used to remember user preferences or login information.
5. Managing Extensions and Add-ons: A web browser may support extensions and add-ons, which provide
additional functionality such as ad-blocking, password management, or custom themes.
6. Supporting Web Standards: A web browser must comply with various web standards and protocols to ensure
that web pages are displayed correctly and can be interacted with by users.
A web browser may provide various security features such as SSL/TLS encryption, anti-phishing filters, and
warnings for potentially malicious websites.
Overall, the primary function of a web browser is to allow users to access and view web pages on the internet, while
providing various features and tools to enhance the user experience and ensure security.

Padding and margin are two properties in CSS that are used to create space around an HTML element, but
they have different functions.
Padding is the space between the content of an HTML element and its border. It is used to create space within an
element, and it affects the size of the content area of the element. Padding can be set using the padding property in
CSS, and it can be specified in pixels, ems, or percentages.
Margin, on the other hand, is the space between an HTML element and the other elements around it. It is used to create
space between elements, and it affects the layout of the page. Margin can be set using the margin property in CSS, and
it can also be specified in pixels, ems, or percentages.
In other words, padding is used to create space within an element, while margin is used to create space around an
element. Here is a simple example to illustrate the difference:

<div style="border: 1px solid black; padding: 10px; margin: 10px;">


This is an example of a div element with padding and margin.
</div>
In this example, the div element has a black border, 10 pixels of padding, and 10 pixels of margin. The padding creates
space within the div element between its content and the border, while the margin creates space around the div
element between it and the other elements on the page.

In summary, padding is used to create space within an element, while margin is used to create space around an element.
Both properties can be set using the padding and margin properties in CSS, and they can be specified in pixels, ems, or
percentages.

In CSS, classes and IDs are both used to target and style HTML elements, but they have some
important differences:
1. ID selectors are unique, while class selectors can be used multiple times: An ID is a unique identifier that can
only be used once on a web page, while a class can be used multiple times. This means that if you have multiple
elements on a page that need to be styled in the same way, you would use a class selector to apply the same
style to all of them, while an ID selector would only be used for a single unique element.
2. ID selectors have higher specificity than class selectors: When multiple CSS selectors apply to the same
element, the selector with the highest specificity will take precedence. ID selectors have a higher specificity than
class selectors, which means that an ID selector will override a class selector if both are applied to the same
element. This makes IDs useful for targeting specific elements that need to have unique styles applied.
3. ID selectors are typically used for page anchors: IDs are commonly used in HTML to create anchors that can be
linked to from other parts of the page or from other pages. In CSS, you can use ID selectors to target these
anchors and apply styles to them.

/* class selector */
.my-class {
color: blue;
}

/* ID selector */
#my-id {
color: red;
}

In this example, the .my-class selector will apply the color blue to any element that has the my-class class applied to it,
while the #my-id selector will apply the color red to the element with the unique ID of my-id.

In summary, classes are used to style multiple elements that share the same properties, while IDs are used to target
specific unique elements on a page. Classes can be used multiple times, while IDs can only be used once. IDs also have
a higher specificity than classes, which means that they will override class styles if both are applied to the same element.

You might also like