PSD2A Computer Networks. Unit : I-V

Similar documents
SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

Computer Networks. Andrew S. Tanenbaum

Introduction... xiii Chapter 1: Introduction to Computer Networks and Internet Computer Networks Uses of Computer Networks...

Module 1. Introduction. Version 2, CSE IIT, Kharagpur

Code No: RR Set No. 1

Overview of Networks

QUESTION BANK UNIT-I

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

COMPONENTS OF DATA COMMUNICATION

SYLLABUS. osmania university CHAPTER - 3 : MEDIUM ACCESS CONTROL (MAC) SUBLAYER Standards, Bluetooth, Bridges and Routers.

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Physical Layer Part 3

QUESTION BANK EVEN SEMESTER

Raj Jain. The Ohio State University Columbus, OH

Objectives. Learn how computers are connected. Become familiar with different types of transmission media

Chapter 1: Introduction

BVRIT HYDERABAD College of Engineering for Women Department of Information Technology. Hand Out

CMSC 611: Advanced. Interconnection Networks

Special expressions, phrases, abbreviations and terms of Computer Networks

Contention Protocols and Networks

Outline: Connecting Many Computers

M242 COMPUTER NETWORS AND SECURITY

Lecture 05 Chapter 16 High Speed LANs

A Whirlwind Introduction to the Internet. A Whirlwind Introduction to the Internet Overview

Chapter 6. The Transport Layer. The Transport Service. Services Provided to the Upper Layers. Transport Service Primitives (3) 10/7/2010

INTRODUCTION DATA COMMUNICATION TELECOMMUNICATIONS SYSTEM COMPONENTS 1/28/2015. Satish Chandra satish0402.weebly.com

Lecture 4. Data Transmission Modes and Switching. Data Transmission & Switching 1-1

COS 140: Foundations of Computer Science

Physical Layer Part 3

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Chapter 2 Communicating Over the Network

EECS 228a Lecture 1 Overview: Networks. Jean Walrand

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061/1110. Lecture 8. Medium Access Control Methods & LAN

CS1302-COMPUTER NETWORKS UNIT I -DATA COMMUNICATION PART A

Introduction to LAN Topologies Cabling. 2000, Cisco Systems, Inc. 3-1

Time : 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups are directed. Group A.

University of Southern California EE450: Introduction to Computer Networks

Typical Network Uses

Data Link Layer, Part 5. Medium Access Control

infrared Disadvantage: 1. cannot use for long-range communication or outside a building due to sun s rays.

Computer Networks (Unit wise Questions)

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

Networks 15.2 Multiplexing Technologies Access Networks 15.5 Common Peripheral Interfaces

CS 4453 Computer Networks Winter

! High Data Rates (0.1 to 1000 Mbps)! Short Distances (0.1 to 25 km) ! Low Error Rate (10 to 10 ) Local Area Networks

Chapter 1: introduction

Chapter 1 Communication

Data and Computer Communications

Physical Layer Part 3

ELC 537 Communication Networks

SAE6A/SAZ6B DATA COMMUNICATION AND NETWORKING UNIT : I To V

EEC-484/584 Computer Networks

Communication Networks

Communication Networks - 3 general areas: data communications, networking, protocols

Computer Network. Chapter #1. Computer Network: A large number of separate but interconnected computers to share the resources. Goals.

Computer and Network Security

Part I: Introduction. 1: Introduction 1

Frequency: it refers to the number of periods in 1 s. It is formally expressed in Hertz (Hz)

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? Hardware view: What s the Internet?

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

Announcements. TAs office hours: Mohamed Grissa: Mohamed Alkalbani:

The Link Layer and LANs. Chapter 6: Link layer and LANs

Data Communication. Introduction of Communication. Data Communication. Elements of Data Communication (Communication Model)

Transmission Media. Criteria for selection of media. Criteria for selection of media 2/17/2016. Chapter 3: Transmission Media.

Chapter 12. Network Organization and Architecture

Internetworking is connecting two or more computer networks with some sort of routing device to exchange traffic back and forth, and guide traffic on

COS 140: Foundations of Computer Science

