COMPUTER NETWORK. (For B.Tech., M.Tech., BCA, MCA, B.Sc. (Comp. Science) and IT Professionals) Sr. Lecturer, Deptt. of Computer Engineering

Similar documents
FUNDAMENTALS OF COMPUTER PROGRAMMING AND IT

COMPUTER NETWORKS. Prof. (Dr.) K.P. YADAV Director (Academic & Research) CSE Dept. IIMT College of Engineering, G.Noida, Uttar Pradesh, INDIA.

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Oracle and MySQL. A Practical Approach

OPERATIONS RESEARCH. Dr. Mohd Vaseem Ismail. Assistant Professor. Faculty of Pharmacy Jamia Hamdard New Delhi

Computer Networks. Andrew S. Tanenbaum

PLCS & SCADA THEORY AND PRACTICE

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

100 SHELL PROGRAMS IN UNIX

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

Academic Course Description

and Networks Data Communications Second Edition Tata McGraw Hill Education Private Limited Managing Director SoftExcel Services Limited, Mumbai

SECRETS OF JAVA. A Self Learning Approach for Students, Academic and Industrial Professionals

NEW REAL-TIME OPERATING SYSTEMS FOR EMBEDDED SYSTEMS

Fundamentals of. Mobile Computing. Second Edition. Prasant Kumar Pattnaik Rajib Mall

Navpreet Singh INTRODUCTION TO COMPUTER NETWORKS. Computer Centre Indian Institute of Technology Kanpur Kanpur INDIA

Computer Communications and Network Basics p. 1 Overview of Computer Communications and Networking p. 2 What Does Computer Communications and

Computer Networks IT321

Faculty Profile. Educational Qualification

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

SYLLABUS. Departmental Syllabus

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

Brief Profile of Founder

Netwoking Essentials

Komal Patiyal 1, Sanjay 2 1,2 Computer Science & Engineering, Himachal Pradesh Technical University,Hamirpur. IJRASET: All Rights are Reserved

CODE COURSE NAME DESCRIPTION SEM CS401 Communication Engineering & Coding Theory Knowledge of communication engineering & coding theory IV

Local Area Network(LAN)

B. P. PODDAR INSTITUTE OF MANAGEMENT & TECHNOLOGY DEPT OF ELEDTRONICS & COMMUNICATION ENGINEERING ACADEMIC YEAR: ODD SEMESTER

Academic Course Description

Performance Evaluation of National Knowledge Network Connectivity

Straight to the Point. Microsoft Access 2010

Dates/ Month Calendar of the Major Events Dates Calendar of Teacher s Training Program

Electrical and Computer Engineering Technology

Data Link Layer, Part 5. Medium Access Control

MUZAFFARPUR INSTITUTE OF TECHNOLOGY COURSE FILE OF COMPUTER NETWORKS ( )

E1-E2 (EB) Chapter 7 NIB II

ALLOTMENT OF TOPICS FOR TERM PAPER WRITING

Communication Networks & Cyber Security Workshop and Sixteenth GISFI Standardisation Series Meeting (GSSM),

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Shri V. Murugesan, Dy. DGFT Tele : , Fax :

Chapter 3. Underlying Technology. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

CS1302-COMPUTER NETWORKS UNIT I -DATA COMMUNICATION PART A

Introduction to LAN Protocols

Ethernet. Network Fundamentals Chapter Cisco Systems, Inc. All rights reserved. Cisco Public 1

Data Link Layer, Part 3 Medium Access Control. Preface

LESSON PLAN LP-CS 1302

MIT International Journal of Electrical and Instrumentation Engineering Vol. 3, No. 1, Jan. 2013, pp

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

IGNOU REGIONAL CENTRE-ALIGARH APPROVAL STATUS OF BCA/MCA SYNOPSIS

Washtenaw Community College Comprehensive Report. CST 225 PC Networking Effective Term: Spring/Summer 2014

COMPUTER NETWORKS - Local area networks

Local area networks. Copyright

A ROLE MANAGEMENT MODEL FOR USER AUTHORIZATION QUERIES IN ROLE BASED ACCESS CONTROL SYSTEMS A THESIS CH.SASI DHAR RAO

