Advanced Study Material for Computer Science: Introduction to Internet and WWW
Review targeted academic resources with the Internet Technology and Web Design Chapter 02 TCP IP Internet Technology and Protocol Notes Set 01. Built according to official standards for the 2026-27 term, these downloadable Computer Science study materials support effective daily practice and deeper conceptual understanding for Introduction to Internet and WWW.
Practice Computer Science Resources: Introduction to Internet and WWW
Navigate directly to the advanced Computer Science study materials using the digital viewer below. Each resource pack includes detailed conceptual summaries and solved practice questions, allowing students to instantly reinforce their learning.
This chapter explains how data travels across the Internet as packets and how TCP and IP make that dependable. It covers TCP operation and header fields, IPv4 and IPv6, routing with NAT and PAT, IP address classes, e-mail addresses and the structure of a URL with schemes and port numbers.
Objectives
After this chapter you should be able to know about packet switching technology, understand the concept of internet protocols and learn the internet addressing scheme.
Packet Switching Technology
Packet Switching Technology
- Packet switching is a digital networking communication method that groups all transmitted data, regardless of content, type or structure, into suitably sized blocks called packets.
- Packet switching is the dividing of messages into packets before they are sent, transmitting each packet individually, and then reassembling them into the original message once all of them have arrived at the intended destination.
- One fundamental way of differentiating networking technologies is on the basis of the method they use to determine the path between devices over which information will flow.
- In highly simplified terms, there are two approaches
- A path can be set up between the devices in advance or the data can be sent as individual data elements over a variable path.
- In this network type, no specific path is used for data transfer.
- Instead, the data is chopped up into small pieces called packets and sent over the network.
- The packets can be routed, combined or fragmented, as required to get them to their eventual destination.
- On the receiving end, the process is reversed, the data is read from the packets and re-assembled into the form of the original data.
- A packet-switched network is more analogous to the postal system than it is to the telephone system (though the comparison isn't perfect).
- In a packet-switched network, no circuit is set up prior to sending data between devices.
- Blocks of data, even from the same file or communication, may take any number of paths as it travels from one device to another.
Internet Protocols
Introduction to Internet Protocols
- The internet protocol is a set of rules governing the format of data sent over the internet or other network.
- The Internet protocols consist of a suite of communication protocols, of which the two best known are
- Transmission Control Protocol (TCP)
- Internet Protocol (IP)
- The Internet protocol suite not only includes lower-layer protocols (such as TCP and IP), but it also specifies common applications such as electronic mail, terminal emulation, and file transfer.
- Internet protocols were first developed in the mid-1970s, when the Defense Advanced Research Projects Agency (DARPA) became interested in establishing a packet-switched network that would facilitate communication between dissimilar computer systems at research institutions.
- With the goal of heterogeneous connectivity in mind, DARPA funded research by Stanford University and Bolt, Beranek, and Newman (BBN). The result of this development effort was the Internet protocol suite, completed in the late 1970s.
- TCP/IP later was included with Berkeley Software Distribution (BSD) UNIX and has since become the foundation on which the Internet and the World Wide Web (WWW) are based.
- Documentation of the Internet protocols (including new or revised protocols) and policies are specified in technical reports called Request for Comments (RFCs), which are published and then reviewed and analyzed by the Internet community.
- Protocol refinements are published in the new RFCs. The Internet protocol suite spans the complete range of the OSI model layers.
Transmission Control Protocol (TCP)
- The second transport layer protocol is TCP.
- TCP (Transmission Control Protocol) is a protocol that works with the Internet Protocol (IP) to send packets of data between computers over the Internet.
- TCP establishes a full duplex virtual connection between two endpoints. Each endpoint is defined by an IP address and a TCP port number. The operation of TCP is implemented as a finite state machine.
- TCP/IP protocols are modeled in four layers.
TCP operation
- The primary purpose of the TCP is to provide dependable, securable logical circuit or connection service between pairs of processes.
- To provide this service the internet communication system requires facilities in the following areas
- Basic data transfer
- Reliability
- Flow control
- Multiplexing
- Connections
- Basic data transfer
- TCP is able to both transmit and receive data streams simultaneously, even though this is opposite to the basic concept of data transmission in many underlying network technologies.
- TCP is able to transfer a continuous stream of data in each direction between its users by packaging some number of data into segments for transmission through the internet system.
- In general, the TCPs decide when to block and forward data at their own convenience.
- The data unit transmitted from the TCP layer is referred to as a segment. The size of the segments and the timing at which they are sent is generally left to the TCP module.
- TCP applications request that the data is Pushed by instructing the TCP module to deliver all data up to that point without waiting to fill a Maximum Transmission Unit (MTU).
- Reliability
- TCP assigns a sequence number to each byte transmitted and expects a positive acknowledgment (ACK) from the receiving TCP.
- If the ACK is not received within the timeout interval, the data is then retransmitted.
- The receiving TCP uses the sequence numbers to rearrange the segments when they arrive out of order, and to eliminate duplicate segments.
- TCP provides dependable communication through a positive Acknowledgement system.
- Flow Control
- TCP provides a means for the receiver to govern the amount of data sent by the sender.
- This is achieved by returning a "window" with every ACK indicating a range of acceptable sequence numbers beyond the last segment successfully received.
- The window indicates an allowed number of octets that the sender may transmit before receiving further permission.
- Multiplexing
- TCP is able to provide a connection oriented environment for many simultaneous processes within a single host.
- TCP uses a set of ports which when concatenated with the IP address of the host, provide a socket that uniquely identifies an application process anywhere within the internet.
- Connections
- The reliability and flow control mechanisms described above require that TCPs initialize and maintain certain status information for each data stream.
- The combination of this information, including sockets, sequence numbers, and window sizes, is called a connection.
- Each connection is uniquely specified by a pair of sockets identifying its two sides.
- When two processes wish to communicate, their TCP must first establish a connection (initialize status information on both sides).
- When the communication is complete, the connection is terminated or closed to free the resources for other uses.
TCP Header
- The TCP segment comprises a header, and a variable length data area that ultimately carries application data.
- TCP header at minimum is 20 bytes long and maximum 60 bytes.
| Field | Size | Meaning |
|---|---|---|
| Source Port | 16 bits | Identifies source port of the application process on the sending device. |
| Destination Port | 16 bits | Identifies destination port of the application process on the receiving device. |
| Sequence Number | 32 bits | Sequence number of data bytes of a segment in a session. |
| Acknowledgement Number | 32 bits | When ACK flag is set, this number contains the next sequence number of the data byte expected and works as acknowledgement of the previous data received. |
| Data Offset | 4 bits | This field has two meanings. First, it tells the size of the TCP header (in 32-bit words). Secondly, it indicates the offset of data in the current packet in the whole TCP segment. |
| Reserved | 3 bits | Reserved for future use and all are set to zero by default. |
| Flags | 1 bit each | See the list of flags below. |
Flags (1 bit each)
| Flag | Meaning |
|---|---|
| NS | Nonce Sum bit is used by the Explicit Congestion Notification signaling process. |
| CWR | When a host receives a packet with the ECE bit set, it sets Congestion Window Reduced to acknowledge that ECE was received. |
| ECE | Has two meanings: if the SYN bit is clear to 0, then ECE means that the IP packet has its CE (congestion experience) bit set; if the SYN bit is set to 1, ECE means that the device is ECT capable. |
| URG | Indicates that the Urgent Pointer field has significant data and should be processed. |
| ACK | Indicates that the Acknowledgement field has significance. If ACK is cleared to 0, it indicates that the packet does not contain any acknowledgement. |
| PSH | When set, it is a request to the receiving station to PUSH data (as soon as it comes) to the receiving application without buffering it. |
| RST | Reset flag has many features: it is used to refuse an incoming connection, to reject a segment and to restart a connection. |
| SYN | This flag is used to set up a connection between hosts. |
| FIN | This flag is used to release a connection and no more data is exchanged thereafter. Because packets with SYN and FIN flags have sequence numbers, they are processed in correct order. |
TCP Client/server model
- TCP is a peer-to-peer, connection-oriented protocol.
- There are no master/subordinate relationships. The applications, however, typically use a client/server model for communications.
- A server is an application that offers a service to internet users. A client is a requester of a service.
- An application consists of both a server and a client part, which can run on the same or on different systems.
- Users invoke the client part of the application, which builds a request for a particular service and sends it to the server part of the application using TCP/IP as a transport medium.
- The server is a program that receives a request, performs the required service, and sends back the results in a reply.
Internet Protocol (IP)
- The Internet Protocol (IP) is the primary network protocol by which data is sent from one computer to another on the Internet.
- Each computer (known as a host) on the Internet has at least one IP address that uniquely identifies it from all other computers on the Internet.
- The Functions of Internet Protocol include
- Defining the Internet addressing schemes.
- Moving data between the Network access layer and Host-Host transport layer.
- Performing fragmentation and reassembly of datagrams.
- Routing datagrams to remote host.
- There are currently two versions of Internet Protocol - IPv4 and IPv6.
Overview of Internet Protocol version 4
- Internet Protocol Version 4 (IPv4) is the fourth revision of the IP and a widely used protocol in data communication over different kinds of networks.
- IPv4 is a connectionless protocol used in packet-switched layer networks, such as Ethernet. It provides the logical connection between network devices by providing identification for each device.
- Internet Protocol version 4 standard features IP addresses four bytes (32 bits) in length. IPv4 uses four 1-byte decimal numbers, separated by a dot (i.e. 192.168.1.1).
- There are many ways to configure IPv4 with all kinds of devices - including manual and automatic configurations - depending on the network type.
- The Internet Protocol version 6 (IPv6) is more advanced and has better features compared to IPv4. It has the capability to provide an extremely large number of addresses.
- IPv6 is replacing IPv4 to accommodate the growing number of networks worldwide and help solve the IP address problems.
- The newer Internet Protocol version 6 (IPv6) standard features addresses 16 bytes (128 bits) in length. IPv6 uses hexadecimal numbers that are separated by colons (i.e. fe80::d4a8:6435:d2d8:d9f3).
Router
- Routing is the act of moving information across an internetwork from a source to a destination.
- Along the way, at least one intermediate node typically is encountered.
- Routing is often contrasted with bridging, which might seem to accomplish precisely the same thing to the casual observer.
- The primary difference between the two is that bridging occurs at Layer 2 (the link layer) of the OSI-reference model, whereas routing occurs at Layer 3 (the network layer). This distinction provides routing and bridging with different information to use in the process of moving information from source to destination, so the two functions accomplish their tasks in different ways.
- Routing involves two basic activities
- Determining optimal routing paths
- Transporting information groups (typically called packets) through an internetwork.
- In the context of the routing process, the latter of these is referred to as packet switching.
- Although packet switching is relatively straightforward, path determination can be very complex.
- Switching algorithms are relatively simple; they are the same for most routing protocols.
- In most cases, a host determines that it must send a packet to another host.
- Having acquired a router's address by some means, the source host sends a packet addressed specifically to a router's physical (Media Access Control (MAC)-layer) address, this time with the protocol (network layer) address of the destination host.
- As it examines the packet's destination protocol address, the router determines that it either knows or does not know how to forward the packet to the next hop.
- If the router does not know how to forward the packet, it typically drops the packet.
- If the router knows how to forward the packet, however, it changes the destination physical address to that of the next hop and transmits the packet.
- In a typical routing example, two hosts communicate with each other using three routers between them.
- If the three routers are part of the Internet, it will only work this way when both hosts have valid public IP addresses assigned to them.
Network Address Translation (NAT)
- NAT, defined in RFC 1631, allows a host that does not have a valid registered IP address to communicate with other hosts through the Internet.
- The hosts might be using private addresses or addresses assigned to another organization.
- In either case, NAT allows these addresses that are not Internet-ready to continue to be used and still allows communication with hosts across the Internet.
- NAT achieves its goal by using a valid registered IP address to represent the private address to the rest of the Internet.
- The NAT function changes the private IP addresses to publicly registered IP addresses inside each IP packet.
- The router performing NAT changes the packet's source IP address when leaving the private organization and the destination address in each packet forwarded back into the private network. (In the usual example, network 200.1.1.0 is the registered network.)
- The NAT feature is configured in the router that performs the translation.
Overloading NAT with Port Address Translation (PAT)
- Some networks need to have most, if not all, IP hosts reach the Internet. If that network uses private IP addresses, the NAT router needs a very large set of registered IP addresses.
- With static NAT, for each private IP host that needs Internet access, the user needs a publicly registered IP address.
- Overloading allows NAT to scale to support many clients with only a few public IP addresses.
- In the usual example, three different hosts connect to a web server using TCP, and later in the day three TCP connections are made from the same client.
- All six connections connect to the server IP address (170.1.1.1) and WWW port (80, the well-known port for web services).
- In each case, the server differentiates between the various connections because their combined IP address and port numbers are unique.
- NAT takes advantage of the fact that the server really doesn't care if it has one connection each to three different hosts or three connections to a single host IP address. So, to support lots of inside private IP addresses with only a few global, publicly registered IP addresses, NAT overload uses Port Address Translation (PAT).
- Instead of just translating the IP address, it also translates the port number.
- NAT overload can use more than 65,000 port numbers, allowing it to scale well without needing very many registered IP addresses, in many cases, like in small Office/Home Networks, needing only one.
- Taking the device called a 'router' by most users apart, it contains different components: a hub/switch, the router and a DSL/Cable modem.
Internet Addressing Scheme
IP Address
- As with any other network-layer protocol, the IP addressing scheme is integral to the process of routing IP datagrams through an internetwork.
- Each IP address has specific components and follows a basic format. These IP addresses can be subdivided and used to create addresses for subnetworks.
- Each host on a TCP/IP network is assigned a unique 32-bit logical address that is divided into two main parts
- Network number
- Host number
- Network Number
- The network number identifies a network and must be assigned by the Internet Network Information Center (InterNIC) if the network is to be part of the Internet.
- An Internet Service Provider (ISP) can obtain blocks of network addresses from the InterNIC and can itself assign address space as necessary.
- Host number
- The host number identifies a host on a network and is assigned by the local network administrator.
- IP Address Format
- The 32-bit IP address is grouped eight bits at a time, separated by dots, and represented in decimal format (known as dotted decimal notation).
- Each bit in the octet has a binary weight (128, 64, 32, 16, 8, 4, 2, 1).
- The minimum value for an octet is 0, and the maximum value for an octet is 255.
- An IP address consists of 32 bits, grouped into four octets.
- IP Address Classes
- IP addressing supports five different address classes: A, B, C, D, and E.
- Only classes A, B, and C are available for commercial use.
- The left-most (high-order) bits indicate the network class. The following table provides reference information about the five IP address classes.
| IP Address Class | Format | Purpose | High-Order Bit(s) | Address Range | No. Bits Network/Host | Max. Hosts |
|---|---|---|---|---|---|---|
| A | N.H.H.H | Few large organizations | 0 | 1.0.0.0 to 126.0.0.0 | 7/24 | 16,777,214 (224 - 2) |
| B | N.N.H.H | Medium-size organizations | 1, 0 | 128.1.0.0 to 191.254.0.0 | 14/16 | 65,534 (216 - 2) |
| C | N.N.N.H | Relatively small organizations | 1, 1, 0 | 192.0.1.0 to 223.255.254.0 | 22/8 | 254 (28 - 2) |
| D | N/A | Multicast groups (RFC 1112) | 1, 1, 1, 0 | 224.0.0.0 to 239.255.255.255 | N/A (not for commercial use) | N/A |
| E | N/A | Experimental | 1, 1, 1, 1 | 240.0.0.0 to 254.255.255.255 | N/A | N/A |
N = Network number, H = Host number. One address is reserved for the broadcast address, and one address is reserved for the network.
In the commercial classes, Class A uses the bit 0 followed by a 7-bit network number and a 24-bit host number; Class B uses the bits 10, a 14-bit network number and a 16-bit host number; Class C uses the bits 110, a 21-bit network number and an 8-bit host number.
The class of address can be determined easily by examining the first octet of the address and mapping that value to a class range in the following table.
| Address Class | First Octet in Decimal | High-Order Bits |
|---|---|---|
| Class A | 1 - 126 | 0 |
| Class B | 128 - 191 | 10 |
| Class C | 192 - 223 | 110 |
| Class D | 224 - 239 | 1110 |
| Class E | 240 - 254 | 1111 |
In an IP address of 172.31.1.2, for example, the first octet is 172. Because 172 falls between 128 and 191, 172.31.1.2 is a Class B address.
E-mail Addresses
- Email is a message distributed by electronic means from one computer user to one or more recipients via a network.
- One of the many similarities between email and regular mail is the need for addressing.
- For a message to be delivered, it is necessary for the sender to specify the recipient and provide a reasonable amount of information to indicate how and where the recipient can be reached.
- In TCP/IP email, a standard electronic mail address format is used for this, and support is also provided for alternative addressing schemes that may be used in special cases.
- All communication on an internetwork requires some way of specifying the identity of the intended recipient of the communication.
- Most application protocols, such as the File Transfer Protocol (FTP) and Hypertext Transfer Protocol (HTTP), use conventional TCP/IP conventions, IP addresses and port numbers to specify the destination of information to be sent.
- The IP address normally identifies a particular host computer, and the port number indicates a software process or application running on that computer.
- E-mail, however, uses a model for communication that differs from most applications.
- Email is not sent from one machine to another, as a file is transferred using FTP. Instead, it is sent from one user to another. This is critical to the operation of the entire system.
- For one thing, it allows someone to retrieve email that has been sent from any number of different client computers. This allows the recipient to receive email even when traveling, for example.
- Since e-mail messaging is user-based, the addressing scheme must also be user-based.
- The user cannot use conventional IP addresses and ports, so a distinct system is needed that specifies two primary pieces of information: who the user is and where the user is located. These are, of course, analogous to a name and address on a regular mail envelope.
- The idea of the user name is relatively straightforward but identifying the location of the user is not.
- In regular mail, an address refers to a physical place. It would have been possible to define email addresses in the same way, that is, to have an email address refer to the user's client machine.
- However, recall the other important characteristic of email delivery, it is indirect and based on the concept of a user's local Simple Mail Transfer Protocol (SMTP) server holding received messages until they can be retrieved.
- The machine that the user employs to access their email may not even routinely be connected to the Internet, and it may thus not be easy to identify. And people also want to be able to access email from multiple machines.
- For all these reasons, people want addresses to identify not the user's specific location at any particular time, but the place where the user's permanent mailbox lives, on the user's SMTP server which is permanently connected to the Internet.
Resource Addresses
- When the user is using the web, their browser acts as a client program on their behalf.
- In order to fulfill their request, their browser will contact a server, and ask for either information or a service of some type.
URL (Uniform Resource Locator)
- URLs provide a standard way to specify the exact location and name of just about any Internet resource.
- In general, most URLs have one of two common formats
- scheme://host_name/description
- scheme: description
- Example 1: http://www.bryanadams.com/bryan
- This example describes a particular web page on a computer.
- The URL begins with a name, indicating a specific type of resource. (The name comes from the protocol used to send and receive such information: Hypertext Transfer Protocol.)
- URLs and Host Names
- A list of schemes used with URLs is in the table below.
- Some examples of URLs that contain a host name:
http://www.wendy.com/~wendy ftp://ftp.uu.net/usenet/news.answers/alt_tech/pointers.z telnet://nightmare.internet.com:1701/
| Scheme | Meaning |
|---|---|
| ftp | File accessed via file transfer protocol |
| gopher | Gopher resource |
| http | Hypertext resource |
| mailto | Mail a message to the specified address |
| news | Usenet newsgroup |
| telnet | Interactive telnet session |
| wais | Access a WAIS database |
URL and Port Numbers
- Each type of internet service has its own specific port number.
- Within a URL the user only has to specify a port number if it is not the default for that type of service.
- For example the default port number for Telnet is 23. The following two URLs are equivalent:
telnet://locis.loc.gov/ telnet://locis.loc.gov:23/
- The HTTP service, by default, uses port 80.
- Similarly, the gopher service uses port 70.
- For instance, the following two URLs are equivalent. They both point to the same hypertext resource, using port 80, on the computer named www.wendy.com:
http://www.wendy.com/~wendy http://www.wendy.com:80/~wendy
Path names
Take a typical hypertext URL such as http://www.cathouse.org/humor/tech/data.from.bell. The user can divide such URLs into three parts: the scheme (http:), the host name (in this case //www.cathouse.org/), and the path name (in this case humor/tech/data.from.bell). To analyze such a URL look at each of the parts:
- The scheme (HTTP) identifies this resource as being hypertext.
- The host name is the name of the computer.
- The path name shows where on the host the hypertext resource is stored.
Summary
In this chapter the user has learned about:
- The packet switching technology.
- Types of internet protocols.
- Internet addressing scheme.
Free study material for Computer Science
Useful Resources and Notes for Computer Science Introduction to Internet and WWW
Essential Notes for Computer Science
Explore essential learning tools for Computer Science Introduction to Internet and WWW. This curated collection features in-depth notes and targeted practice questions built around the active 2026 curriculum to streamline your daily revision.
Verified Solutions for Computer Science
Designed around the official curriculum, these study guides guarantee standard compliance. Reviewing step-by-step solutions clarifies complex sub-topics within Introduction to Internet and WWW and demystifies standard marking schemes for Computer Science evaluations.
Enhance Accuracy with Online Tests
For peak performance in upcoming evaluations, integrate official Computer Science sample papers directly into your study schedule. Follow up your revision by attempting online MCQ tests for Introduction to Internet and WWW to refine calculation speed and precision.
FAQs
The latest 2026-27 advanced study resources for Computer Science are available for free on StudiesToday.com which includes NCERT Exemplars, high-order thinking skills (HOTS) questions, and deep-dive concept summaries.
Our exhaustive Computer Science package includes chapter wise revision notes, solved practice sheets, important formulas and Concept Maps to help in better understanding of all topics.
Yes. For , our resources have been developed to help you get better marks in school exams and also build fundamental strength needed for entrance tests including Competency Based learning.
in , students should use Active Recall method, read the concept summary, then solve the Important Questions section without looking at the answers and then check your answers.
All Computer Science study materials are provided in mobile-friendly PDF. You can download and save them on your device.
Yes, our team has ensured that all Computer Science materials for are strictly aligned with the National Education Policy (NEP) 2020 and the latest 2026-27 syllabus.