Lecture 6 Datalink Framing, Switching. From Signals to Packets

COMP 431 Internet Services & Protocols. A Whirlwind Introduction to the Internet ( Networking Nouns and Verbs ) Jasleen Kaur

Goals. Fundamentals of Network Media. More topics. Topics. Multiple access communication. Multiple access solutions

end systems, access networks, links circuit switching, packet switching, network structure

Data Communication. Introduction

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

Operating Systems CS 571

2. A collection of interconnected networks is called an internetwork. 3. Each machine is connected to a central hub with a point-to-point connection.

ECSE 414 Fall 2014 Final Exam Solutions

Area Covered is small Area covered is large. Data transfer rate is high Data transfer rate is low

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Summary of MAC protocols

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

TIME SCHEDULE. 2 Physical Layer 15. Course General Outcomes: Sl. G.O On completion of this course the student will be able :

IT4405 Computer Networks (Compulsory)

Communication Networks

Department of Information Technology. CS6551 Computer Networks. Anna University - Two Mark Questions

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

Data & Computer Communication

FINAL EXAM REVIEW PLEASE NOTE THE MATERIAL FROM LECTURE #16 at the end. Exam 1 Review Material

Internet Architecture and Protocol

CS 455/555 Intro to Networks and Communications. Link Layer

end systems, access networks, links 1.3 network core

COMMUNICATION. Exchange of ideas, messages, or information between two communicating parties. SIMPLEX HALF DUPLEX FULL DUPLEX

BROADBAND AND HIGH SPEED NETWORKS

Transcription:

PSD2A Computer Networks Unit : I-V 1

UNIT 1 Introduction Network Hardware Software Reference Models OSI and TCP/IP models Example networks: Internet, ATM, Ethernet and Wireless LANs Physical layer Theoretical basis for data communication - guided transmission media PSD2A Computer Networks 2

Definition A computer network is a set of computers connected together for the purpose of sharing resources. The most common resource shared today is connection to the Internet. PSD2A Computer Networks 3

Network Architecture TM Network architecture is the design of a communication network. It is a framework for the specification of a network's physical components and their functional organization and configuration, its operational principles and procedures, as well as data formats use.4 PSA2D PSD2A Computer Networks 4

Business Applications of Networks A network with two clients and one server. PSA2D Computer Networks 5

Types of Network TM PSA2D Computer Networks 6

Design Issues for the Layers Addressing Error Control Flow Control Multiplexing Routing PSD2A Computer Networks 7

Network Hardware Local Area Networks Metropolitan Area Networks Wide Area Networks Wireless Networks Home Networks Internetworks PSD2A Computer Networks 8

Network Software Protocol Hierarchies Design Issues for the Layers Connection-Oriented and Connectionless Services Service Primitives The Relationship of Services to Protocols PSD2A Computer Networks 9

Connection-Oriented and Connectionless Services PSD2A Computer Networks 10

The OSI Reference Model TM PSD2A Computer Networks All People Seem To Need Data Processing 11

Reference Models https://www.youtube.com/watch?v=ssbsn-7tvio PSD2A Computer Networks 12

The ARPANET https://www.youtube.com/watch?v=uxmixcyzu8o PSD2A Computer Networks 13

UNIT 2 Wireless transmission Communication Satellites Telephones structure Local loop, trunks and multiplexing, switching. Data link layer Design issues Error detection and correction. PSD2A Computer Networks 14

Transmission Media Transmission medium -The physical path between transmitter and receiver. Repeaters or amplifiers may be used to extend the length of the medium. Communication of electromagnetic waves is guided or unguided. Guided media :: waves are guided along a physical path (e.g, twisted pair, coaxial cable and optical fiber). Unguided media:: means for transmitting but not guiding electromagnetic waves (e.g., the atmosphere and outer space). PSD2A Computer Networks 15

Transmission Media Choices Twisted pair Coaxial cable Optical fiber Wireless communications PSD2A Computer Networks 16

Twisted Pair Cable Two insulated wires arranged in a spiral pattern. Copper or steel coated with copper. The signal is transmitted through one wire and a ground reference is transmitted in the other wire. Typically twisted pair is installed in building telephone wiring. Local loop connection to central telephone exchange is twisted pair. PSD2A Computer Networks 17

