Computer Networks
Computer Networks
Hubs can use as a central unit from which to connect multiple nodes into one
network.
Hubs provide connections for several different media types (e.g. twister
pair,coaxial, fiber optics).
Switches
Switch is a device connecting multiple communication lines together. Switches
have all but replaced bridges except for small application. Switches constantly
monitor the traffic that comes across them and reroute their internal connections
atomically to provide the most efficient operation for the network. The switch
normally has a buffer for each link to which it is connected. When it receives a
packet, it stores the packet in the buffer of the receiving link and checks the
address to find the outgoing link. If the outgoing link is idle, the switch sends the
frame to the particular link. Switches are made based on two different strategies:
store-and-forward. A store-and-forward switch stores the frame in the input
buffer until the whole packet has arrived
Gateway
Gateway is a device that is used to interface two different incompatible network
facilities. Gateways perform protocol conversion for all seven layers of the OSI
model. A common use for a gateway is to connect the Internet to the telephone
networks or to connect a LAN and a larger system, such as a mainframe
computer or a large packet-switching network, whose communications protocols
are different. A gateway reformats the data so that it will be acceptable to the
system it is passing into by changing protocols and transmitting packets between
two entirely different systems.
A gateway is a combination of hardware and software with its own processor and
memory used to perform protocol conversions. It is usually slower then a bridge
or router because they need to perform such intensive conversion and that they
can be expensive.And more complex design, implementation, maintenance and
operation of a gateway.
The gateway determines where the packet is going and also converts the
message
from one packet to another or from one data code system to another.
Routers
Routers are devices that connect two or more logically separate networks. They
consist ofa combination of hardware and software. The hardware may be a
network server, aseparate computer and the physical interfaces to the various
networks in the internetworking. . The two most important parts of software in
router are the operating system and the routing algorithms.
The router examines the data contained in every packet it receives for detailed
information. Based on information, the router decides whether to block of packet
from the rest of the network or transmit it. Router also attempts to send the
packet by the most efficient path through the network. Routers do this by using
various routing protocols. It also uses one or more metrics to determine the
optimal path along which network traffic should be forwarded.
Routers operate at the network layer of the OSI model. Routers slow down
network
communications, so do not use them unnecessarily.
Routers perform a function very similar to that a bridge, but routers keep the
networks separate.
Router processing slower than bridge processing, because they have to check
both the
Routers are more intelligent than bridges because they use algorithms to
determine
Routers work at the network layer of the OSI model. Whereas bridges operate in
both
Routers do not alter the form of the packet as gateways. They retransmit the
packets
Bridges
Bridge is a device that supports LAN-to-LAN communications. Bridges handles
traffic between two similar or different LANs.
This device bridges two different network segments regardless of their topology
or wiring. It memorized all the network addresses on the both sides of the
segments and manage the flow of traffic between the LANs by reading the
address of the every packet of data that it receives. The address is contained in
the header of each network packet being transmitted.
A bridge operates in both the physical and the data link layers. As a physical
layer device, the bridge regenerates the signal it receives. As the data link layer
device, it can check the physical (MAC) addresses (source and destination)
containing in the frame.
A bridge has filtering and forwarding capabilities. It can check the destination
address of a frame and decide if the frame should be forwarded or dropped. If
the frame is to be forwarded, the decision must specify the port. A bridge has a
table that maps addressed to ports.
3.The bridge reads the addresses and filters all signals from A that are addresses
to
to segment B.
Routers perform a function very similar to that a bridge, bur routers keep the
networks separate.
Router processing slower than bridge processing, because they have to check
both the device address and network address.
Routers are more intelligent than bridges because they use algorithms to
determine the best path to send a packet to a network.
Routers work at the network layer of the OSI model. Whereas bridges operate in
both the physical and the data link layers.
Transceivers
The transceiver is a transmitter and a receiver. It transmits signals over the
medium; it receives signals over the medium; it also detects collisions. A
transceiver can be external or internal. An external transceiver is installed close
to the media and is connected via an AUI to the station. An internal transceiver is
installed inside the station (on the interface card) and does not need an AUI
cable. The transceiver or medium attachment unit (MAU) is medium-dependent.
It creates the appropriate signal for each particular medium. There is a MAU for
each type of medium used in
10-Mbps Ethernet. The coaxial cable need its own type of MAU, the twisted-pair
medium needs a twisted-pair MAU and fiber-optic cable need a fiber-optic MAU.
Repeaters
Routing Algorithms
The main function of the network layer is routing packets from the source host to
destination host. When the source and destination are not on the same network,
the routing algorithms decide which output line an incoming packet should be
transmitted on.
Routing algorithms can be grouped into two major classes: non adaptive and
adaptive.
TCP/IP can recover failure; it is able to divert data immediately through other
routers
interference of services.
TCP/IP is reliable to handling high error rate with facilities for full error control.
commands.
Every host in a network has two addresses: a hardwired MAC address and a
logical IP
MAC Address
Every Ethernet network card has a 48-bit physical address hard-coded into the
board bythe hardware manufacturer. This address is unique all over the world
and it is known asthe MAC (Media Access Control) address or Ethernet
address.The MAC address consists of a set of six colon-delimited hexadecimal
numbers. The IEEE and other standard organizations have ensured the
uniqueness of this address all over the world.This address is used by one of the
layers of the TCP/IP protocol stack.
command. A typical line from the command output could read like as:
The if config command (in UNIX) sets the IP address, the subnet mask and the
broadcast address for each interface. Its most basic function is assigning the IP
address.
TCP/IP has only four layers and these four layers are:
1.Application Layer, representing the application
2.Transport Layer, which controls the reliability of transmission
3.Internet Layer, which takes care of addressing of the data packets
4.Network access Layer, which makes sure that IP addresses are finally
converted to MAC address.
Internet Protocol
The functions of Internet Protocol:
Defining the datagram, this is the basic unit of transmission in the Internet.
Defining the Internet addressing scheme.
Moving data between the Network Access Layer and the Transport Layer.
Routing datagrams to remote hosts.
Performing fragmentation and re-assembly of datagrams.