CS101 Introduction To Computing: Computer Networks
CS101 Introduction To Computing: Computer Networks
Lecture 27
Computer Networks
1
Dewan-e-Ghalib
4
Designs should be
Website Navigation
The interface/controls that a Website provides to the user for accessing various parts of the Website
Computer Network
Multiple computers that are connected together to share information and other resources
11
Computer A
Computer E
Hub
Computer B
Computer C
13
3. Hub
The network traffic controller
14
5. Protocol
Rules governing communications over the network
15
Hub (1)
A device that is used to connect several computers to form a network A hub has several ports. The number generally is 8, 12, 16, 24, 32, or 48
18
Hub (2)
Each computer in a network is connected to one of those ports through a cable A computer wanting to send a message to one of the others in the network sends a message to the hub, which, in turn, broadcasts the message to all others connected to it
19
Packet (1)
The smallest unit of data transmitted over a computer network A message to be transferred over the network is broken up into small packets by the sending computer Each packet contains the following info:
Sender's address Destination address Data Error-recovery info
20
Packet (2)
All packets travel independently When all packets are received by the destination computer, it reassembles them to form the original message
21
Private
Public
22
23
All equipment on a private network is generally for the exclusive use of that organization
24
Public Networks
All networks that are not private, are public Example: Internet
Communication equipment used in these networks is generally being used by users belonging to several (possibly thousands of) organizations as well as those belonging to no organization
25
26
27
28
LAN
A network of computers located in the same building or a handful of nearby buildings Examples:
Computer network at your PVC Computer network of a University campus
29
WAN
A network in which computers are separated by great distances, typically across cities or even continents May consist of several interconnected LANs Example:
The network connecting the ATM of a bank located in various cities A network connecting the local and oversea offices of a SW house 30 Internet
Router
A special-purpose computer that directs data traffic when several paths are available A router examines the destination info in each arriving packet and then routes it through the most efficient path available The router either delivers the packet to the destination computer across a local network or forwards the packet to another router that is 32 closer to the final destination
Bridge
Used to form a connection between two separate, but similar networks In a way, it creates an extended LAN by passing information between two or more LANs
33
Gateway
A special-purpose computer that connects and translates between networks that use different communications protocols
34
Modem (1)
I/O device used for connecting two computers over telephone lines modem = modulator + demodulator
35
Modem (2)
Modulator converts computer messages to electrical pulses that are suitable for transmission over the telephone lines
Demodulator converts electrical pulses received over telephone lines into messages that are comprehensible for computers
36
Network Topologies
The pattern in which computers are connected to form a network Popular patterns:
Point-to-point Star Bus Ring
P2P
Computer A
Computer B
38
P2P
Inexpensive Limited connectivity
39
Computer D
Star
Computer A
Server
Computer C
Computer B
40
Star (1)
A computer sends the address of the intended receiver and the data to the server The server then sends the message to the intended receiver This topology allows multiple messages to be sent simultaneously
41
Star (2)
Costly, because it uses an additional computer to direct the data Costly, because each node is individually wired to the hub If the server goes down, so does the network If any of the nodes goes down, the rest of the 42 network is not affected
Computer A
Computer C
Bus
Computer B
Computer D
43
Bus (1)
No server is required One computer sends data to another by broadcasting the address of the receiver and the data over the bus All the computers in the network look at the address simultaneously, and the intended recipient accepts the data
44
Bus (2)
A bus network, unlike ring or star networks, allows data to be sent directly from one computer to another However, only one computer at a time can transmit data. The others must wait to until the bus gets idle If any of the nodes goes down, the rest of the network is not affected 45
Computer D
Ring
Computer A
Computer C
Computer B
46
Ring (1)
No server is required A computer sends the message to its neighbor. The neighbor examines the message to determine if it is the intended recipient If the data are not intended for that particular neighbor, it passes the message to the next computer in the ring
47
Ring (2)
This process is repeated until the data arrive at their intended recipient This topology allows multiple messages to be carried, simultaneously Data transmission is slow since each message is checked by each computer
48
Ring (3)
New nodes are difficult to add Messages propagate in one direction only
49
Computer A
Combination
Computer B
Hub
Computer D
Computer C
Hub
Computer E
Computer 50 F
Networking Protocols
Networks use protocols, or rules, to exchange info through shared channels Protocols prevent collisions of packets caused by simultaneous transmission between two or more computers
Several protocols are available for various types of networks. Here we discuss two that are popular for LANs: Ethernet; Token Ring51
Ethernet Protocol
A computer using this protocol checks if a shared connection is in use before transmitting a message If not, the computer transmits data Two computers may sense an idle connection and may send packets simultaneously. To account for such situations, transmitting computers continue to monitor the connection and re-transmit if a packet collision occurs 52
Computer Networks
= Computers +
Communications
54
1. Wire 2. Wireless
A key characteristic of these channels is bandwidth
55
Bandwidth
Capacity of a communication channel for carrying data Measured in bits/s (bps), kb/s, Mb/s, Gb/s, Tb/s Optical fiber channels have the highest (1 Tb/s) Telephone lines the lowest (56 kb/s)
56
Wire
Copper
Twisted-pair Coaxial cable
Non-line-of-sight
Satellite Radio Cellular
Optical fiber
57
Key benefits:
Set-up time Set-up cost Maintenance cost Cost Key challenges: Security & privacy Quality of service Cost
58
59
Firewall
A system that that guards a private network, enforcing an access/deny policy to all traffic going to and coming from the Internet It keeps an eye on all the packets that go in and out of the private network and blocks them or allows them to continue to their destination according to the policy
61
Internet
Firewall
Private Network
62
63
In Todays Lecture
We looked at the role of networks in computing We looked at several different types of networks We familiarized ourselves with networking topologies and protocols
64
65