410 likes | 426 Views
Learn about the basics of networking, different types of networks, network topologies, protocols, connecting networks, inter-process communication, distributed systems, and the architecture of the internet.
E N D
Chapter 4:Networking and the Internet Computer Science: An OverviewEleventh Edition by J. Glenn Brookshear
What is a Network? • A network consists of 2 or more computers connected together, and they can communicate and share resources (e.g. information)
Why Networking? • Sharing information — i.e. data communication • Do you prefer these? • Or this?
Sharing hardware or software • E.g. print document • Centralize administration and support • E.g. Internet-based, so everyone can access the same administrative or support application from their PCs
Network Classifications • Scope • Local area network (LAN) • Metropolitan area (MAN) • Wide area network (WAN) • Ownership • Closed versus open • Topology (configuration) • Bus (Ethernet) • Star (Wireless networks with central Access Point)
LAN,MAN and WAN • Local Area Network (LAN) • Small network, short distance • A room, a floor, a building • Limited by no. of computers and distance covered • Usually one kind of technology throughout the LAN • Serve a department within an organization • Examples: • Network inside the Student Computer Room Metropolitan-area network (MAN) : The communication infrastructures that have been developed in and around large cities
Wide Area Network (WAN) • A network that uses long-range telecommunication links to connect 2 or more LANs/computers housed in different places far apart. • Towns, states, countries • Examples: • Network of our Campus • Internet Your home USA WAN Student Computer Centre
Open &Closed Systems Proprietary system or closed system : A system that uses technologies kept private by a particular commercial vendor Open systems : Systems based on a common model of network architecture and a suite of protocols used in its implementation
Hub Topology ― 3 basic types • How so many computers are connected together? • Bus TopologyRing Topology • Star Topology
Bus Topology • Simple and low-cost • A single cable called a trunk (backbone, segment) • Only one computer can send messages at a time • Passive topology - computer only listen for, not regenerate data • Star Topology • Each computer has a cable connected to a single point • More cabling, hence higher cost • All signals transmission through the hub;if down, entire network down • Depending on the intelligence of hub, two or more computers may send message at the same time
T T T T T T T Ack Ack data data data Ack data Ack data data T T T • Ring Topology • Every computer serves as • a repeater to boost signals • Typical way to send data: • Token passing • only the computer who • gets the token can send • data • Disadvantages • Difficult to add computers • More expensive • If one computer fails, whole network fails T T T
Protocols • CSMA/CD(Carrier Sense Multiple Access/Collision Detection)Used in Ethernet • Silent bus provides right to introduce new message • CSMA/CA(Carrier Sense Multiple Access/Collision Avoidance) • Used in WiFi (IEEE 802.11) • Hidden terminal problem
Connecting Networks • Repeater: Extends a network • Bridge: Connects two compatible networks • Switch: Connects several compatible networks • Router: Connects two incompatible networks resulting in a network of networks called an internet
Figure 4.5 Routers connecting two WiFi networks and an Ethernet network to form an internet
Inter-process Communication • Client-server • One server, many clients • Server must execute continuously • Client initiates communication • Peer-to-peer (P2P) • Two processes communicating as equals • Peer processes can be short-lived
Figure 4.6 The client/server model compared to the peer-to-peer model
Distributed Systems • Collection of autonomous computers that are connected using a middleware used for sharing resources and capabilities and providing users with a single and integrated coherent network.
Distributed Systems…. • Cluster computing • Grid computing • Cloud Computing
The Internet • The Internet: An internet that spans the world • Original goal was to develop a means of connecting networks that would not be disrupted by local disasters. • Today it has shifted from a government sponsored DARPA to an academic research project and finally to a commercial undertaking.
Internet Architecture • Internet Service Provider (ISP) • Organizations which construct and maintain these networks • Tier-1 • Tier-2 • Access ISP: Provides connectivity to the Internet • End Systems or hosts • Traditional telephone (dial up connection) • Cable connections • modems • DSL • Wireless • Hot spot
Internet Addressing • IP address: pattern of 32 or 128 bits often represented in dotted decimal notation • 17.12.25 would represent the three-byte bit pattern • a 32-bit IP address might appear as 192.207.177.133 • ICANN(Internet Corporation for Assigned names and Numbers • Mnemonic address: • Domain names • Top-Level Domains • Sub-domains • Domain name system (DNS) • Name servers • DNS lookup
Internet Corporation for Assigned Names & Numbers (ICANN) • Allocates IP addresses to ISPs who then assign those addresses within their regions. • Oversees the registration of domains and domain names.
Traditional Internet Applications • Electronic Mail (email) • Domain mail server collects incoming mail and transmits outing mail • Mail server delivers collected incoming mail to clients via POP3 or IMAP • File Transfer Protocol (FTP) • Telnet and SSH
More Recent Applications • Voice Over IP (VoIP) • Internet Radio • unicast • N-unicast • p2p • Multicast
World Wide Web • Hypertext and HTTP • Browser gets documents from Web server • Documents identified by URLs
Hypertext Document Format • Encoded as text file • Contains tags to communicate with browser • Appearance • <h1> to start a level one heading • <p> to start a new paragraph • Links to other documents and content • <a href = . . . > • Insert images • <img src = . . . >
Extensible Markup Language (XML) • XML: A language for constructing markup languages similar to HTML • A descendant of SGML • Opens door to a World Wide Semantic Web
Using XML <staff clef = “treble”> <key>C minor</key> <time> 2/4 </time> <measure> < rest> egth </rest> <notes> egth G, egth G, egth G </notes></measure> <measure> <notes> hlf E </notes></measure> </staff>
Figure 4.11 The first two bars of Beethoven’s Fifth Symphony
Client Side Versus Server Side • Client-side activities • Examples: java applets, javascript, Macromedia Flash • Server-side activities • Common Gateway Interface (CGI) • Servlets • PHP