1 of 51

Computer Networks

UNIT-1

2 of 51

What is CN?

computer network is a set of computers connected together and able to exchange information with one another.

3 of 51

Applications

  • Business Applications
    • Resource Sharing
    • Emails
    • VPNs
    • E-Commerce
  • Home Applications
    • TV
    • Smart Homes (IoT)
    • Facebook, Twitter, etc.
  • Mobile Applications
    • GPS
    • Smart Phones
    • Wearable Devices

4 of 51

Network Hardware

  • Participants
    • Connecting Devices
      • Hubs, Switches, Routers, Modems, etc.
    • Communication Medium
      • Wired, Wireless
    • Edge Devices
      • PCs, Laptops, Servers, Sensors, Printers, etc.
  • Types of Communication
    • Unicasting or Point to Point
    • Multicasting and Broadcasting

5 of 51

Protocol Hierarchy

  • Protocol
    • An agreement between the communicating parties on how communication is to proceed.

Or

    • Set of rules that governs the communication.
  • Network Service
    • An application that provides data storage, manipulation, presentation, communication or other capability.
    • Examples: Normal Web Service, Secured Web Service, E-Mail, File server, Remote login, instant messaging, video conferencing, video broadcasting, VoIP Calls, Gaming, IoT,
  • Any service will be provided by clearly following a set of rules i.e. Protocols.

6 of 51

Protocol Hierarchy (Cont..)

  • Network software is designed as a stack of layers, where every layer will have a set of protocols that does certain task.
  • Imaging a network service as a simple program
    • Takes input from the user
    • Does some magic on it (process)
    • But instead of normal output, the program generates electrical/electro-magnetic/light signal as output.
  • So if the program is a continuous program (Single Layer) then we need different programs to provide different services from first to last step.
    • It is like multiple programs created without using Modules/Functions that need to do all the tasks from taking input to generating signals.

I/P

O/P

N/W S/W for Service 1

I/P

O/P

N/W S/W for Service 2

I/P

O/P

N/W S/W for Service 3

I/P

O/P

N/W S/W for Service 4

I/P

O/P

N/W S/W for Service 5

7 of 51

Protocol Hierarchy (Cont..)

  • Drawback with single layer is:
    • Design Complexity is Very High
  • Instead, if we combine all the programs into one and divide the program using function/modules to eliminate repeated coding.

I/P

O/P

L11

L12

L13

L14

L21

L23

L22

L31

L32

L33

L34

L35

L36

  • As shown here one such program is capable of providing 4x3x6=72 different types of services.
  • Hence, the network software is a layered architecture with multiple protocols in each layer.
  • Every layer will provide some service to above layer. (Taking input from above layer, processing it and giving it to bellow layer).

8 of 51

Protocol Hierarchy (Cont..)

System 1

L11

L13

L14

L21

L23

L22

L31

L32

L33

L34

L35

L36

L12

System 2

L11

L12

L13

L14

L21

L23

L22

L31

L32

L33

L34

L35

L36

Communication Medium

L12

L21

L33

L33

L21

L12

9 of 51

Protocol Hierarchy (Cont..)

  • This layered concept provides information hiding, abstract data types, data encapsulation like in OOPs.
  • The entities comprising the�corresponding layers on different machines are called peers.
  • A set of layers and protocols is called a network architecture.

10 of 51

Protocol Hierarchy (Cont..)

  • When data moves from top layer to bottom headers will be added.
  • When data moves from bottom layer to top headers will be removed.

11 of 51

Design Issues

  • Reliability – Error Control Mechanisms in 2 different layers in two levels.
  • Routing – 1 Layer Completely Dedicated
  • Addressing and Naming – Diff layers use their diff type of addressing for different levels of communication.
  • Scalability
  • Flow Control
  • Congestion Control
  • QoS in Real-time Services

12 of 51

Connection-oriented vs Connection-less

  • Layers can offer two different types of service to the layers above them.
  • Connection-oriented service is modeled after the telephone system.
    • Negotiation: Maximum message size, QoS level required, other Issues.
    • Addressing in the begining only.
  • connectionless service is modeled after the postal system.
    • No need of negotiation.
    • Addressing in every message.
  • Reliable (Ack) and Unreliable (No-Ack) Services