ACKNOWLEDGEMENT. my PhD Supervisor Dr. Vidhyacharan Bhaskar, Professor, Department of

SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

Data Communications SYLLABUS. Transmission Impairments, Transmission Media. Data-Digital Signals, Analog Data-analog Signals.

Relative Performance Analysis of Reactive (on-demand-driven) Routing Protocols

Broadband over Power Line

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

CHEME OF EXAMINATION FOR B.Sc. (COMPUTER SCIENCE) SEMESTER SYSTEM (Regular Course) w.e.f Scheme for B.Sc.-III.

Packet structures in networking

QUESTION BANK EVEN SEMESTER

Design and Implementation of Client Server Network Management System for Ethernet LAN

Introduction. Communication

Performance Evaluation of Duplex Mode Parameter in A Wired Local Area Network

Layer 2 functionality bridging and switching

Information Systems Infrastructure. Learning Objectives. Telecommunications Deregulation

A Modeling and Detection of Deadlock in Early Stage of System using UML

COURSE CONTENT. Course Content Illustration below:

Performance Analysis of 2. 5 Gbps downlink GPON

Sub Code & Name : EC2352 COMPUTER NETWORKS Unit: I Branch: EC Semester :VI. Unit syllabus: PHYSICAL LAYER 9

INFORMATION SECURITY

Comparison Of Network Topologies For Optical Fiber Communication

AMITY UNIVERSITY UTTAR PRADESH

MORGANSTATEUNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING. EEGR510 Communications Networks Credits: 3 COURSE SYLLABUS

FORMULATION AND BENEFIT ANALYSIS OF OPTIMIZATION MODELS FOR NETWORK RECOVERY DESIGN

KCG College of Technology, Chennai

University of San Francisco Course Syllabus and Outline

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

On successful completion of this course students should:

THE ORACLE 11G PERFORMANCE TUNING

The Performance Evaluation of AODV & DSR (On-Demand. emand- Driven) Routing Protocols using QualNet 5.0 Simulator

CompTIA Network+ Course

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN. Tech park ( 7 th floor)

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

Data Communications. From Basics to Broadband. Third Edition. William J. Beyda

INTRODUCTION TO ICT.

Understanding TeleCom Networks Today II The World of Data

QUESTION BANK UNIT-I

Bridging and Switching Basics

CS1302 / Computer Networks

ADAPTIVE VIDEO STREAMING FOR BANDWIDTH VARIATION WITH OPTIMUM QUALITY

Analysis of Algorithms

Polytechnic University of Puerto Rico Department of Electrical & Computer Engineering and Computer Science (ECECS) Master in Electrical Engineering

1: Review Of Semester Provide an overview of encapsulation.

MORGANSTATEUNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING. EEGR410 Introduction to Networks. Credits: 3 COURSE SYLLABUS

MANCHESTER REGIONAL HIGH SCHOOL. Cisco Networking Academy 1

Institute Subscribing ISST Journals Name of Institute Subscribed Journals

CS4516 Advanced Computer Networks. Final Review

MUZAFFARPUR INSTITUTE OF TECHNOLOGY

Transcription:

COMPUTER NETWORK

COMPUTER NETWORK (For B.Tech., M.Tech., BCA, MCA, B.Sc. (Comp. Science) and IT Professionals) By Bharat Bhushan Agarwal B.E. ( CS & IT) (Honours), M.Tech. Sr. Lecturer, Deptt. of Computer Engineering College of Engineering Technology (I.F.T.M.) Moradabad, Uttar Pradesh Sumit Prakash Tayal B.Tech. (Electronics) Solutions Developer Engineering and Design Group Tata Technologies Ltd., Pune, Maharashtra UNIVERSITY SCIENCE PRESS (An Imprint of Laxmi Publications Pvt. Ltd.) BANGALORE CHENNAI COCHIN GUWAHATI HYDERABAD JALANDHAR KOLKATA LUCKNOW MUMBAI RANCHI NEW DELHI

