Lecture 03 - Communication in Networks
Lecture 03 - Communication in Networks
Computing
Communication in Networks
Today We Will learn,
• Communication Unit
• Communication Costs in Parallel Machines
• Message Routing Techniques
- Store-and-Forward Routing
- Packet Routing
- Cut-Through Routing
Network Layers Model (OSI) - Revisited
• Typical Model showing the Layers of the Network
Communication Unit
• Message:
- the unit of communication from the programmer’s perspective.
- Its size is limited only by the computer’s memory space
• Packet:
- Fixed-size small unit of communication containing routing information (e.g., a
destination address) and sequencing information in its header.
- Its size is of order hundred or thousands of bytes or words
- Data sent over computer networks, such as the Internet, is divided into packets.
- These packets are then recombined by the computer or device that receives them.
- It consists of header flits and data flits
Illustration of Communication Unit
• Phit: the smallest physical unit of information at the Physical Layer, which is
Solution:
r = Channel bandwidth = 50 Words/Minutes
= 50/60 Words/Seconds
= 0.83 Words/Seconds
Tw = 1/r = 1/0.83
Message Routing Techniques
• Store-and-Forward Routing
• Packet Routing
• Cut-Through Routing
Message Routing Techniques
• Store-and-Forward Routing (I)
- Technique where the data packets are stored in each intermediate node, before
they are forwarded to the next node.
- The intermediate node checks whether the packet is error−free before
transmitting, thus ensuring integrity of the data packets.
- In general, the network layer operates in an environment that uses store and
forward packet switching.
- illustration
Message Routing Techniques
• Store-and-Forward Routing (I)
- Total communication cost for a message of size m to traverse a path of l
links
Solution:
r = Channel bandwidth = 50 Words/Minutes = 50/60 Words/Seconds = 0.83 Words/Seconds
Tw = 1/r = 1/0.83
- The quantity mtw is much larger. So we usually ignore the per-hop time
• Flits are sent through the path one after the other
• If the message traverses l links, and th is the per-hop time, then the header of
the message takes time lth to reach the destination. If the message is m words
long, then the entire message arrives in time twm after the arrival of the
header of the message. Therefore, the total communication time for cut-
through routing is
Communication Cost of CT Routing
• Note that it no longer contains the product of message size and number of
links
• Cut-through routing is fast for large size message and long distance
communication
• For nearest neighbor communication, store-and forward routing and cut-
through routing are similar
Message Routing Techniques
Message Routing Techniques
Message Routing Techniques
Routing Mechanisms for Interconnection Networks
• Efficient algorithms for routing a message to its destination are critical to the performance
of parallel computers.
• A routing mechanism determines the path a message takes through the network to get
from the source to the destination node.
- It takes as input a message's source and destination nodes. It may also use information
about the state of the network.
- It returns one or more paths through the network from the source to the destination node.
Two routing mechanisms:
- Minimal and
- Non-minimal
Routing Mechanisms for Static Networks
• Minimal routing
- always selects one of the shortest paths between the source and
destination node
- In a minimal routing scheme, each link brings a message closer to its
destination
- This scheme could lead to congestion in parts of the network
• Non-minimal routing
- may route the message along a longer path to avoid network congestion
Routing Mechanisms for Static Networks
• Routing mechanisms can also be classified on the basis of how they use
information regarding the state of the network
• Adaptive routing
- In contrast, an adaptive routing scheme uses information regarding the
current state of the network to determine the path of the message.
- Adaptive routing detects congestion in the network and routes messages
around it.
Routing Mechanisms for Static Networks
• One commonly used deterministic minimal routing technique is called dimension-
ordered routing.