MI0026 Assignment
MI0026 Assignment
Answer :- Some design patterns, like most of those described by Gamma and Helms Design Patterns,
describe the implementation of micro-architectures. These micro-architectural design patterns are useful,
for the most part, to describe small-scale object interactions.
Other design patterns are useful for abstracting large systems of objects. These are architectural design
patterns. An architectural pattern is any pattern concerned with the construction context of a whole
system, rather than just some part of a system.
The distinction between micro-architectures and system architectures depends on your point of view and
the scale of your system. If your system has 5 objects then the micro-architecture-style design patterns
are architectural patterns because they consider the structure, relative communication, and design
philosophy for the system. But more commonly, architectural design patterns are used to describe the
structure of bigger systems where the number of objects is measured in hundreds or thousands.
Some Examples
The traditional 3-tier client server model, which separates application functionality into three distinct
abstractions, is an example of layered design. Much has been written about the 3-tier client-server model
and I wont discuss it further, other to say that this is the result of layered design thinking.
Figure 2: The OSI 7-layer model, largely supplanted by the more recent and popular Internet Protocol
Stack.
Here is a brief table describing the layers of the OSI 7-layer model.
Layer Role
Responsible for segmenting long messages into packets. Recovers lost packets
Transport with acknowledgments and retransmissions. Flow control. Congestion control.
Breaks messages into packets and guarantees delivery.
Responsible for routing packets from source to destination host. Selects a route
Network
from sender to receiver.
Responsible for moving packet from one node (host or packet switch) to next
Data Link
node. Error detection and correction. Medium access.
The physical layer, the lowest layer in the OSI stack, is responsible for moving
information between two systems connected by a single physical link. The
Physical
physical layer provides the abstraction of bit transport, independent of the link
technology. Specifies voltage levels, bit spacings.
The OSI 7-layer model is a cool example because it neatly shows the general types of services required
for computers to talk to each other. The Internet protocol stack is a refinement of the OSI 7-layer model,
minus the Presentation and Session layers, whose services are either not needed or abstracted into the
neighboring layers.
Note that each of the layers in the OSI stack dont necessarily function on distinct hardware or memory
space. For example, its common to find the Data Link and Physical layers tightly coupled and interleaved
(for performance reasons) within the same Ethernet network interface card.
A large system requires decomposition. One way to decompose a system is to segment it into
collaborating objects. In large systems a first-cut rough model might produce hundreds or thousands of
potential objects. Additional refactoring typically leads to object groupings that provide related types of
services. When these groups are properly segmented, and their interfaces consolidated, the result is a
layered architecture.
Benefits
Segmentation of high-level from low-level issues. Complex problems can be broken into smaller more
manageable pieces.
Since the specification of a layer says nothing about its implementation, the implementation details of a
layer are hidden (abstracted) from other layers.
Many upper layers can share the services of a lower layer. Thus layering allows us to reuse functionality.
Two distinct techniques are used in data communications to transfer data. Each has its own
advantages and disadvantages. They are the connection-oriented method and the
connectionless method:
Figure 1
Connection-oriented methods may be implemented in the data link layers of the protocol
stack and/or in the transport layers of the protocol stack, depending on the physical
connections in place and the services required by the systems that are communicating. TCP
(Transmission Control Protocol) is a connection-oriented transport protocol, while UDP (User
Datagram Protocol) is a connectionless network protocol. Both operate over IP.
The physical, data link, and network layer protocols have been used to implement
guaranteed data delivery. For example, X.25 packet-switching networks perform extensive
error checking and packet acknowledgment because the services were originally
implemented on poor-quality telephone connections. Today, networks are more reliable. It
is generally believed that the underlying network should do what it does best, which is
deliver data bits as quickly as possible. Therefore, connection-oriented services are now
primarily handled in the transport layer by end systems, not the network. This allows lower-
layer networks to be optimized for speed.
A WAN service that uses the connection-oriented model is frame relay. The service provider
sets up PVCs (permanent virtual circuits) through the network as required or requested by
the customer. ATM is another networking technology that uses the connection-oriented
virtual circuit approach.
Q.2 Classify Guided medium (wired).Compare fiber optics and copper wire.
Answer : - Guided media, which are those that provide a conduit from one device to
another, include twisted-pair cable, coaxial cable, and fiber-optic cable.
Guided Transmission Media uses a "cabling" system that guides the data signals along
a specific path. The data signals are bound by the "cabling" system. Guided Media is
also known as Bound Media. Cabling is meant in a generic sense in the previous
sentences and is not meant to be interpreted as copper wire cabling only. Cable is the
medium through which information usually moves from one network device to
another.
Twisted pair cable and coaxial cable use metallic (copper) conductors that accept and
transport signals in the form of electric current. Optical fiber is a glass or plastic cable
that accepts and transports signals in the form of light.
There four basic types of Guided Media :
1.Open Wire
2.Twisted Pair
3.Coaxial Cable
4.Optical Fiber
Open Wire is traditionally used to describe the electrical wire strung along power
poles. There is a single wire strung between poles. No shielding or protection from
noise interference is used. We are going to extend the traditional definition of Open
Wire to include any data signal path without shielding or protection from noise
interference. This can include multiconductor cables or single wires. This media is
susceptible to a large degree of noise and interference and consequently not
acceptable for data transmission except for short distances under 20 ft.
Twisted pair cable is least expensive and most widely used. The wires in Twisted Pair
cabling are twisted together in pairs. Each pair would consist of a wire used for the
+ve data signal and a wire used for the -ve data signal. Any noise that appears on one
wire of the pair would occur on the other wire. Because the wires are opposite
polarities, they are 180 degrees out of phase When the noise appears on both wires, it
cancels or nulls itself out at the receiving end. Twisted Pair cables are most effectively
used in systems that use a balanced line method of transmission : polar line coding
(Manchester Encoding) as opposed to unipolar line coding (TTL logic).
Physical description
A twisted pair consists of two conductors (normally copper), each with its own plastic
insulation, twisted together. One of the wire is used to carry signals to the receiver,
and the other is used only a ground reference.