Published by : UNIVERSITY SCIENCE PRESS (An Imprint of Laxmi Publications Pvt. Ltd.) 113, Golden House, Daryaganj, New Delhi-110002 Phone : 011-43 53 25 00 Fax : 011-43 53 25 28 www.laxmipublications.com info@laxmipublications.com Copyright 2009 by Laxmi Publications Pvt. Ltd. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without the prior written permission of the publisher. Price : Rs. 140.00 Only. First Edition : 2009 OFFICES Bangalore 080-26 61 15 61 Chennai 044-24 34 47 26 Cochin 0484-237 70 04, 405 13 03 Guwahati 0361-254 36 69, 251 38 81 Hyderabad 040-24 65 23 33 Jalandhar 0181-222 12 72 Kolkata 033-22 27 43 84 Lucknow 0522-220 95 78 Mumbai 022-24 91 54 15, 24 92 78 69 Ranchi 0651-221 47 64 UCN-9250-140-COMPUTER NETWORK Typeset at : Kalyani Computer Services, New Delhi. C 15885/08/05 Printed at : Sanjeev Offset Press, Delhi.

Dedicated to Our Parents

CONTENTS 1. Network Concepts... 1 44 1.1 Introduction... 1 1.2 Goals of Computer Network... 4 1.3 Applications of Computer Network... 6 1.4 Distributed Processing... 7 1.5 Topologies... 9 1.6 Categories of Network... 19 1.7 Line Configuration... 25 1.8 Broadcast Networks... 27 1.9 Introduction to SMDS... 27 1.10 X.25 Networks... 29 1.11 ISDN... 31 1.12 Frame Relay... 36 1.13 Comparison between X.25 and Frame Relay... 37 1.14 ATM... 38 Summary... 41 Exercise... 43 2. Network Architecture... 45 60 2.1 Concept of Protocol Services... 45 2.2 OSI Model... 52 2.3 TCP/IP Reference Model... 56 2.4 Difference between OSI and TCP/IP Model... 58 Summary... 59 Exercise... 60 (vii)

(viii) 3. Data Communication Concept... 61 93 3.1 Components of Data Communication... 61 3.2 System Transmission Modes... 63 3.3 Transmission Media... 65 3.4 Introduction to Switching... 81 3.5 Multiplexing... 84 3.6 Concept of Modems (Modulator/Demodulator)... 86 Summary... 90 Exercise... 92 4. Framing and Error Control... 94 114 4.1 Framing Techniques... 94 4.2 Error Control... 96 4.3 Error Detection and Correction... 97 4.4 Error Detection Methods... 99 4.5 Error Correction... 108 Summary... 112 Exercise... 113 5. Data Link Control... 115 128 5.1 Elementary Data Link Protocol... 115 5.2 Automatic Repeat Request (ARQ)... 118 5.3 Categories of Error Control... 119 5.4 Flow Control (TCP Window Management)... 124 Summary... 126 Exercise... 127 6. Medium Access Control and LAN... 129 142 6.1 Medium Access Control (MAC) Sub-layer... 129 6.2 ALOHA... 130 6.3 Carrier Sense Multiple Access... 135 6.4 Carrier Sense Multiple Access with Collision Detection... 138 Summary... 141 Exercise... 142

(ix) 7. Collision Free Protocols... 143 174 7.1 Collision Free Protocol... 143 7.2 Limited Contention Protocols... 144 7.3 WDMA (Wavelength Division Multiple Access)... 145 7.4 MACA... 147 7.5 GSM (Global System for Mobile)... 148 7.6 CDPD (Cellular Digital Packet Data)... 150 7.7 CDMA (Code Division Multiple Access)... 151 7.8 IEEE LAN Standards... 154 7.9 Ethernet and IEEE 802.3 LAN Standards... 155 7.10 Fast Ethernet... 158 7.11 Gigabit Ethernet... 160 7.12 10 Gigabit Ethernet... 161 7.13 IEEE 802.4 (Token Bus)... 162 7.14 IEEE 802.5 (Token Ring)... 164 7.15 FDDI... 166 7.16 DQDB... 170 Summary... 171 Exercise... 173 8. Routing... 175 194 8.1 Introduction... 175 8.2 Flooding... 177 8.3 Distance/Optimal Vector Routing... 179 8.4 Link State Routing... 180 8.5 Hierarchical Routing... 183 8.6 Routing for Mobile Hosts... 185 8.7 Broadcast Routing... 186 8.8 Multicast Routing... 188 8.9 Flow Based Routing... 189 8.10 Shortest Path Routing... 191 Summary... 193 Exercise... 193 9. Congestion Control... 195 208 9.1 Congestion Control... 195 9.2 Principle of Congestion Control... 197

