Computer Networking : Basics
What is Data Communication ?
Data Communication is defined as exchange of data between two devices via some form of transmission media such as a cable, wire or it can be air or vacuum also.
For occurrence of data communication, communicating devices must be a part of communication system made up of a combination of hardware or software devices and programs.
Data Communication System Components :
There are mainly five components of a data communication system:
1. Message
2. Sender
3. Receiver
4. Transmission Medium
5. Set of rules (Protocol)
All above mentioned elements are described below:
Figure – Components of Data Communication System
1 Message :
This is most useful asset of a data communication system. The message simply refers to data or piece of information which is to be communicated. A message could be in any form, it may be in form of a text file, an audio file, a video file, etc.
2 Sender :
To transfer message from source to destination, someone must be there who will play role of a source. Sender plays part of a source in data communication system. It is simple a device that sends data message. The device could be in form of a computer, mobile, telephone, laptop, video camera, or a workstation, etc.
3 Receiver :
It is the destination where finally message sent by source has arrived. It is a device that receives message. Same as sender, receiver can also be in form of a computer, telephone mobile, workstation, etc.
4 Transmission Medium :
In entire process of data communication, there must be something which could act as a bridge between sender and receiver, Transmission medium plays that part. It is physical path by which data or message travels from sender to receiver. Transmission medium could be guided (with wires) or unguided (without wires), for example, twisted pair cable, fibre optic cable, radio waves, microwaves, etc.
5. Set of rules (Protocol) :
To govern data communications, various sets of rules had been already designed by the designers of the communication systems, which represent a kind of agreement between communicating devices. These are defined as protocol. In simple terms, the protocol is a set of rules that govern data communication. If two different devices are connected but there is no protocol among them, there would not be any kind of communication between those two devices. Thus the protocol is necessary for data communication to take place.
A typical example of a data communication system is sending an e-mail. The user which send email act as sender, message is data which user wants to send, receiver is one whom user wants to send message, there are many protocols involved in this entire process, one of them is Simple Mail Transfer Protocol (SMTP), both sender and receiver must have an internet connection which uses a wireless medium to send and receive email.
Transmission Modes /Data Flow
Transmission mode means transferring of data between two devices.It is also known as communication mode.Buses and networks are designed to allow communication to occur between individual devices that are interconnected.
There are three types of transmission mode:-
Simplex Mode
Half-Duplex Mode
Full-Duplex Mode
Figure –Transmission Mode
Simplex Mode
• In Simplex mode, the communication is unidirectional, as on a one-way street.
• Only one of the two devices on a link can transmit, the other can only receive.
• The simplex mode can use the entire capacity of the channel to send data in one direction.
Example: Keyboard and traditional monitors. The keyboard can only introduce input, the monitor can only give the output.
Half-Duplex Mode
• In half-duplex mode, each station can both transmit and receive, but not at the same time.
• When one device is sending, the other can only receive, and vice versa.
• The half-duplex mode is used in cases where there is no need for communication in both direction at the same time. The entire capacity of the channel can be utilised for each direction.
Example: Walkie- talkie in which message is sent one at a time and messages are sent in both the directions.
Figure – Half-duplex Model
Full-Duplex Mode
- In full-duplex mode, both stations can transmit and receive simultaneously.
- In full_duplex mode, signals going in one direction share the capacity of the link with signals going in other direction, this sharing can occur in two ways:
▪ Either the link must contain two physically separate transmission paths, one for sending and other for receiving.
▪ Or the capacity is divided between signals travelling in both directions.
- Full-duplex mode is used when communication in both direction is required all the time. The capacity of the channel, however must be divided between the two directions.
Example: Telephone Network in which there is communication between two persons by a telephone line, through which both can talk and listen at the same time.
Figure – Full-duplex Model
Networking Elements –
The computer network includes the following networking elements:
1 At least two computers
2 Transmission medium either wired or wireless
3 Protocols or rules that govern the communication
4 Network software such as Network Operating System
Network Criteria:
The criteria that have to be met by a computer network are:
1. Performance –
It is measured in terms of transit time and response time.
• Transit time is the time for a message to travel from one device to another
• Response time is the elapsed time between an inquiry and a response.
Performance is dependent on the following factors:
• The number of users
• Type of transmission medium
• Capability of connected network
• Efficiency of software
2. Reliability –
It is measured in terms of
• Frequency of failure
• Recovery from failures
• Robustness during catastrophe
3. Security –
It means protecting data from unauthorised access.
Goals of Computer Networks:
The following are some important goals of computer networks:
1. Resource Sharing –
Many organisation has a substantial number of computers in operations, which are located apart.
Ex. A group of office workers can share a common printer, fax, modem, scanner etc.
2. High Reliability –
If there are alternate sources of supply, all files could be replicated on two or more, machines.
If one of them is not available, due to hardware failure, the other copies could be used.
3 Inter-process Communication –
Network users, located geographically apart, may converse in an interactive session through the network.
In order to permit this, the network must provide almost error-free communications.
Flexible access –
Files can be accessed from any computer in the network. The project can be begun on one computer and finished on another.
Other goals include Distribution of processing functions, Centralised management, and allocation of network resources, Compatibility of dissimilar equipment and software, Good network performance, Scalability, Saving money, Access to remote information, Person to person communication etc.,