Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router

ppt
Số trang Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router 96 Cỡ tệp Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router 29 MB Lượt tải Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router 69 Lượt đọc Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router 26
Đánh giá Bài giảng Mạng máy tính nâng cao (Advanced computer networks) - Chương 2: Wan and Router
4 ( 13 lượt)
Nhấn vào bên dưới để tải tài liệu
Để tải xuống xem đầy đủ hãy nhấn vào bên trên
Chủ đề liên quan

Nội dung

NLU-FIT Advanced Computer Networks 1 Mạng Máy Tính Nâng Cao Chương 2:WAN AND ROUTER Objective 2  Advanced Computer Networks     NLU-FIT   Identify organizations responsible for WAN standards Explain the difference between a WAN and LAN and the type of addresses each uses Describe the role of a router in a WAN Identify internal components of the router and describe their functions Describe the physical characteristics of the router Identify common ports on a router Properly connect Ethernet, serial WAN, and console ports Objective 3   Advanced Computer Networks      NLU-FIT  Describe the purpose of the IOS Describe the basic operation of the IOS Identify various IOS features Identify the methods to establish a command-line interface (CLI) session with the router Move between the user command executive (user EXEC) and privileged EXEC modes Establish a HyperTerminal session on a router Log into a router Use the help feature in the command line interface NLU-FIT Advanced Computer Networks 4 WAN STANDARDS -WAN Devices WAN Devices 5  Advanced Computer Networks   NLU-FIT  Routers offer many services, including internetworking and WAN interface ports. Switches in the WAN provide connectivity for voice, data, and video communication. Modems include interface voice-grade services, channel service units/digital service units (CSU/DSUs) that interface T1/E1 services, and Terminal Adapters/Network Termination 1 (TA/NT1s) that interface Integrated Services Digital Network (ISDN) services. Communication servers concentrate dial-in and dial-out user communication. WAN Standards 6  NLU-FIT Advanced Computer Networks   WAN physical layer protocols describe how to provide electrical, mechanical, operational, and functional connections for WAN services. WAN data link protocols describe how frames are carried between systems on a single data link WAN standards are defined and managed by a number of recognized authorities, including the following agencies:  International Telecommunication Union-Telecommunication Standardization Sector (ITU-T), formerly the Consultative Committee for International Telegraph and Telephone (CCITT)  International Organization for Standardization (ISO)  Internet Engineering Task Force (IETF)  Electronic Industries Association (EIA) NLU-FIT Advanced Computer Networks 7 WAN physical layer protocols NLU-FIT Advanced Computer Networks 8 WAN data link protocols WAN data link protocols Advanced Computer Networks 9   NLU-FIT  High-Level Data Link Control (HDLC) -- an IEEE standard; may not be compatible with different vendors because of the way each vendor has chosen to implement it. HDLC supports both point-to-point and multipoint configurations with minimal overhead Frame Relay -- uses high-quality digital facilities; uses simplified framing with no error correction mechanisms, which means it can send Layer 2 information much more rapidly than other WAN protocols Point-to-Point Protocol (PPP) -- described by RFC 1661; two standards developed by the IETF; contains a protocol field to identify the network layer protocol 10  NLU-FIT  Advanced Computer Networks WAN data link protocols  Link Access Procedure Balanced (LAPB) data link protocol used by X.25; has extensive error checking capabilities Link Access Procedure D-channel (LAPD) the WAN data link protocol used for signaling and call setup on an ISDN D-channel. Data transmissions take place on the ISDN B channels Link Access Procedure Frame (LAPF) for Frame-Mode Bearer Services; a WAN data link protocol, similar to LAPD, used with frame relay technologies 11 WAN Technologies  NLU-FIT Advanced Computer Networks     Most common WAN technologies grouped into : Circuit-Switched Services Packet-Switched Services Cell-Switched Services Dedicated Digital Services Analog services Circuit-Switched Services NLU-FIT Advanced Computer Networks 12   POTS (Plain Old Telephone Service) -- not a computer data service, but included for two reasons: (1) many of its technologies are part of the growing data infrastructure, (2) it is a model of an incredibly reliable, easy-to-use, wide-area communications network; typical medium is twisted-pair copper wire Narrowband ISDN (Integrated Services Digital Network) -- a versatile, widespread, historically important technology; was the first all-digital dial-up service; usage varies greatly from country to country; cost is moderate; maximum bandwidth is 128 kbps for the lower cost BRI (Basic Rate Interface) and about 3 Mbps for the PRI (Primary Rate Interface); usage is fairly widespread, though it varies considerably from country to country; typical medium is twisted-pair copper wire Packet-Switched Services NLU-FIT Advanced Computer Networks 13   X.25 -- an older technology, but still widely used; has extensive error-checking capabilities from the days when WAN links were more prone to errors, which make it reliable but limits its bandwidth; bandwidth may be as high as 2 Mbps; Frame Relay -- a packet-switched version of Narrowband ISDN; has become an extremely popular WAN technology in its own right; more efficient than X.25, but with similar services; maximum bandwidth is 44.736 Mbps; 56kbps and 384kbps are extremely popular in the U.S.; usage is widespread; cost is moderate to low; Typical media include twisted-pair copper wire and optical fiber Cell-Switched Services ATM (Asynchronous Transfer Mode) -- closely related to broadband ISDN; becoming an increasingly important WAN (and even LAN) technology; uses small, fixed length (53 byte) frames to carry data; maximum bandwidth is currently 622 Mbps, though higher speeds are being developed; typical media are twisted-pair copper wire and optical fiber; usage is widespread and increasing; cost is high  SMDS (Switched Multimegabit Data Service) -closely related to ATM, and typically used in MANs; maximum bandwidth is 44.736 Mbps; typical media are twisted-pair copper wire and optical fiber; usage not very widespread; cost is relatively high NLU-FIT Advanced Computer Networks 14  Dedicated Digital Services NLU-FIT Advanced Computer Networks 15   T1, T3, E1, E3 -- the T series of services in the U.S. and the E series of services in Europe are extremely important WAN technologies • T1 -- 1.544 Mbps • T3 -- 44.736 Mbps • E1 -- 2.048 Mbps • E3 -- 34.368 Mbps xDSL (DSL for Digital Subscriber Line and x for a family of technologies) • HDSL -- high-bit-rate DSL • SDSL -- single-line DSL • ADSL -- asymmetric DSL • VDSL -- very-high-bit-rate DSL • RADSL -- rate adaptive DSL Dedicated Digital Services NLU-FIT Advanced Computer Networks 16  SONET (Synchronous Optical Network) -- a family of very high-speed physical layer technologies; designed for optical fiber, but can also run on copper cables implemented at different OC (optical carrier) levels ranging from 51.84 Mbps (OC-1) to 9,952 Mbps (OC-192) Analog services 17   NLU-FIT Advanced Computer Networks  Dial-up modems (switched analog) Cable modems (shared analog) Wireless WAN Technology-CompleteVi ew NLU-FIT Advanced Computer Networks 18 Mạng Máy Tính Nâng Cao ROUTER BASICS Routers are Computers NLU-FIT Advanced Computer Networks 19  Routers are at the network center • A router connects multiple networks. This means that it has multiple interfaces that each belong to a different IP network. • Each network that a router connects to typically requires a separate interface. These interfaces are used to connect a combination of both Local Area Networks (LANs) and Wide Area Networks (WANs). NLU-FIT Advanced Computer Networks 20 Routers are Computers  Routers determine the best path: The primary responsibility of a router is to direct packets destined for local and remote networks by: • Determining the best path to send packets • Forwarding packets toward their destination NLU-FIT Advanced Computer Networks 21 Evolution of Routers     Multiprotocol devices providing pure data delivery with minimal access control and QoS. Intelligent Network Services, this allowed us to provide security capabilities like integrated firewall and encryption. Integrated voice and data capabilities, allowing routers to provide voice gateway features for IP telephony. Today the router is an integrated platform for providing advanced services in security, content delivery, and voice. NLU-FIT Advanced Computer Networks 22 Cisco Router Series NLU-FIT Advanced Computer Networks 23 Router Components NLU-FIT Advanced Computer Networks 24 Router Internal Components NLU-FIT Advanced Computer Networks 25 Router Internal Components NLU-FIT Advanced Computer Networks 26 Router Internal Components Router Internal Components 27  NLU-FIT Advanced Computer Networks    CPU-Executes operating system instructions Random access memory (RAM)-Contains the running copy of configuration file. Stores routing table. RAM contents lost when power is off Read-only memory (ROM)-Holds diagnostic software used when router is powered up. Stores the router’s bootstrap program. Non-volatile RAM (NVRAM)-Stores startup configuration. This may include IP addresses (Routing protocol, Hostname of router) 28 Router Internal Components  NLU-FIT Advanced Computer Networks  Flash memory-Contains the operating system (Cisco IOS) Interfaces-There exist multiple physical interfaces that are used to connect network. Examples of interface types: • Ethernet / FastEthernet interfaces • Serial interfaces • Management interfaces Router Internal Components Advanced Computer Networks 29    NLU-FIT  Interfaces – The router connections to the outside. The three types of interfaces: • Local-area network (LANs), Router Intern al Component • Wide-area network (WANs), s • Console/AUX. The LAN interfaces are usually one of several different varieties of Ethernet or Token Ring. The LAN interfaces may be a fixed configuration or modular. The WAN interfaces include serial, ISDN. The WAN interfaces may be a fixed configuration or modular. The Console/AUX ports are serial ports used primarily for the initial configuration of the router. They are used for terminal sessions from the communication ports on the computer or through a modem. Router Interface 30  NLU-FIT Advanced Computer Networks    Router Interface is a physical connector that enables a router to send or receive packets Each interface connects to a separate network Consist of socket or jack found on the outside of a router Types of router interfaces: • • • • • • Ethernet Fastethernet Serial DSL ISDN Cable Router Interface NLU-FIT Advanced Computer Networks 31   Two major groups of Router Interfaces • LAN Interfaces • Are used to connect router to LAN network • Has a layer 2 MAC address • Can be assigned a Layer 3 IP address • Usually consist of an RJ-45 jack WAN Interfaces • Are used to connect routers to external networks that interconnect LANs • Depending on the WAN technology, a layer 2 address may be used • Uses a layer 3 IP address NLU-FIT Advanced Computer Networks 32 Router Interfaces Routers and the Network Layer 33  NLU-FIT Advanced Computer Networks  The main purpose of a router is to connect multiple networks and forward packets destined either for its own networks or other networks. A router is considered a Layer 3 device because its primary forwarding decision is based on the information in the Layer 3 IP packet, specifically the destination IP address. This process is known as routing NLU-FIT Advanced Computer Networks 34 Routers and the Network Layer  Routers Operate at Layers 1, 2 & 3 • • • • Router receives a stream of encoded bits Bits are decoded and passed to layer 2 Router de-encapsulates the frame Remaining packet passed up to layer 3 Routing decision made at this layer by examining destination IP address • Packet is then re-encapsulated & sent out outbound interface NLU-FIT Advanced Computer Networks 35 Routers and the Network Layer NLU-FIT Advanced Computer Networks 36 Connecting console interfaces Connecting console interfaces To connect the PC to a router: Configure terminal emulation software (HyperTerminal) on the PC for: 37  Advanced Computer Networks •        NLU-FIT The appropriate com port  9600 baud 8 data bits No parity 1 stop bit No flow control Connect the RJ-45 connector of the rollover cable to the router console port. Connect the other end of the rollover cable to the RJ-45 to DB-9 adapter. Attach the female DB-9 adapter to a PC. NLU-FIT Advanced Computer Networks 38 Connecting auxiliary (AUX) port NLU-FIT Advanced Computer Networks 39 Connecting WAN interfaces Show more... NLU-FIT Advanced Computer Networks 40 ROUTER MODES Cisco IOS NLU-FIT Advanced Computer Networks 41  Similar to a PC, a router or switch cannot function without an operating system. The Cisco Internetwork Operating System (IOS) is the system software in Cisco devices. It is the core technology that extends across most of the Cisco product line Cisco IOS Advanced Computer Networks 42     NLU-FIT  The Cisco IOS provides devices with the following network services: • Basic routing and switching functions • Reliable and secure access to networked resources • Network scalability The IOS operational details vary on different internetworking devices, depending on the device's purpose and feature set. The services provided by the Cisco IOS are generally accessed using a command line interface (CLI). The IOS file: several megabytes, is stored in a semi-permanent memory area called flash. Flash memory provides non-volatile storage. Using flash memory allows the IOS to be upgraded to newer versions or to have new features added. The IOS may be copied into RAM when the device is powered on and the IOS runs from RAM when the device is operating. NLU-FIT Advanced Computer Networks 43 Cisco IOS NLU-FIT Advanced Computer Networks 44 Access Methods  Access Methods • Console • Telnet or SSH • AUX port NLU-FIT Advanced Computer Networks 45 Console  • Low speed serial connection to directly connect a computer or terminal to the console port on the router or switch. • Provides access to a router • Often used to access a device when the networking services have not been started or have failed. Examples of console use are: • The initial configuration of the network device • Disaster recovery procedures and troubleshooting where remote access is not possible • Password recovery procedures • The device should be located in a locked room or equipment rack to prevent physical access. Telnet and SSH NLU-FIT Advanced Computer Networks 46    Telnet • Require active networking services on the device. • Run on layer 7 in OSI model Secure Shell (SSH) protocol • Like telnet but more secure access • Stronger password • Uses encryption when transporting session data • Use can use ssh client on PC name: Putty http://www.chiark.greenend.org.uk/~sgtatham/putt y/download.html As a best practice, always use SSH in place of Telnet whenever possible. AUX NLU-FIT Advanced Computer Networks 47    Another way to establish a CLI session remotely is via a telephone dialup connection using a modem connected to the router's AUX port Can used locally, like console port Console port is also preferred over the auxiliary port for troubleshooting because it displays router startup, debugging, and error messages by default. NLU-FIT Advanced Computer Networks 48 Connecting console interfaces Establishing a HyperTerminal session NLU-FIT Advanced Computer Networks 49  Take the following steps to connect a terminal to the console port on the router: 1. Connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to DB-9 or RJ-45 to DB-25 adapter. 2. Configure the terminal or PC terminal emulation software for 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control. NLU-FIT Advanced Computer Networks 50 Configuration file NLU-FIT Advanced Computer Networks 51 Types of Configuration Files  The running configuration file • used during the current operation of the device • Changes to the running configuration will immediately affect the operation of the Cisco device  The startup configuration file • used as the backup configuration and is loaded when the device is started • The startup configuration file or startup-config file is stored in non-volatile RAM (NVRAM) 52 Router user interface modes For security purposes, the router has two levels of access to commands  NLU-FIT Advanced Computer Networks • • User EXEC mode --Typical tasks include those that check the router status. In this mode, router configuration changes are not allowed. Privileged EXEC mode --Typical tasks include those that change the router configuration. NLU-FIT Advanced Computer Networks 53 Router user interface modes Cisco IOS Modes NLU-FIT Advanced Computer Networks 54  Different modes and the mode prompts in the CLI Basic IOS Command Structure NLU-FIT Advanced Computer Networks 55  After entering each complete command, including any keywords and arguments, press the key to submit the command to the command interpreter NLU-FIT Advanced Computer Networks 56 Using CLI Help  Using “?” NLU-FIT Advanced Computer Networks 57 Using CLI Help NLU-FIT Advanced Computer Networks 58 Using CLI Help Using CLI Help 59   Advanced Computer Networks    NLU-FIT   Tab -Completes the remainder of the command or keyword Ctrl-R -Redisplays a line Ctrl-Z -Exits configuration mode and returns to the EXEC Down Arrow-Allows user to scroll forward through former commands Up Arrow-Allows user to scroll backward through former commands Ctrl-Shift-6-Allows the user to interrupt an IOS process such as ping or traceroute Ctrl-C orCtrl-Z -Aborts the current command and exits the configuration mode NLU-FIT Advanced Computer Networks 60 Enhanced editing commands Router command history 61   NLU-FIT Advanced Computer Networks  Set the command history buffer size Recall commands Disable the command history feature NLU-FIT Advanced Computer Networks 62 Examination Commands NLU-FIT Advanced Computer Networks 63 Examination Commands NLU-FIT Advanced Computer Networks 64 Examination Commands NLU-FIT Advanced Computer Networks 65 IOS Configuration modes IOS Configuration mode 66  NLU-FIT Advanced Computer Networks    Interface mode-to configure one of the network interfaces (Fa0/0, S0/0/0,..) Line mode-to configure one of the lines (physical or virtual) (console, AUX, VTY,..) Router mode-to configure the parameters for one of the routing protocols Remember, as configuration changes are made within an interface or process, the changes only affect that interface or process. • Once a change has been made from the global mode, it is good practice to save it to the startup configuration file stored in NVRAM. Router#copy running-config startup-config Global Configuration Mode NLU-FIT Advanced Computer Networks 67  All command-line interface (CLI) configuration changes to a Cisco router are made from the global configuration mode. For Examples: • Interface mode • Line mode • Router mode • Subinterface mode • Controller mode Router#configure terminal Router(config)# • exit : Returns the router to global configuration mode from one of these specific configuration modes • Ctrl-Z : Returns the router to privileged EXEC mode NLU-FIT Advanced Computer Networks 68 Overview of Router Modes NLU-FIT Advanced Computer Networks 69 Mạng Máy Tính Nâng Cao Applying a Basic Configuration Using Cisco IOS Naming a device NLU-FIT Advanced Computer Networks 70  Some guidelines for naming conventions are that names should: • Start with a letter • Not contain a space • End with a letter or digit • Have characters of only letters, digits, and dashes • Be 63 characters or fewer Naming a device 71  NLU-FIT Advanced Computer Networks  Two common approaches to establishing naming conventions: the location and the purpose To remove the name of a device, use: • AtlantaHQ(config)# no hostname • Router(config)# NLU-FIT Advanced Computer Networks 72 Configuring Passwords and Using Banners  The passwords introduced here are: • Console password-limits device access using the console connection • Enable password -limits access to the privileged EXEC mode • Enable secret password -encrypted, limits access to the privileged EXEC mode • VTY password -limits device access using Telnet NLU-FIT Advanced Computer Networks 73 Console password NLU-FIT Advanced Computer Networks 74 VTY and Enable password NLU-FIT Advanced Computer Networks 75 Configuring router passwords 76 Using Banners Configuring (MOTD)  NLU-FIT Advanced Computer Networks • • • message-of-the-day Enter global configuration mode by using the command configure terminal. Enter the command banner motd # The message of the day goes here #. Save changes by issuing the command copy running-config startup-config. NLU-FIT Advanced Computer Networks 77 Using Banners NLU-FIT Advanced Computer Networks 78 Configuring a serial interface NLU-FIT Advanced Computer Networks 79 Interface Configuration Commands NLU-FIT Advanced Computer Networks 80 Serial Interface Configuration Example NLU-FIT Advanced Computer Networks 81 Configuring an Ethernet interface NLU-FIT Advanced Computer Networks 82 Configuring interface description 83 Configuring interface description 1. Advanced Computer Networks 2. 3. 4. NLU-FIT 5. Enter global configuration mode by entering the command configure terminal. Enter specific interface mode (for example interface Ethernet 0) interface ethernet 0. Enter the command description followed by the information that is to be displayed. For example, XYZ Network, Building 18. Exit interface mode back to privileged EXEC mode by using the command ctrl-Z. Save the configuration changes to NVRAM by using the command copy running-config startup-config. NLU-FIT Advanced Computer Networks 84 Configuring interface description Host name resolution 85  NLU-FIT Advanced Computer Networks   To associate a host name with an IP address. A list of host names and their associated IP addresses is called a host table. Host names, unlike DNS names, are significant only on the router on which they are configured. 86 Configuring host tables 1. NLU-FIT Advanced Computer Networks 2. 3. 4. Enter global configuration mode in the router. Enter the command ip host followed by the name of the router and all IP addresses associated with the interfaces on each router. Continue entering until all routers in the network are entered. Save the configuration to NVRAM. Managing configuration files 87  Advanced Computer Networks   NLU-FIT  After making changes to a configuration, consider these options for the next step: Make the changed configuration the new startup configuration. Return the device to its original configuration. Remove all configuration from the device Backup Configuration on TFTP Server NLU-FIT Advanced Computer Networks 88  Backup Configuration on TFTP Server • Enter the copy running-config tftp command. • Enter the IP address of the host where the configuration file will be stored. • Enter the name to assign to the configuration file. • Answer yes to confirm each choice. Removing All Configurations  • • erase startup-config reload router NLU-FIT Advanced Computer Networks 89 Restore Configuration from a TFTP NLU-FIT Advanced Computer Networks 90 Backup Configurations with Text Capture NLU-FIT Advanced Computer Networks 91 Backup Configurations with Text Capture NLU-FIT Advanced Computer Networks 92 Restoring Text Configurations  When using HyperTerminal, the steps are: • Locate the file to be copied into the device and open the text document. • Copy all of the text. • On the Edit menu, click paste to host.  When using TeraTerm, the steps are: • On the File menu, click Send file. • Locate the file to be copied into the device and click Open. • TeraTerm will paste the file into the device NLU-FIT Advanced Computer Networks 93 Executing adds, moves, and changes NLU-FIT Advanced Computer Networks 94 Working with release 11.x Examining the show commands 95  Advanced Computer Networks    NLU-FIT   show interfaces – Displays all the statistics for all the interfaces on the router. For example: Router#show interfaces serial 0/1 show controllers serial – Displays informationspecific to the interface hardware show version – Displays information about the router and the IOS that is running in RAM show protocol – Displays the global and interface specific status of any configured Layer 3 protocols show startup-config – Displays the saved configuration located in NVRAM show running-config – Displays the configuration currently running in RAM Examining the show commands 96  Advanced Computer Networks     NLU-FIT  show clock – Shows the time set in the router show hosts – Displays a cached list of host names and addresses show users – Displays all users who are connected to the router show history – Displays a history of commands that have been entered show flash – Displays information about flash memory and what IOS files are stored there show ARP – Displays the ARP table of the router
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.