(x) 9.3 Examples of Congestion Control... 198 9.4 Traffic Shaping... 202 9.5 Choke Packets... 205 9.6 Load Shedding... 206 Summary... 206 Exercise... 207 10. TCP/IP... 209 222 10.1 History of TCP/IP... 209 10.2 Introduction to TCP/IP... 210 10.3 The Five-layer TCP/IP Model... 211 10.4 Characteristics of TCP/IP... 216 10.5 Internet Protocol (IP)... 217 Summary... 221 Exercise... 222 11. Application Layer... 223 246 11.1 Network Security... 223 11.2 Authentication... 228 11.3 Simple Network Management Protocol (SNMP)... 231 11.4 Cryptography... 235 Summary... 244 Exercise... 246

PREFACE Today, students waiting to understand the concepts & mechanisms underlying telecommunications & networking coming from a variety of academic & professional backgrounds. This book attempts to provide a unified overview of the broad field of data and computer communications. The organizations of the book reflects an attempt to break this massive subject into comprehensible parts and to build, piece by piece, a survey of the state of the art. The book emphasizes the basic principles and topics of the fundamental importance concerning the technology and architecture of this field, and provides a detailed discussion of leading edge topics. The book is primarily intended to serve as a textbook in accordance with the syllabus of computer networks offered by various universities in India. The text is designed to make it particularly easy for students of B.Tech., M.Tech., MCA, BCA, to understand data communications and networking. The book highlights the basic principles, and contrasts their application in the specific areas of technology. It contains a number of examples, various diagrams and exercises, which enhance its suitability for classroom instructions. We hope that the book will fulfill the need of readers and would welcome any suggestions regarding the improvement of the book. Authors (xi)

ACKNOWLEDGEMENT First and foremost, we must extend our deepest gratitude to the Almighty God for showering love and grace on us to make us write this book. We feel privileged and fortunate enough to retain the affection of the following distinguished personalities, Shri Rajeev Saran Kothiwal, Chairman, IFTM Moradabad, Dr. R. M. Dubey, the Managing Director IFTM Moradabad & Mr. Prakash M. Telang, Executive Director (Commercial Vehicles), Tata Motors Limited, Pune who have been the driving force behind this effort. We are extremely indebted to Prof. Anupam Srivastava, Director, C.E.T, IFTM, Moradabad for inspiring and motivating us, without whose valuable suggestions it would have been difficult to complete the book. We express our special gratitude, very heartly, to Prof. B.N. Kaul Dean Administration CET, IFTM Moradabad, time-to-time suggestions & guidance. Special thanks are also to Mr. G.S. Singh, Practice Head, Tata Technologies Ltd. Pune, Mr. Ramraj Pandey, Consultant, Chrysler, U.S.A., Mr. Rahul Shandilya, Project Manager, Mr. P.W. Dandekar, Tata Technologies Ltd. Pune, and Mr. R. Pandian, Project Manager who have guided, encouraged and advised us during the process of writing the book. We would also like to thank to Prof. S.K. Srivastava, Advisor, CET., I.F.T.M, Moradabad & Mr. M.I.H Ansari (Head, Dept. of Computer Applications, I.F.T.M. Moradabad) for their moral support & encouragement for the completion of this book. We wish to put on record our sincere thanks, honor, and gratitude to our close family members Shri K.B. Agarwal, Shri Akhilesh Kothiwal and Shri Sandeep Agarwal (brother), consecutive four times elected as MLA of Moradabad (U.P.) for their soft words, continuous encouragement & necessary help whenever required. We would also like to offer their warm thanks to Prof. (Dr.) A.K. Nayak, Director, School of Computer Sciences Indian Institute of Business Management Patna, Dr. A.K. Raghav, Director of Alfalah School of Engg. & Tech. Dauj (Faridabad) for their valuable contributions. Sincere thanks are also due to Prof. Dinesh Chandra & Shri Suneet Shukla, HOD. Department of Computer Science, CET, IFTM Moradabad & Dr. Vivek Kumar, HOD. Department of Info. Tech., Galgotia, Gr. Noida, Dr. Parmanand Astya, HOD. Department of Computer Science, Galgotia, Gr. Noida, Mr. S. S. Bedi, Head of Deptt. CS & IT Engg. & Tech., Rohilkhand, Bareilly, Dr. O.P. Singhal, Head CS Dept. IDEAL, Ghaziabad, Mr. L.S. Maurya, HOD. Department of Information Technology, SRMS, Bareilly & Dr. R.K. Gupta (Tauji) Principle of MBBS, TMIMT, Moradabad, Mr. Vikas Mittal, Head of Deptt. CS & IT, M.I.T., Moradabad, Mr. Yogesh Sharma, Head of CS-Deptt., S.D. College of Engg. & Tech., for their encouragement & critical suggestions. (xiii)

