www.dbebooks.com - Free Books & magazines
Expand your exam prep with this Deluxe guide
Full coverage of all exam objectives in a systematic approach, so you can be confident you’re getting the instruction you need for the exam
Bonus Content with Network+ Virtual Lab
STUDY GUIDE Deluxe Edition
SYBEX TEST ENGINE: Test your knowledge with advanced testing software. Includes all chapter review questions and bonus exams.
Real-world scenarios that put what you’ve learned in the context of actual job roles Over 300 electronic flashcards to help you practice, practice, practice Challenging review questions in each chapter to prepare you for exam day Exam Essentials, a key feature in each chapter that identifies critical areas you must become proficient in before taking the exam
ELECTRONIC FLASHCARDS: Reinforce your understanding with flashcards that can run on your PC.
A handy tear card that maps every official exam objective to the corresponding chapter in the book, so you can track your exam prep objective by objective
Look inside for complete coverage of all exam objectives.
NETWORK+ VIRTUAL LAB: Get hands-on practice in a virtual network.
www.sybex.com Todd Lammle, CCNA, Network+, is the authority on networking. He has been involved in computers and networking with Fortune 500 companies for over 25 years. Todd is President of GlobalNet Training, Inc., a networking integration and training firm based in Dallas. He is also the bestselling author of numerous Cisco books, including the popular CCNA: Cisco Certified Network Associate Study Guide, with over 200,000 copies in print. You can reach him through his website at www.lammle.com. Go to www.SybexTestSuccess.com for more information about our online test prep product, powered by ExamWeb.
Also on CD, you’ll find the entire book in searchable and printable PDF. Study anywhere, any time, and approach the exam with confidence. C AT E G O RY COMPUTERS/Certification Guides ISBN 978-0-470-42748-4
®
ABOUT THE AUTHOR
Network+
Network+ Virtual Lab to give you hands-on practice and reinforce critical skills
Includes Real-World Scenarios, Written Labs, and Leading-Edge Exam Prep Software Featuring:
CompTIA
Prepare for CompTIA’s new Network+ exam with this Deluxe version of Sybex’s popular CompTIA Network+ Study Guide. In addition to comprehensive coverage of exam essentials by top networking authority and bestselling author Todd Lammle, this Deluxe version includes six practice exams and bonus content featuring the Network+ Virtual Lab. Start your preparation today with:
Deluxe Edition
FEATURED ON THE CD-ROM
Lammle
• Custom Test Engine with Six Practice Exams • Exclusive Network+ Virtual Lab Network Simulator • Hundreds of Sample Questions • Electronic Flashcards • Entire Book in PDF
CompTIA
Network+ ®
Deluxe STUDY GUIDE
Exclusive cutting-edge Network+ Virtual Lab software
Exam N10-004
Exam N10-004
$89.99 US $107.99 CN
SERIOUS SKILLS.
Todd Lammle
27484ffirs.indd 2
3/9/09 8:53:57 AM
CompTIA
Network+
®
Deluxe Study Guide
27484ffirs.indd 1
3/9/09 8:53:57 AM
27484ffirs.indd 2
3/9/09 8:53:57 AM
CompTIA
Network+ Deluxe ®
Deluxe Study Guide
Todd Lammle
27484ffirs.indd 3
3/9/09 8:53:58 AM
Acquisitions Editor: Jeff Kellum Development Editor: Susan Herman Technical Editors: Steven Johnson and Derek Lewis Production Editor: Christine O’Connor Copy Editor: Tiffany Taylor Production Manager: Tim Tate Vice President and Executive Group Publisher: Richard Swadley Vice President and Publisher: Neil Edde Project Manager 1: Laura Moss-Hollister Associate Producer: Shawn Patrick Media Quality Assurance: Angie Denny Book Designer: Judy Fung, Bill Gibson Compositor: Craig Woods, Happenstance Type-O-Rama Proofreader: Publication Services, Inc. Indexer: Jack Lewis Project Coordinator, Cover: Lynsey Stanford Cover Designer: Ryan Sneed Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-42748-4 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, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (877) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Cataloging-in-Publication Data. Lammle, Todd. CompTIA Network+ study guide (Exam N10-004) / Todd Lammle. — 1st ed. p. cm. ISBN 978-0-470-42747-7 (paper/cd-rom) -- ISBN 978-0-470-42748-4 (cloth/cd-rom) 1. Computer networks— Examinations—Study guides. 2. Electronic data processing personnel--Certification. I. Title. TK5105.5.L3555 2009 004.6076—dc22 2009001904 TRADEMARKS: Wiley, the Wiley logo, and the Sybex logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Network+ is a registered trademark of The Computing Technology Industry Association, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in th is book.
10 9 8 7 6 5 4 3 2 1
27484ffirs.indd 4
3/9/09 8:53:58 AM
Sybex is an independent entity from CompTIA and is not affiliated with CompTIA in any manner. Neither CompTIA nor Sybex warrants that use of this publication will ensure passing the relevant exam. Network+ is either a registered trademark or trademark of CompTIA in the United States and/or other countries. The logo of the CompTIA Authorized Quality Curriculum (CAQC) program and the status of this or other training material as “Authorized” under the CompTIA Authorized Quality Curriculum program signifies that, in CompTIA’s opinion, such training material covers the content of the CompTIA’s related certification exam. CompTIA has not reviewed or approved the accuracy of the contents of this training material and specifically disclaims any warranties of merchantability or fitness for a particular purpose. CompTIA makes no guarantee concerning the success of persons using any such “Authorized” or other training material in order to prepare for any CompTIA certification exam. The contents of this training material were created for the CompTIA Network+ exam covering CompTIA certification objectives that were current as of 2008. How to Become CompTIA Certified: This training material can help you prepare for and pass a related CompTIA certification exam or exams. In order to achieve CompTIA certification, you must register for and pass a CompTIA certification exam or exams. In order to become CompTIA certified, you must: Select a certification exam provider.
1.
2. Register for and schedule a time to take the CompTIA certification exam(s) at a convenient location.
3. Read and sign the Candidate Agreement, which will be presented at the time of the exam(s).
4.
Take and pass the CompTIA certification exam(s).
For more information about CompTIA’s certification process, and to learn more about their industry acceptance, benefits, or program news, please visit http://www.comptia.org/certification. CompTIA is a non-profit information technology (IT) trade association. CompTIA’s certifications are designed by subject matter experts from across the IT industry. Each CompTIA certification is vendor-neutral, covers multiple technologies, and requires demonstration of skills and knowledge widely sought after by the IT industry. To contact CompTIA with any questions or comments please email them at:
[email protected] Sybex is an independent entity from CompTIA and is not affiliated with CompTIA in any manner. Neither CompTIA nor Sybex warrants that use of this publication will ensure passing the relevant exam. Network+ is either a registered trademark or trademark of CompTIA in the United States and/or other countries.
27484ffirs.indd 5
3/9/09 8:53:58 AM
27484ffirs.indd 6
3/9/09 8:53:58 AM
Dear Reader, Thank you for choosing CompTIA Network+ Deluxe Study Guide. This book is part of a family of premium-quality Sybex books, all of which are written by outstanding authors who combine practical experience with a gift for teaching. Sybex was founded in 1976. More than thirty years later, we’re still committed to producing consistently exceptional books. With each of our titles we’re working hard to set a new standard for the industry. From the paper we print on, to the authors we work with, our goal is to bring you the best books available. I hope you see all that reflected in these pages. I’d be very interested to hear your comments and get your feedback on how we’re doing. Feel free to let me know what you think about this or any other Sybex book by sending me an email at
[email protected], or if you think you’ve found a technical error in this book, please visit http://sybex.custhelp.com. Customer feedback is critical to our efforts at Sybex.
Best regards,
27484ffirs.indd 7
Neil Edde Vice President and Publisher Sybex, an Imprint of Wiley
3/9/09 8:53:58 AM
Acknowledgments Monica Lammle’s writing style, editing ability, encouragement, and dedication to ensuring that my books are concise yet highly readable has been invaluable to the success of this and many other projects. Susan Herman was the development editor of this, the newest book in the Sybex CompTIA series. Thank you, Susan, for having the patience of Job, and for working so hard on this book with me. I’m so happy (and relieved) that you took on the job and, most of all, that you didn’t run screaming from the room the next day! Jeff Kellum is instrumental to my success in the Cisco world and is my acquisitions editor for this new CompTIA Network+ book. Jeff, thanks for your guidance and continued patience for all our books we’ve published together! In addition, Christine O’Connor was an excellent production editor and she worked really hard to get the book done as quickly as possible, without missing the small mistakes that are so easy to over look. I am always very pleased when I hear that she will be working with me on a new project. Tiffany Taylor was latest copy editor, and she was patient, helpful, and detailed, but yet worked extremely hard to get this book out the shelf as fast as possible, and for that I thank her tremendously. Steven Johnson literally hashed and rehashed each topic in this guide with me at all hours of the day and night, scrutinizing the material until we both agreed it was verifiably solid. Thank you, Steve! I also want to mention Patrick Conlan, who tech-edited my CCNA book and is writing the Sybex Cisco Network Professional’s Advanced Internetworking Guide. Pat was very helpful in throwing ideas at me for this book, and was the photographer for all the pictures I put in this book.
27484ffirs.indd 8
3/9/09 8:53:59 AM
About the Author Todd Lammle, CompTIA Network+, CCSI, CCNA/CCNP, CCSP/CCVP, MCSE, CEH/ CHFI, FCC RF Licensed, is the authority on Network Certification and internetworking. He is a world-renowned author, speaker, trainer, and consultant. Todd has over 25 years of experience working with LANs, WANs, and large licensed and unlicensed wireless networks. He’s president and CEO of GlobalNet Training and Consulting, Inc., a networkintegration and training firm based in Dallas, Texas. You can reach Todd through his forum at www.lammle.com.
27484ffirs.indd 9
3/9/09 8:53:59 AM
27484ffirs.indd 10
3/9/09 8:53:59 AM
Contents at a Glance
27484ffirs.indd 11
Introduction
xxvii
Assessment Test
xlviii
Chapter 1
Introduction to Networks
1
Chapter 2
The Open Systems Interconnection Specifications
33
Chapter 3
Networking Topologies, Connectors, and Wiring Standards
61
Chapter 4
The Current Ethernet Specifications
97
Chapter 5
Networking Devices
131
Chapter 6
Introduction to Internet Protocol (IP)
177
Chapter 7
IP Addressing
215
Chapter 8
IP Subnetting, Troubleshooting IP, and Introduction to NAT
241
Chapter 9
Introduction to IP Routing
287
Chapter 10
Routing Protocols
311
Chapter 11
Switching and Virtual LANs (VLANs)
339
Chapter 12
Wireless Technologies
377
Chapter 13
Authentication and Access Control
423
Chapter 14
Network Threats and Mitigation
463
Chapter 15
Physical and Hardware Security
499
Chapter 16
Wide Area Networks
545
Chapter 17
Command-Line Tools
575
Chapter 18
Software and Hardware Tools
629
Chapter 19
Network Troubleshooting
659
Chapter 20
Management, Monitoring, and Optimization
699
Appendix A
Subnetting Class A
731
Appendix B
About the Companion CD
741
Glossary
745
Index
791
3/9/09 8:53:59 AM
27484ffirs.indd 12
3/9/09 8:53:59 AM
Contents Introduction
xxvii
Assessment Test
xlviii
Chapter
Chapter
27477book.indd 13
1
2
Introduction to Networks
1
First Things First: What’s a Network? The Local Area Network (LAN) Common Network Components Virtual LANs (VLANs) Wide Area Network (WAN) Virtual Private Networks (VPNs) Network Architecture: Peer-to-Peer or Client/Server? Physical Network Topologies Bus Topology Star Topology Ring Topology Mesh Topology Point-to-Point Topology Point-to-Multipoint Topology Hybrid Topology Topology Selection, Backbones, and Segments Selecting the Right Topology Summary Exam Essentials Written Labs Review Questions Answers to Review Questions Answers to Written Labs
2 3 5 8 9 10 11 13 14 15 16 17 18 19 20 21 21 22 23 24 25 29 31
The Open Systems Interconnection Specifications
33
Internetworking Models The Layered Approach Advantages of Reference Models The OSI Reference Model The Application Layer The Presentation Layer The Session Layer The Transport Layer The Network Layer The Data Link Layer The Physical Layer
34 35 35 36 37 39 39 39 45 48 50
2/25/09 1:14:46 PM
xiv
Chapter
Chapter
Contents
3
4
Introduction to Encapsulation Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
51 52 52 53 54 58 60
Networking Topologies, Connectors, and Wiring Standards
61
Physical Media Coaxial Cable Twisted-Pair Cable Fiber-Optic Cable Serial Cables Properties of Cables Transmission Speeds Distance Duplex Noise Immunity (Security, EMI) Frequency Wiring Standards 568A vs. 568B Straight-Through Cable Crossover Cable Rollover Cable Hardware Loopback Installing Wiring Distributions Vertical and Horizontal Cross-Connects Patch Panels Verifying Correct Wiring Installation Verifying Proper Wiring Termination Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
63 64 66 69 73 75 75 76 76 76 77 77 77 78 78 79 80 82 82 83 86 86 87 87 88 89 93 95
The Current Ethernet Specifications
97
Network Basics Ethernet Basics Collision Domain Broadcast Domain
27477book.indd 14
98 100 100 100
2/25/09 1:14:46 PM
Contents
Chapter
27477book.indd 15
5
xv
CSMA/CD Half- and Full-Duplex Ethernet Ethernet at the Data Link Layer Binary to Decimal and Hexadecimal Conversion Ethernet Addressing Ethernet Frames Channel Bonding Ethernet at the Physical Layer Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
101 102 104 104 108 108 111 111 116 116 118 121 125 127
Networking Devices
131
Common Network Connectivity Devices Hub Repeater Modem Network Interface Card (NIC) Transceiver (Media Converter) Bridge Switch Wireless Access Point (AP) Router Firewall Dynamic Host Configuration Protocol (DHCP) Server Other Specialized Devices Multilayer Switch Content Switch Intrusion Detection or Prevention System (IDS/IPS) Load Balancer Multifunction Network Devices Domain Name Service (DNS) Server Bandwidth Shaper Proxy Server Channel Service Unit/Data Service Unit (CSU/DSU) Network Segmentation Switches and Bridges at the Data Link Layer Hubs at the Physical Layer Summary Exam Essentials Written Lab
132 133 134 134 136 137 139 140 141 142 143 144 147 147 148 148 149 149 149 154 155 156 157 163 165 166 166 168
2/25/09 1:14:46 PM
xvi
Contents
Review Questions Answers to Review Questions Answers to Written Lab Chapter
Chapter
Chapter
27477book.indd 16
6
7
8
169 173 175
Introduction to Internet Protocol (IP)
177
Introducing TCP/IP A Brief History of TCP/IP TCP/IP and the DoD Model The Process/Application Layer Protocols The Host-to-Host Layer Protocols The Internet Layer Protocols Data Encapsulation Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
179 179 180 182 190 195 200 204 205 206 207 211 213
IP Addressing
215
IP Terminology The Hierarchical IP Addressing Scheme Network Addressing Private IP Addresses Broadcast Addresses Internet Protocol Version 6 (IPv6) Why Do We Need IPv6? The Benefits of and Uses for IPv6 IPv6 Addressing and Expressions Shortened Expression Address Types Special Addresses Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
216 217 218 222 223 225 225 226 227 228 229 230 230 231 232 233 237 239
IP Subnetting, Troubleshooting IP, and Introduction to NAT
241
Subnetting Basics How to Create Subnets Subnet Masks
242 243 244
2/25/09 1:14:47 PM
Contents
Classless Inter-Domain Routing (CIDR) Subnetting Class C Addresses Subnetting Class B Addresses Troubleshooting IP Addressing Determining IP Address Problems Introduction to Network Address Translation (NAT) Types of Network Address Translation NAT Names How NAT Works Summary Exam Essentials Written Labs Review Questions Answers to Review Questions Answers to Written Labs Chapter
Chapter
27477book.indd 17
9
10
xvii
245 247 256 264 267 271 273 273 274 275 276 277 278 283 285
Introduction to IP Routing
287
Routing Basics The IP Routing Process Testing Your IP Routing Understanding Static and Dynamic Routing Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
288 291 297 298 301 301 303 304 308 310
Routing Protocols
311
Routing Protocol Basics Administrative Distances Classes of Routing Protocols Distance-Vector Routing Protocols Routing Information Protocol (RIP) RIP Version 2 (RIPv2) VLSM and Discontiguous Networks EIGRP Border Gateway Protocol (BGP) Link-State Routing Protocols Open Shortest Path First (OSPF) Intermediate System to Intermediate System (IS-IS) IPv6 Routing Protocols RIPng EIGRPv6 OSPFv3
312 313 315 316 317 318 319 321 323 324 325 327 328 329 329 329
2/25/09 1:14:47 PM
xviii
Contents
Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
Chapter
11
12
Switching and Virtual LANs (VLANs)
339
Networking Before Layer 2 Switching Switching Services Limitations of Layer 2 Switching Bridging vs. LAN Switching Three Switch Functions at Layer 2 Spanning Tree Protocol (STP) Spanning-Tree Port States STP Convergence Virtual LANs (VLANs) VLAN Basics VLAN Memberships Static VLANs Dynamic VLANs Identifying VLANs VLAN Identification Methods Switching and Network Security Port Security/Authentication How VLANs Enhance Network Security Two Additional Advanced Features of Switches Power over Ethernet (PoE) Port Mirroring/Spanning Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
340 344 345 345 346 351 352 353 354 354 358 358 359 359 360 362 362 362 363 364 366 367 368 369 370 374 376
Wireless Technologies
377
Introduction to Wireless Technology The 802.11 Standards 2.4GHz (802.11b) 2.4GHz (802.11g) 5GHz (802.11a) 5GHz (802.11h) 2.4GHz/5GHz (802.11n)
27477book.indd 18
330 330 331 332 336 338
378 381 382 383 384 385 385
2/25/09 1:14:47 PM
Contents
Comparing 802.11 Standards Wireless LAN Modulation Techniques Range Comparisons Wireless Network Components Wireless Access Points Wireless Network Interface Card (NIC) Wireless Antennas Installing a Wireless Network Ad hoc Mode: Independent Basic Service Set (IBSS) Infrastructure Mode: Basic Service Set (BSS) Design Considerations with Large Wireless Networks Installing and Configuring Hardware Wireless Security Open Access Service Set Identifiers (SSIDs), Wired Equivalent Privacy (WEP), and Media Access Control (MAC) Address Authentication Remote Authentication Dial In User Service (RADIUS) Temporal Key Integrity Protocol (TKIP) Wi-Fi Protected Access (WPA) or WPA 2 Pre-Shared Key Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
13
Authentication and Access Control Security Filtering Access Control Lists Tunneling Encryption Remote Access Managing User Account and Password Security Network Resource-Sharing Security Models Managing User Accounts Managing Passwords User-Authentication Methods Public Key Infrastructure (PKI) Kerberos Authentication, Authorization, and Accounting (AAA) Network Access Control (NAC) Challenge Handshake Authentication Protocol (CHAP)
27477book.indd 19
xix
387 387 388 389 389 390 391 393 393 394 396 398 406 407
407 408 409 410 412 412 414 415 419 421 423 425 426 427 432 436 439 439 440 443 447 447 448 449 451 451
2/25/09 1:14:47 PM
xx
Contents
MS-CHAP Extensible Authentication Protocol (EAP) Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
14
Network Threats and Mitigation Recognizing Security Threats Denial of Service (DoS) Viruses Worms Attackers and Their Tools Rogue Access Points Social Engineering (Phishing) Understanding Mitigation Techniques Active Detection Passive Detection Proactive Defense Policies and Procedures Security Policies Security Training Patches and Upgrades Updating Antivirus Components Fixing an Infected Computer Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
Chapter
15
Physical and Hardware Security Using Hardware and Software Security Devices Defining Firewalls Network-Based Firewalls Host-Based Firewalls Firewall Technologies Access Control Lists (ACL) Demilitarized Zone (DMZ) Protocol Switching
27477book.indd 20
452 452 453 453 454 455 459 461 463 464 465 468 471 471 474 475 476 476 476 477 477 478 483 484 486 488 488 489 490 491 495 497 499 500 502 503 503 503 504 506 507
2/25/09 1:14:47 PM
Contents
Dynamic Packet Filtering Proxy Services Firewalls at the Application Layer vs. the Network Layer Stateful vs. Stateless Network-Layer Firewalls Application-layer Firewalls Scanning Services and Other Firewall Features Content Filtering Signature Identification Zones Intrusion-Detection and -Prevention Systems Network-Based IDS Host-Based IDS VPN Concentrators Understanding Problems Affecting Device Security Physical Security Logical Security Configurations Restricting Local and Remote Access Secure and Unsecure Application Protocols Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
16
Wide Area Networks What’s a WAN? Defining WAN Terms The Public Switched Telephone Network (PSTN) WAN Connection Types Bandwidth or Speed T-Series Connections The T1 Connection The T3 Connection Transmission Media Wired Connections Wireless Technologies Broadband Services DSL Technology and xDSL Cable Modem WAN Protocols Integrated Services Digital Network (ISDN) Frame Relay Technology
27477book.indd 21
xxi
508 509 511 512 513 514 515 515 516 518 519 521 522 523 523 525 527 529 534 534 536 537 541 543 545 547 547 548 549 551 551 552 553 553 554 555 556 557 559 560 560 562
2/25/09 1:14:48 PM
xxii
Chapter
27477book.indd 22
Contents
17
Asynchronous Transfer Mode (ATM) Multi Protocol Label Switching (MPLS) Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
565 565 567 567 568 569 572 574
Command-Line Tools
575
Using Traceroute Using ipconfig and ifconfig Using the ipconfig Utility Using the ifconfig Utility Using the ping Utility Using the Address Resolution Protocol (ARP) The Windows ARP Table Using the arp Utility Using the nslookup Utility Resolving Names with the Hosts Table Using the Mtr Command Using the Route Command Using the route Command Options Some Examples of the route Command Using the nbtstat Utility The –a Switch The –A Switch The –c Switch The –n Switch The –r Switch The –R Switch The –S Switch The –s Switch Using the netstat Utility The –a Switch The –e Switch The –r Switch The –s Switch The –p Switch The –n Switch Using the File Transfer Protocol (FTP) Starting FTP and Logging In to an FTP Server Downloading Files Uploading Files
577 578 578 582 583 586 586 587 590 592 593 594 595 597 597 598 600 600 601 601 602 602 603 603 606 607 608 608 608 610 612 613 614 616
2/25/09 1:14:48 PM
Contents
Using the Telephone Network (Telnet) Utility How to Enable Telnet in Vista Don’t Use Telnet, Use Secure Shell (SSH) Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
Chapter
18
19
617 617 618 619 619 620 621 626 628
Software and Hardware Tools
629
Understanding Network Scanners Packet Sniffers Intrusion Detection and Prevention Software (IDS/IPS) Port Scanners Identifying Hardware Tools Cable Testers Protocol Analyzer Certifiers Time-Domain Reflectometer (TDR) Optical Time-Domain Reflectometer (OTDR) Multimeter Toner Probe Butt Set Punch-Down Tool Cable Stripper/Snips Voltage Event Recorder Temperature Monitor Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
630 630 632 634 637 637 639 640 640 641 642 642 644 644 646 647 648 649 649 650 651 655 657
Network Troubleshooting Narrowing Down the Problem Are There Any Cabling Issues? Did You Check the Super Simple Stuff? Is Hardware or Software Causing the Problem? Is It a Workstation or a Server Problem? Which Segments of the Network Are Affected? Is It Bad Cabling?
27477book.indd 23
xxiii
659 661 662 665 666 667 667
2/25/09 1:14:48 PM
xxiv
Contents
Troubleshooting Steps Step 1: Information Gathering—Identify Symptoms and Problems Step 2: Identify the Affected Areas of the Network Step 3: Determine if Anything Has Changed Step 4: Establish the Most Probable Cause Step 5: Determine if Escalation Is Necessary Step 6: Create an Action Plan and Solution, Identifying Potential Effects Step 7: Implement and Test the Solution Step 8: Identify the Results and Effects of the Solution Step 9: Document the Solution and the Entire Process Troubleshooting Tips Don’t Overlook the Small Stuff Prioritize Your Problems Check the Software Configuration Don’t Overlook Physical Conditions Don’t Overlook Cable Problems Check for Viruses Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab Chapter
20
Management, Monitoring, and Optimization Managing Network Documentation Schematics and Diagrams Baselines Policies, Procedures, and Regulations Monitoring the Network and Optimizing Its Performance Network Monitoring and Logging Reasons to Optimize Your Network’s Performance How to Optimize Performance Summary Exam Essentials Written Lab Review Questions Answers to Review Questions Answers to Written Lab
27477book.indd 24
672 672 673 674 675 678 680 683 683 684 685 685 685 686 686 687 687 688 688 690 691 695 697 699 702 703 709 711 713 713 716 718 721 722 723 724 728 730
2/25/09 1:14:48 PM
Contents
Appendix
Appendix
A
B
Subnetting Class A
731
Subnetting Practice Examples: Class A Addresses Practice Example #1A: 255.255.0.0 (/16) Practice Example #2A: 255.255.240.0 (/20) Practice Example #3A: 255.255.255.192 (/26) Subnetting in Your Head: Class A Addresses Written Lab 1 Written Lab 2 Answers to Written Lab 1 Answers to Written Lab 2
732 733 733 734 734 736 737 738 739
About the Companion CD
741
What You’ll Find on the CD Sybex Test Engine PDF of the Book Adobe Reader Electronic Flashcards System Requirements Using the CD Troubleshooting Customer Care
742 742 742 742 743 743 743 743 744
Glossary Index
27477book.indd 25
xxv
745 791
2/25/09 1:14:48 PM
27477flast.indd 26
2/27/09 6:27:27 AM
Introduction If you’re like most of us in the networking community, you probably have one or more network certifications. If that’s you, you’re very wise in choosing to go for a Network+ certification to proudly add to your repertoire, because that achievement will make you all the more valuable as an employee. And in these challenging economic times, keeping ahead of the competition—even standing out among your present colleagues—could make a big difference in whether you gain a promotion or possibly keep your job instead of being the one who gets laid off! Or maybe this is your first attempt at certification because you’ve decided to venture into a new career in information technology (IT). You’ve realized that getting into the IT sector is a good way to go because as the Information Age marches on, the demand for knowledgeable professionals in this dynamic field will only be intensify dramatically. Either way, certification is one of the best things you can do for your career if you are working in, or want to break into, the networking profession, because it proves that you know what you’re talking about regarding the subjects you’re certified in. It also powerfully endorses you as a professional in a way that’s very similar to a physician being “board certified” in a certain area of expertise. In this book, you’ll find out what the Network+ exam is all about, because each chapter covers a part of the exam. I’ve included some great review questions at the end of each chapter to help crystallize the information you learned and solidly prepare you to ace the exam. A really cool thing about working in IT is that it’s constantly evolving so there are always new things to learn and fresh challenges to master. Once you obtain your Network+ certification and discover that you’re interested in taking it further by getting into more complex networking (and make more money), the Cisco CCNA certification is definitely your next step; you can get the skinny on that and even more in-depth certifications on my blog at www.lammle.com.
What Is the Network+ Certification? Network+ is a certification developed by the Computing Technology Industry Association (CompTIA) that exists to provide resources and education for the computer and technology community. This is the same body that developed the A+ exam for computer technicians. Way back in 1995, members of the organization got together to develop a new certification that tests skills for IT. To ensure industry-wide support, it was sponsored by many past and present IT industry leaders like these:
27477flast.indd 27
NN
Compaq Computers
NN
Digital Equipment Corporation (a part of Compaq)
NN
IBM
NN
Lotus
2/27/09 6:27:28 AM
xxviii
Introduction
NN
Microsoft
NN
Novell
NN
TSS
NN
U.S. Robotics
NN
US West
NN
Wave Technologies
The Network+ exam was designed to test the skills of network technicians with 18 to 24 months of experience in the field. It tests areas of networking technologies such as the definition of a protocol, the Open Systems Interconnect (OSI) model and its layers, and the concepts of network design and implementation—the minimum knowledge required for working on a network and some integral prerequisites for network design and implementation.
Why Become Network+ Certified? The Network+ certification is a relatively new certification, and it’s the next certification in the lineup of CompTIA certifications beginning with the A+ certification. Because CompTIA is a well-respected developer of vendor-neutral industry certifications, becoming Network+ certified proves you’re competent in the specific areas tested by Network+. Three major benefits are associated with becoming Network+ certified: NN
Proof of professional achievement
NN
Opportunity for advancement
NN
Fulfillment of training requirements
Proof of Professional Achievement Networking professionals are pretty competitive when it comes to collecting more certifications than their peers. And because the Network+ certification broadly covers the entire field of networking, technicians want this certification a lot more than having just Microsoft certs—Net+ is a lot more prestigious and valuable. Because it’s rare to gain something that’s worth a lot with little effort, I’ll be honest—preparing for the Network+ exam isn’t exactly a lazy day at the beach. (However, beaches do happen to be really high on my personal list of great places to study!) And people in IT know that it isn’t all that easy to pass the Net+ exam, so they’ll definitely respect you more and know that you’ve achieved a certain level of expertise about vendor-independent networking-related subjects.
Opportunity for Advancement We all like to get ahead in our careers—advancement results in more responsibility and prestige, and it usually means a fatter paycheck, greater opportunities, and added options.
27477flast.indd 28
2/27/09 6:27:29 AM
Introduction
xxix
In the IT sector, a great way to make sure all that good stuff happens is by earning a lot of technology certifications, including Network+. Network+, because of its wide-reaching industry support, is recognized as a baseline of networking information. Some companies actually specify the possession of both Network+ and A+ certifications as job requirements before they’ll even consider hiring you, or maybe before your next review. And often, gaining a Network+ certification will get you a pay raise at review time.
How to Become Network+ Certified The simplest way to become Network+ certified is to take the exam. It is administered by Pearson VUE and Thomson Prometric, which you’re already familiar with if you’ve taken other computer certification exams. If you haven’t, surprise—the test is administered by a computer. The test is 90 minutes long, with 100 questions. That is less than one minute per question, but as of the time of this writing, all question are multiple choice, so that makes it somewhat of an easier test then a test with simulations and drag and drop questions. Also to your benefit, you can review your answers before you finish your test, which gives you a review period if you finish before 90 minutes. You need to get a score of 720 out of 1000 To register to take the exam, call Thomson Prometric (not the testing center) at 888-895-6116 or Pearson VUE at 877-551-PLUS. Be prepared to pay for the exam at registration time with a major credit card like Visa or MasterCard. Check CompTIA’s website, because prices may vary. This book covers everything about CompTIA Network+. For up-to-date information about Todd Lammle CompTIA bootcamps, audio training, and training videos, please see www.lammle.com and/or www.globalnettraining.com.
You can take the CompTIA exam at any of the more than 800 Prometric Authorized Testing Centers around the world (www.2test.com), or call 800-204-EXAM (3926). You can also register and take the exams at a Pearson VUE authorized center (www.vue.com) or call (877) 404-EXAM (3926). To register for a CompTIA exam, do the following:
27477flast.indd 29
1.
Determine the number of the exam you want to take—the CompTIA Network+ exam number is N10-004.
2.
Register with the nearest Prometric Registration Center or Pearson VUE testing center. Like I said, you have to pay for the exam in advance; at this writing, the exam costs $239 and must be taken within one year of payment. You can schedule an exam up to six weeks in advance or as late as the same day you want to take it. If something comes up and you need to cancel or reschedule your exam appointment, contact Prometric or Pearson VUE at least 24 hours in advance.
2/27/09 6:27:29 AM
xxx
Introduction
3. When you schedule the exam, you’ll get instructions regarding all appointment and
cancellation procedures, the ID requirements, and information about the testing-center location. At the end of the exam, your score report will be displayed on the screen and printed out so that you have a hard copy.
Who Should Buy This Book? You—if want to pass the Network+ exam, and pass it confidently, that is! This book is chock full of the exact information you need that directly maps to Net+ exam objectives; so if you use it to study for the exam, your odds of passing shoot way up. And in addition to including every bit of knowledge you need to learn to pass the exam, I’ve also included some really great tips and solid wisdom to equip you even further to successfully work in the real IT world.
What Does This Book Cover? This book covers everything you need to know in order to pass the CompTIA Network+ (N10-004) exam. But in addition to studying the book, it’s a good idea to practice on an actual network if you can. Here’s a list of the 20 chapters in this book. At the end each of them, I’ve included a written lab and some key review questions to help you hone your skills: Chapter 1, Introduction to Networks An introduction to what a network is, and an overview of the most common physical network topologies you’ll find in today’s networks. Chapter 2, The Open Systems Interconnection Specifications This chapter covers the OSI model, what it is, what happens at each of its layers, and how each layer works. Chapter 3, Networking Topologies, Connectors, and Wiring Standards This chapter covers the various networking media and topologies, plus the cable types and properties used in today’s networks. Chapter 4, The Current Ethernet Specifications This chapter covers how a basic Ethernet LAN works, and describes and categorizes the different Ethernet specifications. Chapter 5, Networking Devices It’s important for you to understand all the various devices used in today’s networks, and this chapter will describe how hubs, routers, and switches and some other devices work within a network. Chapter 6, Introduction to Internet Protocol (IP) This is your introduction to the allimportant IP protocol stack.
27477flast.indd 30
2/27/09 6:27:29 AM
Introduction
xxxi
Chapter 7, IP Addressing This chapter will take up from where Chapter 6 left off and move into IP addressing. It also contains information about public versus private addressing and DHCP. Chapter 8, IP Subnetting, Troubleshooting IP, And Introduction to NAT Beginning where Chapter 7 ends, we’ll be tackling IP subnetting in this one. But no worries here— I’ve worked hard to make this not-so-popular yet vital topic as painless as possible. Chapter 9, Introduction to IP Routing This is an introduction to routing that basically covers what routers do and how they do it. This chapter, along with Chapters 10 and 11, cover routing and switching in much more detail than what is necessary to meet the CompTIA Network+ objectives, because this knowledge is so critical to grasp when working with today’s networks. Chapter 10, Routing Protocols This chapter goes into detail describing the protocols that run on routers and that update routing tables to create a working map of the network. Chapter 11, Switching and Virtual LANs (VLANs) This chapter covers Layer 2 switching, the Spanning Tree Protocol (STP), and Virtual LANs. Just as I went in deeper than needed for the exam with the routing chapters, I’ll cover switching and virtual LANs (which are also vital in today’s corporate networks) more thoroughly as well. Chapter 12, Wireless Technologies Because wireless is so important for both home and business networks today, this chapter is loaded with all the information you need to be successful at wireless networking at home and work. Chapter 13, Authentication and Access Control This is the first of three security chapters. There are tons of exam objectives about network security that are so important that I took three chapters to cover all of them. In this chapter, I’ll introduce security, security filtering, tunneling, and user authentication. Chapter 14, Network Threats and Mitigation This is probably the most fun of the three security chapters because I’ll tell you all about security threats and how to stop them. The only way to get good at network security is to implement it, and this chapter shows you how. Chapter 15, Physical and Hardware Security This chapter’s focus is on explaining basic firewalls, security devices, and device security. Chapter 16, Wide Area Networks In this chapter, you get to learn all about things like frame relay, E1/T1, DSL, cable modems, and more. All the CompTIA Network+ WAN objectives are covered in this chapter. Chapter 17, Command-Line Tools This is also a fun chapter because again, you can follow along and run all the commands yourself. And I repeat, it’s a really good idea to do that! Chapter 18, Software and Hardware Tools This chapter introduces you to the network tools you will use to help you run your networks. Both software and hardware tools will be discussed.
27477flast.indd 31
2/27/09 6:27:29 AM
xxxii
Introduction
Chapter 19, Network Troubleshooting In almost every chapter, I discuss how to verify and fix problems, but this chapter will get really into the nuts and bolts of detailed network troubleshooting and documentation. Chapter 20, Management, Monitoring, and Optimization This last chapter will provide configuration-management documentation and covers wiring, logical diagrams, baselines, policies, and regulations.
How to Use This Book If you want a solid foundation for the serious effort of preparing for the CompTIA Network+ (N10-004) exam, then look no further, because I’ve spent countless hours putting together this book with the sole intention of helping you to pass the Network+ exam! This book is loaded with valuable information, and you will get the most out of your study time if you understand how I put the book together. Here’s a list that describes how to approach studying so you get the most out of it: 1. Take the assessment test immediately following this introduction. (The answers are at
the end of the test, but no peeking!) It’s okay if you don’t know any of the answers— that’s what this book is for. Carefully read over the explanations for any question you get wrong, and make note of the chapters where that material is covered. 2. Study each chapter carefully, making sure that you fully understand the information
and the test objectives listed at the beginning of each one. Again, pay extra-close attention to any chapter that includes material covered in questions you missed on the assessment test. 3. Complete the Written Lab at the end of each chapter. Do not skip these written exercises,
because they directly map to the CompTIA objectives and what you’ve got to have nailed down to meet them. 4. Answer all the Review Questions related to each chapter. (The answers appear at the
end of the chapters—no cheating!) Specifically note any questions that confuse you, and study those sections of the book again. And don’t just skim these questions—make sure you understand each answer completely. 5. Try your hand at the bonus exams included on the companion CD. The questions in these exams appear only on the CD. Check out www.lammle.com for more CompTIA Network+ exam prep questions. The questions found at www.lammle.com will be updated
at least monthly, maybe weekly or even daily. Before you take your test, be sure and visit my website for questions, videos, audios, and other useful information. 6. Test yourself using all the flashcards on the CD. These are brand-new and updated
flashcard programs to help you prepare for the latest CompTIA Network+ exam, and they’re really great study tools.
27477flast.indd 32
2/27/09 6:27:30 AM
Introduction
xxxiii
I tell you no lies—learning every bit of the material in this book is going to require applying yourself with a good measure of discipline. So try to set aside the same time period every day to study, and select a comfortable and quiet place to do so. If you work hard, you will be surprised at how quickly you learn this material. If you follow the steps listed here, study, and practice the Review Questions, bonus exams, electronic flashcards, and all the written labs, you would almost have to try to fail the CompTIA Network+ exam. However, studying for the Network+ exam is like training for a marathon—if you don’t go for a good run every day, you’re not likely to finish very well.
What’s on the CD? I worked hard to provide some really great tools to help you with your certification process. All of the following tools should be loaded on your workstation when you’re studying for the test.
The Sybex Test Engine The test-preparation software prepares you to pass the CompTIA Network+ exam. In this test engine, you will find all the review and assessment questions from the book, plus two bonus exams. If you purchased the Deluxe Edition of this book, there are four additional bonus exams, for a total of six.
Electronic Flashcards for PC, Pocket PC, and Palm Devices To prepare for the exam, you can read this book, study the review questions at the end of each chapter, and work through the practice exams included in the book and on the companion CD. But don’t neglect the flashcards included on the CD—if you can get through these tough questions and understand the answers, you’ll know you’re ready for the CompTIA Network+ exam. The flashcards include 150 questions specifically written to hit you hard and make sure you are ready for the exam. Between the review questions, the bonus exams, and the flashcards on the CD, you’ll be more than prepared for the exam. If you purchased the Deluxe Edition of this book, there are 150 additional flashcards, for a total of 300.
27477flast.indd 33
2/27/09 6:27:30 AM
xxxiv
Introduction
PDF of Book Sybex offers the Study Guide in PDF on the CD so you can read the book on your PC or laptop. (Acrobat Reader is also included on the CD.)
CompTIA Network+ Virtual Lab as Part of Deluxe Edition If you purchased the Deluxe Edition of this book, we include the Network+ Virtual Lab. This is the most powerful practical tool in the market today. It will allow you to create a virtual network and work with simulated devices such as routers, switches, and server and client hardware. Also included are hands-on labs. Complete instructions are included on a PDF version of the Network+ Virtual Lab manual and README file found on the CD-ROM. System Requirements for the Virtual Lab include Internet Explorer 4.0 or later; Pentium 133 (Pentium II 266 or higher recommended); 32MB of RAM (64MB recommended); Windows NT (SP3 or higher), 2000, or XP, or Vista; 25MB of free hard-disk space, 8x CD-ROM drive, and a mouse or other pointing device.
Exam Objectives Speaking of objectives, you’re probably pretty curious about those, right? CompTIA asked groups of IT professionals to fill out a survey rating the skills they felt were important in their jobs, and the results were grouped into objectives for the exam and divided into six domains. This table gives you the extent by percentage that each domain is represented on the actual examination.
27477flast.indd 34
Domain
% of Examination
1.0 Network Technologies
20%
2.0 Network Media and Topologies
20%
3.0 Network Devices
17%
4.0 Network Management
20%
5.0 Network Tools
12%
6.0 Network Security
11%
Total
100%
2/27/09 6:27:30 AM
Introduction
xxxv
Next, I’m going to give you the outline of the Network+ exam objectives. The specific objectives and weighting percentages can change at any time, so check CompTIA’s website at www.comptia.org for a list of the most current ones.
1.0 Network Technologies (20%) The objectives for this domain are as follows: 1.1 Explain the function of common networking protocols NN
TCP
NN
FTP
NN
UDP
NN
TCP/IP suite
NN
DHCP
NN
TFTP
NN
DNS
NN
HTTP(S)
NN
ARP
NN
SIP (VoIP)
NN
RTP (VoIP)
NN
SSH
NN
POP3
NN
NTP
NN
IMAP4
NN
Telnet
NN
SMTP
NN
SNMP2/3
NN
ICMP
NN
IGMP
NN
TLS
1.2 Identify commonly used TCP and UDP default ports TCP ports:
27477flast.indd 35
NN
FTP – 20, 21
NN
SSH – 22
2/27/09 6:27:31 AM
xxxvi
Introduction
NN
TELNET – 23
NN
SMTP – 25
NN
DNS – 53
NN
HTTP – 80
NN
POP3 – 110
NN
NTP – 123
NN
IMAP4 – 143
NN
HTTPS – 443 UDP ports:
NN
TFTP – 69
NN
DNS – 53
NN
BOOTPS/DHCP – 67
NN
SNMP – 161
1.3 Identify the following address formats NN
IPv6
NN
IPv4
NN
MAC addressing
1.4 Given a scenario, evaluate the proper use of the following addressing technologies and addressing schemes Addressing technologies: NN
Subnetting
NN
Classful vs. classless (e.g. CIDR, Supernetting)
NN
NAT
NN
PAT
NN
SNAT
NN
Public vs. private
NN
DHCP (static, dynamic APIPA) Addressing schemes:
NN
Unicast
NN
Multicast
NN
Broadcast
1.5 Identify common IPv4 and IPv6 routing protocols Link state:
27477flast.indd 36
NN
OSPF
NN
IS-IS
2/27/09 6:27:31 AM
Introduction
xxxvii
Distance vector: NN
RIP
NN
RIPv2
NN
BGP Hybrid:
NN
EIGRP
1.6 Explain the purpose and properties of routing NN
IGP vs. EGP
NN
Static vs. dynamic
NN
Next hop
NN
Understanding routing tables and how they pertain to path selection
NN
Explain convergence (steady state)
1.7 Compare the characteristics of wireless communication standards 802.11 a/b/g/n NN
Speeds
NN
Distance
NN
Channels
NN
Frequency Authentication and encryption:
NN
WPA
NN
WEP
NN
RADIUS
NN
TKIP
2.0 Network Media and Topologies (20%) The objectives for this domain are as follows: 2.1 Categorize standard cable types and their properties Types: NN
CAT3, CAT5, CAT5e, CAT6
NN
STP, UTP
NN
Multimode fiber, single-mode fiber
NN
27477flast.indd 37
Coaxial NN
RG-59
NN
RG-6
2/27/09 6:27:31 AM
xxxviii
Introduction
NN
Serial
NN
Plenum vs. Non-plenum Properties:
NN
Transmission speeds
NN
Distance
NN
Duplex
NN
Noise immunity (security, EMI)
NN
Frequency
2.2 Identify common connector types NN
RJ-11
NN
RJ-45
NN
BNC
NN
SC
NN
ST
NN
LC
NN
RS-232
2.3 Identify common physical network topologies NN
Star
NN
Mesh
NN
Bus
NN
Ring
NN
Point to point
NN
Point to multipoint
NN
Hybrid
2.4 Given a scenario, differentiate and implement appropriate wiring standards NN
568A
NN
568B
NN
Straight vs. cross-over
NN
Rollover
NN
Loopback
2.5 Categorize WAN technology types and properties Types:
27477flast.indd 38
NN
Frame relay
NN
E1/T1
NN
ADSL
2/27/09 6:27:31 AM
Introduction
NN
SDSL
NN
VDSL
NN
Cable modem
NN
Satellite
NN
E3/T3
NN
OC-x
NN
Wireless
NN
ATM
NN
SONET
NN
MPLS
NN
ISDN BRI
NN
ISDN PRI
NN
POTS
NN
PSTN
xxxix
Properties: NN
Circuit switch
NN
Packet switch
NN
Speed
NN
Transmission media
NN
Distance
2.6 Categorize LAN technology types and properties Types:
27477flast.indd 39
NN
Ethernet
NN
10BaseT
NN
100BaseTX
NN
100BaseFX
NN
1000BaseT
NN
1000BaseX
NN
10GBaseSR
NN
10GBaseLR
NN
10GBaseER
NN
10GBaseSW
NN
10GBaseLW
NN
10GBaseEW
NN
10GBaseT
2/27/09 6:27:31 AM
xl
Introduction
Properties: NN
CSMA/CD
NN
Broadcast
NN
Collision
NN
Bonding
NN
Speed
NN
Distance
2.7 Explain common logical network topologies and their characteristics NN
Peer to peer
NN
Client/server
NN
VPN
NN
VLAN
2.8 Install components of wiring distribution NN
Vertical and horizontal cross connects
NN
Patch panels
NN
66 block
NN
MDFs
NN
IDFs
NN
25 pair
NN
100 pair
NN
110 block
NN
Demarc
NN
Demarc extension
NN
Smart jack
NN
Verify wiring installation
NN
Verify wiring termination
3.0 Network Devices (17%) The objectives for this domain are as follows: 3.1 Install, configure and differentiate between common network devices
27477flast.indd 40
NN
Hub
NN
Repeater
NN
Modem
2/27/09 6:27:31 AM
Introduction
NN
NIC
NN
Media converters
NN
Basic switch
NN
Bridge
NN
Wireless access point
NN
Basic router
NN
Basic firewall
NN
Basic DHCP server
xli
3.2 Identify the functions of specialized network devices NN
Multilayer switch
NN
Content switch
NN
IDS/IPS
NN
Load balancer
NN
Multifunction network devices
NN
DNS server
NN
Bandwidth shaper
NN
Proxy server
NN
CSU/DSU
3.3 Explain the advanced features of a switch NN
PoE
NN
Spanning tree
NN
VLAN
NN
Trunking
NN
Port mirroring
NN
Port authentication
3.4 Implement a basic wireless network NN
Install client
NN
Access point placement
NN
NN
27477flast.indd 41
Install access point NN
Configure appropriate encryption
NN
Configure channels and frequencies
NN
Set ESSID and beacon
Verify installation
2/27/09 6:27:32 AM
xlii
Introduction
4.0 Network Management (20%) The objectives for this domain are as follows: 4.1 Explain the function of each layer of the OSI model NN
Layer 1 – physical
NN
Layer 2 – data link
NN
Layer 3 – network
NN
Layer 4 – transport
NN
Layer 5 – session
NN
Layer 6 – presentation
NN
Layer 7 – application
4.2 Identify types of configuration management documentation NN
Wiring schematics
NN
Physical and logical network diagrams
NN
Baselines
NN
Policies, procedures and configurations
NN
Regulations
4.3 G iven a scenario, evaluate the network based on configuration management documentation NN
NN
Compare wiring schematics, physical and logical network diagrams, baselines, policies and procedures and configurations to network devices and infrastructure Update wiring schematics, physical and logical network diagrams, configurations and job logs as needed
4.4 Conduct network monitoring to identify performance and connectivity issues using the following: NN
NN
Network monitoring utilities (e.g. packet sniffers, connectivity software, load testing, throughput testers) System logs, history logs, event logs
4.5 Explain different methods and rationales for network performance optimization Methods:
27477flast.indd 42
NN
QoS
NN
Traffic shaping
NN
Load balancing
NN
High availability
NN
Caching engines
NN
Fault tolerance
2/27/09 6:27:32 AM
Introduction
xliii
Reasons: NN
NN
NN
Latency sensitivity High bandwidth applications NN
VoIP
NN
Video applications
Uptime
4.6 Given a scenario, implement the following network troubleshooting methodology NN
Information gathering – identify symptoms and problems
NN
Identify the affected areas of the network
NN
Determine if anything has changed
NN
Establish the most probable cause
NN
Determine if escalation is necessary
NN
Create an action plan and solution identifying potential effects
NN
Implement and test the solution
NN
Identify the results and effects of the solution
NN
Document the solution and the entire process
4.7 Given a scenario, troubleshoot common connectivity issues and select an appropriate solution Physical issues: NN
Cross talk
NN
Nearing crosstalk
NN
Near End crosstalk
NN
Attenuation
NN
Collisions
NN
Shorts
NN
Open impedance mismatch (echo)
NN
Interference Logical issues:
27477flast.indd 43
NN
Port speed
NN
Port duplex mismatch
NN
Incorrect VLAN
NN
Incorrect IP address
NN
Wrong gateway
NN
Wrong DNS
NN
Wrong subnet mask
2/27/09 6:27:32 AM
xliv
Introduction
Issues that should be identified but escalated: NN
Switching loop
NN
Routing loop
NN
Route problems
NN
Proxy arp
NN
Broadcast storms Wireless Issues:
NN
Interference (bleed, environmental factors)
NN
Incorrect encryption
NN
Incorrect channel
NN
Incorrect frequency
NN
ESSID mismatch
NN
Standard mismatch (802.11 a/b/g/n)
NN
Distance
NN
Bounce
NN
Incorrect antenna placement
5.0 Network Tools (12%) The objectives for this domain are as follows: 5.1 Given a scenario, select the appropriate command line interface tool and interpret the output to verify functionality
27477flast.indd 44
NN
Traceroute
NN
Ipconfig
NN
Ifconfig
NN
Ping
NN
Arp ping
NN
Arp
NN
Nslookup
NN
Hostname
NN
Dig
NN
Mtr
NN
Route
NN
Nbtstat
NN
Netstat
2/27/09 6:27:32 AM
Introduction
xlv
5.2 Explain the purpose of network scanners NN
Packet sniffers
NN
Intrusion detection software
NN
Intrusion prevention software
NN
Port scanners
5.3 Given a scenario, utilize the appropriate hardware tools NN
Cable testers
NN
Protocol analyzer
NN
Certifiers
NN
TDR
NN
OTDR
NN
Multimeter
NN
Toner probe
NN
Butt set
NN
Punch down tool
NN
Cable stripper
NN
Snips
NN
Voltage event recorder
NN
Temperature monitor
6.0 Network Security (11%) The objectives for this domain are as follows: 6.1 Explain the function of hardware and software security devices NN
Network based firewall
NN
Host based firewall
NN
IDS
NN
IPS
NN
VPN concentrator
6.2 Explain common features of a firewall
27477flast.indd 45
NN
Application layer vs. network layer
NN
Stateful vs. stateless
NN
Scanning services
NN
Content filtering
2/27/09 6:27:32 AM
xlvi
Introduction
NN
Signature identification
NN
Zones
6.3 Explain the methods of network access security Filtering: NN
NN
NN
ACL NN
MAC filtering
NN
IP filtering
Tunneling and encryption NN
SSL VPN
NN
VPN
NN
L2TP
NN
PPTP
NN
IPSEC
Remote access NN
RAS
NN
RDP
NN
PPPoE
NN
PPP
NN
VNC
NN
ICA
6.4 Explain methods of user authentication NN
PKI
NN
Kerberos
NN
AAA
NN
NN
RADIUS
NN
TACACS+
Network access control NN
802.1x
NN
CHAP
NN
MS-CHAP
NN
EAP
6.5 Explain issues that affect device security
27477flast.indd 46
NN
Physical security
NN
Restricting local and remote access
2/27/09 6:27:32 AM
Introduction
NN
xlvii
Secure methods vs. unsecure methods NN
SSH, HTTPS, SNMPv3, SFTP, SCP
NN
TELNET, HTTP, FTP, RSH, RCP, SNMPv1/2
6.6 Identify common security threats and mitigation techniques Security threats: NN
DoS
NN
Viruses
NN
Worms
NN
Attackers
NN
Man in the middle
NN
Smurf
NN
Rogue access points
NN
Social engineering (phishing) Mitigation techniques:
27477flast.indd 47
NN
Policies and procedures
NN
User training
NN
Patches and updates
2/27/09 6:27:32 AM
Assessment Test 1. What is the basic purpose of a local area network (LAN)? A. To interconnect networks in several different buildings B. To connect one or more computers together so they can share resources C. To interconnect 2 to 10 routers D. To make routers unnecessary 2. Which of the following describes a VLAN? A. It is a device that provides IP addresses to hosts. B. It uses firewalls. C. It virtually separates subnets using switches. D. It virtually separates subnets using routers. 3. IP resides at which layer of the OSI model? A. Application B. Data Link C. Network D. Physical 4. Layer 2 of the OSI model is named ___________________. A. Application layer B. Network layer C. Transport layer D. Data Link layer 5. Which RG rating of coax is used for cable modems? A. RG-59 B. RG-58 C. RG-6 D. RG-8 6. Which UTP wiring uses four twisted wire pairs (eight wires) and is rated for 250MHz? A. Category 3 UTP B. Category 5 STP C. Category 5 UTP D. Category 6 UTP
27477flast.indd 48
2/27/09 6:27:33 AM
Assessment Test
xlix
7. If you are running half-duplex Internet, which of the following is true. (Choose all that apply)? A. Your digital signal cannot transmit and receive data at the same time. B. Hosts use the CSMA/CD protocol to prevent collisions. C. The physical connection consists of one wire pair. D. All of the above 8. You need to connect a hub to a switch. You don’t like this idea because you know that it will create congestion. What type of cable do you need to use to connect the hub to the switch? A. EtherIP B. Crossover C. Straight-through D. Cable Sense, Multiple Access 9. Your boss asks you why you just put in a requisition to buy a bunch of switches. He said he just bought you a bunch of hubs five years ago! Why did you buy the switches? A. Because each switch port is its own collision domain. B. The cable connecting devices to the hub wore out, and switches were cheaper than new cable. C. There were too many broadcast domains, and a switch breaks up broadcast domains by default. D. The hubs kept repeating signals but quit recognizing frames and data structures. 10. Which device would connect network segments together, creating separate collision domains for each segment but only a single broadcast domain? A. Hub B. Router C. Switch D. Modem 11. Most Application-layer protocols only use UDP or TCP at the Transport layer. Which of the following could use both? A. TCP B. Microsoft Word C. Telnet D. DNS 12. HTTP, FTP, and Telnet work at which layer of the OSI model? A. Application B. Presentation C. Session D. Transport
27477flast.indd 49
2/27/09 6:27:33 AM
l
Assessment Test
13. IPv6 uses multiple types of addresses. Which of the following would describe an anycast address used by an IPv6 host? A. Communications are routed to the most distant host that shares the same address. B. Packets are delivered to all interfaces identified by the address. This is also called oneto-many addressing. C. This address identifies multiple interfaces, and the anycast packet is only delivered to one address. This address can also be called one-to-one-of-many. D. Anycast is a type of broadcast. 14. Which of the following IP addresses are not allowed on the Internet? (Choose all that apply.) A. 11.255.255.1 B. 10.1.1.1 C. 172.33.255.0 D. 192.l68.0.1 15. What is the subnetwork address for a host with the IP address 200.10.5.168/28? A. 200.10.5.156 B. 200.10.5.132 C. 200.10.5.160 D. 200.10.5.0 E. 200.10.5.255 16. If you wanted to verify the local IP stack on your computer, what would you do? A. ping 127.0.0.0 B. ping 127.0.0.1 C.
telnet 1.0.0.127
D. ping 127.0.0.255 E. telnet 255.255.255.255 17. The OSI model uses an encapsulation method to describe the data as it is encapsulated at each layer of the OSI. What is the encapsulation named at the Data Link layer? A. Bits B. Packets C. Frames D. Data E. Segments
27477flast.indd 50
2/27/09 6:27:33 AM
Assessment Test
li
18. Where does a Data Link layer frame have to carry a Network layer packet if the packet is destined for a remote network? A. Router B. Physical medium C. Switch D. Another host 19. Which of the following are not Distance Vector routing protocols? (Choose all that apply.) A. OSPF B. RIP C. RIPv2 D. IS-IS 20. Which of the following uses both Distance Vector and Link State properties? A. IGRP B. OSPF C. RIPv1 D. EIGRP E. IS-IS 21. You need to break up broadcast domains in a Layer 2 switched network. What strategy will you use? A. Implement a loop-avoidance scheme B. Create a flatter network structure using switches C. Create a VLAN D. Disable spanning tree on individual ports 22. Why do most switches run the Spanning Tree Protocol by default? A. It monitors how the network is functioning. B. It stops data from forwarding until all devices are updated. C. It prevents switching loops. D. It manages the VLAN database. 23. Which of the following describes MIMO correctly? A. A protocol that requires acknowledgment of each and every frame B. A data-transmission technique in which several frames are sent by several antennae over several paths and are then recombined by another set of antennae C. A modulation technique that allows more than one data rate D. A technique that packs smaller packets into a single unit, which improves throughput
27477flast.indd 51
2/27/09 6:27:33 AM
lii
Assessment Test
24. Which two practices help secure your wireless access points from unauthorized access? A. Assigning a private IP address to the AP B. Changing the default SSID value C. Configuring a new administrator password D. Changing the mixed-mode setting to single mode E. Configuring traffic filtering 25. IPSec is defined at what layer of the OSI model? A. Network B. Physical C. Layer 4 D. Layer 7 26. You want your users to log in and authenticate before they can get onto your network. Which of the following services would you use? A. RADIUS B. TACACS+ C. Virtual Network Computing D. Remote desktop protocol 27. Someone calls you and asks for your bank-account number because the bank is having problem with your account. You give them this information and later find out that you were scammed. What type of attack is this? A. Phishing B. Calling-scam C. Analog-scam D. Trust-exploration attack E. Man-in-the-middle attack F. Rogue access point 28. Which three of the following are types of denial of service attacks? A. Ping of Death B. Stacheldraht C. SYN flood D. Virus FloodSyn
27477flast.indd 52
2/27/09 6:27:33 AM
Assessment Test
liii
29. You want to stop a hacker in their tracks. Which of the following devices are proactive in providing this service? A. Access control list (ACL) B. Content filtering C. Security zones D. Intrusion Prevention System (IPS) E. Network Address Translation F. Virtual LAN’s 30. You connected your company to the Internet, and security is a concern. What should you install? A. Higher-quality cables B. Firewall C. DNS D. Switches 31. Which of the following are WAN protocols or technologies? (Choose all that apply.) A. ATM B. ISDN C. MPLS D. RIP 32. The rate at which the frame-relay switch agrees to transfer data is referred to as ___________________. A. BE B. FECN C. CIR D. BECN 33. Which two arp utility switches perform the same function? A. –g B. –A C. –d D. –a E. -h F. -b
27477flast.indd 53
2/27/09 6:27:33 AM
liv
Assessment Test
34. You need to purge and reload the remote NetBIOS name table cache. Which nbtstat utility switch will you use? A. –r B. –R C. /r D. /R E. -a F. -A 35. Which tool is used to attach ends to network cables? A. Punch-down tool B. Crimper C. VLAN tool D. Strippers E. ARP tool 36. You are using a TDR. Which three of the following actions can you do with this device? A. Estimate cable lengths B. Find splice and connector locations and their associated loss amounts C. Display unused services D. Define cable-impedance characteristics 37. Which of the following are considered cabling issues? (Choose all that apply.) A. Crosstalk B. Shorts C. Open impedance mismatch D. DNS configurations 38. A workstation gives an error message to a user. The message states that a duplicate IP address has been detected on the network. After developing a hypothesis, what should the next step be according to the standard troubleshooting model? A. Test and observe an action plan. B. Determine if anything has changed. C. Implement an action plan. D. Document the solution and the entire process.
27477flast.indd 54
2/27/09 6:27:33 AM
Assessment Test
lv
39. Which network-performance-optimization technique can delay packets that meet certain criteria to guarantee usable bandwidth for other applications? A. Traffic shaping B. Jitter control C. Logical network mapping D. Load balancing E. Access lists 40. You need to optimize network traffic by spreading it across multiple connections. Which strategy should be used? A. Load balancing B. Traffic shaping C. Add VLAN’s D. A 1Gbps connection E. Following the regulations
27477flast.indd 55
2/27/09 6:27:33 AM
lvi
Answers to Assessment Test
Answers to Assessment Test 1. B. LANs generally have a geographic scope of a single building or smaller. They can be simple (two hosts) to complex (with thousands of hosts). See Chapter 1 for more information. 2. C. Virtual LANs (VLANs) separate subnets (Layer 3 networks) using switches instead of routers. See Chapter 1 for more information. 3. C. IP is a Network-layer protocol. Internet Explorer is an example of an Application layer protocol; Ethernet is an example of a Data Link–layer protocol; and T1 can be considered a Physical-layer protocol. See Chapter 2 for more information. 4. D. Layer 2 of the OSI model is the Data Link layer, which provides the physical transmission of the data and handles error notification, network topology, and flow control. See Chapter 2 for more information. 5. C. Cable modems use RG-6 coax cables. See Chapter 3 for more information. 6. D. To get the high data-transfer speed, like 1Gbps, you need to use a wire standard that is highly rated, such as Category 5e or Category 6. See Chapter 3 for more information. 7. D. A, B, and C are true. With half-duplex, you are using one wire pair with a digital signal either transmitting or receiving (but not both at once). Carrier Sense Multiple Access with Collision Detection (CSMA/CD) helps packets that are transmitted simultaneously from different hosts share bandwidth evenly. See Chapter 4 for more information. 8. B. To connect two switches together or a hub to a switch, you need a crossover cable. See Chapter 4 for more information. 9. A. For the most part, switches are not cheap; however, one of the biggest benefits of using switches instead of hubs in your internetwork is that each switch port is actually its own collision domain. A hub creates one large collision domain. Switches still can’t break up broadcast domains (do you remember which devices do?). Hubs do not recognize frames and data structures but switches do. See Chapter 5 for more information. 10. C. A switch creates separate collision domains for each port but does not break up broadcast domains by default. See Chapter 5 for more information. 11. D. DNS uses TCP for zone exchanges between servers and UDP when a client is trying to resolve a hostname to an IP address. See Chapter 6 for more information. 12. A. HTTP, FTP and Telnet use TCP at the Transport layer; however, they are all Applicationlayer protocols, so the Application layer is the best answer for this question. See Chapter 6 for more information. 13. C. Anycast is a new type of communication that replaces broadcasts in IPv4. Anycast addresses identify multiple interfaces, which is the same as multicast; however, the big difference is that the anycast packet is delivered to only one address: the first one it finds defined in the terms of routing distance. This address can also be called one-to-one-ofmany. See Chapter 7 for more information.
27477flast.indd 56
2/27/09 6:27:34 AM
Answers to Assessment Test
lvii
14. B, D. The addresses in the range 10.0.0.0 through 10.255.255.255, and 172.16.0.0 through 172.31.255.255, as well as 192.168.0.0 through 192.168.255.255 are all considered private, based on RFC 1918. Use of these addresses on the Internet is prohibited so that they can be used simultaneously in different administrative domains without concern for conflict. See Chapter 7 for more detail on IP addressing and information on private IP addresses. 15. C. This is a pretty simple question. A /28 is 255.255.255.240, which means that our block size is 16 in the fourth octet. 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, and so on. The host is in the 1604 subnet. See Chapter 8 for more information. 16. B. To test the local stack on your host, ping the loopback interface of 127.0.0.1. See Chapter 8 for more information. 17. C. The Data Link layer is responsible for encapsulating IP packets into frames and for providing logical network addresses. See Chapter 9 for more information. 18. A. Packets specifically have to be carried to a router in order to be routed through a network. See Chapter 9 for more information. 19. A, D. RIP and RIPv2 are Distance Vector routing protocols. OSPF and IS-IS are Link State. See Chapter 10 for more information. 20. D. EIGRP is called a hybrid routing protocol because it uses the characteristics of both Distance Vector and Link State routing protocols. However, EIGRP can only be run on Cisco routers and is not vendor-neutral. See Chapter 10 for more information. 21. C. Virtual LANs break up broadcast domains in Layer 2 switched internetworks. See Chapter 11 for more information. 22. C. The Spanning Tree Protocol (STP) was designed to stop Layer 2 loops. All enterprise model switches have STP by default. See Chapter 11 for more information. 23. B. Part of the 802.11n wireless standard, MIMO sends multiple frames by several antennae over several paths; they are then recombined by another set of antennae to optimize throughput and multipath resistance. This is called spatial multiplexing. See Chapter 12 for more information. 24. B, C. At a minimum, you need to change the default SSID value on each AP and configure new usernames and passwords on the AP. See Chapter 12 for more information. 25. A. IPSec works at the Network layer of the OSI model (Layer 3) and secures all applications that operate above it (Layer 4 and above). Additionally, because it was designed by the IETF and designed to work with IPv4 and IPv6, it has broad industry support and is quickly becoming the standard for VPNs on the Internet. See Chapter 13 for more information. 26. A. RADIUS combines user authentication and authorization into one profile. See Chapter 13 for more information. 27. A. Social engineering or phishing refers to the act of attempting to illegally obtain sensitive information by pretending to be a credible source. Phishing usually takes one of two forms: an email or a phone call. See Chapter 14 for more information.
27477flast.indd 57
2/27/09 6:27:34 AM
lviii
Answers to Assessment Test
28. A, B, C. A denial of service (DoS) attack prevents users from accessing the system. All of the above are all possible denial of service attacks except Virus FloodSyn. See Chapter 14 for more information. 29. D. Changing network configurations, terminating sessions, and deceiving the attacker are all actions that can be taken by an Intrusion Prevention System (IPS) device. These are all proactive approaches to security. See Chapter 15 for more information. 30. B. Firewalls help provide perimeter network security by allowing or denying connections and types of traffic in or out of the network. See Chapter 15 for more information. 31. A, B, C. Routing Information Protocol (RIP) is not a WAN protocol, but a routing protocol used in local area connections. See Chapter 16 for more information. 32. C. The Committed Information Rate (CIR) is the rate, in bits per second, at which the frame-relay switch agrees to transfer data. See Chapter 16 for more information. 33. A, D. The arp utility’s –a and –g switches perform the same function. They both show the current ARP cache. See Chapter 17 for more information. 34. B. To purge and reload the remote NetBIOS name cache, you must use nbtstat –R. Remember that the R must be uppercase, and it will not work correctly without the hyphen before it. See Chapter 17 for more information. 35. B. A wire crimper or crimper is used to attach ends onto different types of network cables. See Chapter 18 for more information. 36. A, B, D. Due to sensitivity to any variation and impedance to cabling, answers A, B and D are all reasons you’d use a TDR. See Chapter 18 for more information. 37. A, B, C. Because most of today’s networks still consist of large amounts of copper cable, they can continue to suffer from the physical issues (the options are not a complete list) that have plagued all networks since the very beginning of networking. See Chapter 19 for more information. 38. C. Creating an action plan and a solution, and identifying the potential effects, would be the next step according to the standard troubleshooting model. See Chapter 19 for more information. 39. A. Traffic shaping, also known as packet shaping, is another form of bandwidth optimization. See Chapter 20 for more information. 40. A. Load balancing refers to a technique used to spread work out to multiple computers, network links, or other devices. You can load-balance work on servers by clustering servers so that multiple machines all provide the same service. See Chapter 20 for more information.
27477flast.indd 58
2/27/09 6:27:34 AM
Chapter
1
Introduction to Networks The Following CompTIA Network+ Exam Objectives Are Covered in This Chapter: ÛÛ 2.3 Identify common physical network topologies NN
Star
NN
Mesh
NN
Bus
NN
Ring
NN
Point to point
NN
Point to multipoint
NN
Hybrid
ÛÛ 2.7 Explain common logical network topologies and their characteristics
27477c01.indd 1
NN
Peer to peer
NN
Client/server
NN
VPN
NN
VLAN
2/26/09 6:59:56 AM
You’d have to work pretty hard these days to find someone who would argue that our computers have become invaluable to us personally and professionally. Our society has become highly dependent on these resources and on sharing them with each other. The ability to communicate with those we need to—whether they’re in the same building or in some far-away land— completely hinges on our capacity to create and maintain solid, dependable networks. And those vitally important networks come in all shapes and sizes—ranging from small and simple, to humongous and super complicated. But whatever their flavor, they all need to be maintained properly; and in order to do that well, you’ve got to understand networking basics. The various types of devices and technologies that are used to create networks, as well as how they work together, is what this book is about, and I’ll go through this critical information one step at a time with you. Understanding all of this will not only equip you with a rock-solid base to build on as you grow in your IT knowledge and career, but will also arm you with what you’ll need to ace the Network+ certification exam! There are two other topics under Objective 2.7—virtual private networks (VPNs) and virtual local area networks (VLANSs)—that I’ll only be introducing to you in this chapter. So make a little note to yourself that I’m going to cover VPNs thoroughly later on in Chapter 13, “Authentication and Access Control,” and I’ll tell you all about VLANs in Chapter 11, “Switching and Virtual LANs.” To find up-to-the-minute updates for this chapter, please see www.lammle.com or www.sybex.com/go/comptianetwork+studyguide.
First Things First: What’s a Network? The dictionary defines the word network as “a group or system of interconnected people or things.” Similarly, in the computer world, the term network means two or more connected computers that can share resources like data and applications, office machines, an Internet connection, or some combination of these, as shown in Figure 1.1. Okay—Figure 1.1 shows a really basic network made up of only two host computers connected together; they share resources like files and even a printer hooked up to one of the hosts. These two hosts “talk” to each other using a computer language called binary code, which consists of lots of 1s and 0s in a specific order that describes exactly what they want to “say.”
27477c01.indd 2
2/26/09 6:59:58 AM
First Things First: What’s a Network?
3
F i g u r e 1 .1 A basic network
Host
Printer
Host
Next, I’m going to tell you about local area networks (LANs), how they work, and even how we can connect LANs together. Then, later in this chapter, I’ll describe how to connect remote LANs together through something known as a wide area network (WAN).
The Local Area Network (LAN) Just as the name implies, a local area network (LAN) is usually restricted to spanning a particular geographic location like an office building, a single department within a corporate office, or even a home office. Back in the day, you couldn’t put more than 30 workstations on a LAN, and you had to cope with strict limitations on how far those machines could actually be from each other. Because of technological advances, all that’s changed now, and we’re not nearly as restricted in regard to both a LAN’s size and the distance a LAN can span. Even so, it’s still best to split a big LAN into smaller logical zones known as workgroups to make administration easier. In a typical business environment, it’s a good idea to arrange your LAN’s workgroups along department divisions; for instance, you would create a workgroup for Accounting, another one for Sales, and maybe another for Marketing—you get the idea. Figure 1.2, which shows two separate LANS, each as its own workgroup. F i g u r e 1 . 2 A small LAN Two separate LANs (workgroups) Servers
Servers
Switch
Marketing
Hub
Sales
Printer
27477c01.indd 3
2/26/09 7:00:01 AM
4
Chapter 1 Introduction to Networks n
First, don’t stress about the devices labeled hub and switch—these are just connectivity devices that allow hosts to physically connect to resources on a LAN. Trust me; I’ll describe them to you in much more detail later in Chapter 5, “Networking Devices.” Anyway, back to the figure… Notice that there’s a Marketing workgroup and a Sales workgroup. These are LANs in their most basic form. Any device that connects to the Marketing LAN can access the resources of the Marketing LAN—in this case, the servers and printer. If you want to access resources from the Sales LAN, then you must connect directly to the Sales LAN. There are two problems with this: 1. You must be physically connected to each LAN to get the resources from that specific
workgroup’s LAN. 2. You can’t get from one LAN to the other LAN and use its server data and printing
resources remotely. This is a typical network issue that’s easily resolved by using a cool device called a router to connect the two LANs together, as shown in Figure 1.3. F i g u r e 1 . 3 A router connects LANs together. Servers
Servers
Router
Switch
Marketing
Hub
Sales
Nice—problem solved! Even though you can use routers for more than just connecting LANs together, the router shown in Figure 1.3 is a great solution because the host computers from the Sales LAN can get to the resources (server data and printers) of the Marketing LAN, and vice versa. Now, you might be thinking that we really don’t need the router—that we could just physically connect the two workgroups together with a type of cable that would allow the Marketing and Sales workgroups to hook up somehow. True—we could do that, but if we did, then we would have only one big, cumbersome workgroup instead of separate workgroups for Marketing and Sales. And that kind of arrangement isn’t practical for today’s networks. This is because with smaller, individual, yet connected groups, the users on each LAN enjoy much faster response times when accessing resources; and administrative tasks are a
27477c01.indd 4
2/26/09 7:00:03 AM
Common Network Components
5
lot easier, too. Larger workgroups run more slowly because in them, a legion of hosts are all trying to get to the same resources simultaneously. So the router shown in Figure 1.3, which separates the workgroups while still allowing access between them, is a really great solution after all. Like I said—don’t worry about the network connectivity devices I’ve mentioned so far in this chapter, like hubs, switches, and routers. I promise to cover them all in detail in Chapter 5. At this stage, I really want you to focus on understanding the concepts that I’m presenting. For now, all you need to know is that hubs and switches are devices that connect other devices together, and routers connect networks together.
So now, let me define those other terms I’ve used so far: workstations, servers, and hosts.
Common Network Components There are a lot of different machines, devices, and media that make up our networks. Right now, I’m going to tell you about three of the most common: NÛ
Workstations
NÛ
Servers
NÛ
Hosts
Workstations Workstations are often seriously powerful computers that run more than one central processing unit (CPU) and whose resources are available to other users on the network to access when needed. Don’t confuse workstations with client machines, which can be workstations but aren’t always. A client machine is any device on the network that can ask for access to resources from a workstation—for instance, a printer. The terms workstation and host are used interchangeably because computers have become more and more powerful and the terms have become somewhat fuzzy. The term host is used to describe pretty much anything that takes an IP address.
Servers Servers are also powerful computers. They get their name because they truly are “at the service” of the network and run specialized software for the network’s maintenance and control known as the network operating system.
27477c01.indd 5
2/26/09 7:00:04 AM
6
Chapter 1
N
Introduction to Networks
In a good design that optimizes the network’s performance, servers are highly specialized and are there to handle one important labor-intensive job. This is not to say that a single server can’t do many jobs; but more often than not, you’ll get better performance if you dedicate a server to a single task. Here’s a list of common dedicated servers: File server
Stores and dispenses files.
Mail server
The network’s post office, which handles email functions.
Print server
Manages all printers on the network.
Web server Manages web-based activities by running Hypertext Transfer Protocol (HTTP) for storing web content and accessing web pages. Fax server
The “memo maker” that sends and receives paperless faxes over the network.
Application server
Manages network applications.
Telephony server Handles the call center and call routing and can be thought of as a sophisticated network answering machine. Remote-access server Provides remote users with access to the network through modems, an IP connection, or wirelessly. Proxy server
Handles tasks in the place of other machines on the network. See how the name of each kind of server indicates what it actually does— how it serves the network? This is an excellent way to remember them.
Okay, like I said, servers are usually dedicated to doing one specific important thing within the network. But not always—sometimes they have more than one job. But whether servers are designated for one job or are network multitaskers, they all maintain the network’s data integrity by backing up the network’s software and hardware. And no matter what, they all serve a number of client machines. Back in Figure 1.2, I showed you an example of two really simple LAN networks. I want to make sure you know that servers must have considerably superior hard-drive space—a lot more than a simple workstation’s capacity—because they serve many client machines and provide any resources they require. Because they’re so important, you should always put your servers in a very secure area. My company’s servers are in a locked server room because not only are they really pricey workhorses, but they also store huge amounts of important and sensitive company data; so, they need to be kept safe from any unauthorized access. In Figure 1.4, you can see a network populated with both workstations and servers. You also see that the hosts can access the servers across the network—pretty much the general idea of having a network. You probably noticed that there are more workstations here than servers, right? Think of why that is… If you answered that it’s because one server can provide resources to what can sometimes be a huge number of individual users at the same time, but workstations don’t, you’ve got it!
27477c01.indd 6
2/26/09 7:00:04 AM
Common Network Components
7
F i g u r e 1 . 4 A network populated with servers and workstations Secure Server Room Servers
Hub
Switch
Sales
Marketing
Host
Hosts It can be kind of confusing because when people refer to hosts, they really can be referring to almost any type of networking devices—including workstations and servers. But if you dig a bit deeper, you’ll find that usually this term comes up when people are talking about resources and jobs that have to do with Transmission Control Protocol/Internet Protocol (TCP/IP). The scope of possible machines and devices is so broad because, in TCP/IP-speak, a host means any network device with an IP address. Yes, you’ll hear IT professionals throw this term around pretty loosely; but for the Network+ exam, stick to the definition being network devices, including workstations and servers, with IP addresses. Here’s a bit of background: The name host harkens back to the Jurassic period of networking when those dinosaurs known as mainframes were the only intelligent devices to roam the network. These were called hosts whether they had TCP/IP functionality or not. In that bygone age, everything else in the network-scape was referred to as dumb terminals, because only mainframes—hosts—were given IP addresses. Another fossilized term from way back then is the use of gateways when talking about any Layer 3 machines like routers. We still use these terms today, but they’ve evolved a bit to refer to the many intelligent devices populating our present-day networks, each of which has an IP address. This is exactly the reason why you hear host used so broadly. Now, let’s dive a tad deeper into the workgroup subject I started when I described a basic LAN to you in the beginning of this chapter.
27477c01.indd 7
2/26/09 7:00:06 AM
8
Chapter 1
N
Introduction to Networks
Virtual LANs (VLANs) It’s time to stop using the word workgroups when referring to the hosts and resources on a LAN and start using the words virtual LANs (VLANs), which are pretty much the same thing with a new name. A VLAN is really no different than a LAN or LAN workgroup, except that it’s not physically built to look anything like the individual LANs shown in Figure 1.2. Instead, it’s built logically. They both work exactly the same way—the hosts, server, and printers are configured exactly the same—and it’s even possible that the router will be configured the same way, too. So where does the word virtual fit in here, and how is this different than the earlier definition of a workgroup? Well, back in Figure 1.2, your network resources were all physically connected together locally. You had to physically walk to the Sales department to get to its resources like servers. The router in Figure 1.3 fixed this problem because it made it so that you could be physically on the Marketing LAN and get to the Sales servers via the router. I’ve got to tell you—doing this is not a solution I’d recommend. “What!? But Todd, you just said that’s why we put the router in Figure 1.3—so one LAN can talk to the other one!” Yes, true, we want to make our workgroups (VLANs) small, and the router helped us accomplish this. But in today’s networks, we don’t want to send data through a router unless we absolutely have to. We want resources like servers and printers local to the hosts—meaning right there on the same LAN. This isn’t always possible in a network designed as shown in Figures 1.2 and 1.3 because people move around so much in today’s possibly worldwide networks. So it’s VLANs to the rescue! Okay, because this can get confusing fast, so let me clarify what I’ve said so far: In a LAN, your host is connected to a network, which is the workgroup where it resides—for example, in Sales. In a VLAN, your host still resides in a network (or VLAN), but where you’re physically connected within your network is no longer relevant. You can be hanging out on the same floor where the Marketing workgroup people work, but you can still access the Sales resources as if you were physically on the Sales LAN without going through a router to get there. This makes network access to the resources you need faster for you; plus, it can provide some nice security benefits because, by default, your host cannot communicate outside the VLAN. So even though you’re connected to the Marketing floor, you can still only communicate on the Sales VLAN. How does this work? It comes down to the particular port you’re plugged into (physically connected to). That port is configured for the LAN workgroup you’re a member of—if that’s the Sales VLAN, you’re a Sales local to the Sales servers, even if you’re not actually in the Sales department. This type of network is illustrated Figure 1.5, which shows three VLANs. This type of port configuration is called a VLAN membership, and it’s got to be configured by an administrator on a network device called a switch. VLANs are seriously important in today’s networks, and like I said, I’ll cover them thoroughly in Chapter 11. For now, remember that VLANs are the new workgroups, and they define the same thing: a group of users sharing network resources. The difference is that VLANs allow you to be anywhere on the physical network and still be local to the specific network resources you need—sweet! VLANs help isolate network traffic
27477c01.indd 8
2/26/09 7:00:06 AM
Common Network Components
F I g u r e 1. 5
9
A sample VLAN network
3rd floor
2nd floor
1st floor
SALES
HR
ENG
Wide Area Network (WAN) There are legions of people who, if asked to define a wide area network (WAN), couldn’t do it. Yet most of them use the Big Dog of all WANs—the Internet—every day! With that in mind, you can imagine that WAN networks are what we use to span large geographic areas and truly go the distance. Like the Internet, WANs usually employ both routers and public links, so that’s generally the criteria used to define them. WANs are so important that I have dedicated an entire chapter to them: Chapter 16, “Wide Area Networks.”
Here’s a list of some of the important ways that WANs are different from LANs: NÛ
They usually need a router port or ports.
NÛ
They span larger geographic areas and/or can link disparate locations.
NÛ
They’re usually slower.
NÛ
NÛ
We can choose when and how long we connect to a WAN. A LAN is all or nothing— our workstation is either connected permanently to it or not at all, although most of us have dedicated WAN links now. WANs can utilize either private or public data transport media like phone lines.
We get the word Internet from the term internetwork. An internetwork is a type of WAN that connects of a bunch of networks, or intranets. In an internetwork, hosts still use hardware addresses to communicate between each host on the LAN. However, in an internetwork, hosts use logical addresses (IP addresses) to communicate with hosts on a different LAN (other side of the router).
27477c01.indd 9
2/26/09 7:00:08 AM
10
Chapter 1 Introduction to Networks n
And routers are the devices that make this possible. Each connection into a router is a different logical network (broadcast domain). Figure 1.6 demonstrates how a router is employed to create an internetwork and enable our LANs (or VLANs) to access WAN resources. F i g u r e 1 . 6 An internetwork Hub
Router
Hub
The Internet is a prime example of what’s known as a distributed WAN—an internetwork that’s made up of a lot of interconnected computers located in a lot of different places. There’s another kind of WAN, referred to as centralized, that’s composed of a main, centrally located computer or location that remote computers and devices can connect to. A good example is remote offices that connect to a main corporate office. Okay, so now we have our LANs from corporate headquarters connecting with a WAN to our remote offices. This is all good, but what if we want the hosts at the remote site to be able to access secure servers at the corporate office? Well, if you like to live dangerously, you could just open your corporate network up to the Internet so the whole world could easily get in there to your secure servers. But because that’s a really bad idea, you can use virtual private networks (VPNs) instead.
Virtual Private Networks (VPNs) No worries—VPNs aren’t really that hard to understand. A VPN fits somewhere between a LAN and WAN and many times may seem just like a WAN link because your computer, on one LAN, connects to a different, remote LAN, and uses its resources remotely. The key difference with VPNs is a big one—security! So the definition of connecting a LAN (or VLAN) to a WAN may sound the same, but a VPN is much more. Here’s the difference: A typical WAN connects two or more remote LANs together using someone else’s network like, say, your Internet service provider (ISP), using a router. Your local host and router see these networks as remote networks and not as local networks or local resources. This would be a WAN in its most general definition. A VPN actually makes your local host part of the remote network by using the WAN link that connects you to the remote LAN. The VPN will make your host appear as though it’s actually local on the remote network! This means that we now have access to the remote LANs resources, and that access is very secure. This may sound a lot like the VLAN definition I just used, and really, the concept is the same: “Take my host and make it appear local to the remote resources.” Just remember that for networks that are physically local, using VLANs is a good solution; but for networks that are physically remote—those than span a WAN—we’d opt for using VPNs instead.
27477c01.indd 10
2/26/09 7:00:09 AM
Common Network Components
11
For a simple VPN example, let’s use my home office in Boulder, Colorado. Here, I have my personal host, but I want it to appear as if it’s on a LAN in my corporate office in Dallas, Texas, so I can get to my remote servers. VPN is the solution I use for this because I need the security it provides. Figure 1.7 shows this example of my host using a VPN connection from Boulder to Dallas, which allows me to access the remote network services and servers as if my host is right there on the same VLAN as my servers. F i g u r e 1 . 7 Example of using a VPN network Secure VLAN at Dallas Corporate Office Servers
Internet
VPN
My host in Colorado
Now my host appears local to the servers
Secure Server Room
Why is this so important? If you answered, “because my servers in Dallas are secure, and only the hosts on the same VLAN are allowed to connect to them and use the resources of these servers,” you nailed it! A VPN allows me to connect to these resources by locally attaching to the VLAN through a VPN across the WAN. The other option is to open up my network and servers to everyone on the Internet or another WAN service, in which case my security goes “poof!” So you can see that it’s a very good thing I have a VPN.
Network Architecture: Peer-to-Peer or Client/Server? So, we’ve developed networking as a way to share resources and information, and how that’s achieved directly maps to the particular architecture of the network operating system software. There are two main network types you need to know about: peer-to-peer and client/server. And by the way, it’s really tough to tell the difference just by looking at a diagram or even by checking out live video of the network humming along, but the difference between peer-to-peer and client/server architectures are major. They’re not just physical; they’re logical differences. You’ll see what I mean in a bit.
Peer-to-Peer Networks Computers connected together in peer-to-peer networks do not have any central, or special authority—they’re all peers, meaning that when it comes to authority, they’re all equals. This
27477c01.indd 11
2/26/09 7:00:11 AM
12
Chapter 1 Introduction to Networks n
means it’s up to the computer that has the resource being requested to perform a security check for access rights to its resources. It also means that the computers existing in a peer-to-peer network can be client machines that access resources and server machines that provide them to other computers. This works really well if there’s not a huge number of users on the network, each user handles backing things up locally, and your network doesn’t require a lot of security. If your network is running Windows, Mac, or Unix in a local LAN workgroup, you have a peer-to-peer network. Figure 1.8 gives you a snapshot of a typical peer-to-peer network. Peer-to-peer networks present some challenges. For example, backing up company data becomes an iffy proposition. F i g u r e 1 . 8 A peer-to-peer network
Since it should be clear by now that peer-to-peer networks are all sunshine,—backing up all that super-important data is not only vital, it can be really challenging. What if you forget where you put a badly needed file (haven’t we all done that)? And then there’s that security issue to tangle with. Because security is not centrally governed, each and every user has to remember and maintain a list of users and passwords on each and every machine. Worse, some of those all-important passwords for the same users change on different machines— even for accessing different resources. Yikes!
Client/Server Networks Client/server networks are pretty much the polar opposite of peer-to-peer networks because in them, a single server is specified that uses a network operating system for managing the whole network. So a client machine’s request for a resource goes to the main server, which
27477c01.indd 12
2/26/09 7:00:12 AM
Physical Network Topologies
13
responds by handling security and directing the client to the resource it wants, instead of the request going directly to the machine with the desired resource. This arrangement definitely has its benefits. First, because the network is much better organized and doesn’t depend on users remembering where needed resources are, it’s a whole lot easier to find the files you need because everything is stored in one spot on that special server. Your security also gets a lot tighter because all usernames and passwords are on that server (which, by the way, isn’t ever used as a workstation). You even gain scalability—client/ server networks can have legions of workstations on them. And even with all those demands, their performance is actually optimized. Check out Figure 1.9. Looking at it, you see a client/server network with a server that has a database of access rights, user accounts, and passwords. F i g u r e 1 . 9 A client/server network
Many of today’s networks are a healthy (we hope) combination of the peer-to-peer and client/server architectures with carefully specified servers that permit the simultaneous sharing of resources from devices running workstation operating systems. Even though the supporting machines can’t handle as many inbound connections at a time, they still run the server service reasonably well. If this type of mixed environment is designed well, most networks benefit greatly by having the capacity to take advantage of the positive aspects of both worlds.
Physical Network Topologies Just as a topographical map shows the shape of the terrain, the physical topology of a network is also a type of map. It defines the specific characteristics of a network, such as where all the workstations and other devices are located, and the precise arrangement of all the physical media like cables. On the other hand, logical topologies, which were covered in the previous section, delineate exactly how data moves through the network. And though these two topologies are usually a lot alike, a particular network can have physical and logical topologies that are very different. But basically, what you want to remember is that a network’s physical topology essentially gives you the lay of the land, and the logical topology shows how data navigates through that layout.
27477c01.indd 13
2/26/09 7:00:13 AM
14
Chapter 1 Introduction to Networks n
Here is a list of the various topologies you’re most likely to run in to these days: NN
Bus
NN
Star
NN
Ring
NN
Mesh
NN
Point-to-point
NN
Point-to-multipoint
NN
Hybrid
Bus Topology This type of topology is the most basic one of the bunch, and it really does sort of resemble a bus. (Well, okay—actually, it looks more like a bus that’s been in a pretty nasty wreck!) Anyway, the bus topology consists of two distinct and terminated ends, with each of its computers connecting to one unbroken cable running its entire length. Back in the day, we used to attach computers to that main cable with wire taps, but this didn’t work all that well so we began using drop cables in their place (unless you’re dealing with 10Base-2 Ethernet, in which case you would slip a “T” into the main cable anywhere you wanted to connect a device to it, instead of using drop cables). Figure 1.10 depicts what a typical bus network’s physical topology looks like. F i g u r e 1 .1 0 A typical bus network’s physical topology
Even though all the computers on this kind of network see all the data flowing through the cable, only the one computer that the data is specifically addressed to actually gets it. Some of the benefits in favor of using a bus topology are that it’s easy to install and it’s not very expensive, in part because it doesn’t require as much cable as the other types of physical topologies. But it also has some drawbacks: For instance, it’s hard to troubleshoot,
27477c01.indd 14
2/26/09 7:00:14 AM
Physical Network Topologies
15
change, or move, and it really doesn’t offer much in the way of fault tolerance because everything is connected to that single cable. By the way, fault tolerance is the capability of a computer or a network system to respond to a condition automatically, often resolving it, which reduces the impact on the system. If fault-tolerance measures have been implemented correctly on a network, it’s highly unlikely that any of that network’s users will know that a problem even existed.
Star Topology A star topology’s computers are connected to a central point with their own individual cables or wireless connections. You’ll often find that central spot inhabited by a device like a hub, a switch, or an access point. Star topology offers a lot of advantages over bus topology, making it more widely used even though it obviously requires more physical media. One of its best features is that because each computer or network segment is connected to the central device individually, if the cable fails, it brings down only that particular machine or network segment. That’s truly a great benefit because it makes the network much more fault tolerant as well as a lot easier to troubleshoot. Another great thing about a star topology is that it’s a lot more scalable—all you have to do if you want to add to it is run a new cable and connect to the machine at the core of the star. In Figure 1.11, you’ll find a great example of a typical star topology. F I g u r e 1 .11
Typical star topology with a hub
Hub
Okay, although it is called star topology, it really looks a lot more like the imaginary pictures people draw of the sun. (Yes, the sun is a star—but it definitely doesn’t look like how we usually depict it, does it?) You could also get away with saying it looks like a bike wheel with spokes connecting to the hub in the middle of the wheel and extending outward to connect to the rim. And just like that bike wheel, it’s the hub device at the center of a star-topology network that can give you the most grief if something goes wrong with it. If that hub in the middle of it all happens to fail, down comes the whole network, so it’s a very good thing hubs don’t fail often!
27477c01.indd 15
2/26/09 7:00:16 AM
16
Chapter 1 Introduction to Networks n
Just as it is with pretty much everything, a star topology has its pros and cons. But the good news far outweighs the bad, which is why people are choosing to go with a star topology more and more. Here’s a list of benefits gained by opting for a star topology: NN
New stations can be added easily and quickly.
NN
A single cable failure won’t bring down the entire network.
NN
It is relatively easy to troubleshoot.
The disadvantages of a star topology include the following: NN
NN
The total installation cost can be higher because of the larger number of cables (but prices are constantly becoming more competitive). It has a single point of failure (the hub or other central device).
There are two more sophisticated implementations of star topology. The first is called point-to-point link, where you have not only the device in the center of the spoke acting as a hub, but also the one on the other end. This is still a star-wired topology, but as I’m sure you can imagine, it gives you a huge amount of scalability! Another refined version is the wireless flavor; but to understand this version well, you’ve really got to have a solid grasp of the capabilities and features of all the devices populating the wireless star topology. No worries, though—I’ll be covering wireless access points later on in Chapter 12, “Wireless Networking.” For now, it’s good enough for you to know that access points are pretty much just wireless hubs or switches that behave like their wired counterparts. Basically, they set up by point-to-point connections to endpoints and other wireless access points.
Ring Topology In this type of topology, you’ll find that each computer is directly connected to other computers within the same network. Looking at Figure 1.12, you can see that the network’s data flows from computer to computer back to the source, with the network’s primary cable forming a ring. The problem is, the ring topology has a lot in common with the bus topology because if you want to add to the network, you have no choice but to break the cable ring—something that is probably going to bring down the entire network. F i g u r e 1 .1 2 A typical ring topology
27477c01.indd 16
2/26/09 7:00:17 AM
Physical Network Topologies
17
This is one big reason why this topology isn’t all that popular—you just won’t run into it a lot as I did in the 1980s and early 1990s. A few more reasons include the fact that it’s pricey because you need several cables to connect each computer; it’s really hard to reconfigure; and as you’ve probably guessed, it’s not fault tolerant. However, with all that being said, if you work at an ISP, you may find a physical ring topology in use for a technology called SONET or possibly some other WAN technology. You just won’t find any LANs in physical rings anymore.
Mesh Topology In this type of topology, you’ll find that there’s a path from every machine to every other one in the network. That’s a lot of connections—in fact, the mesh topology wins the prize for “most physical connections per device”! You won’t find it used in LANs very often, if ever, these days, but you will find a modified version of it known as hybrid mesh used in a restrained manner on WANs including the Internet. Often, hybrid mesh topology networks will have quite a few connections between certain places to create redundancy (backup). And other types of topologies can sometimes be found in the mix too, which is also why it’s dubbed hybrid. At any rate, it isn’t a full-on full mesh topology if there isn’t a connection between all devices in the network. But it’s still respectably complicated—Figure 1.13 shows just how much only four connections can complicate things. F I g u r e 1 .1 3
A typical mesh topology
As shown in the figure, things just get more and more complex as both the wiring and the connections multiply. For each n locations or hosts, you end up with n(n–1)/2 connections. This means that in a network consisting of only four computers, you have 4(4–1)/2, or 6 connections. And if that little network grows to, say, a population of 10 computers, you’ll have a whopping 45 connections to cope with—yikes! That’s a huge amount of overhead, so only small networks can really use this topology and manage it well. On the bright side, you get a very respectable level of fault tolerance. But it is nice that we don’t use these in corporate LANs any longer, because they were very complicated to manage. A Full Mesh physical topology has the absolute least likelihood of having a collision.
27477c01.indd 17
2/26/09 7:00:18 AM
18
Chapter 1 Introduction to Networks n
This is the reason you will usually find the hybrid version in today’s WANs. In fact, the mesh topology is actually pretty rare these days. It’s mainly used because of the robust fault tolerance it offers—because you’ve got a multitude of connections, if one goes on the blink, computers and other network devices can simply switch to one of the many redundant connections that are up and running. But as you can imagine, all that cabling in the mesh topology requires makes it really costly. Plus, you can make your network management much less insane by using what’s known as a partial mesh topology solution instead, so why not go that way? You may lose a little fault tolerance; but if you go the partial-mesh route, you still get to use the same technology between all the network’s devices. Just remember that with partial mesh, not all devices will be interconnected, so it’s very important to choose wisely the ones that are.
Point-to-Point Topology As its name implies, in a point-to-point topology you have a direct connection between two routers, giving you one communication path. The routers in a point-to-point topology can either be linked by a serial cable, making it a physical network, or be far apart and only connected by a circuit within a frame relay network, making it a logical network. Figure 1.14 gives you a prime specimen of a T1, or WAN point-to-point connection. F i g u r e 1 .1 4 Three point-to-point connections Serial connection, like a T1 between routers
Direct Ethernet or wireless
Cable direct to hub or switch
Hub
What you see here is a lightning bolt and a couple of round things with a bunch of arrows projecting from them, right? Well, the two round things radiating arrows represent our network’s two routers, and that lightning bolt represents a WAN link. (These symbols are industry standard and I’ll be using them throughout this book, so it would a good idea to get used to them.) Part two of the diagram shows two computers connected by a cable—a point-to-point link. By the way, this should remind you of something we just went over… remember our talk about peer-to-peer networks? Good! I hope you also happen to remember that a big
27477c01.indd 18
2/26/09 7:00:19 AM
Physical Network Topologies
19
drawback related to peer-to-peer network sharing is that it is not very scalable. With this in mind, you probably won’t be all that surprised that even if both machines have a wireless point-to-point connection, the network won’t be very scalable. You’ll usually find point-to-point networks within many of today’s WANs; and as you can see in part three of Figure 1.14, a link from a computer to a hub or switch is also a valid pointto-point connection. A common version of this setup consists of a direct wireless link between two wireless bridges that’s used to connect computers in two different buildings together.
Point-to-Multipoint Topology Again as the name suggests, a point-to-multipoint topology consists of a succession of connections between an interface on one router to multiple destination routers—one point of connection to multiple points of connection. Each of the routers and every one of their interfaces involved in the point-to-multipoint connection are part of the same network. Figure 1.15 shows a WAN to best demonstrate a point-to-multipoint network that depicts a single corporate router connecting to multiple branches. F i g u r e 1 .1 5 A point-to-multipoint network, Example 1 Branch offices
Corporate office
Figure 1.16 shows another prime example of a point-to-multipoint network: a college or corporate campus. F i g u r e 1 .1 6 A point-to-multipoint network, Example 2
27477c01.indd 19
2/26/09 7:00:20 AM
20
Chapter 1 Introduction to Networks n
Hybrid Topology I know I talked about hybrid network topology back in the section about mesh topology, but I didn’t give you a picture of it in the form of a figure. I also want to point out that hybrid topology means just that—a combination of two or more types of physical or logical network topologies working together within the same network. Figure 1.17 depicts a simple hybrid network topology. Here you see a LAN switch or hub in a star topology configuration that connects to its hosts via bus topology: F i g u r e 1 .17 : A Simple Hybrid Network Hub
Physical Star, Logical Bus
They’re just cables, right? Wrong! Regardless of the type of network you build, you need to start thinking about quality at the bottom and work up. Think of it as if you were at an electronics store buying the cables for your sweet new home-theater system. You’ve already spent a bunch of time and money getting the right components to meet your needs. In fact, you’ve probably parted with a respectable chunk of change, so why would you stop there and connect all these great devices together with the cable equivalent of twine? No, you’re smarter than that. You know that picking out the exact cables that will maximize the sound and picture quality of your specific components can also protect them. It’s the same thing when you’re faced with selecting the physical media for a certain network (such as your new client-server network)—you just don’t want to cut corners here. Because it’s the backbone of the network, you absolutely don’t want to be faced with having to dig up everything that’s already been installed after the fact. Doing this costs a lot more than taking the time to wisely choose the right cables and spending the money it takes to get them in the first place. The network downtime alone can cost a company a bundle (pun intended). Another reason for choosing the network’s physical media correctly is that it’s going to be there for a good 5 to 10 years. This means two things: It better be solid quality, and it better be scalable, because that network is going to grow and change over the years.
27477c01.indd 20
2/26/09 7:00:22 AM
Topology Selection, Backbones, and Segments
21
Topology Selection, Backbones, and Segments Okay—now that you’re familiar with many different types of network topologies, you’re ready for some tips on selecting the right one for your particular network. You also need to know about backbones and segments—the very last part of this chapter.
Selecting the Right Topology As you now know, not only do you have a buffet of network topologies to choose from, but each one also has pros and cons to implementing it. But it really comes down to that wellknown adage, “ask the right questions.” First, how much cash do you have? And how much fault tolerance do you really need? Also, is this network likely to grow like a weed—is it probably going to need to be quickly and easily reconfigured often? In other words, how scalable does your network need to be? For instance, if your challenge is to design a nice, cost-effective solution that only involves a few computers in a room, getting a wireless access point and some wireless network cards is definitely your best way to go because you won’t need to pony up for a bunch of cabling and it’s super simple to set up. Alternately, if you’re faced with coming up with a solid design for a growing company’s already-large network, you’re probably good to go using a wired star topology because it will nicely allow for future changes. Remember, a star topology really shines when it comes to making additions to the network, moving things around, and making any kind of changes happen quickly, efficiently, and cost effectively. If, say, you’re hired to design a network for an ISP that needs to be up and running 99.9% of the time with no more than eight hours a year allowed downtime, well, you need Godzilla-strength fault tolerance. Do you remember which topology gives that up the best? (Hint—Internet.) Your primo solution is to go with either a hybrid or a partial-mesh topology. Remember that partial mesh leaves you with a subset of n(n–1)/2 connections to maintain—a number that could very well blow a big hole in your maintenance budget! Here’s a list of things to keep in mind when you’re faced with coming up with the right topology for the right network: NN
Cost
NN
Ease of installation
NN
Ease of maintenance
NN
Fault-tolerance requirement
The Network Backbone Today’s networks can get pretty complicated, so we’ve got have a standard way of communicating with each other intelligibly about exactly which part of the network we’re referring to. This is the reason we divide networks into different parts called backbones and segments.
27477c01.indd 21
2/26/09 7:00:22 AM
22
Chapter 1 Introduction to Networks n
Figure 1.18 illustrates a network and shows which part is the backbone and which parts are segments. F i g u r e 1 .1 8 Backbone and segments on a network Servers
Backbone Segments
Sales
Marketing
You can see that the network backbone is actually kind of like our own. It’s what all the networks segments and servers connect to and what gives the network its structure. As you can imagine, being such an important nerve center, the backbone must use some kind of seriously fast, robust technology—often that’s Gigabit Ethernet. And to optimize network performance (that is, speed and efficiency), it follows that you would want to connect all of the network’s servers and segments directly to the network’s backbone.
Network Segments When we refer to a segment, we can mean any small section of the network that may be connected to, but isn’t actually a piece of, the backbone. The network’s workstations connect to its servers, which in turn connect to the network backbone; you can see this by taking another look at Figure 1.18, which displays three segments.
Summary This chapter created a solid foundation for you to build your networking knowledge on as you go through this book. In it, you learned what, exactly, a network is, and you got an introduction to some of the components involved in building one: routers, switches, and hubs, as well as the jobs they do in a network.
27477c01.indd 22
2/26/09 7:00:24 AM
Exam Essentials
23
You also learned that having the components required to build a network isn’t all you need—understanding the various types of network connection methods like peer-to-peer and client/server is also vital. Also covered were key networking technologies like VLANs and VPNs—the latter being the secure way to connect remote networks. Further, you learned about the various types of logical and physical network topologies and the features and drawbacks of each. We wrapped up the chapter with a short discussion about network backbones and segments, and equipped you with the right questions to ask yourself to ensure that you come up with the right network topology for your networking needs.
Exam Essentials Know your network topologies. Know the names and descriptions of the topologies. Be aware of the difference between physical networks—what humans see—and logical networks—what the equipment “sees.” Know the advantages and disadvantages of the topologies. It is important to know what each topology brings to the table. Knowing the various characteristics of each topology comes in handy during troubleshooting. Understand the term virtual private network. You need to understand why and how to use a VPN between two sites.
27477c01.indd 23
2/26/09 7:00:24 AM
24
Chapter 1 Introduction to Networks n
Written Labs Provide the answers to the following questions: 1. What are the three primary LAN topologies? 2. What common WAN topology often results in multiple connections to a single site, leading to a high degree of fault tolerance? 3. What is the term for a device that shares its resources with other network devices? 4. What network model draws a clear distinction between devices that share their resources and devices that do not? 5. Which network topology or connection type can be implemented with only two endpoints? 6. What device is an example of an Ethernet technology implemented as a star topology? 7. What does VPN stand for? 8. What does VLAN stand for? 9. Will a computer that shares no resources most likely be connected to the backbone or to a segment? 10. Which LAN topology is characterized by all devices being daisy-chained together with the devices at each end being connected to only one other device?
(The answers to the Written Lab can be found following the answers to the Review Questions for this chapter.)
27477c01.indd 24
2/26/09 7:00:25 AM
Review Questions
25
Review Questions 1. You need a network that provides centralized authentication for your users. Which of the following logical topologies should you use? A. VLANs B. Peer-to-peer C. Client/Server D. Mesh 2. You need a topology that is scalable to use in your network. Which of the following will you install? A. Bus B. Ring C. Star D. Mesh 3. Which of the following physical topolgies has the least likelihood of having a collision? A. Bus B. Start C. Ring D. Mesh 4. In a physical-star topology, what happens when a workstation loses its physical connection to another device? A. The ring is broken, so no devices can communicate. B. Only that workstation loses its ability to communicate. C. That workstation and the device it’s connected to lose communication with the rest of the network. D. No devices can communicate because there are now two unterminated network segments. 5. You want to remotely log into an office computer using remote desktop in a secure manner. Which of the following should you use? A. VPN B. Tagged packets C. VLANs D. Telnet E. SSH
27477c01.indd 25
2/26/09 7:00:25 AM
26
Chapter 1 Introduction to Networks n
6. What is a logical grouping of network users and resources connected to administratively defined ports on a switch? A. Host B. Hub C. VLAN D. VTP 7. Which of the following is a concern when using peer-to-peer networks? A. Where to place the server B. Whose computer is least busy and can act as the server C. The security associated with such a network D. Having enough peers to support creating such a network 8. Which of the following is an example of when a point-to-multipoint network is called for? A. When a centralized office needs to communicate with many branch offices B. When a full mesh of WAN links is in place C. When multiple offices are daisy-chained to one another in a line D. When there are only two nodes in the network to be connected 9. Which of the following is an example of a LAN? A. Ten buildings interconnected by Ethernet connections over fiber-optic cabling B. Ten routers interconnected by frame-relay circuits C. Two routers interconnected with a T1 circuit D. A computer connected to another computer so they can share resources 10. Which of the following is a disadvantage of the star topology? A. When a port on the central concentrating device fails, the attached end device loses connectivity to the rest of the network. B. When the central concentrating device experiences a complete failure, all attached devices lose connectivity to the rest of the network. C. In a star topology, a more expensive type of host must be used when compared to the host used when implementing a physical bus. D. It is more difficult to add stations and troubleshoot than with other topologies. 11. What is a difference between a LAN and a WAN? A. WANs need a special type of router port. B. WANs cover larger geographical areas. C. WANs can utilize either private or public data transport. D. All of the above.
27477c01.indd 26
2/26/09 7:00:25 AM
Review Questions
27
12. What does the acronym VPN stand for? A. Virtual processor network B. Virtual passive network C. Virtual private network D. Variable-length private network 13. In what type of network are all computers considered equals and do they not share any central authority? A. Peer-to-peer B. Client-server C. Physical topology D. None of the above 14. What advantage does the client-server architecture have over peer-to-peer? A. Easier maintenance B. Greater organization C. Tighter security D. All of the above 15. An example of a hybrid network is which of the following? A. Ethernet B. Ring topology C. Bus topology D. Star topology 16. You have a network with multiple devices and need to have a smaller broadcast domain while working with a tight budget. Which of the following is the best solution? A. Use static IP addresses B. Add more hubs C. Implement more switches D. Create VLANs 17. Which type of topology has the greatest number of physical connections? A. Point-to-multipoint B. Star C. Point-to-point D. Mesh
27477c01.indd 27
2/26/09 7:00:26 AM
28
Chapter 1 Introduction to Networks n
18. What type of topology gives you a direct connection between two routers so that there is one communication path? A. Point-to-point B. Star C. Bus D. Straight 19. Which network topology is a combination of two or more types of physical or two or more types of logical topologies? A. Point-to-multipoint B. Hybrid C. Bus D. Star 20. When designing a network and deciding which type of network topology to use, which item(s) should be considered? (Select all that apply.) A. Cost B. Ease of installation C. Ease of maintenance D. Fault-tolerance requirements
27477c01.indd 28
2/26/09 7:00:26 AM
Answers to Review Questions
29
Answers to Review Questions 1. C. A client/server logical topology allows you to have a centralized database of users so that authentication is provided in one place. 2. C. To install a physical topology that provides ease of scalability use a star network. This is a hub or switch device, and this is the most common LAN networks today. 3. D. Only a Mesh physical topology has point-to-point connections to every device, so it has the least likelihood of ever having a collision. 4. B. In a star topology, each workstation connects to a hub, switch, or similar central device, but not to other workstations. The benefit is when connectivity to the central device is lost, the rest of the network lives on. 5. A. To connect to remote office securely, you need to use a Virtual Private Network (VPN). 6. C. VLANs allow you to be anywhere on the physical network and still be local to the network resources you need. 7. C. Security is easy to relax in a peer-to-peer environment. Because of the trouble it takes to standardize authentication, a piecemeal approach involving users’ personal preferences develops. There are no dedicated servers in a peer-to-peer network, and such a network can be created with as few as two computers. 8. A. When a central office, such as a headquarters, needs to communicate directly with its branch offices, but the branches do not require direct communication with one another, the point-to-multipoint model is applicable. The other scenarios tend to indicate the use of a point-to-point link between sites. 9. D. LANs generally have a geographic scope of a single building or smaller. They can range from simple (two hosts) to complex (with thousands of hosts). 10. B. The only disadvantage mentioned is the fact that there is a single point of failure in the network. However, this topology makes troubleshooting easier; if the entire network fails, you know where to look first. The central device also ensures that the loss of a single port and the addition of a new device to an available port do not disrupt the network for other stations attached to such a device. 11. D. A typical WAN connects two or more remote LANs together using someone else’s network (your ISP’s) using a router. Your local host and router see these networks as remote networks and not as local networks or local resources. 12. C. Virtual private networks (VPNs) allow for the creation of private networks across the Internet. A VPN makes your local host part of the remote network by using the WAN link that connects you to the remote LAN. 13. A. In a peer-to-peer network, all computers are considered equals. It is up to the computer that has the resource being requested to perform a security check for access rights to its resources.
27477c01.indd 29
2/26/09 7:00:26 AM
30
Chapter 1 Introduction to Networks n
14. D. In client-server networks, requests for resources go to a main server that responds by handling security and directing the client to the resource it wants, instead of the request going directly to the machine with the desired resource (as in peer-to-peer). 15. A. The best answer to this question is Ethernet, which uses a start physical topology with a logical bus technology. 16. D. If you have a switch, you can break up a layer-2 switched networks into smaller broadcast domains by creating VLAN’s. 17. D. In the mesh topology, there is a path from every machine to every other one in the network. A mesh topology is used mainly because of the robust fault tolerance it offers—if one connection goes on the blink, computers and other network devices can simply switch to one of the many redundant connections that are up and running. 18. A. As its name implies, in a point-to-point topology you have a direct connection between two routers, giving you one communication path. The routers in a point-to-point topology can either be linked by a serial cable, making it a physical network, or be far away and only connected by a circuit within a frame-relay network, making it a logical network. 19. B. A hybrid topology is a combination of two or more types of physical or logical network topologies working together within the same network. 20. A, B, C, D. Each topology has its own set of pros and cons regarding implementation, so asking the right questions and considering cost, ease of installation, maintenance, and fault tolerance are all important factors to be considered.
27477c01.indd 30
2/26/09 7:00:27 AM
Answers to Written Labs
31
Answers to Written Labs 1. Bus, ring, and star 2. Mesh 3. Server 4. Client/server 5. Point-to-point 6. Hub 7. Virtual private network 8. Virtual LAN 9. A segment 10. Bus
27477c01.indd 31
2/26/09 7:00:27 AM
27477c01.indd 32
2/26/09 7:00:27 AM
Chapter
2
The Open Systems Interconnection Specifications The Following CompTIA Network+ Exam Objectives Are Covered in This Chapter: ÛÛ 4.1 Explain the function of each layer of the OSI model
27477c02.indd 33
NN
Layer 1 – physical
NN
Layer 2 – data link
NN
Layer 3 – network
NN
Layer 4 – transport
NN
Layer 5 – session
NN
Layer 6 – presentation
NN
Layer 7 – application
2/26/09 12:47:35 PM
In this chapter, I’m going to dissect the Open Systems Interconnection (OSI) model and describe each part to you in detail, because you need a solid foundation on which to build your networking knowledge. The OSI model has seven hierarchical layers that were developed to enable different networks to communicate reliably between disparate systems. Because this book is centering upon all things Network+, it’s crucial for you to understand the OSI model as CompTIA sees it, so I’ll present each of its seven layers in that light. I’ll finish this chapter with an introduction to encapsulation. Encapsulation is the process of encoding data as it goes down the OSI stack. To find up-to-the-minute updates for this chapter, please see www.lammle.com or www.sybex.com/go/comptianetwork+studyguide.
Internetworking Models When networks first came into being, computers could usually communicate only with computers from the same manufacturer. For example, companies ran either a complete DECnet solution or an IBM solution—not both together. In the late 1970s, the Open Systems Interconnection (OSI) reference model was created by the International Organization for Standardization (ISO) to break through this barrier. The OSI model was meant to help vendors create interoperable network devices and software in the form of protocols so that different vendor networks could work with each other. Like world peace, it’ll probably never happen completely, but it’s still a great goal. The OSI model is the primary architectural model for networks. It describes how data and network information are communicated from an application on one computer through the network media to an application on another computer. The OSI reference model breaks this approach into layers. In the following section, I’ll explain the layered approach and how you can use this approach to help troubleshoot internetworks.
27477c02.indd 34
2/26/09 12:47:35 PM
Internetworking Models
35
The Layered Approach Basically, a reference model is a conceptual blueprint of how communications should take place. It addresses all the processes required for effective communication and divides these processes into logical groupings called layers. When a communication system is designed in this manner, it’s known as layered architecture. Think of it like this: Say you and some friends want to start a company. One of the first things you’ll do is sit down and think through what tasks must be done, who will do them, the order in which they will be done, and how they relate to each other. Ultimately, you might group these tasks into departments. Let’s say you decide to have an order-taking department, an inventory department, and a shipping department. Each of your departments has its own unique tasks, keeping its staff members busy and requiring them to focus only on their own duties. In this scenario, I’m using departments as a metaphor for the layers in a communication system. For things to run smoothly, the staff of each department has to trust and rely heavily on the others to do their jobs and competently handle their unique responsibilities. In your planning sessions, you’ll probably take notes, recording the entire process to facilitate later discussions about standards of operation that will serve as your business blueprint or reference model. Once your business is launched, your department heads, each armed with the part of the blueprint relating to their own department, will need to develop practical methods to implement their assigned tasks. These practical methods, or protocols, must be compiled into a standard-operating-procedures manual and followed closely. The procedures in your manual will have been included for different reasons and have varying degrees of importance and implementation. If you form a partnership or acquire another company, it will be imperative that its business protocols—its business blueprint—matches yours (or at least be compatible with it). Similarly, software developers can use a reference model to understand computer communication processes and see what types of functions need to be accomplished on any one layer. If they’re developing a protocol for a certain layer, all they need to concern themselves with is that specific layer’s functions, not those of any other layer. Another layer and protocol will handle the other functions. The technical term for this idea is binding. The communication processes that are related to each other are bound, or grouped together, at a particular layer.
Advantages of Reference Models The OSI model is hierarchical, and the same benefits and advantages can apply to any layered model. The primary purpose of all such models, especially the OSI model, is to allow different vendors’ networks to interoperate. Advantages of using the OSI layered model include, but are not limited to, the following: NN
NN
27477c02.indd 35
It divides the network communication process into smaller and simpler components, thus aiding component development, design, and troubleshooting. It allows multiple-vendor development through standardization of network components.
2/26/09 12:47:35 PM
36
NN
NN
NN
Chapter 2 The Open Systems Interconnection Specifications n
It encourages industry standardization by defining what functions occur at each layer of the model. It allows various types of network hardware and software to communicate. It prevents changes in one layer from affecting other layers, so it doesn’t hamper development and makes application programming easier.
The OSI Reference Model One of the greatest functions of the OSI specifications is to assist in data transfer between disparate hosts—meaning, for example, that they enable you to transfer data between a Unix host and a PC or a Mac. The OSI model isn’t a physical model, though. Rather, it’s a set of guidelines that application developers can use to create and implement applications that run on a network. It also provides a framework for creating and implementing networking standards, devices, and internetworking schemes. The OSI model has seven layers: NN
Application (Layer 7)
NN
Presentation (Layer 6)
NN
Session (Layer 5)
NN
Transport (Layer 4)
NN
Network (Layer 3)
NN
Data Link (Layer 2)
NN
Physical (Layer 1)
Figure 2.1 shows a summary of the functions defined at each layer of the OSI model. With this in hand, you’re now ready to explore each layer’s function in detail. F i g u r e 2 .1 Layer functions
27477c02.indd 36
2/26/09 12:47:36 PM
The OSI Reference Model
37
Some people like to use the mnemonic Please Do Not Throw Sausage Pizza Away to remember the seven layers (starting at Layer 1 and moving up to Layer 7).
The seven layers are divided into two groups. The top three layers define how the applications within the end stations will communicate with each other and with users. The bottom four layers define how data is transmitted end to end. Figure 2.2 shows the three upper layers and their functions, and Figure 2.3 shows the four lower layers and their functions. When you study Figure 2.2, understand that the user interfaces with the computer at the Application layer and also that the upper layers are responsible for applications communicating between hosts. Remember that none of the upper layers knows anything about networking or network addresses. That’s the responsibility of the four bottom layers. FIgure 2.2
The upper layers
Application
Presentation
Session
• Provides a user interface
• Presents data • Handles processing such as encryption • Keeps different applications’ • data separate
Transport Network Data Link Physical
Figure 2.3 illustrates that the four bottom layers define how data is transferred through physical media, switches, and routers. These bottom layers also determine how to rebuild a data stream from a transmitting host to a destination host’s application. Let’s start at the Application layer and work our way down the stack.
The Application Layer The Application layer of the OSI model marks the spot where users actually communicate to the computer. This layer comes into play only when it’s apparent that access to the network will be needed soon. Take the case of Internet Explorer (IE). You could uninstall every trace of networking components from a system, such as TCP/IP, the NIC card, and so on,
27477c02.indd 37
2/26/09 12:47:37 PM
38
Chapter 2
N
The Open Systems Interconnection Specifications
and you could still use IE to view a local HTML document—no problem. But things would definitely get messy if you tried to do something like view an HTML document that had to be retrieved using HTTP or nab a file with FTP or TFTP. That’s because IE responds to requests such as those by attempting to access the Application layer. And what’s happening is that the Application layer acts as an interface between the application program—which isn’t part of the layered structure—and the next layer down by providing ways for the application to send information down through the protocol stack. In other words, IE doesn’t reside within the Application layer—it interfaces with Application-layer protocols when it needs to deal with remote resources. FIgure 2.3
The lower layers
Transport
• Provides reliable or unreliable delivery • Performs error correction before retransmit
Network
• Provides logical addressing, • which routers use for path determination
Data Link
• Combines packets into bytes and bytes into frames • Provides access to media using MAC address • Performs error detection not correction
Physical
• Moves bits between devices • Specifies voltage, wire speed, • and pin-out of cables
The Application layer is also responsible for identifying and establishing the availability of the intended communication partner and determining whether sufficient resources for the intended communication exist. These tasks are important because computer applications sometimes require more than just desktop resources. Often, they unite communicating components from more than one network application. Prime examples are file transfers and email, as well as enabling remote access, network-management activities, client/server processes like printing, and information location. Many network applications provide services for communication over enterprise networks; but for present and future internetworking, the need is fast developing to reach beyond the limits of current physical networking. It’s important to remember that the Application layer acts as an interface between application programs. This means that Microsoft Word, for example, doesn’t reside at the Application layer but instead interfaces with the Application-layer protocols. Chapter 5 will present some programs that actually reside at the Application layer—for example, FTP and TFTP.
27477c02.indd 38
2/26/09 12:47:37 PM
The OSI Reference Model
39
The Presentation Layer The Presentation layer gets its name from its purpose: It presents data to the Application layer and is responsible for data translation and code formatting. This layer is essentially a translator and provides coding and conversion functions. A successful data-transfer technique is to adapt the data into a standard format before transmission. Computers are configured to receive this generically formatted data and then convert the data back into its native format for reading (for example, EBCDIC to ASCII). By providing translation services, the Presentation layer ensures that data transferred from one system’s Application layer can be read by the Application layer of another one. The OSI has protocol standards that define how standard data should be formatted. Tasks like data compression, decompression, encryption, and decryption are associated with this layer. In addition, some Presentation-layer standards are involved in multimedia operations.
The Session Layer The Session layer is responsible for setting up, managing, and then tearing down sessions between Presentation-layer entities. This layer also provides dialogue control between devices, or nodes. It coordinates communication between systems and serves to organize their communication by offering three different modes: simplex, half duplex, and full duplex. To sum up, the Session layer basically keeps applications’ data separate from other applications’ data.
The Transport Layer The Transport layer segments and reassembles data into a data stream. Services located in the Transport layer segment and reassemble data from upper-layer applications and unite it onto the same data stream. They provide end-to-end data transport services and can establish a logical connection between the sending host and destination host on an internetwork. The Transport layer is responsible for providing mechanisms for multiplexing upperlayer applications, establishing sessions, and tearing down virtual circuits. It also hides details of any network-dependent information from the higher layers by providing transparent data transfer. You may be familiar with TCP and UDP already. (If you’re not, no worries—I’ll tell you all about them in Chapter 6, “Introducing the Internet Protocol.”) If so, you know that both work at the Transport layer and that TCP is a reliable service and UDP is not. This means application developers have more options because they have a choice between the two protocols when working with TCP/IP protocols. The term reliable networking can be used at the Transport layer. It means that acknowledgments, sequencing, and flow control will be used.
27477c02.indd 39
2/26/09 12:47:38 PM
40
Chapter 2 The Open Systems Interconnection Specifications n
The Transport layer can be connectionless or connection-oriented. However, it’s important that you understand the connection-oriented portion of the Transport layer. The following sections will provide the skinny on the connection-oriented (reliable) protocol of the Transport layer.
Connection-Oriented Communication Before a transmitting host starts to send segments down the model, the sender’s TCP process contacts the destination’s TCP process to establish a connection. What is created is known as a virtual circuit. This type of communication is called connection-oriented. During this initial handshake, the two TCP processes also agree on the amount of information that will be sent in either direction before the respective recipient’s TCP sends back an acknowledgment. With everything agreed on in advance, the path is paved for reliable communication to take place. Figure 2.4 depicts a typical reliable session taking place between sending and receiving systems. Looking at it, you can see that both hosts’ application programs begin by notifying their individual operating systems that a connection is about to be initiated. The two operating systems communicate by sending messages over the network confirming that the transfer is approved and that both sides are ready for it to take place. After all of this required synchronization takes place, a connection is fully established and the data transfer begins. This virtual circuit setup is called overhead. F i g u r e 2 . 4 Establishing a connection-oriented session
Receiver
Sender Synchronize Negotiate connection
Synchronize
Acknowledge Connection established
Data transfer (Send segments)
While the information is being transferred between hosts, the two machines periodically check in with each other, communicating through their protocol software to ensure that all is going well and that the data is being received properly.
27477c02.indd 40
2/26/09 12:47:38 PM
The OSI Reference Model
41
Let me sum up the steps in the connection-oriented session—the three-way handshake— pictured in Figure 2.4: NÛ
NÛ
NÛ
The first “connection agreement” segment is a request for synchronization. The second and third segments acknowledge the request and establish connection parameters—the rules—between hosts. These segments request that the receiver’s sequencing is synchronized here as well so that a bidirectional connection is formed. The final segment is also an acknowledgment. It notifies the destination host that the connection agreement has been accepted and that the connection has been established. Data transfer can now begin.
Although I broke this connection setup into much detail, it really is just called the “three-way handshake” as I already mentioned, and is known as “SYN, SYN-ACK, SYN”, or synchronize, synchronize-acknowledgment, syncronize.
Sounds pretty simple, but things don’t always flow so smoothly. Sometimes congestion can occur during a transfer because a high-speed computer is generating data traffic a lot faster than the network can handle transferring it. A bunch of computers simultaneously sending datagrams through a single gateway or destination can also botch things up. In the latter case, a gateway or destination can become congested even though no single source caused the problem. In either case, the problem is basically akin to a freeway bottleneck— too much traffic for too small a capacity. It’s not usually one car that’s the problem; it’s that there are simply too many cars on that particular freeway.
Flow Control Data integrity is ensured at the Transport layer by maintaining flow control and by allowing users to request reliable data transport between systems. Flow control provides a means for the receiver to govern the amount of data sent by the sender. It prevents a sending host on one side of the connection from overflowing the buffers in the receiving host—an event that can result in lost data. Reliable data transport employs a connection-oriented communications session between systems, and the protocols involved ensure that the following will be achieved: NÛ
The segments delivered are acknowledged back to the sender upon their reception.
NÛ
Any segments not acknowledged are retransmitted.
NÛ
Segments are sequenced back into their proper order upon arrival at their destination.
NÛ
A manageable data flow is maintained in order to avoid congestion, overloading, and data loss.
Okay, so what happens when a machine receives a flood of datagrams too quickly for it to process? It stores them in a memory section called a buffer. But this buffering action can solve the problem only if the datagrams are part of a small burst. If not, and the datagram deluge continues, a device’s memory will eventually be exhausted, its flood capacity will be exceeded, and it will react by discarding any additional datagrams that arrive.
27477c02.indd 41
2/26/09 12:47:38 PM
42
Chapter 2 The Open Systems Interconnection Specifications n
This sounds pretty bad, but there aren’t really any huge worries here thanks to the transport function—network flood-control systems actually work quite well. How do they work? Well, instead of just dumping resources and allowing data to be lost, the transport can issue a “not ready” indicator to the sender, or source, of the flood (as shown in Figure 2.5). This mechanism works kind of like a stoplight, signaling the sending device to stop transmitting segment traffic to its overwhelmed peer. After the peer machine’s receiver processes the segments abounding in its memory reservoir (its buffer), it sends out a “ready” transport indicator. When the machine waiting to transmit the rest of its datagrams receives this “go” indictor, it resumes its transmission. During fundamental, reliable, connection-oriented data transfer, datagrams are delivered to the receiving host in exactly the same sequence they’re transmitted—and the transmission fails if this order is breached! So if any data segments are lost, duplicated, or damaged along the way, a failure notice is transmitted. This problem is solved by making sure the receiving host acknowledges that it has received each and every data segment in the correct order. To summarize, a service is considered connection-oriented if it has the following characteristics: NN
A virtual circuit is set up (such as a three-way handshake).
NN
It uses sequencing.
NN
It uses acknowledgments.
NN
It uses flow control.
F i g u r e 2 . 5 Transmitting segments with flow control
Sender
Receiver
Transmit
Buffer full Not ready— STOP! Segments processed GO!
Transmit
27477c02.indd 42
2/26/09 12:47:39 PM
The OSI Reference Model
43
Windowing Ideally, data throughput happens quickly and efficiently. And as you can imagine, it would be slow if the transmitting machine had to wait for an acknowledgment after sending each segment. But because time is available after the sender transmits the data segment and before it finishes processing acknowledgments from the receiving machine, the sender uses the break as an opportunity to transmit more data. The quantity of data segments (measured in bytes) that the transmitting machine is allowed to send without receiving an acknowledgment for them is called a window. Windows are used to control the amount of outstanding, unacknowledged data segments.
It’s important to understand that the size of the window controls how much information is transferred from one end to the other. Although some protocols quantify information by observing the number of packets, TCP/IP measures it by counting the number of bytes. Figure 2.6 illustrates two window sizes—one set to 1 and one set to 3. In our simplified example, both the sending and receiving machines are workstations. When you’ve configured a window size of 1, the sending machine waits for an acknowledgment for each data segment it transmits before transmitting another. If you’ve configured a window size of 3, the sending machine is allowed to transmit three data segments before an acknowledgment is received. In reality, this isn’t done in simple numbers but in the amount of bytes that can be sent. FIgure 2.6
27477c02.indd 43
Windowing
2/26/09 12:47:40 PM
44
Chapter 2
N
The Open Systems Interconnection Specifications
If a receiving host fails to receive all the segments that it should acknowledge, the host can improve the communication session by decreasing the window size.
Acknowledgments Reliable data delivery ensures the integrity of a stream of data sent from one machine to the other through a fully functional data link. It guarantees that the data won’t be duplicated or lost. This is achieved through something called positive acknowledgment with retransmission—a technique that requires a receiving machine to communicate with the transmitting source by sending an acknowledgment message back to the sender when it receives data. The sender documents each segment it sends and waits for this acknowledgment before sending the next segment. When it sends a segment, the transmitting machine starts a timer and retransmits if it expires before an acknowledgment is returned from the receiving end. In Figure 2.7, the sending machine transmits segments 1, 2, and 3. The receiving node acknowledges it has received them by requesting segment 4. When it receives the acknowledgment, the sender then transmits segments 4, 5, and 6. If segment 5 doesn’t make it to the destination, the receiving node acknowledges that event with a request for the segment to be re-sent. The sending machine will then resend the lost segment and wait for an acknowledgment, which it must receive in order to move on to the transmission of segment 7. F I g u r e 2 .7
Transport layer reliable delivery
Sender 1
2
3
4
Receiver 5
6
1
2
3
4
5
6
Send 1 Send 2 Send 3 Ack 4 Send 4 Send 5
Connection lost!
Send 6 Ack 5 Send 5 Ack 7
27477c02.indd 44
2/26/09 12:47:41 PM
The OSI Reference Model
45
The Transport layer doesn’t need to use a connection-oriented service (this is up to the application developer). It’s safe to say that if you’re connection-oriented, meaning that you’ve created a virtual circuit, you’re using TCP. If you aren’t setting up a virtual circuit, then you’re using UDP and are considered connection-less. Transport Control Protocol (TCP) and User Datagram Protocol (UDP) are protocols that work at the Transport layer and are covered in detail in Chapter 6.
devices used in an Internetwork The following network devices operate at all seven layers of the OSI model: NÛ
Network management stations (NMSs)
NÛ
Web and application servers
NÛ
Gateways (not default gateways)
NÛ
Network hosts
Several devices operate primarily at the Physical layer of the OSI model. These devices manipulate mainly the physical aspects of a network data stream (such as the voltages, signal direction, and signal strength). The most popular of these are the following: NÛ
Network Interface Cards (NICs)
NÛ
Transceivers
NÛ
Repeaters
NÛ
Hubs
These devices are discussed in detail in Chapter 5, “Networking Devices.”
The Network Layer The Network layer manages device addressing, tracks the location of devices on the network, and determines the best way to move data, which means that the Network layer must transport traffic between devices that aren’t locally attached. Routers (Layer 3 devices) are specified at the Network layer and provide the routing services within an internetwork. It happens like this: First, when a packet is received on a router interface, the destination IP address is checked. If the packet isn’t destined for that particular router, the router looks up the destination network address in the routing table. Once the router chooses an exit interface, the packet is sent to that interface to be framed and sent out on the local network. If the router can’t find an entry for the packet’s destination network in the routing table, the router drops the packet.
27477c02.indd 45
2/26/09 12:47:41 PM
46
Chapter 2 The Open Systems Interconnection Specifications n
Two types of packets are used at the Network layer: Data packets These are used to transport user data through the internetwork. Protocols used to support data traffic are called routed protocols. Two examples of routed protocols are Internet Protocol (IP) and Internet Protocol version 6 (IPv6), which you’ll learn about in Chapter 7, “IP Addressing.” Route-update packets These are used to update neighboring routers about the networks connected to all routers within the internetwork. Protocols that send route-update packets are called routing protocols; examples of some common ones are Routing Information Protocol (RIP), RIPv2, Enhanced Interior Gateway Routing Protocol (EIGRP), and Open Shortest Path First (OSPF). Route-update packets are used to help build and maintain routing tables on each router. Figure 2.8 shows an example of a routing table. The routing table used by a router includes the following information: Network addresses These are protocol-specific network addresses. A router must maintain a routing table for individual routing protocols because each routing protocol keeps track of a network with a different addressing scheme (IP, and IPv6,for example). Think of it as a street sign in each of the different languages spoken by the residents who live on a particular street. If there were American, Spanish, and French folks on a street named Cat, the sign would read Cat/Gato/Chat. F i g u r e 2 . 8 Routing table used in a router 1.0
3.0
1.1
3.1
1.3
2.1
2.2
3.3
E0
S0
S0
E0
1.2
3.2
Routing Table NET INT Metric 1 E0 0 2 S0 0 3 S0 1
Routing Table NET INT Metric 1 S0 1 2 S0 0 3 E0 0
Interface This is the exit interface a packet will take when destined for a specific network. Metric This value equals the distance to the remote network. Different routing protocols use different ways of computing this distance. I’ll cover routing protocols in Chapter 9,
27477c02.indd 46
2/26/09 12:47:42 PM
The OSI Reference Model
47
“Introduction to Routing”; for now, just know that some routing protocols (namely RIP) use something called a hop count—the number of routers a packet passes through en route to a remote network—whereas others use bandwidth, delay of the line, or something known as a tick count (1/18 of a second). Routers break up broadcast domains, which means that by default, broadcasts aren’t forwarded through a router. Why is this a good thing? Routers also break up collision domains, but this can be accomplished using Layer 2 (Data Link layer) switches as well. Broadcast and collision domains are covered in detail in Chapter 5. For now, remember that routers break up broadcast domains and switches break up collision domains.
Because each interface in a router represents a separate network, it must be assigned unique network identification numbers, and each host on the network connected to that router must use the same network number. Figure 2.9 demonstrates how a router works within an internetwork. FIgure 2.9
A router in an internetwork FastEthernet0/0
Serial0
FastEthernet0/1
WAN Services
Internet
Each router interface is a broadcast domain. Routers break up broadcast domains by default and provide WAN services.
Here are some points about routers that you should definitely commit to memory: NÛ
NÛ
NÛ
NÛ
NÛ
NÛ
Routers, by default, won’t forward any broadcast or multicast packets. Routers use the logical address in a Network-layer header to determine the next hop router to forward the packet to. Routers can use access lists, created by an administrator, to control security on the types of packets that are allowed to enter or exit an interface. Routers can provide Layer 2 bridging functions if needed and can simultaneously route through the same interface. Layer 3 devices (routers, in this case) provide connections between virtual LANs (VLANs). Routers can provide quality of service (QoS) for specific types of network traffic.
Routers can also be referred to as a Layer-3 switch. These terms are interchangeable.
27477c02.indd 47
2/26/09 12:47:42 PM
48
Chapter 2 The Open Systems Interconnection Specifications n
The Data Link Layer The Data Link layer provides the physical transmission of the data and handles error notification, network topology, and flow control. This means the Data Link layer ensures that messages are delivered to the proper device on a LAN using hardware addresses, and translates messages from the Network layer into bits for the Physical layer to transmit. The Data Link layer formats the message into pieces, each called a data frame, and adds a customized header containing the destination and source hardware address. This added information forms a sort of capsule that surrounds the original message in much the same way that engines, navigational devices, and other tools were attached to the lunar modules of the Apollo project. These various pieces of equipment were useful only during certain stages of flight and were stripped off the module and discarded when their designated stage was complete. This is a great analogy for data traveling through networks because it works very similarly. Figure 2.10 shows the Data Link layer with the Ethernet and Institute of Electrical and Electronics Engineers (IEEE) specifications. When you check it out, notice that the IEEE 802.2 standard is not only used in conjunction with the other IEEE standards; it also adds functionality to those standards. F i g u r e 2 .1 0 Data Link layer
It’s important for you to understand that routers, which work at the Network layer, don’t care about where a particular host is located. They’re only concerned about where networks are located and the best way to reach them—including remote ones. Routers are totally obsessive when it comes to networks. And for once, this obsession is a good thing! The Data Link layer is responsible for the unique identification of each device that resides on a local network. For a host to send packets to individual hosts on a local network as well as transmit packets between routers, the Data Link layer uses hardware addressing. Each time a packet is sent between routers, it’s framed with control information at the Data Link layer; but that information is stripped off at the receiving router, and only the original packet is left completely intact. This framing of the packet continues for each hop until the packet is finally delivered to the correct receiving host. It’s important to understand that the packet itself is never altered along the route; it’s only encapsulated with the type of control information required for it to be properly passed on to the different media types.
27477c02.indd 48
2/26/09 12:47:43 PM
The OSI Reference Model
49
The IEEE Ethernet Data Link layer has two sublayers: Media Access Control (MAC) Defines how packets are placed on the media. Contention media access is “first come/first served” access where everyone shares the same bandwidth— hence the name. Physical addressing is defined here, as well as logical topologies. What’s a logical topology? It’s the signal path through a physical topology. Line discipline, error notification (not correction), ordered delivery of frames, and optional flow control can also be used at this sublayer. Logical Link Control (LLC) Responsible for identifying Network-layer protocols and then encapsulating them. An LLC header tells the Data Link layer what to do with a packet once a frame is received. It works like this: A host receives a frame and looks in the LLC header to find out where the packet is destined—say, the IP protocol at the Network layer. The LLC can also provide flow control and sequencing of control bits.
Project 802 One of the major components of the Data Link layer is the result of the IEEE’s 802 subcommittees and their work on standards for local area and metropolitan area networks (LANs/MANs). The committee met in February 1980, so they used the “80” from 1980 and the “2” from the second month to create the name Project 802. The designation for an 802 standard always includes a dot (.) followed by either a single or a double digit. These numeric digits specify particular categories within the 802 standard. These standards are listed in Table 2.1. Ta b l e 2 .1 IEEE 802 Networking Standards
27477c02.indd 49
Standard
Topic
802.1
LAN/MAN Management (and Media Access Control Bridges)
802.2
Logical Link Control
802.3
CSMA/CD
802.4
Token Passing Bus
802.5
Token Passing Ring
802.6
Distributed Queue Dual Bus (DQDB) Metropolitan Area Network (MAN)
802.7
Broadband Local Area Networks
802.8
Fiber-Optic LANs and MANs
802.9
Isochronous LANs
2/26/09 12:47:43 PM
50
Chapter 2 The Open Systems Interconnection Specifications n
Ta b l e 2 .1 IEEE 802 Networking Standards (continued) Standard
Topic
802.10
LAN/MAN Security
802.11
Wireless LAN
802.12
Demand Priority Access Method
802.15
Wireless Personal Area Network
802.16
Wireless Metropolitain Area Network (also called WiMAX)
802.17
Resilient Packet Ring
802.18
LAN/MAN Standards Committee
The Physical Layer Finally, we’re hitting bottom. Well, not in a bad way—we’ve now arrived at the Physical layer, which does two important things: It sends bits and receives bits. Bits come only in values of 1 or 0—a Morse code with numerical values. The Physical layer communicates directly with the various types of actual communication media. Different kinds of media represent these bit values in different ways. Some use audio tones, and others employ state transitions—changes in voltage from high to low and low to high. Specific protocols are needed for each type of media to describe the proper bit patterns to be used, how data is encoded into media signals, and the various qualities of the physical media’s attachment interface. The Physical layer specifies the electrical, mechanical, procedural, and functional requirements for activating, maintaining, and deactivating a physical link between end systems. This layer is also where you identify the interface between the data terminal equipment (DTE) and the data communication equipment (DCE). (Some older phone-company employees still call DCE data circuit-terminating equipment.) The DCE is usually located at the service provider, whereas the DTE is the attached device. The services available to the DTE are most often accessed via a modem or channel service unit/data service unit (CSU/DSU). The Physical layer’s connectors and different physical topologies are defined by the OSI as standards, allowing disparate systems to communicate. Finally, the Physical layer specifies the layout of the transmission media (its topology, in other words). A physical topology describes the way the cabling is physically laid out (as opposed to a logical topology, discussed earlier in the section “The Data Link Layer”). The physical topologies include Bus, Star, Ring, and Mesh, and were described in Chapter 1, “Introduction to Networks.”
27477c02.indd 50
2/26/09 12:47:43 PM
Introduction to Encapsulation
51
Introduction to Encapsulation When a host transmits data across a network to another device, the data goes through encapsulation: It’s wrapped with protocol information at each layer of the OSI model. Each layer communicates only with its peer layer on the receiving device. To communicate and exchange information, each layer uses Protocol Data Units (PDUs). These hold the control information attached to the data at each layer of the model. They’re usually attached to the header in front of the data field but can also be in the trailer, or end, of it. At a transmitting device, the data-encapsulation method works like this: 1. User information is converted to data for transmission on the network. 2. Data is converted to segments, and a reliable connection is set up between the trans-
mitting and receiving hosts. 3. Segments are converted to packets or datagrams, and a logical address is placed in the
header so each packet can be routed through an internetwork. 4. Packets or datagrams are converted to frames for transmission on the local network.
Hardware (Ethernet) addresses are used to uniquely identify hosts on a local network segment. 5. Frames are converted to bits, and a digital encoding and clocking scheme is used.
Figure 2.11 shows how user data is encapsulated at a transmitting host. After you learn more foundational material about networking in the next few chapters, I’ll come back to the encapsulation method and discuss it in more detail in Chapter 6, as well as in even more detail in Chapter 9. F i g u r e 2 .11 : Data encapsulation Application
PDU
Presentation Upper layer data
Session
Upper layer data
Transport
Segment
IP header
Data
Network
Packet
LLC header
Data
FCS
Data Link
Frame
Data
FCS Physical
Bits
TCP header
MAC header
0101110101001000010
27477c02.indd 51
2/26/09 12:47:44 PM
52
Chapter 2 The Open Systems Interconnection Specifications n
Summary You’re now armed with a ton of fundamental information. You’re set to build on it and are well on your way to certification. Let’s take a minute to go over what you’ve learned in this chapter. We started by discussing internetworking models and the advantages of having them. I then discussed the OSI model—the seven-layer model used to help application developers design applications that can run on any type of system or network. Each layer has its special jobs and select responsibilities within the model to ensure that solid, effective communications do, in fact, occur. I provided you with complete details of each layer and discussed how you need to view the specifications of the OSI model. This chapter finished with a brief introduction to the encapsulation method used in networking. Encapsulation is a highly important concept to understand, and I’ll continue to discuss it throughout this book.
Exam Essentials Remember the OSI layers. You absolutely must remember and understand the seven layers of the OSI model as well as what function each layer provides. The Application, Presentation, and Session layers are upper layers and are responsible for communicating from a user interface to an application. The Transport layer provides segmentation, sequencing, and virtual circuits. The Network layer provides logical network addressing and routing through an internetwork. The Data Link layer provides framing and placing of data on the network medium. The Physical layer is responsible for taking 1s and 0s and encoding them into a digital signal for transmission on the network segment. Know the sublayers of the Data Link layer. In addition to the OSI layers, knowing the only layer that has sublayers and the functions of those sublayers is extremely important. The Data Link layer has two sublayers: LLC and MAC. The LLC sublayer is responsible primarily for the multiplexing of Network-layer protocols. The MAC sublayer is responsible for physical addressing and determining the appropriate time to place data on the network. Know the devices that operate at each layer of the OSI model. Hubs and repeaters only see bits, making them Layer 1 devices. Because all networking devices have physical connectivity to the network, they all operate at Layer 1, but hubs and repeaters operate only at this layer. Nevertheless, we generally consider that a device operates at the highest layer it supports; that layer’s functionality is the main reason we implement the device on the network. For example, switches and bridges are considered Layer 2 devices because they understand and make decisions based on Layer 2 addresses. Routers are Layer 3 devices for a similar reason; they deal with Layer 3 addresses. Networking devices, such as workstations, that run applications are said to operate at the Application layer (or you may hear that they operate at all layers) because they must include Application-layer protocols that offer services to networked applications.
27477c02.indd 52
2/26/09 12:47:44 PM
Written Lab
53
Written Lab 1. Which layer chooses and determines the availability of communicating partners along with the resources necessary to make the connection, coordinates partnering applications, and forms a consensus on procedures for controlling data integrity and error recovery? 2. Which layer is responsible for converting data packets from the Data Link layer into electrical signals? 3. At which layer is routing implemented, enabling connections and path selection between two end systems? 4. Which layer defines how data is formatted, presented, encoded, and converted? 5. Which layer is responsible for creating, managing, and terminating sessions between applications? 6. Which layer manages the transmission of data across a physical link and is primarily concerned with physical addressing and the ordered delivery of frames? 7. Which layer is used for reliable communication between end nodes over the network and provides mechanisms for establishing, maintaining, and terminating virtual circuits as well as controlling the flow of information? 8. Which layer provides logical addressing that routers use for path determination? 9. Which layer specifies voltage, wire speed, and connector pinouts and moves bits between devices? 10. Which layer combines bits into bytes and bytes into frames and uses MAC addressing?
(The answers to the Written Lab can be found following the answers to the Review Questions for this chapter.)
27477c02.indd 53
2/26/09 12:47:44 PM
54
Chapter 2 The Open Systems Interconnection Specifications n
Review Questions 1. Host 1 sent a SYN packet to Host 2. What will host 2 send in response? A. A. ACK B. NAK C. SYN-ACK D. SYN-NAK E. SYN 2. TCP and UDP reside at which layer of the OSI model? A. 1 B. 2 C. 3 D. 4 3. Which layer of the OSI model provides a user interface in the form of an entry point for programs to access the network infrastructure? A. Application B. Transport C. Network D. Physical 4. You are connected to a server on the Internet and you click on a link on the server and receive a time-out message. What layer could be the cause of this message? A. Application B. Transport C. Network D. Physical 5. Which layer of the OSI model is responsible for code and character-set conversion as well as recognizing data formats? A. Application B. Presentation C. Session D. Network
27477c02.indd 54
2/26/09 12:47:45 PM
Review Questions
55
6. At which layers of the OSI model do bridges, hubs, and routers primarily operate, respectively? A. Physical, Physical, Data Link B. Data Link, Data Link, Network C. Data Link, Physical, Network D. Physical, Data Link, Network 7. Which layer of the OSI model is responsible for converting data into signals appropriate for the transmission medium? A. Application B. Network C. Data Link D. Physical 8. A receiving host has failed to receive all the segments that it should acknowledge. What can the host do to improve the reliability of this communication session? A. Send a different source port number. B. Restart the virtual circuit. C. Decrease the sequence number. D. Decrease the window size. 9. Which Layer 1 devices can be used to enlarge the area covered by a single LAN segment? (Choose two.) A. Switch B. NIC C. Hub D. Repeater E. RJ-45 transceiver 10. Segmentation of a data stream happens at which layer of the OSI model? A. Physical B. Data Link C. Network D. Transport 11. When data is encapsulated, which is the correct order? A. Data, frame, packet, segment, bits B. Segment, data, packet, frame, bits C. Data, segment, packet, frame, bits D. Data, segment, frame, packet, bits
27477c02.indd 55
2/26/09 12:47:45 PM
56
Chapter 2 The Open Systems Interconnection Specifications n
12. What are two purposes for segmentation with a bridge? A. To add more broadcast domains B. To create more collision domains C. To add more bandwidth for users D. To allow more broadcasts for users 13. Acknowledgments, sequencing, and flow control are characteristic of which OSI layer? A. Layer 2 B. Layer 3 C. Layer 4 D. Layer 7 14. Which of the following are types of flow control? (Choose all that apply.) A. Buffering B. Cut-through C. Windowing D. Congestion avoidance E. VLANs 15. What is the purpose of flow control? A. To ensure that data is retransmitted if an acknowledgment is not received B. To reassemble segments in the correct order at the destination device C. To provide a means for the receiver to govern the amount of data sent by the sender D. To regulate the size of each segment 16. At which layer of the OSI model would you find IP? A. Transport B. Network C. Data Link D. Physical 17. Of the following, which is the highest layer in the OSI model? A. Transport B. Session C. Network D. Presentation
27477c02.indd 56
2/26/09 12:47:45 PM
Review Questions
57
18. Routers perform routing at which OSI layer? A. Physical B. Data Link C. Network D. Transport E. Application 19. Which of the following mnemonic devices can you use to remember the first letter of the name of each layer of the OSI model in the proper order? A. All People Seem To Need Processed Data B. Always Should People Never Threaten Dog Police C. Please Do Not Throw Sausage Pizza Away D. All Day People Should Try New Professions 20. Which IEEE standard specifies the protocol for CSMA/CD? A. 802.2 B. 802.3 C. 802.5 D. 802.11
27477c02.indd 57
2/26/09 12:47:45 PM
58
Chapter 2 The Open Systems Interconnection Specifications n
Answers to Review Questions 1. C. To set up a connection-oriented session, this is called a three-way handshake and the transmitting host sends a SYK packet, the receiving host sends a SYK-ACK, and the transmitting host replies with the last SYN packet. The session is now set up. 2. D. TCP and UDP are Transport-layer protocols. The Transport layer is Layer 4 of the OSI model. 3. A. The top layer of the OSI model gives applications access to the services that allow network access. 4. A. If the remote server is busy or does not respond to your web browser request, this is an Application layer problem. 5. B. The Presentation layer makes data “presentable” for the Application layer. 6. C. Bridges, like switches, are Data Link-layer devices. Hubs, like repeaters, are Physicallayer devices. Routers are Network-layer devices. 7. D. The Physical layer’s job is to convert data into impulses that are designed for the wired or wireless medium being used on the attached segment. 8. D. A receiving host can control the transmitter by using flow control (TCP uses windowing by default). By decreasing the window size, the receiving host can slow down the transmitting host so the receiving host does not overflow its buffers. 9. C, D. Not that you really want to enlarge a single collision domain, but a hub (multiport repeater) will provide this functionality for you. 10. D. The Transport layer receives large data streams from the upper layers and breaks these up into smaller pieces called segments. 11. C. The encapsulation order is data, segment, packet, frame, bits. 12. B, C. Bridges and switches break up collision domains, which allow more bandwidth for users. 13. C. A reliable Transport-layer connection uses acknowledgments to make sure all data is received reliably. A reliable connection is defined by the use of acknowledgments, sequencing, and flow control, which is characteristic of the Transport layer (Layer 4). 14. A, C, D. The common types of flow control are buffering, windowing, and congestion avoidance. 15. C. Flow control allows the receiving device to control the pace of the transmitting device so the receiving device’s buffer does not overflow.
27477c02.indd 58
2/26/09 12:47:45 PM
Answers to Review Questions
59
16. B. IP is a Network-layer protocol. TCP is an example of a Transport-layer protocol, Ethernet is an example of a Data Link-layer protocol, and T1 can be considered a Physicallayer protocol. 17. D. The Presentation layer is the sixth layer of the model. Only the Application layer is higher, but it is not listed. Session is Layer 5, Transport is Layer 4, and Network is Layer 3. 18. C. A router is specified at the Network layer and a router routes packets. Routers can also be called layer-3 switches. 19. C. The phrase “Please Do Not Throw Sausage Pizza Away” contains the first letters of the layers in order from Layer 1 through Layer 7. “All People Seem To Need Data Processing” works from the top down, but that’s not exactly how the option that looks similar reads. The other options have all the right letters, just not completely in the right order. 20. B. The 802.3 standard, commonly associated with Ethernet, specifies the media-access method used by Ethernet, which is known as Carrier Sense Multiple Access with Collision Detection (CSMA/CD).
27477c02.indd 59
2/26/09 12:47:45 PM
60
Chapter 2 The Open Systems Interconnection Specifications n
Answers to Written Lab 1. The Application layer is responsible for finding the network resources broadcast from a server and adding flow control and error control (if the application developer chooses). 2. The Physical layer takes frames from the Data Link layer and encodes the 1s and 0s into a digital signal for transmission on the network medium. 3. The Network layer provides routing through an internetwork and logical addressing. 4. The Presentation layer makes sure that data is in a readable format for the Application layer. 5. The Session layer sets up, maintains, and terminates sessions between applications. 6. PDUs at the Data Link layer are called frames. As soon as you see frame in a question, you know the answer. 7. The Transport layer uses virtual circuits to create a reliable connection between two hosts. 8. The Network layer provides logical addressing, typically IP addressing, and routing. 9. The Physical layer is responsible for the electrical and mechanical connections between devices. 10. The Data Link layer is responsible for the framing of data packets.
27477c02.indd 60
2/26/09 12:47:45 PM
Chapter
3
Networking Topologies, Connectors, and Wiring Standards The Following CompTIA Network+ Exam Objectives Are Covered in This Chapter: ÛÛ 2.1 Categorize standard cable types and their properties NN
Type:
NN
CAT3, CAT5, CAT5e, CAT6
NN
STP, UTP
NN
Multimode fiber, single-mode fiber
NN
Coaxial NN
RG-59
NN
RG-6
NN
Serial
NN
Plenum vs. Non-plenum
NN
Properties:
NN
Transmission speeds
NN
Distance
NN
Duplex
NN
Noise immunity (security, EMI)
NN
Frequency
ÛÛ 2.2 Identify common connector types
27477c03.indd 61
NN
RJ-11
NN
RJ-45
2/26/09 12:51:55 PM
NN
BNC
NN
SC
NN
ST
NN
LC
NN
RS-232
ÛÛ 2.4 Given a scenario, differentiate and implement appropriate wiring standards NN
568A
NN
568B
NN
Straight vs. cross-over
NN
Rollover
NN
Loopback
ÛÛ 2.8 Install components of wiring distribution
27477c03.indd 62
NN
Vertical and horizontal cross connects
NN
Patch panels
NN
66 block
NN
MDFs
NN
IDFs
NN
25 pair
NN
100 pair
NN
110 block
NN
Demarc
NN
Demarc extension
NN
Smart jack
NN
Verify wiring installation
NN
Verify wiring termination
2/26/09 12:51:56 PM
The idea of connecting a bunch of computers together hasn’t changed a whole lot since the mid-1980s, but how we go about doing that certainly has. Like everything else, the technologies and devices we create our networks with have evolved dramatically and will continue to do so in order to keep up with the ever-quickening pace of life and the way we do business. When you connect computers together to form a network, you want error-free, blazingly fast communication, right? Although “error-free” and reality don’t exactly walk hand in hand, keeping lapses in communication to a minimum and making that communication happen really fast is definitely possible. But it isn’t easy, and understanding the types of media and network topologies used in networking today will go far in equipping you to reach these goals. So will being really knowledgeable about and familiar with the array of components and devices used to control network traffic. All of these networking ingredients are going to be the focus of this chapter. In it, I’ll cover different types of networking media, discuss common topologies and devices, and compare the features that they all bring into designing a solid network that’s as problem free and turbo charged as possible. To find up-to-the-minute updates for this chapter, please see www.lammle.com or www.sybex.com/go/comptianetwork+.
Physical Media A lot of us rely on wireless networking methods that work using technologies like radio frequency and infrared, but even wireless depends on a physical media backbone in place somewhere. And the majority of installed LANs today communicate via some kind of cabling, so let’s take a look at the three types of popular cables used in modern networking designs:
27477c03.indd 63
NÛ
Coaxial
NÛ
Twisted pair
NÛ
Fiber optic
2/26/09 12:51:56 PM
64
Chapter 3
N
Networking Topologies, Connectors, and Wiring Standards
Coaxial Cable Coaxial cable, referred to as coax, contains a center conductor made of copper that’s surrounded by a plastic jacket, with a braided shield over it. A plastic such as polyvinyl chloride (PVC) or fluoroethylenepropylene (FEP, commonly known as Teflon) covers this metal shield. The Teflon-type covering is frequently referred to as a plenum-rated coating, and it’s definitely expensive but often mandated by local or municipal fire code when cable is hidden in walls and ceilings. Plenum rating applies to all types of cabling and is an approved replacement for all other compositions of cable sheathing and insulation like PVC-based assemblies. The difference between plenum and non-plenum cable come down to how each is constructed and where you can use it. Many large multi-story buildings are designed to circulate air through the spaces between the ceiling of one story and the floor of the next; this space between floors is referred to as the plenum. And it just happens to be a perfect spot to run all the cables that connect the legions of computers that live in the building. Unless there’s a fire—if that happens, the plenum cable becomes a serious hazard because its insulation gives off poisonous smoke that gets circulated throughout the whole building. Plus, plenum cables can actually become “wicks” for the fire, helping it quickly spread from room to room and floor to floor—yikes! Because it’s a great goal to prevent towering infernos, the National Fire Protection Association (NFPA) demands that cables run within the plenum have been tested and guaranteed as safe. They must be fire retardant and create little or no smoke and poisonous gas when burned. This means you absolutely can’t use a non-plenum-type cable in the plenum, but it doesn’t mean you can’t use it in other places where it’s safe. And because it’s a lot cheaper, you definitely want to use it where you can. Thin Ethernet, also referred to as Thinnet or 10Base-2, is a thin coaxial cable. It is basically the same as thick coaxial cable except it’s only about 1⁄4 in diameter. Thin Ethernet coaxial cable is Radio Grade 58 or just RG-58. Figure 3.1 shows an example of Thinnet. Oh, by the way, if you use Thinnet cable, you’ve got to use BNC connectors to attach stations to the network, as shown in Figure 3.2. You don’t have to know much about most coax cable types in networks anymore, especially the Thinnet and Thicknet types of coaxial cable. Thicknet was known as RG-58 A/U. Nowadays, we use 75ohm coax for cable TV; using coax in the Ethernet world is pretty much a thing of the past. RG-6 or CATV coax is used in our brave new broadband world.
Anyway, you can attach BNC connector with a crimper that looks like a weird pair of pliers and has a die to crimp the connector. A simple squeeze crimps the connector to the cable. You can also use a screw-on connector, but I avoid doing that because it’s not very reliable. Table 3.1 lists some specifications for the different types of coaxial cable, but understand that we only use RG-59 and RG-6 in today’s world.
27477c03.indd 64
2/26/09 12:51:57 PM
Physical Media
65
F i g u r e 3 .1 A stripped-back Thinnet
F i g u r e 3 . 2 Male and female BNC connectors Male
Female
Ta b l e 3 .1 Coaxial Cable Specifications
27477c03.indd 65
RG Rating
Popular Name
Ethernet Implementation Type of Cable
RG-58 U
N/A
None
Solid copper
RG-58 A/U
Thinnet
10Base-2
Stranded copper
2/26/09 12:51:58 PM
66
Chapter 3
TA b l e 3 .1
N
Networking Topologies, Connectors, and Wiring Standards
Coaxial Cable Specifications (continued)
RG Rating
Popular Name
Ethernet Implementation Type of Cable
RG-8
Thicknet
10Base-5
Solid copper
Cable television
N/A
Solid copper
Cable television, cable modems N/A
Solid copper
RG-59
Low cost, short distance RG-6
Longer distances than RG-59; some power implementations RG-62
ARCnet (obsolete)
N/A
Solid/stranded
An advantage of using coax cable is the braided shielding that provides resistance to electronic pollution like electromagnetic interference (EMI), radio frequency interference (RFI), and other types of stray electronic signals that can make their way onto a network cable and cause communications problems.
Twisted-Pair Cable Twisted-pair cable consists of multiple individually insulated wires that are twisted together in pairs. Sometimes a metallic shield is placed around them; hence the name shielded twistedpair (STP). Cable without outer shielding is called unshielded twisted-pair (UTP), and it’s used in twisted-pair Ethernet (10Base-T, 100Base-TX, 1000Base-TX) networks.
Ethernet Cable Descriptions Ethernet cable types are described using a code that follows this format: N<Signaling>-X. The N refers to the signaling rate in megabits per second, <Signaling> stands for the signaling type—either baseband or broadband—and the X is a unique identifier for a specific Ethernet cabling scheme. Here’s a common example: 100Base-X. The 100 tells us that the transmission speed is 100Mb, or 100 megabits. The X value can mean several different things, and the T is short for twisted-pair. This is the standard for running 100-Megabit Ethernet over two pairs (four wires) of Category 5, 5e, or 6 UTP. So why are the wires in this cable type twisted? Because when electromagnetic signals are conducted on copper wires in close proximity—like inside a cable—it causes interference called crosstalk. Twisting two wires together as a pair minimizes interference and even
27477c03.indd 66
2/26/09 12:51:59 PM
Physical Media
67
protects against interference from outside sources. This cable type is the most common today for the following reasons: NÛ
It’s cheaper than other types of cabling.
NÛ
It’s easy to work with.
NÛ
It allows transmission rates that were impossible 10 years ago. UTP cable is rated in these categories:
Category 1 Two twisted wire pairs (four wires). It’s the oldest type and is only voice grade— it isn’t rated for data communication. People refer to it as plain old telephone service (POTS). Before 1983, this was the standard cable used throughout the North American telephone system. POTS cable still exists in parts of the Public Switched Telephone Network (PSTN) and supports signals limited to the 1MHz frequency range. Category is often shortened to Cat. Today, any cable installed should be a minimum of Cat 5e because some cable is now certified to carry bandwidth signals of 350MHz or beyond. This allows unshielded twisted-pair cables to exceed speeds of 1Gbps—fast enough to carry broadcast-quality video over a network.
Category 2 Four twisted wire pairs (eight wires). It handles up to 4Mbps, with a frequency limitation of 10MHz, and is now obsolete. Category 3 Four twisted wire pairs (eight wires) with three twists per foot. This type can handle transmissions up to 16MHz. It was popular in the mid-1980s for up to 10Mbps Ethernet, but it’s now limited to telecommunication equipment and, again, is obsolete for networks. Category 4
Four twisted wire pairs (eight wires), rated for 20MHz. Also obsolete.
Category 5 Four twisted wire pairs (eight wires), rated for 100MHz. But why use Cat 5 when you can use Cat 5e for the same price? I am not sure you can even buy plain Cat 5 anymore! Category 5e (enhanced) Four twisted wire pairs (eight wires), rated for 100MHz, but capable of handling the disturbance on each pair that’s caused by transmitting on all four pairs at the same time—a feature that’s needed for Gigabit Ethernet. Any category below 5e shouldn’t be used in today’s network environments. Figure 3.3 shows a basic Cat 5e cable with the four wire pairs twisted to reduce cross-talk. Category 6 Four twisted wire pairs (eight wires), rated for 250MHz. Cat 6 became a standard back in June 2002. You would usually use it as riser cable to connect floors together. If you’re installing a new network in a new building, there’s no reason to use anything but Category 6 UTP cabling as well as running fiber runs between floors.
27477c03.indd 67
2/26/09 12:51:59 PM
68
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
F i g u r e 3 . 3 Cat 5e UTP cable
Connecting UTP BNC connectors won’t fit very well on UTP cable, so you need to use a Registered Jack (RJ) connector, which you’re familiar with because most telephones connect with them. The connector used with UTP cable is called RJ-11 for phones that use four wires; RJ-45 has four pairs (eight wires), as shown in Figure 3.4.
Category 5e Cabling Tips If you want data rates faster than 10Mbps over UTP, ensure that all components are rated to deliver this and be really careful when handling all components. If you yank on Cat 5e cable, it will stretch the number of twists inside the jacket, rendering the Cat 5e label on the outside of the cable invalid. Also, be certain to connect and test all four pairs of wire. Although today’s wiring usually uses only two pairs (four wires), the standard for Gigabit Ethernet over UTP requires that all four pairs (eight wires) be in good condition. Also be aware that a true Cat 5e cabling system uses rated components from end to end, patch cables from workstation to wall panel, cable from wall panel to patch panel, and patch cables from patch panel to hub. So if any components are missing, or if the lengths don’t match the Category 5e specification, you just don’t have a Category 5e cabling installation. And certify that the entire installation is Category 5e compliant. Be warned that doing this requires some pretty pricey test equipment to make the appropriate measurements.
27477c03.indd 68
2/26/09 12:52:00 PM
Physical Media
Figure 3.4
69
RJ-11 and RJ-45 connectors
Most of the time, UTP uses RJ connectors; you use a crimper to attach them to a cable, just as you would with BNC connectors. The only difference is that the die that holds the connector is a different shape. Higher-quality crimping tools have interchangeable dies for both types of cables. We do not use RJ-11 for local area networks (LANs), but we do use them for our home Digital Subscriber Link (DSL) connections. RJ-11 uses two wire pairs, and RJ-45 uses four wire pairs.
Fiber-Optic Cable Because fiber-optic cable transmits digital signals using light impulses rather than electricity, it’s immune to EMI and RFI. Anyone who’s seen a network’s UTP cable run down an elevator shaft would definitely appreciate this fiber feature. Fiber cable allows light impulses to be carried on either a glass or a plastic core. Glass can carry the signal a greater distance, but plastic costs less. Whichever the type of core, it’s surrounded by a glass or plastic cladding with a different refraction index that reflects the light back into the core. Around this is a layer of flexible plastic buffer that can be wrapped in an armor coating that’s usually Kevlar, which is then sheathed in PVC or plenum. The cable itself comes in either single-mode fiber (SMF) or multimode fiber (MMF); the difference between them is in the number of light rays (the number of signals) they can carry. Multimode fiber is most often used for shorter-distance applications and single-mode fiber for spanning longer distances. Although fiber-optic cable may sound like the solution to many problems, it has pros and cons just like the other cable types.
27477c03.indd 69
2/26/09 12:52:01 PM
70
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
Here are the pros: NN
Is completely immune to EMI and RFI
NN
Can transmit up to 40 kilometers (about 25 miles)
And here are the cons: NN
Is difficult to install
NN
Is more expensive than twisted-pair
NN
Troubleshooting equipment is more expensive than twisted-pair test equipment
NN
Is harder to troubleshoot
Single-Mode Fiber Single-mode fiber-optic cable (SMF) is a very high-speed, long-distance media that consists of a single strand—sometimes two strands—of fiber glass that carries the signals. Lightemitting diodes (LEDs) and laser are the light sources used with SMF. The light source is transmitted from end to end and pulsed to create communication. This is the type of fiber cable employed to span really long distances because it can transmit data 50 times further than multimode fiber at a faster rate. Clearly, because the transmission media is glass, the installation of SMF can be a bit tricky. Yes, there are outer layers protecting the glass core, but the cable still shouldn’t be crimped or pinched around any tight corners.
Multimode Fiber Multimode fiber-optic cable (MMF) also uses light to communicate a signal; but with it, the light is dispersed on numerous paths as it travels through the core and is reflected back. A special material called cladding is used to line the core and focus the light back onto it. MMF provides high bandwidth at high speeds over medium distances (up to about 3,000 feet), but beyond that it can be really inconsistent. This is why MMF is most often used within a smaller area of one building; SMF can be used between buildings. MMF is available in glass or in a plastic version that makes installation a lot easier and increases the installation’s flexibility.
Fiber-Optic Connectors A whole bunch of different types of connectors are available to use with fiber-optic cables, but the two most popular are the straight tip (ST) and subscriber (or square) connector (SC). The ST fiber-optic connector (developed by AT&T) is one of the most widely used fiber-optic connectors; it uses a BNC attachment mechanism similar to Thinnet’s that makes connections and disconnections fairly frustration free. In fact, this is the feature that makes this connector so popular. Figure 3.5 shows an example of an ST connector. Notice the BNC attachment mechanism. The SC connector is another type of fiber-optic connector. As you can see in Figure 3.6, SC connectors are latched—a mechanism holds the connector in securely and prevents it from falling out.
27477c03.indd 70
2/26/09 12:52:01 PM
Physical Media
71
SC connectors work with either single-mode or multimode optical fibers and will last for around 1,000 matings. They’re being used more now but still aren’t nearly as popular as ST connectors for LAN connections. F i g u r e 3 . 5 An example of an ST connector
F i g u r e 3 . 6 A sample SC connector
27477c03.indd 71
2/26/09 12:52:03 PM
72
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
Should I Use Copper or Fiber? If your data runs are measured in miles, fiber optic is your cable of choice because copper just can’t give you more than about 1,500 feet without electronics regenerating the signal. The standards limit UTP to a pathetic 228 feet. Another good reason to opt for fiber is if you require high security, because it doesn’t create a readable magnetic field. Although fiber-optic technology was initially super expensive and nasty to work with, it’s now commonly used for Gigabit or 10GB Internet backbones. Ethernet running at 10Mbps over fiber-optic cable to the desktop is designated 10Base-FL; the 100Mbps version of this implementation is 100Base-FX. The L in the 10Mbps version stands for link. Other designations are B for backbone and P for passive.
Small Form Factor Fiber-Optic Connectors Another cool fiber-optic connector is the small form factor (SFF) connector, which allows more fiber-optic terminations in the same amount of space than its standard-sized counterparts. The two most popular versions are the mechanical transfer registered jack (MT-RJ or MTRJ), designed by AMP, and the Local Connector (LC), designed by Lucent. The MT-RJ fiber-optic connector was the first small form factor fiber-optic connector to be widely used, and it’s only one-third the size of the SC and ST connectors it most often replaces. It offers these benefits: NN
Small size
NN
TX and RX strands in one connector
NN
Keyed for single polarity
NN
Pre-terminated ends that require no polishing or epoxy
NN
Easy to use
Figure 3.7 shows an example of an MT-RJ fiber-optic connector. LC is a newer style of SFF fiber-optic connector that’s pulling ahead of the MT-RJ. It is especially popular for use with Fibre-Channel adapters (FCs) and is a standard used for fast storage area networks and Gigabit Ethernet adapters. Figure 3.8 depicts an example of the LC connector. F i g u r e 3 . 7 A sample MT-RJ fiber-optic connector
27477c03.indd 72
2/26/09 12:52:04 PM
Physical Media
73
F i g u r e 3 . 8 A sample LC fiber-optic connector
It has similar advantages to MT-RJ and other SFF-type connectors but is easier to terminate. It uses a ceramic insert just as standard-sized fiber-optic connectors do.
Serial Cables Except for multi-mode fiber, all the cable flavors I’ve talked about so far are considered serial cable types. In network communications, serial means that one bit after another is sent out onto the wire or fiber and interpreted by a network card or other type of interface on the other end. Each 1 or 0 is read separately and then combined with others to form data. This is very different from parallel communication where bits are sent in groups and have to be read together to make sense of the message they represent. A good example of a parallel cable is an old printer cable—which has been replaced by USB, as I’ll get to in a minute.
RS-232 Recommended Standard 232 (RS-232) was a cable standard commonly used for serial data signals connecting data-terminal equipment and data-communications equipment, as when you connect a computer’s serial port to an external modem. Figure 3.9 shows an example of one of the many types of RS-232 cables. Because most laptops don’t even come with these types of connectors anymore, they’ve pretty much been replaced by things like USB and FireWire.
Universal Serial Bus (USB) Universal Serial Bus (USB) is now the built-in serial bus du jour of most motherboards. You usually get a maximum of 4 external USB interfaces, but add-on adapters can take that up to as many as 16 serial interfaces. USB can actually connect a maximum of 127 external devices, and it’s a much more flexible peripheral bus than either serial or parallel. We use USB to connect printers, scanners, and a host of other input devices like keyboards, joysticks, and mice. When connecting USB peripherals, you’ve got to connect them either directly to one of the USB ports (as shown in Figure 3.10) on the PC or to a USB hub that is connected to one of those USB ports.
27477c03.indd 73
2/26/09 12:52:04 PM
74
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
F i g u r e 3 . 9 An RS-232 cable end
F i g u r e 3 .1 0 A USB port
Hubs can be chained together to provide multiple USB connections; but even though you can connect up to 127 devices, it’s really not practical to go there. Each device has a USB plug, as shown in Figure 3.11.
27477c03.indd 74
2/26/09 12:52:06 PM
Properties of Cables
75
F i g u r e 3 .11 A USB plug
Properties of Cables The reason we use so many different types of cables in a network is that each type has its own set of properties that specifically make it the best to use for a particular area or purpose. Different types vary in transmission speeds, distance, duplex, noise immunity, and frequency, and I’ll cover each of these next.
Transmission Speeds Based on the type of cable or fiber you choose and the network that it’s installed in, network administrators can control the speed of a network to meet the network’s traffic demands. Admins usually permit, or would like to have, transmission speeds of up to 10Gbps or higher on the core areas of their networks that connect various network segments. In the distribution and access areas, where users connect to switches, it’s typically 100Mbps per connection; but transmission speeds are creeping up because the traffic demand is getting higher.
27477c03.indd 75
2/26/09 12:52:07 PM
76
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
Distance A deciding factor used in choosing what cable type to use is often the topology of a network and the distance between its components. Some network technologies can run much further than others without communication errors, but all network communications technologies are prone to attenuation—the degradation of signal due to the medium itself and the distance signals have to travel. Some cable types suffer from attenuation more than in others. For instance, any network using twisted-pair cable should have a maximum segment length of only 328 feet (100 meters).
Duplex All communications are either half-duplex or full-duplex. The difference is whether the communicating devices can “talk” and “listen” at the same time. During half-duplex communication, a device can either send communication or receive communication, but not both at the same time. Think walkie-talkie—when you press the button on the walkie-talkie, it turns the speaker off, and you can’t hear anything the other side is saying. In full-duplex communication, both devices can send and receive communication at the same time. This means that the effective throughput is doubled and communication is much more efficient. Full-duplex is typical in most of today’s switched networks. I’ll discuss both full and half duplex in more detail in Chapter 4, “The Current Ethernet Specifications.”
Noise Immunity (Security, EMI) Any time electrons are pushed through two wires next to each other, it creates a magnetic current. And we can create a current in the wires. This is good because without magnetic flux, we wouldn’t be using computers—the power that surges through them is a result of it. The bad news is that it also creates two communications issues. First, because the wire is creating a current based on the 1s and 0s coursing through it, with the right tools in hand, people can read the message in the wire without cutting it or even removing the insulation. You’ve heard of this—it’s called tapping the wire, and it’s clearly a valid security concern. In ancient history, high-security installations like the Pentagon actually encased communication wires in lead shielding to prevent them from being tapped. STP wires make tapping a little harder, but not hard enough. The best way to solve the magnetic-flux problem caused by electricity is to not use these wires at all. As I said, fiber-optic cables carry the signal as light on a glass or really pure plastic strand, and light is not susceptible to magnetic flux, making fiber optics a whole lot harder to tap. It’s still not impossible—you can do it at the equipment level, but you have to actually cut and then repair the cable to do that, which isn’t likely to go unnoticed. The second magnetic-flux issue comes from the outside in instead of from the inside out. Because wires can take on additional current if they’re near any source of magnetism, you’ve got to be really careful where you run your cables. You can avoid EMI by keeping copper cables away from all powerful magnetic sources like electric motors, speakers,
27477c03.indd 76
2/26/09 12:52:07 PM
Wiring Standards
77
amplifiers, fluorescent light ballasts, and so on. Just keep them away from anything that can generate a magnetic field!
Frequency Each cable type has a specified maximum frequency that gives you the transmission bandwidth it can handle. Cat 5e cable is tested to 100MHz maximum frequency and can run 1Gbps signals for relatively short distances. That’s maxing it out, but it’s still good for connecting desktop hosts at high speeds. On the other hand, Cat 6 is a 250MHz cable that can handle 1Gbps data flow all day long with ease. Cat 6 has a lot more twists and thicker cables, so it is best used when connecting floors of a building. Although signal is measured as bandwidth, the capacity to carry the signal in a cable is measured as frequency.
Wiring Standards Ethernet cabling is an important thing to understand, especially if you’re planning to work on any type of LAN network. There are different types of wiring standards available: NÛ
Straight-through cable (586A)
NÛ
Crossover cable (586B)
NÛ
Rolled cable (rollover)
NÛ
Hardware loopback
We will look into each one of these, and then I’ll end this section with some examples for you.
568A vs. 568B If you look inside a network cable, you will find four pairs of wires twisted together to prevent crosstalk; they’re also twisted like this to help prevent EMI and tapping. The same pins have to be used on the same colors throughout a network to receive and transmit; but how do you decide which color wire goes with which pin? The good news is that you don’t have to decide—at least not completely. Two wiring standards have surfaced that have been agreed on by over 60 vendors including AT&T, 3Com, and Cisco (although there isn’t 100 percent agreement). In other words, over the years, some network jacks have been pinned with the 568A standard and some have used the 568B standard, which can cause a bit of confusion if you don’t know what you’re looking at in your network. If you’re thinking, “What’s the difference, and why does it matter?” the answer is the position of four wires on one side of the cable—that’s it! There are eight wires in each UTP cable; pins 4, 5, 7, and 8 aren’t used in either standard.
27477c03.indd 77
2/26/09 12:52:08 PM
78
Chapter 3
N
Networking Topologies, Connectors, and Wiring Standards
If you’re installing new cabling to each cubicle and/or office, you need to make sure to connect all eight pins—and use Cat 5e or Cat 6. Voice over IP (VoIP) uses all eight pins, and it’s really common to have voice and data on the same wire at the same time in today’s networks.
This only leaves the wire pairs to connect to pins 1, 2, 3, and 6. If we connect the greenwhite, green, orange-white, and orange wires to pins 1, 2, 3, and 6, respectively, on both sides of the cable, we’re using the 568A standard and creating the kind of straight-through cable that’s regularly implemented as a regular patch cable for most networks. On the other hand, if we switch from pin 1 to pin 3 and from pin 2 to pin 6 on one side only, we’ve created a crossover cable for most networks.
Straight-Through Cable The straight-through cable is used to connect a host to a switch or hub, or a router to a switch or hub. No worries—I’ll tell you all about devices like switches, hubs, and routers in detail in Chapter 5, “Networking Devices.”
Four wires are used in straight-through cable to connect Ethernet devices. It’s really pretty simple to do this; Figure 3.12 depicts the four wires used in a straight-through Ethernet cable. Notice that only pins 1, 2, 3, and 6 are used. Connect 1 to 1, 2 to 2, 3 to 3, and 6 to 6, and you’ll be up and networking in no time. Just remember that this would be a 10/100 Ethernet-only cable, and it wouldn’t work with 1000Mbps Ethernet, voice, Token Ring, ISDN, and so on. F i g u r e 3 .1 2
Straight-through Ethernet cable Hub/Switch
Host
1
1
2
2
3
3
6
6
Crossover Cable The same four wires are used in this cable; and just as with the straight-through cable, you just connect the different pins together. Crossover cables can be used to connect these devices:
27477c03.indd 78
NÛ
Switch to switch
NÛ
Hub to hub
NÛ
Host to host
2/26/09 12:52:09 PM
Wiring Standards
NÛ
Hub to switch
NÛ
Router direct to host
79
Check out Figure 3.13, which demonstrates how each of the four wires are used in a crossover Ethernet cable. F i g u r e 3 .1 3
Crossover Ethernet cable Hub/Switch
Hub/Switch
1
1
2
2
3
3
6
6
Okay—did you notice that instead of connecting 1 to 1, 2 to 2, and so on, we connected pins 1 to 3, and 2 to 6, on each side of the cable? A crossover cable is typically used to connect two switches together, but it can also be used to test communications between two workstations directly, bypassing the switch. A crossover cable is used only in Ethernet UTP installations. You can connect two workstation NICs or a workstation and a server NIC directly with it. You’re going to find out a lot more about how important it is to label basically everything. But for now, make sure to label a crossover cable as what it is so that no one tries to use it as a workstation patch cable. If they do that, the workstation won’t be able to communicate with the hub and the rest of the network!
It’s really cool that you can carry a crossover cable with you in your tool bag along with your laptop—then, if you want to ensure that a server’s NIC is functioning correctly, you can just connect your laptop directly to the server’s NIC using your handy crossover cable. You should be able to log in to the server if both NICs are configured correctly. Use a cable tester to make sure that what you’re dealing with is in fact a crossover cable. The tester can also tell you if there’s a problem with the cable. Figure 3.14 shows an inexpensive cable tester for UTP. This cost-effective little tool will tell you beyond a shadow of a doubt if you have a straight-through or crossover cable—or even if there’s a problem with the cable.
Rollover Cable Although rollover cable isn’t used for hooking Ethernet connections together, you can use it to connect a host to a router console serial communication (com) port. And if you have a router or switch, you use this cable to connect your PC running HyperTerminal or some other terminal-emulation program to the hardware. Eight wires are used in this cable to connect serial devices, although not all eight are used to send information (just as in Ethernet networking). Figure 3.15 shows the eight wires used in a rolled cable.
27477c03.indd 79
2/26/09 12:52:10 PM
80
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
F i g u r e 3 .1 4 An inexpensive cable tester
F i g u r e 3 .1 5 Rolled Ethernet cable Host
Router/Switch
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
These are probably the easiest cables to make because you just cut the end off on one side of a straight-through cable, turn it over, and put the connector back on—using a new connector, of course.
Hardware Loopback In any talk about wiring, loopback isn’t so much a wiring standard as it is a way to redirect data flow. Sometimes you may need a computer to think it has a live connection to a network when it doesn’t, because it’s a good testing strategy and because you need a live
27477c03.indd 80
2/26/09 12:52:11 PM
Wiring Standards
81
network to install. In these cases, you will need to trick the PC into seeing its own output as input; and you do this with a loopback plug. It works a lot like a crossover cable except that it connects the transmit pins directly to the receive pins, as shown in Figure 3.16. It’s used by the NIC’s software diagnostics to test transmission and reception capabilities, and you just can’t completely test an NIC without one of these cool devices. F i g u r e 3 .1 6 A hardware loopback and its connections
Usually, the hardware loopback is no bigger than a single RJ-45 connector with a few small wires on the back. If a NIC has hardware diagnostics that can use the loopback, the hardware loopback plug will be included with the NIC. To use it, simply plug the loopback into the RJ-45 connector on the back of the NIC, and start the diagnostic software. Select the option in your NIC’s diagnostic software that requires the loopback, and start your diagnostic routine. These diagnostics will tell you if the NIC can send and receive data.
Test Your Cable Understanding You’ve taken a look at the various RJ-45 UTP cables. With that in mind, what cable is used between the switches in the following?
Switch
Switch ?
A
B
In order for host A to ping host B, you need a crossover cable to connect the two switches together. But what types of cables are used in the network shown in the following?
27477c03.indd 81
2/26/09 12:52:12 PM
82
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
Router
Console
In the second example, there are a variety of cables in use. For the connection between the switches, we’d clearly use a crossover cable like the one you saw in the earlier example. The trouble is, here we have a console connection that uses a rolled cable. Plus, the connection from the router to the switch is a straight-through cable, which is also what’s running between the hosts to the switches.
Installing Wiring Distributions By now, you’re probably getting the idea that there are a lot more components in the average computer networks than meets the eye, right? If this isn’t exactly a news bulletin to you, then you either already are, or have been, involved in the initial installation of the network. If the latter describes you, you probably will be, or already are, involved in the purchase and installation of the components that will connect the computers throughout your organization’s building. And it may also be up to you to verify that all of the network components have been installed properly and tested. So, let’s go over each of these components and the process of verifying their proper installation.
Vertical and Horizontal Cross-Connects A cross-connect is a location within a cabling system that facilitates the termination of cable elements, plus the reconnection of those elements with jumpers, termination blocks, and/or cables to a patch panel and so on. In other words, it’s where all the wires come together. Cables that run from communications closets to wall outlets are known as horizontal cables, because they are generally used on the same floor of a building. Backbone cables that connect equipment rooms, telecommunications rooms, and other physical termination points are referred to as vertical cables, because they often go
27477c03.indd 82
2/26/09 12:52:12 PM
Installing Wiring Distributions
83
from floor to floor in a building. All of these cables will eventually connect to each other and finish off the network cabling for the building. The exact pieces involved depend on the size of the installation, the needs of the organization, and the structure in which they’re installed. The maximum length of a Cat-3 horizontal cross-connect (meaning from wall outlet to closet) is 100 meters (328 feet).
Patch Panels A patch panel is usually a rack or wall-mounted structure that houses cable connections. A patch cable generally plugs into the front side, while the back holds the punched-down connection of a longer, more permanent cable. The purpose of the patch panel is to give the administrator a non-grief-ridden way to change the path of a signal quickly when needed. Figure 3.17 depicts a modern patch panel. F i g u r e 3 .17
A patch panel
These come in really handy if a cable inside a wall becomes damaged or fails because a network administrator can “patch around” the dead cable by simply changing the connection on two patch panels.
66 Block In the past, one of the most common types of patch panels was known as a 66 block. Even though these are now considered legacy equipment, they’re still listed as an objective on the exam. Figure 3.18 shows a 66 block. We don’t use them much anymore because they’re very large in comparison to newer wire-terminating devices, and they have a relatively small (25-pair) capacity. The final nail in their coffin is that they are unsuited for any network communications faster than 10Mbps. But once in a while, you still see these used in some telephone installations.
27477c03.indd 83
2/26/09 12:52:13 PM
84
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
F i g u r e 3 .1 8 A 66 block
MDF/IDF The main distribution frame (MDF) is a wiring point that’s generally used as a reference point for telephone lines. It’s installed in the building as part of the pre-wiring, and the internal lines are connected to it. After that, all that’s left is to connect the external (telephone company) lines to the other side to complete the circuit. Often, another wire frame called an intermediate distribution frame (IDF) is located in an equipment or telecommunications room. It is connected to the MDF and is used to provide greater flexibility for the distribution of all the communications lines to the building. It is typically (and better be) a sturdy metal rack designed to hold the bulk of cables coming from all over the building!
25 Pair A 25-pair cable consists of 25 individual pairs of wires all inside one common insulating jacket. It’s not generally used for data cabling, just for telephone cabling, and especially for backbone and cross-connect cables because it reduces the cable clutter significantly. This type of cable is often referred to as a feeder cable because it supplies signal to many connected pairs. In the picture of the 66 block, Figure 3.18, a 25-pair wire is connected to the 66 block to provide connectivity to the IDF.
100 Pair 100-pair feeder cables can be used for really huge telephone company installations. They combine 100 pairs of wires into one large, insulated cable. These large cables are also used in aerial installations and sometimes in buried and duct-type installations that run up and down a building. To keep the pairs unique, you’ve got to use colors other than the traditional networking ones.
27477c03.indd 84
2/26/09 12:52:14 PM
Installing Wiring Distributions
85
110 Block A newer type of wiring distribution point called a 110 block has replaced most telephone wire installations and is also used for computer networking. On one side, wires are punched down; the other side has RJ-11 (for phone) or RJ-45 (for network) connections. 110 blocks come in sizes from 25 to more than 500 wire pairs, and some are capable of carrying 1Gpbs connections when used with Category 6 cables. The hitch is that using Cat 6 with the 110 block is really difficult because of the size of the Cat 6 wiring.
Demarc/Demarc Extension The demarc (short for demarcation) is the last point of responsibility of the service provider. It’s often at the MDF in your building connection (if your building is large), but it’s usually just an RJ-45 jack that your channel service unit/data service unit (CSU/DSU) connects into from your router to wide area network (WAN) connections (CSU/DSU’s are explained in detail in Chapter 5). When troubleshooting, network admins often test for connectivity on both sides of the demarc to determine if the problem is internal or external. The length of copper or fiber that begins after the demarc but still doesn’t reach all the way up to your office is referred to as a demarc extension.
Smart Jack A smart jack, also called a network interface device (NID) or network interface unit, is owned by the PSTN and is a special network interface that’s often used between the service provider’s network and the internal network. You can’t physically test to an actual demarc because it is just an RJ-45 jack, but the service provider may install a NID that has power and can be looped for testing purposes. The smart-jack device may also provide for code and protocol conversion, making the signal from the service provider usable by the devices on the internal network like the CSU/DSU.
Above and Beyond the Network+! If you have a Cisco router that is having a problem—such as a serial WAN connection issue—and you’re using a serial port on your router to connect to a port on a CSU/DSU, type this at the enabled Cisco router console or telnet port:
config t int s0/0 loopback At this point, your interface will come up and look like it is working. That is, of course, if your connection from the router to the CSU/DSU is working properly. If not, you have a local problem.
27477c03.indd 85
2/26/09 12:52:14 PM
86
Chapter 3
N
Networking Topologies, Connectors, and Wiring Standards
Verifying Correct Wiring Installation Because most of us aren’t insecure enough to constantly go around thinking that we’ve made a whole bunch of mistakes, it’s common for installers to assume that they haven’t made any at all. Yes, they may test a cable or two for good measure, but they really do leave most cables totally untested and worse—they either keep incomplete, sketchy records or no records at all. A truly professional installer will verify each cable’s connectivity and keep detailed records of when it was tested and when it passed the connectivity test. Oh… and let me count the ways things can go wrong when pulling a network cable. Copper cables can be placed a little too close to a magnetic source and can be affected by EMI. Cable jackets can be ripped off completely when pulling the cable through a tight space or around a corner. Cables can be cut wrong and extended beyond the maximum length for their type. Fiber-optic cables are really fragile and can be easily and expensively damaged if they’re handled roughly or poorly installed. The best cable-installer companies assume that some of these things will go wrong, and therefore they will test, test, and test again. So if you’re handling your own installation, you should do the same things. Consider yourself your own customer—you want to keep yourself happy, don’t you? Seriously, the old carpenter’s rule of “measure twice, cut once” applies to cable installations as well, both literally and figuratively. The moral of this story is that you should test frequently during installation and again when you’re done. And definitely make sure you keep complete and detailed records to refer to, just in case something nasty happens later.
Verifying Proper Wiring Termination By the way, the number of things that can go wrong when terminating copper wires totally dwarfs the number that can happen when pulling cables. With a minimal amount of training and a little patience, almost anyone can pull a network cable without damaging it—at least, most of the time. Proper termination of copper cables to a punch-down block is much trickier and requires practice to get right, so save yourself that pain by always inspecting the installation and verifying that all wires are terminated properly in the right order. Fiber-optic termination requires extra-special (read, expensive) equipment and training. Unless your installers spend hours cutting, stripping, polishing, and terminating the fiberoptic cable and look for any mistakes or damage as thoroughly as a CSI looks for clues at a crime scene, they probably won’t get it done right the first time. You should always test a new connection with the appropriate tool. We will discuss the tools used to test connections in Chapter 18, “Software and Hardware Tools.” The tools to test the installation and termination of both UTP and fiber are covered in Chapter 18.
27477c03.indd 86
2/26/09 12:52:14 PM
Exam Essentials
87
Summary I know getting through this chapter probably wasn’t the most fun you’ve had recently. But understanding all those types of wires and cabling, along with their unique capacities, their associated standards, and the right connectors to use with them plus where to place them is integral to having a solid, foundational understanding of the things that make a great network run quickly and reliably. It’s critical for you to grasp the basics of networking. Having the facts about how a good network is designed and implemented and what goes into that process will make you an effective and efficient technician—and maybe, some day, a highly paid system administrator.
Exam Essentials Understand the various types of cables used in today’s networks. Coaxial (other than for cable modems) is rarely used, but twisted-pair and fiber optics are very common in today’s networks. Understand the various types of ends that are used on each type of cable. Coax uses BNC; twisted-pair uses RJ-11 for voice and RJ-45 for data; and fiber uses various ends, depending on its use. Understand what a 586A cable is. A 586A cable is also known as an Ethernet straightthrough cable and is used to connect hosts to switches, for example. Understand what a 586B cable is. A 586B cable is also known as an Ethernet cross-over cable and is used to connect switches to switches, for example.
27477c03.indd 87
2/26/09 12:52:14 PM
88
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
Written Lab 1. Which UTP wiring uses four twisted wire pairs (eight wires) and is rated for 250MHz? 2. The point at which the operational control or ownership changes from your company to a service provider is referred to as___________________. 3. Which type of cable will you use to connect switches? 4. Which RG rating of coax is used for cable modems? 5. Which UTP uses four twisted wire pairs (eight wires), is rated for 100MHz, and is capable of handling the disturbance on each pair caused by transmitting on all four pairs at the same time? 6. You want to connect a host to a switch port. What type of Ethernet cable will you use? 7. What type of hardware do you need to make a computer think it has a live connection to a network even when it doesn’t? 8. 586A uses which pins to make a connection? 9. 586B uses which pins to make a connection? 10. What are two advantages of fiber-optic cabling?
(The answers to the Written Lab can be found following the answers to the Review Questions for this chapter.)
27477c03.indd 88
2/26/09 12:52:14 PM
Review Questions
89
Review Questions 1. Why would a network administrator use plenum-rated cable during an installation? (Choose 2) A. Low combustion temperature B. High combustion temperature C. Reduces toxic gas released during a fire D. Is not susceptible to any interference 2. Which of the following Ethernet unshielded twisted-pair (UTP) cables types is most commonly used? A. 10Base-T B. 100Base-TX C. 1000Base-TX D. All of the above 3. UTP cable is rated in the following categories except: A. Category 2 B. Category 3 C. Category 5e D. Category 8 4. What type of connector does UTP cable typically use? A. BNC B. ST C. RJ-45 D. SC 5. Which of the following provides the longest cable run distance? A. Single-mode fiber B. multi-mode fiber C. category 3 UTP D. Coax 6. You need to crimp on a connector using an RJ-45 connector. Which pin-out configuration would you use to connect a host into a switch? A. UTP B. 586A C. 586B D. Rolled
27477c03.indd 89
2/26/09 12:52:15 PM
90
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
7. Fiber-optic cable is immune to electromagnetic interference (EMI) and radio frequency interference (RFI) because it: A. Transmits analog signals using electricity B. Transmits analog signals using light impulses C. Transmits digital signals using light impulses D. Transmits digital signals using electricity 8. What type of cable transmits lights from end-to-end? A. Coax B. Fiber-optic C. UTP D. Category 2 9. What is the main difference between single-mode fiber (SMF) and multimode fiber (MMF)? A. Electrical signals B. Number of light rays C. Number of digital signals D. Signal mode can be run a shorter distance 10. What type of cable should be used if you need to make a cable run longer than 100 meters? A. Category 5e B. Category 6 C. Fiber-optic D. Wireless link 11. Which of the following are fiber-optic connectors? (Select three.) A. BNC B. ST C. RJ-11 D. SC E. LC F. RJ-45 12. You need to connect two devices on a vertical connect and they need to send voice traffic. Which of the following cable will you use? A. Cat-3 B. Cat -5 C. Crossover D. Rolled
27477c03.indd 90
2/26/09 12:52:15 PM
Review Questions
91
13. How many hosts on a half-duplex segment can talk at one time? A. 0 B. 1 C. 2 D. Unlimited 14. Which type of cable does EMI have the least effect on? A. Coax B. Fiber-optic C. UTP D. STP 15. How many devices can be connected to a full-duplex segment? A. 0 B. 1 C. 2 D. 4 16. How many wires are used in UTP during transmission? A. 2 B. 4 C. 6 D. 8 17. A cross-over cable is used to connect all of the following except: A. Switch to switch B. Host to host C. Hub to switch D. Host to switch 18. Which type of cable should be used to connect to the console port on a router? A. Console cable B. Cross-over cable C. Straight-through cable D. USB
27477c03.indd 91
2/26/09 12:52:15 PM
92
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
19. The purpose of the demarcation point is to separate the customer from whom? A. The branch office B. Headquarters C. The data center D. The service provider 20. You need to make a 586B cable. How many pairs will you use? A. 1 B. 2 C. 3 D. 4
27477c03.indd 92
2/26/09 12:52:15 PM
Answers to Review Questions
93
Answers to Review Questions 1. B, C. Plenum-rated cable means that the coating doesn’t begin burning until a much higher temperature of heat; doesn’t release as many toxic fumes as PVC when it does burn; and is rated for use in air plenums that carry breathable air, usually as non-enclosed fresh-air return pathways that share space with cabling. 2. D. UTP is commonly used in twisted-pair Ethernet like 10Base-T, 100Base-TX, 1000Base-TX, and so on. 3. D. Unshielded twisted-pair has standards from Category 2–6 for use on Ethernet networks. There is no Category 8 defined. 4. C. UTP usually connects with RJ-45. You use a crimper to attach an RJ connector to a cable. 5. A. Single mode fiber allows for the maximum cable run distances. 6. B. You would use a straight-through cable to connect a host to a switch, and that pin-out is called 586A. 7. C. Fiber-optic cable transmits digital signals using light impulses rather than electricity; therefore it is immune to EMI and RFI. 8. B. Remember that fiber-optic cable transmits a digital signal using light impulses. Light is carried on either a glass or a plastic core. 9. B. The difference between single-mode fibers and multimode fibers is in the number of light rays (and thus the number of signals) they can carry. Generally speaking, multimode fiber is used for shorter-distance applications and single-mode fiber for longer distances. 10. C. Standards limit UTP to a mere 100 meters. Different fiber-optic types have different maximum lengths, but fiber-optic is the only cable type that can extend well beyond 100 meters. 11. B, D, E. There are many different types of fiber-optic connectors. SC, ST, LC, and MT-RJ are some of the more typical connectors in use today. 12. B. To connect two devices for voice on a vertical connect, the minimum cable you can use is category 5. 13. B. In half-duplex communication, a device can either send communication or receive communication, but it cannot do both at the same time. 14. B. Fiber-optic cable only transmits light (not electricity like UTP), so EMI has zero effect on it. 15. C. Full-duplex communication requires a point-to-point configuration because the collision-avoidance circuit is disabled. 16. B. Both wiring standards for UTP (568A and 568B) utilize only pins 1, 2, 3, and 6.
27477c03.indd 93
2/26/09 12:52:15 PM
94
Chapter 3 Networking Topologies, Connectors, and Wiring Standards n
17. D. All devices that are pinned the same for transmit and receive require a cross-over cable to communicate directly. 18. A. A rolled cable or console cable would be used to connect a host to a router console serial communication (com) port. 19. D. The demarcation point or demarc is the point at which the operational control or ownership changes from your company to a service provider. This is often at the MDF in relation to telephone connections and the CSU/DSU in regard to WAN connections. 20. B. A 586B is a crossover cable and this cable uses two pairs of wires.
27477c03.indd 94
2/26/09 12:52:15 PM
Answers to Written Lab
95
Answers to Written Lab 1. Category 6 2. Demarcation point or demarc 3. Crossover or 586B 4. RG-6 5. Category 5e 6. Straight-through or 586A 7. A hardware loopback 8. 1, 2, 3, and 6 9. 1 to 3 and 2 to 6 10. It is completely immune to EMI and RFI and can transmit up to 40 kilometers (about 25 miles).
27477c03.indd 95
2/26/09 12:52:15 PM
27477c03.indd 96
2/26/09 12:52:15 PM
Chapter
4
The Current Ethernet Specifications The Following CompTIA Network+ Exam Objectives Are Covered in This Chapter: ÛÛ 2.6 Categorize LAN technology types and properties NN
NN
27477c04.indd 97
Types: NN
Ethernet
NN
10BaseT
NN
100BaseTX
NN
100BaseFX
NN
1000BaseT
NN
1000BaseX
NN
10GBaseSR
NN
10GBaseLR
NN
10GBaseER
NN
10GBaseSW
NN
10GBaseLW
NN
10GBaseEW
NN
10GBaseT
Properties NN
CSMA/CD
NN
Broadcast
NN
Collision
NN
Bonding
NN
Speed
NN
Distance
2/26/09 12:56:54 PM
Before we move on and explore networking devices, the TCP/ IP and DoD models, IP addressing, subnetting, and routing in the upcoming chapters, you’ve got to understand the big picture of LANs and learn the answer to the key questions: “How is Ethernet used in today’s networks, and what are Media Access Control (MAC) addresses and how are they used?” This chapter will answer those questions and more. I’ll not only discuss the basics of Ethernet and the way MAC addresses are used on an Ethernet LAN, but I’ll also cover the protocols used with Ethernet at the Data Link layer as well. You’ll also learn about the various Ethernet specifications. So now, let’s get started with the fundamentals of connecting two hosts together. For up-to-the-minute updates for this chapter, please see www.lammle.com or www.sybex.com/go/comptianetwork+studyguide.
Network Basics Networks and networking have grown exponentially over the last 20 years—understandably so. They’ve had to evolve at light speed just to keep up with huge increases in basic mission-critical user needs ranging from sharing data and printers to more advanced demands like videoconferencing. Unless everyone who needs to share network resources is located in the same office area (an increasingly uncommon situation), the challenge is to connect the sometimes large number of relevant networks together so all users can share the networks’ wealth. As I started to discuss in Chapter 1, “Introduction to Networks,” let’s take a look at how communication happens on a basic local area network (LAN). Starting with Figure 4.1, you get a picture of a basic LAN network that’s connected together using an Ethernet connection to a hub. This network is actually one collision domain and one broadcast domain, but don’t stress if you have no idea what this means—I’m going to talk about both collision and broadcast domains in depth in Chapter 5, “Networking Devices.” Okay, about Figure 1.1… How would you say the PC named Bob communicates with the PC named Sally? Well, they’re both on the same LAN connected with a multiport repeater (a hub). So does Bob just send out a data message, “Hey Sally, you there?” or does Bob use Sally’s IP address and put things more like, “Hey 192.168.0.3, are you there?” I hope you picked the IP address option, but even if you did, the news is still bad—both answers are wrong! Why?
27477c04.indd 98
2/26/09 12:56:55 PM
Network Basics
99
Because Bob is actually going to use Sally’s MAC address (known as a hardware address), which is burned right into the network card of Sally’s PC, to get hold of her. F i g u r e 4 .1 The basic network Bob
Sally
(Hub)
This is all good, but how does Bob get Sally’s MAC address when Bob knows only Sally’s name and doesn’t even have her IP address? Bob is going to start by using name resolution (hostname to IP address resolution), something that’s usually accomplished using Domain Name Service (DNS). And note that if these two hosts are on the same LAN, Bob can just broadcast to Sally asking her for the information (no DNS needed)—welcome to Microsoft Windows, Vista included! Here’s the output from a network analyzer depicting a simple name-resolution process from Bob to Sally: Time Source Destination Protocol 53.892794 192.168.0.2 192.168.0.255 NBNS
Info Name query NB SALLY<00>
As I already mentioned, because the two hosts are on a local LAN, Windows (Bob) will broadcast to resolve the name Sally (the destination 192.168.0.255 is a broadcast address). Let’s take a look at the rest of the information: EthernetII,Src:192.168.0.2(00:14:22:be:18:3b),Dst:Broadcast(ff:ff:ff:ff:ff:ff)
This output shows that Bob knows his own MAC address and source IP address but not Sally’s IP address or MAC address; so, Bob sends a broadcast address of all fs for the MAC address (a Data Link layer broadcast) and an IP LAN broadcast of 192.168.0.255. Again, no worries—you’re going to learn all about broadcasts in Chapter 6, “Introduction to Internet Protocol (IP).” Before the name is resolved, the first thing Bob has to do is broadcast on the LAN to get Sally’s MAC address so he can communicate to her PC and resolve her name to an IP address: Time 5.153054
27477c04.indd 99
Source Destination Protocol Info 192.168.0.2 Broadcast ARP Who has 192.168.0.3? Tell 192.168.0.2
2/26/09 12:56:56 PM
100
Chapter 4 The Current Ethernet Specifications n
Next, check out Sally’s response: Time Source Destination Protocol Info 5.153403 192.168.0.3 192.168.0.2 ARP 192.168.0.3 is at 00:0b:db:99:d3:5e 5.53.89317 192.168.0.3 192.168.0.2 NBNS Name query response NB 192.168.0.3
Okay, sweet—Bob now has both Sally’s IP address and her MAC address. These are both listed as the source address at this point because this information was sent from Sally back to Bob. So, finally, Bob has all the goods he needs to communicate with Sally. And just so you know, I’m going to tell you all about Address Resolution Protocol (ARP) and show you exactly how Sally’s IP address was resolved to a MAC address a little later in Chapter 6. By the way, I want you to understand that Sally still had to go through the same resolution processes to communicate back to Bob—sounds crazy, huh? Consider this a welcome to IPv4 and basic networking with Windows—and we haven’t even added a router yet.
Ethernet Basics Ethernet is a contention media-access method that allows all hosts on a network to share the same bandwidth of a link. Ethernet is popular because it’s readily scalable, meaning that it’s comparatively easy to integrate new technologies, such as Fast Ethernet and Gigabit Ethernet, into an existing network infrastructure. It’s also relatively simple to implement in the first place, and with it, troubleshooting is reasonably straightforward. Ethernet uses both Data Link and Physical layer specifications, and this section of the chapter will give you both the Data Link layer and Physical layer information you need to effectively implement, troubleshoot, and maintain an Ethernet network.
Collision Domain The term collision domain is an Ethernet term that refers to a particular network scenario wherein one device sends a packet out on a network segment, thereby forcing every other device on that same physical network segment to pay attention to it. This is bad because if two devices on one physical segment transmit at the same time, a collision event—a situation where each device’s digital signals interfere with another on the wire—occurs and forces the devices to retransmit later. Collisions have a dramatically negative effect on network performance, so they’re definitely something we want to avoid! The situation I just described is typically found in a hub environment where each host segment connects to a hub that represents only one collision domain and one broadcast domain. This begs the question, “What’s a broadcast domain?”
Broadcast Domain Here’s that answer… A broadcast domain refers to the set of all devices on a network segment that hear all the broadcasts sent on that segment.
27477c04.indd 100
2/26/09 12:56:56 PM
Ethernet Basics
101
Even though a broadcast domain is typically a boundary delimited by physical media like switches and repeaters, it can also reference a logical division of a network segment where all hosts can reach each other via a Data Link layer (hardware address) broadcast. That’s the basic story, but rest assured that I’ll be delving deeper into the skinny on collision and broadcast domains a bit later in Chapter 5.
CSMA/CD Ethernet networking uses Carrier Sense Multiple Access with Collision Detection (CSMA/CD), a protocol that helps devices share the bandwidth evenly without having two devices transmit at the same time on the network medium. CSMA/CD was created to overcome the problem of those collisions that occur when packets are transmitted simultaneously from different hosts. And trust me—good collision management is crucial, because when a host transmits in a CSMA/CD network, all the other hosts on the network receive and examine that transmission. Only bridges and routers can effectively prevent a transmission from propagating throughout the entire network. So, how does the CSMA/CD protocol work? Let’s start by taking a look at Figure 4.2. F i g u r e 4 . 2 CSMA/CD A
B
C
D
A
B
C
D
A
B
C
D
Collision A
B
C
D
Jam Jam Jam Jam Jam Jam Jam Jam Carrier Sense Multiple Access with Collision Detection (CSMA/CD)
27477c04.indd 101
2/26/09 12:56:57 PM
Chapter 4
102
N
The Current Ethernet Specifications
When a host wants to transmit over the network, it first checks for the presence of a digital signal on the wire. If all is clear, meaning that no other host is transmitting, the host will then proceed with its transmission. But it doesn’t stop there. The transmitting host constantly monitors the wire to make sure no other hosts begin transmitting. If the host detects another signal on the wire, it sends out an extended jam signal that causes all hosts on the segment to stop sending data (think busy signal). The hosts respond to that jam signal by waiting a while before attempting to transmit again. Backoff algorithms determine when the colliding stations can retransmit. If collisions keep occurring after 15 tries, the hosts attempting to transmit will then time out. Pretty clean! When a collision occurs on an Ethernet LAN, the following happens: NÛ
A jam signal informs all devices that a collision occurred.
NÛ
The collision invokes a random backoff algorithm.
NÛ
NÛ
Each device on the Ethernet segment stops transmitting for a short time until the timers expire. All hosts have equal priority to transmit after the timers have expired. And following are the effects of having a CSMA/CD network sustaining heavy collisions:
NÛ
Delay
NÛ
Low throughput
NÛ
Congestion Backoff on an 802.3 network is the retransmission delay that’s enforced when a collision occurs. When a collision occurs, a host will resume transmission after the forced time delay has expired. After this backoff delay period has expired, all stations have equal priority to transmit data.
In the following sections, I’m going to cover Ethernet in detail at both the Data Link layer (Layer 2) and the Physical layer (Layer 1).
Half- and Full-Duplex Ethernet Just so you know, half-duplex Ethernet is defined in the original 802.3 Ethernet specification. Basically, when you run half duplex, you’re using only one wire pair with a digital signal either transmitting or receiving. This really isn’t all that different from full duplex because you can both transmit and receive—you just don’t get to do that at the same time running half duplex like you can if you’re running full duplex. Here’s how it works: If a host hears a digital signal, it uses the CSMA/CD protocol to help prevent collisions and to permit retransmitting if a collision does occur. Half-duplex Ethernet—typically 10Base-T—is only about 30 to 40 percent efficient because a large 10Base-T network will usually provide only 3 to 4Mbps at most. Although it’s true that 100Mbps Ethernet can and sometimes does run half duplex, it’s just not very common to find that happening these days.
27477c04.indd 102
2/26/09 12:56:57 PM
Ethernet Basics
103
In contrast, full-duplex Ethernet uses two pairs of wires at the same time instead of one measly wire pair like half duplex employs. Plus, full duplex uses a point-to-point connection between the transmitter of the sending device and the receiver of the receiving device. This means that with full-duplex data transfer, you not only get faster data-transfer speeds, but you also get collision-prevention too—sweet! You don’t need to worry about collisions because now it’s like a freeway with multiple lanes instead of the single-lane road provided by half duplex. Full-duplex Ethernet is supposed to offer 100 percent efficiency in both directions—for example, you can get 20Mbps with a 10Mbps Ethernet running full duplex or 200Mbps for Fast Ethernet. But this rate is something known as an aggregate rate, which translates as “you’re supposed to get” 100 percent efficiency. No guarantees, in networking as in life. Full-duplex Ethernet can be used in many situations; here are some examples: NÛ
With a connection from a switch to a host
NÛ
With a connection from a switch to a switch
NÛ
With a connection from a host to a host using a crossover cable You can run full duplex with just about any device except a hub.
You may be wondering: If it’s capable of all that speed, why wouldn’t it deliver? Well, when a full-duplex Ethernet port is powered on, it first connects to the remote end and then negotiates with the other end of the Fast Ethernet link. This is called an auto-detect mechanism. This mechanism first decides on the exchange capability, which means it checks to see if it can run at 10, 100, or even 1000Mbps. It then checks to see if it can run full duplex; and if it can’t, it will run half duplex instead. Hosts usually auto-detect both the Mbps and the duplex type available (the default setting), but you can manually set both the speed and duplex type on the network interface card (NIC) card, as shown in the following graphic:
27477c04.indd 103
2/26/09 12:56:58 PM
104
Chapter 4
N
The Current Ethernet Specifications
It is pretty rare these days to go into a NIC configuration on a host and change these settings, but this example shows that you can do that if you want. Remember that half-duplex Ethernet shares a collision domain and provides a lower effective throughput than full-duplex Ethernet, which typically has a private collision domain and a higher effective throughput.
Last, remember these important points: NÛ
There are no collisions in full-duplex mode.
NÛ
A dedicated switch port is required for each full-duplex host.
NÛ
The host network card and the switch port must be capable of operating in fullduplex mode. Now let’s take a look at how Ethernet works at the Data Link layer.
Ethernet at the Data Link Layer Ethernet at the Data Link layer is responsible for Ethernet addressing, commonly referred to as hardware addressing or MAC addressing. Ethernet is also responsible for framing packets received from the Network layer and preparing them for transmission on the local network through the Ethernet contention media-access method. Ethernet MAC addresses are made up of hexadecimal addresses. So before I discuss MAC addresses, let’s start by talking about binary, decimal, and hexadecimal addresses and how to convert one to another.
Binary to Decimal and Hexadecimal Conversion Understanding the differences between binary, decimal, and hexadecimal numbers and how to convert one format into the other is very important before we move to discussing the TCP/IP protocol stack and IP addressing in Chapter 6 and Chapter 7, “IP Addressing.” So let’s get started with binary numbering. It’s pretty simple, really. Each digit used is limited to either a 1 (one) or a 0 (zero), and each digit is called 1 bit (short for binary digit). Typically, you count either 4 or 8 bits together, with these being referred to as a nibble and a byte, respectively. What’s interesting about binary numbering is the value represented in a decimal format— the typical decimal format being the base-10 number scheme that we’ve all used since kindergarten. The binary numbers are placed in a value spot, starting at the right and moving left, with each spot having double the value of the previous spot. Table 4.1 shows the decimal values of each bit location in a nibble and a byte. Remember, a nibble is 4 bits and a byte is 8 bits.
27477c04.indd 104
2/26/09 12:56:58 PM
Ethernet at the Data Link Layer
105
Ta b l e 4 .1 Binary Values Nibble Values
Byte Values
8421
128 64 32 16 8 4 2 1
What all this means is that if a one digit (1) is placed in a value spot, then the nibble or byte takes on that decimal value and adds it to any other value spots that have a 1. And if a zero (0) is placed in a bit spot, you don’t count that value. Let me clarify things for you—if we have a 1 placed in each spot of our nibble, we then add up 8 + 4 + 2 + 1, to give us a maximum value of 15. Another example for our nibble values is 1010, which means that the 8 bit and the 2 bit are turned on and equal a decimal value of 10. If we have a nibble binary value of 0110, then our decimal value is 6, because the 4 and 2 bits are turned on. But the byte values can add up to a value that’s significantly higher than 15. This is how— if we count every bit as a one (1), then the byte binary value looks like this (remember, 8 bits equal a byte): 11111111 We then count up every bit spot because each is turned on. It looks like this, which demonstrates the maximum value of a byte: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255 A binary number can equal plenty of other decimal values. Let’s work through a few examples: 10010110 Which bits are on? The 128, 16, 4, and 2 bits are on, so we’ll just add them up: 128 + 16 + 4 + 2 = 150. 01101100 Which bits are on? The 64, 32, 8, and 4 bits are on, so we add them up: 64 + 32 + 8 + 4 = 108. 11101000 Which bits are on? The 128, 64, 32, and 8 bits are on, so we add the values: 128 + 64 + 32 + 8 = 232. You should memorize Table 4.2 before braving the IP sections in Chapters 6 and 7. Ta b l e 4 . 2 Binary-to-Decimal Memorization Chart
27477c04.indd 105
Binary Value
Decimal Value
10000000
128
11000000
192
11100000
224
2/26/09 12:56:59 PM
Chapter 4
106
TA b l E 4 . 2
N
The Current Ethernet Specifications
Binary-to-Decimal Memorization Chart (continued)
Binary Value
Decimal Value
11110000
240
11111000
248
11111100
252
11111110
254
11111111
255
Hexadecimal addressing is completely different than binary or decimal—it’s converted by reading nibbles, not bytes. By using a nibble, we can convert these bits to hex pretty simply. First, understand that the hexadecimal addressing scheme uses only the numbers 0 through 9. And because the numbers 10, 11, 12, and so on can’t be used (because they are two-digit numbers), the letters A, B, C, D, E, and F are used to represent 10, 11, 12, 13, 14, and 15, respectively. Hex is short for hexadecimal, which is a numbering system that uses the first six letters of the alphabet (A through F) to extend beyond the available 10 digits in the decimal system. Hexadecimal has a total of 16 digits.
Table 4.3 shows both the binary value and the decimal value for each hexadecimal digit. TA b l E 4 . 3
27477c04.indd 106
Hex-to-Binary to Decimal Chart
Hexadecimal Value
Binary Value
Decimal Value
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
2/26/09 12:56:59 PM
Ethernet at the Data Link Layer
107
Ta b l e 4 . 3 Hex-to-Binary to Decimal Chart (continued) Hexadecimal Value
Binary Value
Decimal Value
7
0111
7
8
1000
8
9
1001
9
A
1010
10
B
1011
11
C
1100
12
D
1101
13
E
1110
14
F
1111
15
Did you notice that the first 10 hexadecimal digits (0–9) are the same values as the decimal values? If not, look again. This handy fact makes those values super easy to convert. So suppose you have something like this: 0x6A. (Some manufacturers put 0x in front of characters so you know that they’re a hex value, while others just give you an “h”. It doesn’t have any other special meaning.) What are the binary and decimal values? To correctly answer that question, all you have to remember is that each hex character is one nibble and two hex characters together make a byte. To figure out the binary value, first put the hex characters into two nibbles and then put them together into a byte. 6 = 0110 and A (which is 10 in hex) = 1010, so the complete byte is 01101010. To convert from binary to hex, just take the byte and break it into nibbles. Here’s how you do that: Say you have the binary number 01010101. First, break it into nibbles—0101 and 0101—with the value of each nibble being 5 because the 1 and 4 bits are on. This makes the hex answer 0x55. And in decimal format, the binary number is 01010101, which converts to 64 + 16 + 4 + 1 = 85. Okay, now try another binary number: 11001100 Our answer is 1100 = 12 and 1100 = 12 (therefore, it’s converted to CC in hex). The decimal conversion answer is 128 + 64 + 8 + 4 = 204. One more example, and then we need to get working on the Physical layer. Suppose we’re given the following binary number: 10110101
27477c04.indd 107
2/26/09 12:56:59 PM
108
Chapter 4
N
The Current Ethernet Specifications
The hex answer is 0xB5, because 1011 converts to B and 0101 converts to 5 in hex value. The decimal equivalent is 128 + 32 + 16 + 4 + 1 = 181. See the Written Lab for more practice with binary/hex/decimal conversion.
Ethernet Addressing Now that you’ve got binary to decimal to hexadecimal address conversion down, we can get into how Ethernet addressing works. It uses the Media Access Control (MAC) address burned into each and every Ethernet NIC. The MAC, or hardware, address is a 48-bit (6-byte) address written in a hexadecimal format. Figure 4.3 shows the 48-bit MAC addresses and how the bits are divided. FigurE 4.3
Ethernet addressing using MAC addresses 24 bits 47
46
I/G
Organizationally G/L Unique Identifier (OUI) (Assigned by IEEE)
24 bits
Vendor assigned
The organizationally unique identifier (OUI) is assigned by the Institute of Electrical and Electronics Engineers (IEEE) to an organization. It’s composed of 24 bits, or 3 bytes. The organization, in turn, assigns a globally administered address (24 bits, or 3 bytes) that is unique (supposedly—no guarantees) to each and every adapter it manufactures. Look closely at the figure. The high-order bit is the Individual/Group (I/G) bit. When it has a value of 0, we can assume that the address is the MAC address of a device and may well appear in the source portion of the MAC header. When it is a 1, we can assume that the address represents either a broadcast or multicast address in Ethernet or a broadcast. The next bit is the Global/Local bit (G/L, also known as U/L, where U means universal). When set to 0, this bit represents a globally administered address (as standardized by the IEEE). When the bit is a 1, it represents a locally governed and administered address. The low-order 24 bits of an Ethernet address represent a locally administered or manufacturerassigned code. This portion commonly starts with 24 0s for the first card made and continues in order until there are 24 1s for the last (16,777,216th) card made. You’ll find that many manufacturers use these same six hex digits as the last six characters of their serial number on the same card.
Ethernet Frames The Data Link layer is responsible for combining bits into bytes and bytes into frames. Frames are used at the Data Link layer to encapsulate packets handed down from the Network layer for transmission on a type of physical media access.
27477c04.indd 108
2/26/09 12:57:00 PM
Ethernet at the Data Link Layer
109
The function of Ethernet stations is to pass data frames between each other using a group of bits known as a MAC frame format. This provides error detection from a cyclic redundancy check (CRC). But remember—this is error detection, not error correction. The 802.3 frames and Ethernet frame are shown in Figure 4.4. Encapsulating a frame within a different type of frame is called tunneling.
FigurE 4.4
802.3 and Ethernet frame formats
Ethernet_II Preamble 8 bytes
DA 6 bytes
SA 6 bytes
Type 2 bytes
Data
FCS 4 bytes
Data
FCS
802.3_Ethernet Preamble 8 bytes
DA 6 bytes
SA 6 bytes
Length 2 bytes
Following are the details of the different fields in the 802.3 and Ethernet frame types: The following section regarding frame headings and the various types of Ethernet frames are beyond the CompTIA Network+ objectives. Throughout the rest of this book, I will show you screen shots from a network analyzer. It’s always good to understand what you are looking at, so I put this section in to help you understand a frame structure.
Preamble An alternating 1,0 pattern provides a 5MHz clock at the start of each packet, which allows the receiving devices to lock the incoming bit stream. Start Frame Delimiter (SFD)/Synch The preamble is seven octets, and the SFD is one octet (synch). The SFD is 10101011, where the last pair of 1s allows the receiver to come into the alternating 1,0 pattern somewhere in the middle and still sync up and detect the beginning of the data (this field is not shown in the figure). Destination Address (DA) This transmits a 48-bit value using the least significant bit (LSB) first. The DA is used by receiving stations to determine whether an incoming packet is addressed to a particular host. The DA can be an individual address or a broadcast or
27477c04.indd 109
2/26/09 12:57:01 PM
110
Chapter 4 The Current Ethernet Specifications n
multicast MAC address. Remember that a broadcast is all 1s (or Fs in hex) and is sent to all devices, but a multicast is sent only to a similar subset of hosts on a network. Source Address (SA) The SA is a 48-bit MAC address used to identify the transmitting device, and it uses the LSB first. Broadcast and multicast address formats are illegal within the SA field. Length or Type 802.3 uses a Length field, but the Ethernet frame uses a Type field to identify the Network layer protocol. 802.3 by itself cannot identify the upper-layer routed protocol and must be used with a proprietary LAN—Internetwork Packet Exchange (IPX), for example. Data This is a packet sent down to the Data Link layer from the Network layer. The size can vary from 64 to 1500 bytes. Frame Check Sequence (FCS) FCS is a field at the end of the frame that’s used to store the CRC. Okay—let’s take a minute to look at some frames caught on our trusty network analyzer. You can see that the following frame has only three fields: Destination, Source, and Type (shown as Protocol Type on this analyzer): Destination: 00:60:f5:00:1f:27 Source: 00:60:f5:00:1f:2c Protocol Type: 08-00 IP
This is an Ethernet_II frame. Notice that the type field is IP, or 08-00 (mostly just referred to as 0x800) in hexadecimal. The next frame has the same fields, so it must be an Ethernet_II frame too: Destination: ff:ff:ff:ff:ff:ff Ethernet Broadcast Source: 02:07:01:22:de:a4 Protocol Type: 08-00 IP
Did you notice that this frame was a broadcast? You can tell because the destination hardware address is all 1s in binary, or all Fs in hexadecimal. Let’s take a look at one more Ethernet_II frame. I’ll talk about this next example again when we use IPv6 in Chapter 6, but you can see that the Ethernet frame is the same Ethernet_II frame we use with the IPv4 routed protocol. The difference is that the Type field has 0x86dd when we are carrying IPv6 data; and when we have IPv4 data, we use 0x0800 in the Protocol field: Destination: IPv6-Neighbor-Discovery_00:01:00:03 (33:33:00:01:00:03) Source: Aopen_3e:7f:dd (00:01:80:3e:7f:dd) Type: IPv6 (0x86dd)
This is the beauty of the Ethernet_II frame. Because of the Protocol field, we can run any Network layer routed protocol and it will carry the data because it can identify that particular Network layer protocol.
27477c04.indd 110
2/26/09 12:57:01 PM
Ethernet at the Physical Layer
111
Channel Bonding Channel bonding (also known as Ethernet bonding) is a computer-networking arrangement where two or more network interfaces on a host are combined for redundancy and/or increased throughput. There are various names for this technology, but Link Aggregation is the most common. Cisco calls this EtherChannel. Figure 4.5 shows some examples of Ethernet channel bonding. F i g u r e 4 . 5 Ethernet channel bonding example
Switch
Switch
Switch ISP
Switch or Router
In Figure 4.5, you can see that bonding can be used to attach multiple connections to a server, between switches, and even for connections to the Internet, providing fault tolerance as well as improved throughput.
Ethernet at the Physical Layer Ethernet was first implemented by a group called DIX (Digital, Intel, and Xerox). They created and implemented the first Ethernet LAN specification, which the IEEE used to create the IEEE 802.3 Committee. This was a 10Mbps network that ran on coax, then on twisted-pair, and finally on fiber physical media. The IEEE extended the 802.3 Committee to two new committees known as 802.3u (Fast Ethernet) and 802.3ab (Gigabit Ethernet on Category 5+) and then finally 802.3ae (10Gbps over fiber and coax). Figure 4.6 shows the IEEE 802.3 and original Ethernet Physical layer specifications. When designing your LAN, it’s really important to understand the different types of Ethernet media available to you. Sure, it would be great to run Gigabit Ethernet to each desktop and 10Gbps between switches (and to servers), and although this is just starting to happen, justifying the cost of that network today for most companies would be a pretty hard sell. But if instead, you mix and match the different types of Ethernet media methods currently available, you can come up with a cost-effective network solution that works great.
27477c04.indd 111
2/26/09 12:57:01 PM
112
Chapter 4 The Current Ethernet Specifications n
F i g u r e 4 . 6 Ethernet Physical layer specifications Data Link (MAC layer)
100BaseT4
100BaseFX
100BaseTX
10BaseF
10BaseT
10Base5
10Base2
Ethernet
Physical
802.3
The Electronic Industries Association and the newer Telecommunications Industry Alliance (EIA/TIA) is the standards body that creates the Physical layer specifications for Ethernet. The EIA/TIA specifies that Ethernet use a Registered Jack (RJ) connector with a 4 5 wiring sequence on unshielded twisted pair (UTP) cabling (RJ-45). However, the industry is calling this just an 8-pin modular connector. Each Ethernet cable type that is specified by the EIA/TIA has something known as inherent attenuation, which is defined as the loss of signal strength as it travels the length of a cable, and is measured in decibels (dB). The cabling used in corporate and home markets is measured in categories. A higher-quality cable will have a higher-rated category and lower attenuation. For example, Category 5 is better than Category 3 because Category 5 cables have more wire twists per foot and therefore less crosstalk. Crosstalk is the unwanted signal interference from adjacent pairs in the cable. Here are the original IEEE 802.3 standards: 10Base-2 10Mbps baseband technology, up to 185 meters in length. Known as Thinnet and can support up to 30 workstations on a single segment. Uses a physical and logical bus with Attachment Unit Interface (AUI) connectors. The 10 means 10Mbps, Base means baseband technology—a signaling method for communication on the network— and the 2 means almost 200 meters. 10Base-2 Ethernet cards use BNC (British Naval Connector, Bayonet Neill-Concelman, or Bayonet Nut Connector) and T-connectors