Tuesday, January 20, 2009

Understanding Bridges

A bridge is an electronic device that is used to connects two LAN segments.Unlike a repeater,however a bridge is a digital device that uses the same network interface as a conventional computer and handles frames.The bridge listen to traffic on each segment in promiscuous mode.When it receives a frame from one segment,the bridge verifies that the frame arrived intact i.e there was no electrical interference on LAN during transmission and after that it forwards a copy of the frame to the other segment if necessary.Thus,two LAN segments behave connected by a bridge behave like a single LAN.A computer connected to either segment can send a frame to any of the other computers connected to the two segments.Because each segment supports standard network connections and uses the standard frame format that means computers do not know whether they are connected to a LAN or a bridged LAN.

When we compare bridges with LAN it is found that bridges are more useful and popular than repeaters because they help isolate problems.If two segments are connected by a repeater and lightning causes electrical interference on one of them,the repeater will propagate the interference to the other segment.In contrast if interference occurs on one of the two segments connected by a bridge,the bridge will receive an incorrectly formed frame,which the bridges simply discards the same way a conventional computer discards a frame that contains an error.Similarly,a bridge will not forward a collision from one segment to another.Thus,the bridge keeps problems on one segment from affecting the other.

Friday, January 16, 2009

Combining Switches and Hubs

From the last post it is clear that switching provides higher aggregate data rates in comparison to a hub,but the main drawback that occurred with the switched networks is the higher cost in comparison to hub.To overcome all these problems network administrator choose a compromise between the hub and the switched networks that means instead of connecting one computer to each port on a switch,the administrator connects the hub to each of the port of the switch and then connect each computer to one of the hubs.This result is very much closer to the conventional bridged LAN where each hub appears to be a single LAN segment, and the switch makes it appear that bridges connect all segments.The system also performs like a conventional bridged LAN where a computer must share a bandwidth with other computers connected to the same hub,communication can occur in parallel between a pair of computers attached to one hub and a pair of computers attached to another.

Thursday, January 15, 2009

Concept of Switching

In general,a network technology is called switched if the hardware includes an electronic device that connects to one or more computers and allows them to send and receive data from each other.More specifically,a switched LAN consisted of a single electronic device that transfers frames among many computers.As all we know that a switch resembles a hub,like a hub, a switch consists of a single box with multiple ports that each attach to a single computer.The main difference between a switch and a hub arises from the way the devices operates,a hub simulates a single shared medium while in the case of a switch it simulates a bridged LAN with one computer per segment.

If we talk about the chief advantage of using a switched LAN instead of a hub then the reason is same as that of using bridged LAN instead of a single segment.In the case of a hub a single segment is shared by all computers,that means at most two computers can communicate through hub at a time.Thus the maximum possible throughput of a hub system is R,the rate at which single computer can send data across a LAN segment.In the case of a switched LAN,each computer has a simulated LAN segment to itself that means the segment is busy only when a frame is being transferred to or from the computer.As a result,as many as one half of the computers connected to a switch can send the data at the same time(if they send to one of the computers that is not busy in sending).Thus,in this case the maximum throughput of a switch is RN/2 where R is the rate at which data transmits,and N is total number of computers that are connected to the switch.

Tuesday, January 13, 2009

Understanding Baud Rate and Framing Errors

As all we know that sending and receiving hardware are agreed on the length of the time the voltage will be held for each bit.Instead of specifying the time per bit,which is a small fraction of second,communication systems specify the number of bits that can be transferred in a second.For ex:some early RS-232 connections operated at 300 bits per second,19200 bits per second and 33600 bits per second are more common.Technically ,transmission hardware is rated in baud,the number of changes in the signal per second that the hardware generated.For the simple RS-232 scheme presented, the baud rate is exactly equal to the number of bits per second.Thus,9600 baud means 9600 bits per second.