Coaxial Cable Discussion divided into two basic categories for coax used in LANs: 50-ohm cable [baseband] 75-ohm cable [broadband or single channel baseband] In general, coaxial cable has better noise immunity for higher frequencies than twisted pair. Coaxial cable provides much higher bandwidth than twisted pair. PSD2A Computer Networks 18

Optical Fiber Optical fiber : A thin flexible medium capable of conducting optical rays. Optical fiber consists of a very fine cylinder of glass (core) surrounded by concentric layers of glass (cladding). A signal-encoded beam of light (a fluctuating beam) is transmitted by total internal reflection. Attenuation in the fiber can be kept low by controlling the impurities in the glass. PSD2A Computer Networks 19

Major Components of the Telephone System Local loops Analog twisted pairs going to houses and businesses Trunks Digital fiber optics connecting the switching offices Switching offices Where calls are moved from one trunk to another PSD2A Computer Networks 20

PSTN PSD2A Computer Networks 21

Modem Modulator-demodulator. Modulates digital signal at the source and demodulates received signal at the destination. How to transmit faster? Nyquist says that capacity is achieved at 2*H*log 2 V. So there is no point sampling faster than 2*H. But, can try to send more bits per sample. PSD2A Computer Networks 22

Multiplexing PSD2A Computer Networks 23

Frequency Division Multiplexing TM FDM Useful bandwidth of medium exceeds required bandwidth of channel Each signal is modulated to a different carrier frequency Carrier frequencies separated so signals do not overlap (guard bands) e.g. broadcast radio Channel allocated even if no data. PSD2A Computer Networks 24

Wavelength Division Multiplexing TM Multiple beams of light at different frequency Carried by optical fiber A form of FDM Each color of light (wavelength) carries separate data channel 1997 Bell Labs 100 beams Each at 10 Gbps Giving 1 terabit per second (Tbps) Commercial systems of 160 channels of 10 Gbps now available Lab systems (Alcatel) 256 channels at 39.8 Gbps each 10.1 Tbps Over 100km PSD2A Computer Networks 25

Time Division Multiplexing TM Data rate of medium exceeds data rate of digital signal to be transmitted. Multiple digital signals interleaved in time May be at bit level of blocks Time slots preassigned to sources and fixed Time slots allocated even if no data Time slots do not have to be evenly distributed amongst sources. PSD2A Computer Networks 26

Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various communication channels. There are three typical switching techniques available for digital traffic. Circuit Switching Message Switching Packet Switching PSD2A Computer Networks 27

Circuit Switching TM Circuit switching is a technique that directly connects the sender and the receiver in an unbroken path. Telephone switching equipment, for example, establishes a path that connects the caller's telephone to the receiver's telephone by making a physical connection. With this type of switching technique, once a connection is established, a dedicated path exists between both ends until the connection is terminated. Routing decisions must be made when the circuit is first established, but there are no decisions made after that time. PSD2A Computer Networks 28

Message Switching TM With message switching there is no need to establish a dedicated path between two stations. When a station sends a message, the destination address is appended to the message. The message is then transmitted through the network, in its entirety, from node to node. Each node receives the entire message, stores it in its entirety on disk, and then transmits the message to the next node. This type of network is called a store-and-forward network. PSD2A Computer Networks 29

Packet Switching TM Packet switching can be seen as a solution that tries to combine the advantages of message and circuit switching and to minimize the disadvantages of both. There are two methods of packet switching: Datagram and virtual circuit. PSD2A Computer Networks 30

Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Regulating data flow Slow receivers not swamped by fast senders PSD2A Computer Networks 31

Framing A character stream. (a) Without errors. (b) With one error. PSD2A Computer Networks 32

Error Detection and Correction Error-Correcting Codes Error-Detecting Codes Key idea: redundant (additional) bits (use only 2 m out of 2 n code words) Key metrics: how many errors can be corrected/detected; what burst length https://www.youtube.com/watch?v=t2cmkg1ax08 PSD2A Computer Networks 33