13 of 51

Relationship between Services and Protocols

  • Service (Layers)
    • A service is a set of primitives (operations) that a layer provides to the layer above it.
    • The service defines what operations the layer is prepared to perform on behalf of its users, but it says nothing at all about how these operations are implemented.
    • A service relates to an interface between two layers, with the lower layer being the service provider and the upper layer being the service user.
  • Protocol
    • Entities use protocols to implement their service definitions.
    • They are free to change their protocols at will, provided they do not change the service visible to their users.

14 of 51

Day 4(08-07-2020): ILO

  • Able to understand the fundamentals of OSI and TCP/IP Reference models and can differentiate between them.

15 of 51

Reference Models

  • OSI Reference Model
    • Developed in response of a International Standard Organisation’s (ISO) proposal in 1993 & revised in1995.
    • Not used anymore but layers model is quite general and valid.
  • TCP/IP Reference Model
    • Designed for ARPANET(Universities and DARPA) for support different types of communications via the network in 1974 & redefined and standardised in1988
    • Model was not clearly defined but the protocols are widely used.
  • The current Internet is successor of ARPANET hence continued using TCP/IP.

16 of 51

OSI Reference Model

  • ISO-OSI: International Standards Organization – Open System Interconnection

17 of 51

OSI Reference Model(Cont.)

  • So why 7 layers? The principles behind the coming up with 7 are
    • A layer should be created where a different abstraction is needed
    • Each layer should perform a well-defined function
    • The function of each layer should be chosen with an eye toward defining internationally standardized protocols
    • The layer boundaries should be chosen to minimize the information flow across the interfaces
    • The number of layers should be large enough that distinct functions need not be thrown together in the same layer out of necessity and small enough that the architecture does not become unwieldy.
  • Note that the OSI model itself is not a network architecture because it does not specify the exact services and protocols to be used in each layer. It just tells what each layer should do.

18 of 51

OSI Reference Model(Cont.)

19 of 51

OSI Reference Model(Cont.)

  • Physical Layer: Concerned with transmitting raw bits over a communication channel.
    • To do so, take cares of
      • What electrical signals should be used to represent a 1 and a 0
      • How many nanoseconds a bit lasts
      • whether transmission may proceed simultaneously in both directions
      • How the initial connection is established
      • How the connection was closed once done
      • How many pins the network connector has? and what is purpose of each pin
    • These design issues largely deal with mechanical, electrical, and timing interfaces, as well as the physical transmission medium, which lies below the physical layer.

20 of 51

OSI Reference Model(Cont.)

21 of 51

OSI Reference Model(Cont.)

  • Data Link Layer: Transform a raw transmission facility into a line that appears free of undetected transmission errors.
    • DLL will achieve this by
      • having the sender break up the input data into data frames and transmitting them sequentially.
      • Make the receiving device send an acknowledgement in reliable services.
    • Also make sure that a fast receiver will not overrun a slow receiver.
    • In case of broadcasting channels (multi-point), also decides, who can access and transmit (Medium Access Control).
    • Uses physical (MAC) Address for delivery of information to next node (node-to-node delivery).

22 of 51

OSI Reference Model(Cont.)

23 of 51

OSI Reference Model(Cont.)

  • Network Layer
    • Controls the operation of a subnet
    • Takes care of “Routing” from host to host that are in different networks (host-to-host delivery).
    • Uses logical (IP) address for identifying and delivering to a node in the network.

24 of 51

OSI Reference Model(Cont.)

25 of 51

OSI Reference Model(Cont.)

  • Transport Layer
    • Accepts data from above it, split it up into smaller units if need be, pass these to the network layer, and ensure that the pieces all arrive correctly at the other end.
    • Provides two types of services, selects which service to provide based on need.
      • Connection-oriented service
      • Connection-less service
    • Uses port address to identify communicating processes on both ends (process-to-process delivery)
    • A true end-to-end delivery of information.

26 of 51

OSI Reference Model(Cont.)

27 of 51

OSI Reference Model(Cont.)

28 of 51