To make RS-232 hardware more general,manufacturers usually design each piece of hardware to operate at variety of baud rates.The baud rate can be configured either manually by physically setting switches on the hardware when it is installed in a computer or automatically by device driver software in a computer.If the sending and receiving hardware are not configured to use the same baud rate,errors will occur because the receiver's timer will not wait an appropriate length of time for each bit.To detect errors,a receiver's measure the voltage for each bit multiple times and compares the measurements.If the voltage do not all agree or if the stop bit does not occur exactly at the time expected,the receiver reports an error.Such errors are known as framing errors.

Tuesday, December 23, 2008

Concept of Parity Bits

Fortunately,few communication systems experience frequent experience.More important,the interference on a long distance communication circuit may be so small that modems can handle all problem automatically.Despite the low probability of error,scientists and engineers who design networks understand that transmission errors do occur,and provide hardware and software mechanisms to detect and correct such problems.But now a days most RS-232 circuits use the different mechanism to ensure that each character arrives intact.This mechanism is known as Parity Check mechanism,this mechanism requires the sender to compute an additional bit,called a parity bit,and to attach it to each character before sending.After all bits of a character arrives,the receiver removes the parity bit,performs the same computation as the sender,and verifies that result agrees with the value of the parity bits.The parity computation chosen is such that if one of the bits in the character is damaged in transit,the receiver's computation will not agree with the parity bit and the receiver will report that an error occurred.

There are two forms of parity,even or odd.Both the sender and receiver must agree on which form is being used.In either form,the computation of the parity bit for a given character is straightforward.To achieve even parity,the sender sets the parity bit to 0 or 1 whichever will make the total number of 1 bits(including parity bit)an even number.Thus,when using even parity ,the parity bit for 0100101 is 1 because the character contains an odd number of 1 bits,and the parity bit for 0101101 is 0 because the character already contains an even number of 1 bits.Similarly to achieve odd parity,the sender chooses a parity bit such that it makes the total number of one in the character is odd.If all bits from the character arrive intact,the receiver's computation of parity will agree with the sender's.If interference changes one of the bits during transmission,the receiver's computation will not agree with the sender's and the receiver will report a parity error.

Sunday, December 21, 2008

Transmission errors in Computer Networks

Lightning,Power Surges,and other electro-magnetic interference can introduce unwanted electrical currents in the electronic components or wires used for communication.Interference that is severe especially lightning can cause permanent damage to network equipment.More often,however interference merely changes the signal used for transmission without damaging the equipment.A small change in the electrical signal can cause the receiver to misinterpret one or more bits of the data.In fact,interference can completely destroy a signal,meaning that although the sender transmits,the receiver does not detect that any data has arrived.Surprisingly,interference on a completely idle transmission circuit can create the opposite effect that means the sender does not transmit any thing,a receiver might interpret the incoming interference as a valid sequence of bits or characters.All these types of errors are known as transmission errors.In the last we can summarize the whole thing in this way that much of the complexity in the computer networks arises because digital transmission system are susceptible to interference that can cause random data to appear or transmitted data to be lost or changed.

Saturday, December 20, 2008

Concept of Packets

Most computer networks do not transfer data as an arbitrary string of continuous bits.Instead the network system divides the data into small blocks called packets,which it sends individually.Computer networks are often called packet networks or packet switching networks because they use packet technology.The concept of using data packets for data transmission is supported by two facts,first a sender and receiver need to coordinate transmission to ensure that data arrives correctly.Dividing the whole data into small blocks helps a sender and receiver to determine which blocks arrive correctly and which blocks do not.

The second fact that supports packet technique is as all we know that communication circuits and modem hardware are expensive,multiple computers often shares underlying connection and hardware.To ensure that all computers receive fair,prompts access to a shared communication facility,a network system cannot allow one computer to access deny to other computers.Using small packets helps ensure fairness.Let understand this more clearly.The networks that do not packet technology allows an application program(computer) to hold a shared communication resource arbitrarily long that means an application was permitted to finish before another application could begin using the resource.But now the networks that uses packet technology have a solution of this problem.Here the networks permits one computer to send a packet of data and then blocks that computer from sending another packet.Meanwhile the network permits another computer to send a packet and so on.A single computer can hold a shared resource only long enough to send single packet,and must wait until other computers have a turn before sending a second packet.