Hamming Distance Some codes words are valid; others are invalid Hamming distance between two code words is number of bits that must be flipped to change from one to the other If Hamming distance is d then d single bit errors needed to change one word to the other Hamming distance of a code is the minimum Hamming distance between two valid code words PSD2A Computer Networks 34

CRC Schemes CRC Cyclic Redundancy Check or polynomial code Consider bits of a message to be coefficients of a polynomial M(x) 1011 1x 3 + 0x 2 + 1x 1 + 1x 0 Of course real messages will be much longer and hence of higher degree Agree on a small-degree generator polynomial G(x) of degree r Divide x r M(x) by G(x) using modulo 2 division (no carries or borrows) getting the remainder polynomial R(x) Transmit T(x) = x r M(x) - R(x); note that this has remainder 0 when divided by G(x) Receiver rejects frame if the remainder it computers is not 0 PSD2A Computer Networks 35

Error-Detecting Codes TM Calculation of the polynomial code checksum. PSD2A Computer Networks 36

UNIT-3 Elementary data link protocols Sliding window protocols Data Link Layer in the Internet Medium Access Layer Channel Allocation Problem Multiple Access Protocols. PSD2A Computer Networks 37

Elementary Data Link Protocols An Unrestricted Simplex Protocol A Simplex Stop-and-Wait Protocol Simplex Protocol for a Noisy Channel Sliding Window Protocols A One-Bit Sliding Window Protocol A Protocol Using Go Back N A Protocol Using Selective Repeat PSD2A Computer Networks 38 Slide number / Total slides

Sliding Window Protocols A sliding window of size 1, with a 3-bit sequence number. (a) Initially. (b) After the first frame has been sent. (c) After the first frame has been received. (d) After the first acknowledgement has been received. PSD2A Computer Networks 39

The Data Link Layer in the Internet A home personal computer acting as an internet host. PSD2A Computer Networks 40

Channel Allocation Problem Static channel allocation Assumptions for dynamic Assumptions for Dynamic Channel Allocation 1. Independent traffic 2. Single channel 3. Observable Collisions 4. Continuous or slotted time 5. Carrier sense or no carrier sense PSD2A Computer Networks 41

Multiple Access Protocols TM ALOHA Carrier Sense Multiple Access Collision-free protocols Limited-contention protocols Wireless LAN protocols PSD2A Computer Networks 42

Multiple Access Protocols Random Access Protocols Aloha Slotted Aloha Carrier sense multiple access (CSMA): Ethernet Group random access Controlled Access Protocols Predetermined allocation (TDMA) Reservation protocols Token passing protocols PSD2A Computer Networks 43

Aloha If you have a packet, just send it. If multiple people try it and so there is collision, then try resending it later! Theoretical analysis (based on Poisson distribution) shows a throughput of only 18%. Slotted Aloha Synchronous, that is time is divided into slots Slot size is equal to the transmission time of a packet When you are ready, transmit at the start of the time slot. Doubles the efficiency of Aloha (38% throughput) But requires synchronization! PSD2A Computer Networks 44

Carrier Sense Multiple Access CSMA Listen to channel. If busy then wait for a random time and then listen again. If not busy then transmit Collision may still happen p-persistent CSMA Quite like CSMA. But, when the channel is idle then you transmit with probability p. Otherwise, even when it is idle, you wait for a random time before you listen to the channel. PSD2A Computer Networks 45

CSMA/CD CSMA with collision detection(cd): Listen while you are sending packets Stop sending when collision happens Wait random time before you attempt to resend. IEEE 802.3 standard Used in coaxial cable. You do exponetial backoff. PSD2A Computer Networks 46

UNIT-4 Network layer Design issues Routing algorithms Congestion control algorithms IP protocol IP Address Internet Control Protocol. PSD2A Computer Networks 47

Network Layer Design Issues TM Store-and-forward packet switching Services provided to transport layer Implementation of connectionless service Implementation of connection-oriented service Comparison of virtual-circuit and datagram networks PSD2A Computer Networks 48

Store-and-Forward Packet Switching ISP s equipment The environment of the network layer protocols. PSD2A Computer Networks 49

