Computer Communication
Computer Communication
1
The star topology
Star network routes all messages from source to destination via one central node and
eliminates the need for nodes to make routing decisions.
Disadvantage: All messages pass through central node, and the loss of central node
brings down the network.
Because all traffic pass through central node, it must be capable of working at a
sufficiently high speed to handle all the load.
All nodes are connected to a common data highway and links all nodes. When a message is
put on the bus by a node, it travels outwards in all directions and eventually reaches
every point in the network.
Limitation: Only one path may exist between any two nodes. Bus cannot exceed some
maximum distance from end to end.
Disadvantage: Number of nodes waiting to use the bus at the same time can be difficult
to manage for larger network.
A node on the ring has a problem of how to inject a new message into the existing
traffic flow.
Disadvantage: Broken link makes it impossible to pass messages all the way around the
ring.
2
Communication protocols and standards
When any two parties communicate with each other, they must both agree to abide by a
set of unambiguous rules. For example, they must speak the same language.
The protocols governing the communications process are formalized in a document called
standard.
3
For example, Data Link Layer that transfer data from one place to another using
wireless link that can be replaced by a fiber-optics link without worrying about other
layers.
Application Layer Top most layer of TCP/IP model. It defines TCP/IP application
protocols and how host programs interface with transport
layer services to use the network.
4
Some of the protocols in this layer are Ethernet, Token Ring,
FDDI, X.25, Frame Relay.
TCP and IP
TCP: This protocol is designed for reliable data delivery and to safely get packets
from source to destination with the help of IP. TCP is responsible for controlling the
size and rate of the package exchange.
IP: Packets are unit of data that is transferred over the network. Packets consist of
header part, body part. Header contains the source and destination IP addresses. The
body part contains the data.
Ethernet
Ethernet, fast Ethernet and gigabit Ethernet are technologies used in LAN. Ethernet is
built on star network topology.
Advantages of Ethernet
1. Low cost components
2. Easy to install and configure
3. Easy to troubleshoot
Ethernet uses CSMA/CD for access control.
Token Passing
In CSMA/CD and CSMA/CA there are chances of data collision. If there are many hosts in
the network, then the chances of collision increases dramatically. In token passing
access method, empty packet called token rotates the network in high speed. If any host
want to send data, then they have to wait till the token reaches them. Once the token
reaches the host, it will fill token with data, marked it as being used and send it to
the destination. Once delivered, the token will be freed and marked as empty so others
can use it.
Network devices
There are many different types of network devices / hardware that allow to create or
connect networks in multiple ways.
5
Common network devices are
1. Repeater
2. Hub
3. Bridge
4. Switch
5. Router
6. Gateway
Repeater
A repeater is a device that receives and retransmits the signal. It is used to extend
the signal length of the network cable by regenerating the signal it receives. Wi-Fi
repeaters / extenders can receive wireless signal and then can boost the strength of
the signal and then re-broadcast it.
Hub
Hub is used to connect devices such as pc and printers to the network. Each device can
be plugged into hubs many ports. Hub receive signal from one port and then transmit
the signal to every other port therefore all devices and peripherals connected to the
hubs ports will receive the signal.
Hubs are common network devices in Ethernet networks and sometimes called multi-port
repeater. Hubs operates at physical layer of the OSI model.
Bridge
Bridge allows to connect two or more different networks together so they act like a
single network. Bridge has or creates a table of connected device addresses to know
which device exists in which network. When bridge passes the message from source, it
only sends the message to the part of the network where the receiving node exists.
This help reduces the overall network traffic and message bottleneck. Bridget works at
the data link later of OSI model.
Switch
A switch is a network device that enables devices connected to a network to communicate
each other efficiently. Main difference between hub and switch is that switch doesnt
broadcast incoming message to every port in it. It only sends the message to the port
which has the destination address assigned to it.
Switch operates at the data link later level of OSI model.
Router
Route is a network device that directs packets through the network to make it reach the
destination. It uses the addressing information from network later of OSI model. Router
allows to send and receive messages from different networks. It determines the network
by looking at the source and destination addresses (IP address) in the packet and build
a routing table.
This table is used to plot / create a path to send the data to its destination.
Gateway
Gateway is a combination of hardware and software that enables two or more networks
with different protocols to communicate with each other. Gateway is usually a dedicated
server on a network with high performance.
6
There are two types of gateways.
1. Address gateway
a. An address gateway connects networks with different structures and file-
management techniques.
2. Protocol gateway
a. A protocol gateway connects networks that uses different protocols. This
is the most common type of gateway.
Network addresses
Ethernet uses different types of addresses to identify nodes in the network.