(xiv) Along with our colleagues (Dr. B.K. Singh (Chief Proctor), Dr. Nikhil Rastogi, Mr. lntezar Mahdi, Dr. Vikas Gupta, Mr. Rahul Mishra CET, IFTM MBD) who have helped & motivated us for writing this book. We would like to acknowledge our special thanks to our well-wishers (Dr. Manish Saxena, Dr. Animesh Agarwal, and Shri Kshitij Shinghal, MIT, MBD) for valuable suggestions. We would like to thank Mr. Akhtar Hussain, (MJP, Rohilkhand, Bareilly) & Manoj Kr. Chubey (GLA, MATHURA) for their cooperation in this project. Also, we would like to express our heartiest thanks to Ms. Shivangi Dhall & Mr. Dhiraj Dhall for their deep involvement in this project. So, special acknowledgement to the postgraduate colleagues Raj Kumar Goel, Vikram Bali, Prateek Srivastava, Anita Sahoo, Kanchan Singh, Pavitra Rani Gautam, Sarika Khandelwal, Rashmi Singh, Hitendra Agarwal, Vikas Lamba, Anupama Sharma, Dharmendra Kumar Tripathi, Kulwant Singh Patel, Lavkush Sharma, Mahendra Prasad Sharma, Varsha, Pritee Gupta, Narendra Kumar, Niraj Kumar Singh, Nitin Goyal, Prachi Vats, Promod Kumar Yadav, Narvada Chaudhary, Rinki, Sachin Ahuja, Sanjay Kumar Nayak, Uma Shankar Sharma, Ankit Vishnoi, Mohit Agarwal. We are indebted to all the seniors, colleagues and juniors of Tata Technologies Ltd. and CS & IT Dept. of CET, IFTM Moradabad during the whole process of writing the book. We through our indebtedness to our parents, Shri Ravi Prakash Agarwal and Smt. Bindu Agarwal for their perpetual love and concern, which cannot be summed up in words. Sincere thanks are also due to our sister Smt. Anupam Agarwal & brother-in-law Shri Shakshi Goel for their words of cheer & encouragement & special thanks to little Shubhangi & Gauri for bearing with us at odd hours. Finally, we thank every one, who contributed significantly in accomplishing this job. Authors

Chapter1 NETWORK CONCEPTS 1.1 INTRODUCTION 1.1.1 Computer Networks A computer network refers to the collection of several computing machines, peripheral devices and storage unit. The computer systems may communicate over a computer network and share their resources. These networks enable the computer to communicate with a remote computer which may be located at a distance of a few meters to several thousands kilometers. The users of a computer system on the network are able to share the software resources such as programs, database and program utilities. The computer network has become a basic necessity and has triggered the development of several applications. The conventional concept of installing a high performance and large computer system has now been replaced with computer networks where several low cost and low performance computer systems collectively exhibit high performance at lower cost. The computer network connects several peripheral devices, databases and computer systems as shown in Fig. 1.1. CPU/Memory CPU/Memory Disk Computer Network Disk CPU/Memory Terminal Services Printer Fig. 1.1 Computer Network 1