Network Systems and Protocols

  1. Types of network
  2. Network protocols and standards
  3. Application layer protocols

MindNode Diagram of Chapter

Unit Details

1.1. Types of network

1.2 Network protocols and standards

1.3 Application layer protocols

  1. HTTP
  2. DNS
  3. DHCP
  4. FTP
  5. SMTP

What is a Network ?

A computer network, or data network, is a digital telecommunications network which allows nodes to share resources. In computer networks, networked computing devices exchange data with each other using a data link.

What is an internet and how it works ?

Client Server Architecture

  1. Client
  2. Server
  3. Request
  4. Response

Types of network

Based on Size

  1. Personal Area Network (PAN)
  2. Local Area Network (LAN)
  3. Metropolitan Area Network (MAN)
  4. Wide area network (WAN)
  5. Internet

Based on Topology

  1. Star Topology
  2. Bus Topology
  3. Ring Topology
  4. Mesh Topology
  5. Tree Topology

Network Access Methods

1. Carrier Sensing Multiple Access (CSMA)

Carrier sense multiple access (CSMA) is a media access control (MAC) protocol in which a node verifies the absence of other traffic before transmitting on a shared transmission medium. A transmitter attempts to determine whether another transmission is in progress before initiating a transmission using a carrier sense mechanism. That is, it tries to detect the presence of a carrier signal from another node before attempting to transmit. If a carrier is sensed, the node waits for the transmission in progress to end before initiating its own transmission.

2. Token Passing

In network communication, token passing is a channel access method where a signal called a token is passed between nodes that authorizes the node to communicate. It uses Round-robin scheduling algorithms. The advantage over other channel access method is that collisions are eliminated, and that the channel bandwidth can be fully utilized without idle time when demand is heavy. The disadvantage is that even when demand is light, a station wishing to transmit must wait for the token, increasing latency.

Network models

  1. OSI Model
  2. TCP/IP Mode

OSI Model

1. Application Layer
2. Presentation Layer
3. Session Layer
4. Transport Layer
5. Network Layer
6. Data Link Layer
7. Physical Layer

1. Application Layer

2. Presentation Layer

3. Session Layer

4. Transport Layer

5. Network Layer

7. Physical Layer

TCP/IP Model

1. Application Layer
2. Transport Layer
3. Network Layer
4. Physical Layer

1. Application Layer

2. Transport Layer

3. Internet/Network Layer

4. Physical Layer

<!– - Simplex - Simplex is one direction. A good example would be your keyboard to your CPU. The CPU never needs to send characters to the keyboard but the keyboard always sends characters to the CPU. In many cases, Computers almost always send characters to printers, but printers usually never send characters to computers (there are exceptions, some printers do talk back). Simplex requires only one lane (in the case of serial).

Network protocols and standards:

Application layer protocols

  1. HTTP
  2. DNS
  3. DHCP
  4. FTP
  5. SMTP

1. HTTP (Hyper Text Transfer Protocol)

2. DNS (Domain Name Server) - Protocol

3. DHCP (Dynamic Host Control Protocol)

4. FTP (File Transfer Protocol)

5. SMTP (Simple Mail Transfer Protocol)

Mailing Process on Internet

Parties Involved in Email System

Protocols Involved in Email System

Sender (MUA) uses SMTP Protocol to send email to its nearest email server (MTA). It then sends the email over bunch of other email servers (MTA). Finally when the emails reach to the destination email server (MDA) the server then notifies the client (MUA). The client visits his/her inbox and finds the email.

Transport Layer Protocols

TCP

UDP

Internet Layer Protocols

IP Classes

IP addresses are divided into 5 classes[A-E].

Intranet & Extranet

Unicast, Broadcast and Multicast

Common port numbers

The Internet Assigned Numbers Authority (IANA) is responsible for the global coordination of the DNS Root, IP addressing, and other Internet protocol resources. This includes the registration of commonly used port numbers for well-known Internet services.

The port numbers are divided into three ranges: the well-known ports the registered ports, and the dynamic or private ports.

The well-known ports (also known as system ports) are those from 0 through 1023. The requirements for new assignments in this range are stricter than for other registrations examples include:

The registered ports are those from 1024 through 49151. IANA maintains the official list of well-known and registered ranges. The dynamic or private ports are those from 49152 through 65535.

Three Types of Communication Channel

  1. Simplex
  2. Half duplex
  3. Full duplex

1) Simplex

A simplex communication channel only sends information in one direction. For example, a radio station usually sends signals to the audience but never receives signals from them, thus a radio station is a simplex channel. It is also common to use simplex channel in fiber optic communication. One strand is used for transmitting signals and the other is for receiving signals. But this might not be obvious because the pair of fiber strands are often combined to one cable. The good part of simplex mode is that its entire bandwidth can be used during the transmission.

2) Half duplex

In half duplex mode, data can be transmitted in both directions on a signal carrier except not at the same time. At a certain point, it is actually a simplex channel whose transmission direction can be switched. Walkie-talkie is a typical half duplex device. It has a “push-to-talk” button which can be used to turn on the transmitter but turn off the receiver. Therefore, once you push the button, you cannot hear the person you are talking to but your partner can hear you. An advantage of half-duplex is that the single track is cheaper than the double tracks.

3) Full duplex

A full duplex communication channel is able to transmit data in both directions on a signal carrier at the same time. It is constructed as a pair of simplex links that allows bidirectional simultaneous transmission. Take telephone as an example, people at both ends of a call can speak and be heard by each other at the same time because there are two communication paths between them. Thus, using the full duplex mode can greatly increase the efficiency of communication.

Bridging Devices on Network

When computers, network devices or other networks are required to be connected, hubs, switches and routers are the bridges to link them together. All the three types of devices can perform the same function, and technicians sometimes may use the terms interchangeably. However, this will make people confuse whether they are the same thing or different from each other.

  1. Hub
  2. Switch
  3. Router

Hub

A hub is to sent out a message from one port to other ports. For example, if there are three computers of A, B, C, the message sent by a hub for computer A will also come to the other computers. But only computer A will respond and the response will also go out to every other port on the hub. Therefore, all the computers can receive the message and computers themselves need to decide whether to accept the message.

Switch

A switch is able to handle the data and knows the specific addresses to send the message. It can decide which computer is the message intended for and send the message directly to the right computer. The efficiency of switch has been greatly improved, thus providing a faster network speed.

Router

Router is actually a small computer that can be programmed to handle and route the network traffic. It usually connects at least two networks together, such as two LANs, two WANs or a LAN and its ISP network. Routers can calculate the best route for sending data and communicate with each other by protocols.

What Is the Difference?

Hub Vs. Switch

A hub works on the physical layer (Layer 1) of OSI model while Switch works on the data link layer (Layer 2). Switch is more efficient than the hub. A switch can join multiple computers within one LAN, and a hub just connects multiple Ethernet devices together as a single segment. Switch is smarter than hub to determine the target of the forwarding data. Since switch has a higher performance, its cost will also become more expensive.

Switch Vs. Router

In the OSI model, router is working on a higher level of network layer (Layer 3) than switch. Router is very different from the switch because it is for routing packet to other networks. It is also more intelligent and sophisticated to serve as an intermediate destination to connect multiple area networks together. A switch is only used for wired network, yet a router can also link with the wireless network. With much more functions, a router definitely costs higher than a switch.

Hub Vs. Router

As mentioned above, a hub only contains the basic function of a switch. Hence, differences between hub and router are even bigger. For instance, hub is a passive device without software while router is a networking device, and data transmission form in hub is in electrical signal or bits while in router it is in form of packet.