Comp Networks
Comp Networks
Computer Networks
2
Computer Networks
• A computer network is a system for communicating
between two or more computers and associated devices. It
is an interconnection of computers for the purposes of
sharing information and resources.
• A popular example of a computer network is the internet,
which allows millions of users to share information
• Computer networks can be classified according to their
size:
– Local area network (LAN)
– Metropolitan area network (MAN)
– Wide area network (WAN)
– Personal area network (PAN)
3
001101 LAN/MAN
Digital
Network Transceiver
Transceiver Computer Network
Digital
001101
4
Modes of Networks
Client-Server Networking
Peer to Peer Networking
5
LAN basics
LAN’s can be either wired or wireless.
Nodes in a LAN are linked together with a certain topology. These topologies
include:
Bus
Ring
Star
A node is defined to be any device connected to the network. This could be a
computer, a printer, a router, etc.
A Hub is a networking device that connects multiple segments of the network
together
A Network Interface Card (NIC) is the circuit board that has the networking logic
implemented, and provides a plug for the cable into the computer (unless
wireless).
The Network Operating System (NOS) is the software (typically part of the
operating system kernel) that communicates with the NIC, and enables users to
share files and hardware and communicate with other computers. Examples of
NOS include: Windows XP, Windows NT, Sun Solaris, Linux, etc..
10
Network topology
LAN Topologies
Star
Bus
Ring
12
Star Topology
Connections are made from all connected machines to one central place,
called a hub.
The hub: accepts messages from the sending computer, and sends data
to recipient.
13
Pros:
Some degree of fault tolerance: the
failure of any link does not affect the
other computers;
Cons:
Expensive (the hub is a dedicated
computer);
If the hub fails, no connection is possible.
14
Ring Topology
RING
15
Sending a message:
There is a special message, called token;
Exactly one token exists on the ring at any time which is
passed along the ring;
To send data, a computer waits for the token to arrive, and
then transmits one message;
The message is transmitted to the next computer, and
then to the next, until it arrives back to the sender.
After the message is transmitted, the computer holding
the token, passes the token to the next computer in the
ring.
16
Pros:
Requires less wire than star;
Less expensive;
Cons:
If any cable is cut, the entire network is
disabled.
May incur delays: A computer has to pass
the token even if it has more messages to
transmit and nobody else does.
17
Bus Topology
BUS
18
Sending a message:
The sender sends a message only when the cable is not
in use;
The message propagates to both ends of the cable;
The receiver process the message (all computers have to
check if they are the intended destination)
Collisions:
A collision occurs when two computers try to send in the
same time garbled transmission;
When a collision is detected; each computer have to wait
a randomly chosen time before retransmitting.
19
Pros:
No delays when only one computer wants to
transmit;
Cons:
If the bus fails, no transmission possible.
Limited number of communicating parties (the
bus < 500 m, >3m between two connections)
Generally: each topology has adv. and
disadv.;
20
WAN (cont.)
Pros:
Scalable
Many messages can be sent simultaneously;
A message passes only through switches
Fault tolerant: if a switch fails, another route can
be found;
Cons:
expensive
24
Advantages of networking