Services Provided to the Transport Layer 1. Services independent of router technology. 2. Transport layer shielded from number, type, topology of routers. 3. Network addresses available to transport layer use uniform numbering plan - even across LANs and WANs PSD2A Computer Networks 50

Implementation of Connectionless Service A s table (initially) A s table (later) C s Table E s Table Routing within a datagram network PSD2A Computer Networks 51

Implementation of TM Connection-Oriented Service ISP s equipment A s table C s Table E s Table Routing within a virtual-circuit network PSD2A Computer Networks 52

Routing Algorithms Optimality principle Shortest path algorithm Flooding Distance vector routing Link state routing Routing in ad hoc networks https://www.youtube.com/watch?v=a4h6pkso944 PSD2A Computer Networks 53

The Optimality Principle (a) A network. (b) A sink tree for router B. PSD2A Computer Networks 54

Shortest Path Algorithm TM The first five steps used in computing the shortest path from A to D. The arrows indicate the working node 55 PSD2A Computer Networks

Distance Vector Routing (a) A network. (b) Input from A, I, H, K, and the new routing table for J. PSD2A Computer Networks 56

Link State Routing 1. Discover neighbors, learn network addresses. 2. Set distance/cost metric to each neighbor. 3. Construct packet telling all learned. 4. Send packet to, receive packets from other routers. 5. Compute shortest path to every other router. PSD2A Computer Networks 57

Broadcast Routing TM Reverse path forwarding. (a) A network. (b) A sink tree. (c) The tree built by reverse path forwarding. PSD2A Computer Networks 58

Multicast Routing (a) A network. (b) A spanning tree for the leftmost router. (c) A multicast tree for group 1. (d) A multicast tree for group 2. PSD2A Computer Networks 59

Congestion Control Algorithms Approaches to congestion control Traffic-aware routing Admission control Traffic throttling Load shedding PSD2A Computer Networks 60

Congestion Control Algorithms When too much traffic is offered, congestion sets in and performance degrades sharply. PSD2A Computer Networks 61

The Network Layer in the Internet The Internet is an interconnected collection of many networks. PSD2A Computer Networks 62

Unit 5 Transport layer design issues Connection management Addressing, Establishing & Releasing a connection Simple Transport Protocol Internet Transport Protocol (TCP) Network Security: Cryptography. PSD2A Computer Networks 63

The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of Socket Programming: An Internet File Server PSD2A Computer Networks 64

Elements of Transport Protocols Addressing Connection Establishment Connection Release Flow Control and Buffering Multiplexing Crash Recovery PSD2A Computer Networks 65

Transport Protocol TM (a) Environment of the data link layer. (b) Environment of the transport layer. PSD2A Computer Networks 66

Connection Release The two-army problem. PSD2A Computer Networks 67

Multiplexing (a) Upward multiplexing. (b) Downward multiplexing. PSD2A Computer Networks 68

A Simple Transport Protocol The Example Service Primitives The Example Transport Entity The Example as a Finite State Machine PSD2A Computer Networks 69

The Internet Transport Protocols: UDP Introduction to UDP Remote Procedure Call The Real-Time Transport Protocol PSD2A Computer Networks 70

The TCP Service Model Port Protocol Use 21 FTP File transfer 23 Telnet Remote login 25 SMTP E-mail 69 TFTP Trivial File Transfer Protocol 79 Finger Lookup info about a user 80 HTTP World Wide Web 110 POP-3 Remote e-mail access 119 NNTP USENET news Some assigned ports. PSD2A Computer Networks 71

Cryptography Introduction to Cryptography Substitution Ciphers Transposition Ciphers One-Time Pads Two Fundamental Cryptographic Principles https://www.youtube.com/watch?v=vjelzryc49c PSD2A Computer Networks 72

Transposition Ciphers A transposition cipher. PSD2A Computer Networks 73

Communication Security TM IPsec Firewalls Virtual Private Networks Wireless Security E-Mail Security PGP Pretty Good Privacy PEM Privacy Enhanced Mail S/MIME PSD2A Computer Networks 74