OSI Reference Model(Cont.)

  • The physical layer, data link layer, and network layer are N/W dependent layers. They deliver of information from the current device to the next device with the corresponding layer access.
  • Where as the remaining 4 layers will be there in only end devices normally, they will work in the perspective of source to destination(end-to-end).

29 of 51

OSI Reference Model(Cont.)

  • Session Layer
    • Allows users on different machines to establish sessions between them
    • Sessions offer various services
      • Dialogue Control: Who’s turn is it to communicate.
      • Token management: Prevention of simultaneous access of same operation (like deadlocks)
      • Synchronization

30 of 51

OSI Reference Model(Cont.)

  • Presentation Layer
    • Concerned with the syntax and semantics of the information transmitted
    • To make it possible for computers with different internal data representations to communicate.
    • Defines and uses higher level abstract data structures and encoding mechanisms.

31 of 51

OSI Reference Model(Cont.)

  • Application Layer
    • Contains a variety of protocols that are commonly needed by users.
    • Provides a systematic and easy way for users to get a network service.

32 of 51

TCP/IP Reference Model

  • Named after the two major protocols TCP (Transport Layer) and IP (Internet Layer).

33 of 51

TCP/IP Reference Model (Cont.)

  • Link Layer
    • An interface between hosts and transmission links.
  • Internet Layer
    • Its job is to permit hosts to inject IP packets into any network and have them travel independently to the destination and delivered (potentially on a different network).
    • The internet layer defines an official packet format and protocol called IP (Internet Protocol), plus a companion protocol called ICMP (Internet Control Message Protocol) that helps it function.
    • Routing
    • Uses IP addresses (Logical address) to do host-to-host delivery.

34 of 51

TCP/IP Reference Model (Cont.)

  • Transport Layer
    • It is designed to allow peer entities on the source and destination hosts to carry on a conversation, just as in the OSI transport layer.
    • Segments data received from above layer and gives them to internet layer.
    • Uses two protocols to provide process-to-process communication in two ways
      • TCP
        • Reliable Connection-Oriented Protocol
        • Sends information as stream of bytes.
        • Error Control, Flow Control�
      • UDP
        • Unreliable Connectionless Protocol
        • Not provides Error Control, Flow Control.
        • For services that need prompt delivery: Video or Speech Communication

35 of 51

TCP/IP Reference Model (Cont.)

  • Application Layer
    • Applications in TCP/IP simply include any session and presentation functions that they require.
    • Contain all the high level protocols like
      • TELNET: Remote Access
      • FTP: File Transferring
      • SMTP: Electronic Mails
      • HTTP: Web Service�

36 of 51

TCP/IP Reference Model (Cont.)

37 of 51

OSI vs TCP/IP

  • Similarities
    • Based upon layered architecture.
    • The OSI has seven layers while the TCP/IP has four layers.
    • In both models, the layers above transport layer are application-oriented users of the transport service.

38 of 51

OSI vs TCP/IP

  • Differences
    • OSI model is a generic model that is based upon functionalities of each layer. TCP/IP model is a protocol-oriented standard.
    • OSI model distinguishes the three concepts, namely, services, interfaces, and protocols. TCP/IP does not have a clear distinction between these three.
    • OSI model gives guidelines on how communication needs to be done, while TCP/IP define standards on which the Internet was developed. So, TCP/IP is a more practical model.
    • In OSI, the model was developed first and then the protocols in each layer were developed. In the TCP/IP suite, the reverse is true.
    • The OSI has seven layers while the TCP/IP has four layers.

39 of 51

Network Topologies

  • Network Topology refers to the way in which a network is laid out physically.
  • Two or more devices connect to a link; two or more links form a topology.
  • The topology of a network is the geometric representation of the relationship of all the links and linking devices (usually called nodes) to one another.
  • There are four basic topologies possible:
      • Mesh
      • Star
      • Bus
      • ring

40 of 51

