Chapter-17: Network Protocols and Web Services

Introduction 

Understanding network protocols and web services is crucial for navigating the internet and creating web-based applications. This chapter covers various network protocols, the OSI model, and the basics of web services, including HTML, XML, IP addresses, domain names, URLs, ISPs, websites, web browsers, web servers, and web hosting. We will use simple explanations and examples relevant to India.

 

 Network Protocols 

Network protocols are rules that determine how data is transmitted and received over a network. Here are some common network protocols:

 

 HTTP (Hypertext Transfer Protocol) 

HTTP is the foundation of data communication on the World Wide Web.

 

Example:

When you type a URL in your browser, HTTP is used to request the web page from the server.

 

 FTP (File Transfer Protocol) 

FTP is used to transfer files between computers on a network.

 

Example:

Downloading software from a website.

 

 PPP (Point-to-Point Protocol) 

PPP is used to establish a direct connection between two network nodes.

 

Example:

Connecting to the internet through a modem.

 

 SMTP (Simple Mail Transfer Protocol) 

SMTP is used for sending emails.

 

Example:

Sending an email from your Gmail account.

 

 TCP/IP (Transmission Control Protocol/Internet Protocol) 

TCP/IP is a set of protocols governing the connection of computer systems to the internet.

 

Example:

Accessing a website, sending an email, or streaming a video.

 

 POP3 (Post Office Protocol 3) 

POP3 is used by email clients to retrieve emails from a server.

 

Example:

Downloading emails to your computer using an email client like Outlook.

 

 TELNET 

TELNET is used to provide a command-line interface for communication with a remote device.

 

Example:

Accessing a remote server to configure network settings.

 

 HTTPS (Hypertext Transfer Protocol Secure) 

HTTPS is HTTP with encryption, ensuring secure data transmission.

 

Example:

Online banking transactions.

 

 VoIP (Voice over Internet Protocol) 

VoIP allows voice calls to be made over the internet.

 

Example:

Using Skype or WhatsApp for voice calls.

 

 OSI Model 

The OSI (Open Systems Interconnection) model is a conceptual framework used to understand network interactions in seven layers.

 

 Layers of OSI Model 

1. Physical Layer: Deals with hardware connections.

2. Data Link Layer: Manages data frames between network nodes.

3. Network Layer: Handles data routing and forwarding.

4. Transport Layer: Ensures error-free data transmission.

5. Session Layer: Manages sessions between applications.

6. Presentation Layer: Translates data formats.

7. Application Layer: Provides network services to end-users.

 

Example:

Sending an email involves the application layer (email software), presentation layer (encryption), session layer (email session), transport layer (TCP), network layer (IP routing), data link layer (Ethernet), and physical layer (cables).

 

 Introduction to Web Services 

Web services allow different applications to communicate and share data over the internet.

 

 Key Concepts 

1. WWW (World Wide Web): A system of interlinked hypertext documents accessed via the internet.

2. HTML (Hypertext Markup Language): The standard language for creating web pages.

3. XML (eXtensible Markup Language): A language for defining data formats.

4. IP Addresses: Unique identifiers for devices on a network.

5. Domain Names: Human-readable addresses for websites.

6. URL (Uniform Resource Locator): The address of a web page.

7. ISP (Internet Service Provider): A company that provides internet access.

8. Website: A collection of web pages hosted on a web server.

9. Web Browser: Software to access web pages (e.g., Chrome, Firefox).

10. Web Server: A server that hosts websites.

11. Web Hosting: The service of providing storage space for websites.

 

Example:

Accessing the [Indian Railways website](https://www.indianrail.gov.in) involves using a browser to enter the URL, which is translated into an IP address by the DNS, and the request is sent to the web server hosting the website.

 

 HTML 

HTML is the standard language for creating web pages.

 

 Basic Tags and Document Structure 

An HTML document starts with a doctype declaration and includes `<html>`, `<head>`, and `<body>` tags. 

 

<!DOCTYPE html>

<html>

<head>

    <title>My First Web Page</title>

</head>

<body>

    <h1>Welcome to My Website</h1>

    <p>This is a paragraph.</p>

</body>

</html>

 

 

 Creating a Simple Web Page 

1. Head Tags: Contain meta-information about the document.

2. Title Tags: Set the title of the web page.

3. Body Tags: Contain the content of the web page.

 

Example:

A simple web page with a title and a welcome message.

 

 Formatting Text 

Use tags like `<b>`, `<i>`, `<u>`, `<h1>`, etc., to format text. 

<p><b>Bold Text</b></p>

<p><i>Italic Text</i></p>

<p><u>Underlined Text</u></p>

 

 

 Creating Tables 

Use `<table>`, `<tr>`, and `<td>` tags to create tables.

 

 

<table border="1">

    <tr>

        <th>Name</th>

        <th>Marks</th>

    </tr>

    <tr>

        <td>Rahul</td>

        <td>85</td>

    </tr>

    <tr>

        <td>Anjali</td>

        <td>90</td>

    </tr>

</table>

 

 

 Adding Web Links and Images 

Use `<a>` tags for links and `<img>` tags for images. 

<a href="https://www.example.com">Visit Example</a>

<img src="image.jpg" alt="Example Image">

 

 

 Forms 

Use `<form>` tags to create forms for user input. 

<form action="/submit" method="post">

    <label for="name">Name:</label>

    <input type="text" id="name" name="name">

    <input type="submit" value="Submit">

</form>

 

 

 Adding Styles and Classes to Web Pages 

Use CSS (Cascading Style Sheets) to style web pages.

 

<style>

    .highlight {

        color: red;

        font-weight: bold;

    }

</style>

<p class="highlight">This is a highlighted text.</p>

 

 

 Borders and Backgrounds 

Use CSS to add borders and backgrounds. 

 

<p style="border: 2px solid black; background-color: lightgrey;">Styled paragraph.</p>

 

 

 Adding Video and Graphics 

Use `<video>` and `<canvas>` tags to add multimedia. 

 

<video controls>

    <source src="movie.mp4" type="video/mp4">

    Your browser does not support the video tag.

</video>

 

 

 Conclusion 

Understanding network protocols and web services is essential for navigating and utilizing the internet effectively. This chapter provided an overview of common network protocols, the OSI model, and the basics of web services, including HTML and its applications, with examples relevant to India.

 

 References 

1. Data Communications and Networking by Behrouz A. Forouzan

2. HTML and CSS: Design and Build Websites by Jon Duckett

3. GeeksforGeeks: [Network Protocols](https://www.geeksforgeeks.org/computer-network-network-protocols/)

4. W3Schools: [HTML Tutorial](https://www.w3schools.com/html/)

5. Wikipedia: [Web Service](https://en.wikipedia.org/wiki/Web_service)

x

Comments

Popular posts from this blog

Chapter 3: Special Areas of Audit in India

Chapter 1: Introduction to Income Tax in India

NBU CBCS SEC (H) : E-Commerce Revised Syllabus