Introduction To Computer Internet
Introduction To Computer Internet
Introduction To Computer Internet
computer Internet
Lecture 1
Q: Define Computer networks, then discuss the different
network benefits?
Sol:
Printer
B. Computation speedup
Distribute the computations among various network
computers.
C. Load sharing
D. Communication
• Video conference.
• E-mail.
• Chatting.
Network Topologies
Star
– All computers are
connected to a central
point.
Bus
All nodes are connected to a single wire (the bus)
that has two endpoints
Ring
All nodes connected to a
closed loop.
Q: what is meant by data packet, then show how a file can be
transmitted between two computers over the network?
Sol:
• A packet can contain data and some control and routing information.
File
Assume that Computer X wishes to send a file to Computer Y
X Y
File
Packets Router
Steps:
1. Computer X cuts the file into small pieces called packets.
2. Each packet consists of three main parts:
A. Header (sender address and receiver address)
B. Data (0.5 to 4 KB).
C. Footer (order, error checking information).
Packets
File
Steps:
Packets
• Due to such low speed, low quality cables are needed such as
telephone lines.
X
switch
LAN LAN
LAN LAN
Subnet
WAN Types
• Peer–to–Peer Network.
Sol:
in Client-Server model:
Server
Clients
Switch
Data
Peer-to-Peer Network:
• All network computers are identical, known as peers
• No servers.
• No administrator for the entire network, each user determines the
shared resources in his machine
• It is relatively simple, smaller in size, less expensive than server
based networks.
• Each computer functions as client and server.
• Use peer-to-peer when:
– There are 10 or fewer machines.
– Security is not important.
Peer-to-Peer Network
Server Based Network:
Server-Based Network
• More secured than the peer-to-peer as one
administrator sets the rights to the network
clients.
Shared
Printer
Print
Server
Print Print
Queue Job
– Mail server:
• stores and forward e-mail messages between clients.
• Uses one of the following protocols:
– SMTP (Simple Mail Transfer Protocol).
– POP (Post Office Protocol).
– Web server:
• stores web pages.
• Uses HTTP (Hyper Text Transfer Protocol).
– Proxy server: exists between the network hosts and other hosts outside
the network to protect the network from the external attacks (acts as a
firewall), also used in web caching.
LAN
External
Proxy Hosts
Hub
server (other networks)
Compare between peer to peer network and
server based one
Peer-to-Peer networks Server Based network
Definition • All computers are identical. • Use powerful computers as
Servers, while the others are
• No dedicated servers. clients.
Distributed
Centralized
resources
resources
Peer-to-Peer Network
Server based Network
– Wired Networks.
– Wireless Networks.
• Wired Networks:
– The connection that connect computers consists of
physical wires.
• Wireless Networks:
– No wiring between the network components,
connection is established using radio signals.
Antenna
Radio
Wireless LAN With a Modem Ad Hoc network
Base Station
Wireless WAN:
• A wireless network covers a large geographical area.
–
it is usually divided into several service areas in which each service area is managed through an access point.
–
Service area
wire
Access
Point
Q: what are the different internet search tools?
Sol:
1. Search Engines.
2. Web Directories.
3. Meta-Search Engines.
Search Directories
• The user has the ability to move through the nodes of the
taxonomy with no restriction.
WWW 3
Store Keywords
4 and other
features
Database
On Line Query
Serve the User Query
Manager
Phase
Transform
Query Transformed
query
Send Query
Post
Retrieval
analysis
Ranking
Final Results Results
User
interface
Search Engine components:
1. Crawler:
• The crawler is a program that automatically retrieves web pages.
• It starts from a set of seed pages (usually provided manually(, downloads
those pages, extracts links from them, adds them to its crawling queue.
then, recursively follows those links.
Web
Parser Keywords and
page features
Download
Document
Crawling
Loop
Seeds
HTTP
Request
4. Query Manager
• Four different functions are involved in this module, which are;
– it receives the user query in the form of keywords and
transforms it into a suitable database query.
– retrieves relevant pages from database.
– ranks results according to the user query.
– it performs analysis on the retrieved pages such as
categorization and text summarization
5. User Interface
• This is the part that the user sees. Search engines' interface allows the
user to enter his query. It also sends the query to database via query
manager and finally it displays the search result to the user.
Problems with search engines
2. Low recall (Recall is the fraction of relevant pages that have been
retrieved to the number of relevant pages in the collection. Hence,
retrieval recall is calculated as number of relevant pages
retrieved / number of relevant pages in the collection):
Problems with search engines
4. poor retrieval rate (none of the recent search engines can index
more than 16% of the web).
•The best search engine (Google) covers only about 16% of the web.
•Since a single search engine can cover only a small portion of the web,
combining results from different search engines will certainly achieves
more comprehensive converge.
Interface Agents
Remove Duplications
Ranking Results
Q: Explain briefly how internet works?
Sol:
• Internet is the international network that based on TCP/IP
(Transmission Control Protocol/Internet Protocol).
IP address:
IP
IP address
address
Network 2
• Use the subnet mask to indicate the host and network address so that:
– Ones: define the network address.
– Zeros: define the host address.
Subnet mask 11111111 11111111 00000000 00000000
211.71.18.33 211.71.18 33 C
Broadcast address
Special IP addresses Loopback address
255.255.255.255
• Loopback address (127.0.0.1): 127.0.0.1
Enable a computer to send to itself.
• com Commercial
• edu Educational
• gov Government
• mil Military
• net network
• org Private organizations
• (b) FTP (File Transfer Protocol)
Protocol used
HTTP Hyper Text Transfer protocol
FTP File Transfer Protocol
?Any Questions