Network Topologies (Cont.)

  • Mesh Topology
    • Every device has a dedicated point-to-point link to every other device.
    • To create a fully connected mesh network with n nodes, we need n (n – 1) / 2 duplex-mode links.
    • To accommodate that many links, every device on the network must have n – 1 input/output (I/O) ports to be connected to the other n – 1 stations.
    • Advantages: No traffic problems, Robust i.e., Failure of one link or node will not effect others, Privacy and Security, & fault identification and isolation is easy.
    • Disadvantages: installation and reconnection are difficult, the sheer bulk of the wiring can be greater than the available space, the hardware required to connect each link.

41 of 51

Network Topologies (Cont.)

  • Star Topology
    • Each device has a dedicated point-to-point link only to a central controller, usually called a hub.
    • Advantages: Less expensive than a mesh topology, easy to install and reconfigure, robustness in terms of links, and easy fault identification and isolation.
    • Disadvantages: Dependency of the whole topology on one single point, the hub, more cabling is required in a star than in some other topologies (such as ring or bus).��

42 of 51

Network Topologies (Cont.)

  • Bus Topology
    • Unlike the preceding topologies a bus topology is multipoint. One long cable acts as a backbone to link all the devices in a network. Nodes are connected to the bus cable by drop lines and taps.
    • Advantages: Ease of installation, less cabling than mesh or star topologies.
    • Disadvantages: difficult reconnection and fault isolation, difficult to add new�devices, Signal reflection at the taps can cause degradation in quality, that can be controlled by limiting the number and spacing of devices connected to a given length of cable and a fault or break in the bus cable stops all transmission.

43 of 51

Network Topologies (Cont.)

  • Ring Topology
    • each device has a dedicated point-to-point connection with only the two devices on either side of it. A signal is passed along the ring in one direction, from device to device, until it reaches its destination. Uses tokens to control the medium access.
    • Advantages: Relatively easy to install and reconfigure, Easy fault identification and isolation.
    • Disadvantages: Unidirectional traffic, break in a link will bring down the entire network.�

44 of 51

Network Topologies (Cont.)

45 of 51

Network Topologies (Cont.)

46 of 51

Network Types

  • The criteria of distinguishing one type of network from another is difficult and sometimes confusing. We use a few criteria such as size, geographical coverage, and ownership to make this distinction.
  • Based on the size/geographical coverage a network will be falling under different categories.

47 of 51

Network Types (PAN)

  • PANs (Personal Area Networks) let devices communicate over the range of a person.
    • Wired
    • Wireless
      • Bluetooth
      • RFID

48 of 51

Network Types (LAN)

  • A LAN (Local Area Network) is a privately owned network that operates within and nearby a single building like a home, office or factory.
  • When LANs are used by companies, they are called enterprise networks.
  • Wired LANs: Generally uses coper wires, Older ones operate at 100Mbps to 1Gbps, newer can operate upto 10Gbps.
  • Wireless LANs are very popular these days that uses: AP�(Access Point), wireless router, or base station, usually operates at 11 to 100 Mbps.

49 of 51

Network Types (MAN)

  • A MAN (Metropolitan Area Network) covers a city. Ex: Cable Network.
  • In this figure we see both television signals and Internet being fed into the centralized cable headend for subsequent distribution to people’s homes.
  • Recent developments in high-speed wireless Internet access have resulted in another MAN, called WiMAX.

50 of 51

Network Types (WAN)

  • A WAN (Wide Area Network) spans a large geographical area, often a country or continent.
  • A LAN interconnects hosts; a WAN interconnects connecting devices such as switches, routers, or modems.
  • a WAN is normally created and�run by communication companies and leased by an organization that uses it.
  • A point-to-point WAN is a network that connects two communicating devices through a transmission media (cable or air).
  • Switched WAN is a combination of several point-to-point WANs that are connected by switches.
  • switches, are specialized computers that connect two or more transmission lines.

51 of 51

Important Questions

  • *Explain the functions of various layers in ISO-OSI reference model.
  • *Differentiate OSI reference model with the TCP/IP reference model.
  • Explain different Layers and their functionalities in TCP/IP Model.
  • What is Internet? Discuss history of Internet and Internet today.
  • *Explain the different topologies of the network.
  • *Compare the WAN, LAN and MAN topologies
  • Define Encapsulation and Peer to Peer communication in the layered architecture.