Docsity

Network Topologies - Computer Networks - Lecture Notes | CPSC 5157U, Study notes of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
CPSC 5157 Computer Networks
Notes to Accompany Slides of Monday, June 12 Revised June 13, 2006
Network Topologies
The network topology describes how the communicating nodes in a network are
interconnected. One method for describing such a topology uses the tools of the mathematical
theory of graphs. Informally, graphs can be considered as a set of vertices connected by a set
of edges. Graphs come in two varieties: directed and undirected. In the directed graphs, each
edge is considered a “one way street”, while undirected graphs have “two way streets”.
There are a number of graph types that can be used to describe networks,
1. Bipartite graphs and star graphs
2. Complete graphs
3. Cycles
4. Paths
In a network, two communicating nodes are connected if there is a direct communication link
between the two nodes. In graph theory, two vertices are said to be adjacent if there is an
edge connecting the two vertices. Obviously, the graph models that underlie network theory
use adjacent vertices to describe communicating nodes that are directly linked to each other.
We now show pictures of networks, labeled as graphs when appropriate.
Bipartite
This name for a network topology is not commonly used by network theorists; indeed it is
based on considerations of graph theory. Such a network would divide the nodes into two
parts with no two nodes in a given part communicating directly. Here are two such networks.
The two graphs above are called complete bipartite graphs, because each node in one part is
adjacent to every node in the other part. The graphs are called K3,3 and K2,3 (or K3,2)
respectively. Networks that are modeled as complete bipartite graphs have certain desirable
reliability properties, including resistance to node and link failures.
In general the term Ka,b refers to a complete bipartite graph with n = (a + b) vertices and
m = ab edges. The vertices are arranged into two parts, of size a and b respectively.
We now consider the star graph, which is a complete bipartite graph of the form K1,n–1. The
name is due to the fact that the graph has n vertices, 1 in one part and (n – 1) in the other.
Page 1 of 4 pages Revised June 13, 2006.
pf3
pf4

Partial preview of the text

Download Network Topologies - Computer Networks - Lecture Notes | CPSC 5157U and more Study notes Computer Systems Networking and Telecommunications in PDF only on Docsity!

CPSC 5157 Computer Networks

Notes to Accompany Slides of Monday, June 12 Revised June 13, 2006

Network Topologies The network topology describes how the communicating nodes in a network are interconnected. One method for describing such a topology uses the tools of the mathematical theory of graphs. Informally, graphs can be considered as a set of vertices connected by a set of edges. Graphs come in two varieties: directed and undirected. In the directed graphs, each edge is considered a “one way street”, while undirected graphs have “two way streets”. There are a number of graph types that can be used to describe networks,

  1. Bipartite graphs and star graphs
  2. Complete graphs
  3. Cycles
  4. Paths In a network, two communicating nodes are connected if there is a direct communication link between the two nodes. In graph theory, two vertices are said to be adjacent if there is an edge connecting the two vertices. Obviously, the graph models that underlie network theory use adjacent vertices to describe communicating nodes that are directly linked to each other. We now show pictures of networks, labeled as graphs when appropriate. Bipartite This name for a network topology is not commonly used by network theorists; indeed it is based on considerations of graph theory. Such a network would divide the nodes into two parts with no two nodes in a given part communicating directly. Here are two such networks. The two graphs above are called complete bipartite graphs , because each node in one part is adjacent to every node in the other part. The graphs are called K3,3 and K2,3 (or K3,2) respectively. Networks that are modeled as complete bipartite graphs have certain desirable reliability properties, including resistance to node and link failures. In general the term Ka,b refers to a complete bipartite graph with n = ( a + b ) vertices and m = a  b edges. The vertices are arranged into two parts, of size a and b respectively. We now consider the star graph , which is a complete bipartite graph of the form K1,n–1. The name is due to the fact that the graph has n vertices, 1 in one part and ( n – 1) in the other.

The Star Topology One common network form is the star topology , which can be drawn in at least two ways, as is shown below. The figure on the left is the depiction most commonly used by network theorists, while the figure on the right is the one favored by graph theorists. The star topology features one central node that communicates with all other nodes and through which all other nodes must communicate. This topology is a realization of a specific management strategy: centralized control. The “home office” might have a policy that none of the “branch offices” is allowed to communicate directly with another “branch office”, but must relay its messages through the central node. This may be a result of either security or economic considerations: with N branch offices we need only N communication lines. Bus Topology The bus topology is commonly used because it is rather cheap and easily implemented. Here are two depictions of the bus topology, the one on the left being favored by network theorists and the one on the right by graph theorists. Admittedly, these two are not quite equivalent. Nevertheless they share common vulnerability characteristics. There are two failure modes associated with the bus topology. In each variant, a link failure will result in the network being partitioned into two non–communicating segments. In the variant on the right a node failure will have the same effect. In the variant on the left, a node failure will have effects dependent on how the node is connected to the common bus. The figure below illustrates these failure modes. The graph that is used to model a bus with N communicating nodes is PN, the path on N vertices. Note that the bus is not exactly equivalent to the path, as the bus is often not shown as passing through the communicating nodes. The difference can be fixed, if needed.

Fully–Interconnected It should be apparent that the most reliable network is one in which each node has a direct connection to every other node. As an example, we show the fully connected network on five nodes. Note that it will take four link failures to isolate even one node. While such a network offers the maximum reliability, it is also the most expensive. A fully connected network on N nodes will require (^)       2 N =

N  N 1

distinct links. For N = 5, this number evaluates to 10 (as is seen above), not unduly burdensome. For N = 20, this evaluates to 190, which is becoming a large number. For N = 100, this is 4950. The question here is how much reliability does one want to purchase. It is for this cost issue that the fully– interconnected network is rarely discussed in textbooks on computer networks. The graph that corresponds to a fully–interconnected network is a complete graph ; the complete graph on n vertices is called Kn. The graph above is K 5. Token Ring vs. Ethernet (CSMA/CD) At this point in the lecture, a student asked about Token Ring networks. While these will be covered in a later lecture, a short answer was provided at this time. The ring topology is a static configuration of a network in which the communicating nodes are arranged in a cycle, either as a directed or undirected graph. A Token Ring Network is a specific example of a ring network along with a protocol for gaining access to the network. Suppose a network with a large number of nodes, any of which being able to place a message on the network. Each node is assumed to be “polite” in that it will not place a message on the network if it detects a message from another node. Only one “talker” at a time; if roads were designed this way, only one car at a time could be on any given street. The problem here is called a collision. This occurs when two nodes (or more, although this case is quite rare) begin transmission at exactly the same time. Neither can detect the fact that the other node has begun transmission because the signals have not yet propagated through the net. The speed of signals in a network wire is approximately one foot per nanosecond. The CSMA/CD (Carrier Sense Multiple Access with Collision Detection) approach is used by Ethernets. Each node “listens” to the network and begins transmission if it does not detect a signal. It also “listens” during its transmission to insure that the signals on the cable are those that the node put there. If not, a collision has occurred and the node ceases transmission. The Token Ring approach insures that only one node at a time places signals on the cable. It passes a distinguished data packet, called a token, among the nodes. If a node has nothing to transmit, it passes the node to the next node in the ring. If a node has data to place on the cable, it “captures” the token, transmits its data, and then retransmits the token. More later.