1 北京邮电大学思科网络技术学院 ethernet 网络基础知识 - 第九章

75
1 北北北北北北北北北北北北北北 http://cisco.bupt.edu.cn Ethernet 网网网网网网 网网网

Upload: lawrence-shields

Post on 29-Jan-2016

338 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

1北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

Ethernet

网络基础知识 - 第九章

Page 2: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

2北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

描述以太网的演变过程

说明以太网帧的各个字段

描述以太网协议所用介质访问控制方法的功能和特性

描述以太网的物理层和数据链路层功能

比较以太网集线器和交换机

解释地址解析协议 (ARP)

课程目标

Page 3: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

3北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1 Overview of Ethernet

9.2 Ethernet-Communication through the LAN

9.3 The Ethernet Frame

9.4 Ethernet Media Access Control

9.5 Ethernet Physical Layer

9.6 Hubs and Switches

9.7 Address Resolution Protocol (ARP)

本章目录

Page 4: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

4北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1 Overview of Ethernet

Page 5: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

5北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1.1 Ethernet - Standards and Implementation The first Ethernet standard was published in 1980 by a consortium of Digital

Equipment Corporation, Intel, and Xerox (DIX).

In 1985, the Institute of Electrical and Electronics Engineers (IEEE) standards committee for Local and Metropolitan Networks published standards for LANs. The standard for Ethernet is 802.3.

Ethernet operates in the lower two layers of the OSI model: the Data Link layer and the Physical layer.

Page 6: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

6北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1.2 Ethernet - Layer 1 and Layer 2

Ethernet at Layer 1 involves signals, bit streams that travel on the media, physical components that put signals on media, and various topologies.

The Data Link sublayers contribute significantly to technological compatibility and computer communications.

The Media Access Control (MAC) sublayer

The Logical Link Control (LLC) sublayer

Page 7: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

7北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1.3 Logical Link Control-Connecting to the Upper Layers

For Ethernet, the IEEE 802.2 standard describes the LLC sublayer functions, and the 802.3 standard describes the MAC sublayer and the Physical layer functions.

The LLC sublayer takes the network protocol data, which is typically an IPv4 packet, and adds control information to help deliver the packet to the destination node.

Layer 2 communicates with the upper layers through LLC.

Page 8: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

8北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1.4 MAC – Getting Data to the Media

Media Access Control (MAC) is the lower Ethernet sublayer of the Data Link layer. Media Access Control is implemented by hardware, typically in the computer Network Interface Card (NIC).

The Ethernet MAC sublayer has two primary responsibilities:

Data Encapsulation

Media Access Control

Page 9: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

9北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.1.5 Physical Implementations of Ethernet

The success of Ethernet is due to the following factors:

–Simplicity and ease of maintenance

–Ability to incorporate new technologies

–Reliability

–Low cost of installation and upgrade

In today's networks, Ethernet uses UTP copper cables and optical fiber to interconnect network devices via intermediary devices such as hubs and switches.

Page 10: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

10北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2 Ethernet-Communication through the LAN

Page 11: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

11北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2.1 Historic Ethernet The foundation for Ethernet technology was first established in 1970 with a program

called Alohanet.

The first version of Ethernet incorporated a media access method known as Carrier Sense Multiple Access with Collision Detection (CSMA/CD).

CSMA/CD managed the problems that result when multiple devices attempt to communicate over a shared physical medium.

Page 12: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

12北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2.1 Historic Ethernet

The first versions of Ethernet used coaxial cable to connect computers in a bus topology.

Thicknet, (10BASE5)

Thinnet (10BASE2)

The physical topology was also changed to a star topology using hubs. The original media were replaced by early categories of UTP cables.

Page 13: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

13北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2.2 Ethernet Collision Management

Legacy Ethernet---half-duplex –Because the media is shared, only one station could successfully transmit at a time.

–As more devices were added to an Ethernet network, the amount of frame collisions increased significantly.

Current Ethernet----full-duplex

Switches can control the flow of data by isolating each port and sending a frame only to its proper destination (if the destination is known), rather than send every frame to every device.

Page 14: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

14北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2.3 Moving to 1Gbps and Beyond

Some of the equipment and cabling in modern, well-designed and installed networks may be capable of working at the higher speeds with only minimal upgrading.

Page 15: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

15北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.2.3 Moving to 1Gbps and Beyond The increased cabling distances enabled by the use of fiber-optic

cable in Ethernet-based networks has resulted in a blurring of the distinction between LANs and WANs.

It can now be applied across a city in what is known as a Metropolitan Area Network (MAN).

Page 16: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

16北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3 The Ethernet Frame

Page 17: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

17北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.1 The Frame – Encapsulating the Packet

The Ethernet frame structure adds headers and trailers around the Layer 3 PDU to encapsulate the message being sent.

There are two styles of Ethernet framing: IEEE 802.3 (original) and the revised IEEE 802.3 (Ethernet).

Page 18: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

18北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.1 The Frame – Encapsulating the Packet The Preamble (7 bytes) and Start Frame Delimiter (SFD) (1 byte)

fields are used for synchronization between the sending and receiving devices.

The Destination MAC Address field (6 bytes) is the identifier for the intended recipient.

The Source MAC Address field (6 bytes) identifies the frame's originating NIC or interface.

The Length/Type field (2 bytes) defines the exact length of the frame's data field.

The Data and Pad fields (46 - 1500 bytes) contains the encapsulated data from a higher layer, which is a generic Layer 3 PDU, or more commonly, an IPv4 packet.

–1998 年发布的 IEEE 802.3ac 标准将允许的最大帧扩展到 1522 个字节。 The Frame Check Sequence (FCS) field (4 bytes) is used to detect

errors in a frame. It uses a cyclic redundancy check (CRC).

Page 19: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

19北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.2 The Ethernet MAC Address A unique identifier called a Media Access Control (MAC) address

was created to assist in determining the source and destination address within an Ethernet network.

MAC addressing is added as part of a Layer 2 PDU.

An Ethernet MAC address is a 48-bit binary value expressed as 12 hexadecimal digits.

Page 20: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

20北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.2 The Ethernet MAC Address IEEE requires a vendor to follow two simple rules:

–All MAC addresses assigned to a NIC or other Ethernet device must use that vendor's assigned OUI as the first 3 bytes.

–All MAC addresses with the same OUI must be assigned a unique value (vendor code or serial number) in the last 3 bytes.

The address is encoded into the ROM chip permanently - it cannot be changed by software.

Page 21: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

21北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.3 Hexadecimal Numbering and Addressing Hexadecimal ("Hex") is a base sixteen numbering system uses the

numbers 0 to 9 and the letters A to F.

Hexadecimal is usually represented in text by the value preceded by 0x (for example 0x73) or a subscript 16.

Page 22: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

22北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.3 Hexadecimal Numbering and Addressing

Hexadecimal is used to represent Ethernet MAC addresses and IP Version 6 addresses.

You have seen hexadecimal used in the Packets Byte pane of Wireshark where it is used to represent the binary values within frames and packets.

Page 23: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

23北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.4 Another Layer of Addressing

OSI Data Link layer (Layer 2) physical addressing, implemented as an Ethernet MAC address, is used to transport the frame across the local media.

Network layer (Layer 3) addresses, such as IPv4 addresses, provide the ubiquitous, logical addressing that is understood at both source and destination.

Page 24: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

24北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.5 Ethernet Unicast, Multicast & Broadcast In Ethernet, different MAC addresses are used for Layer 2 unicast,

multicast, and broadcast communications.

A unicast MAC address is the unique address used when a frame is sent from a single transmitting device to single destination device.

Page 25: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

25北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

With a broadcast, the packet contains a destination IP address that has all ones (1s) in the host portion. This numbering in the address means that all hosts on that local network (broadcast domain) will receive and process the packet.

Many network protocols, such as Dynamic Host Configuration Protocol (DHCP) and Address Resolution Protocol (ARP), use broadcasts.

9.3.5 Ethernet Unicast, Multicast & Broadcast

Page 26: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

26北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.3.5 Ethernet Unicast, Multicast & Broadcast Devices that belong to a multicast group are assigned a multicast

group IP address. The range of multicast addresses is from 224.0.0.0 to 239.255.255.255.

组播 MAC 地址是一个以 01开头的十六进制数值,对应 IP的 MAC组播地址以 01-00-5E 开头。然后将 IP 组播组地址的低 23 位换算成以太网地址中剩余的 6 个十六进制字符,作为组播 MAC 地址的结尾。 MAC 地址剩余的位始终为 "0"。

Page 27: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

27北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4 Ethernet Media Access Control

Page 28: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

28北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.1 Media Access Control in Ethernet

Ethernet uses Carrier Sense Multiple Access with Collision Detection (CSMA/CD) to detect and handle collisions and manage the resumption of communications.

A device can then determine when it can transmit. When a device detects that no other computer is sending a frame, or carrier signal, the device will transmit, if it has something to send.

Page 29: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

29北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The Process

Carrier Sense----In the CSMA/CD access method, all network devices that have messages to send must listen before transmitting.

Multi-access---The media now has two devices transmitting their signals at the same time.

Collision Detection----When a device is in listening mode, it can detect when a collision occurs on the shared media.

Jam Signal and Random Backoff ---Once the collision is detected by the transmitting devices, they send out a jamming signal. This jamming signal is used to notify the other devices of a collision, so that they will invoke a backoff algorithm. This backoff algorithm causes all devices to stop transmitting for a random amount of time, which allows the collision signals to subside.

Page 30: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

30北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The ProcessCarrier Sense Multiple Access with Collision Detection(CSMA/CD)

1

2

Page 31: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

31北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The Process

3

4

Carrier Sense Multiple Access with Collision Detection(CSMA/CD)

Page 32: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

32北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The Process

5

6

Carrier Sense Multiple Access with Collision Detection(CSMA/CD)

Page 33: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

33北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The Process

7

8

Carrier Sense Multiple Access with Collision Detection(CSMA/CD)

Page 34: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

34北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.2 CSMA/CD – The Process

9

10

Carrier Sense Multiple Access with Collision Detection(CSMA/CD)

Page 35: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

35北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

Hubs :–Hubs retransmit received data signals to all connected devices, except the one from which it received the signals.

Collision domain

–The connected devices that access a common media via a hub or series of directly connected hubs make up what is known as a collision domain. A collision domain is also referred to as a network segment.

9.4.2 CSMA/CD – The Process

Page 36: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

36北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.3 Ethernet Timing

延时 (latency):信号从源到目的所消耗的时间。各种原因造成。

Page 37: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

37北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.3 Ethernet Timing 比特时间:传输一个比特的时间。不同网络 bit time不同。 碰撞槽时间 (slot time):冲突检测时间。传输 64字节(以太网最小帧)时间。

碰撞槽时间是一个重要参数,因为:–512 位碰撞槽时间确定最小的以太网帧为 64 个字节。–碰撞槽时间确定了最大网段的大小限制。如果网络扩展得太大,就可能发生延迟冲突。延迟冲突被视为网络故障,因为这种冲突在 CSMA/CD 自动处理帧发送期间被检测到的时间太迟。

Page 38: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

38北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.4 Interframe Spacing and Backoff

The Ethernet standards require a minimum spacing between two non-colliding frames. This gives the media time to stabilize after the transmission of the previous frame and time for the devices to process the frame.

Referred to as the interframe spacing, this time is measured from the last bit of the FCS field of one frame to the first bit of the Preamble of the next frame.

Page 39: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

39北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.4 Interframe Spacing and Backoff

As soon as a collision is detected, the sending devices transmit a 32-bit "jam" signal that will enforce the collision. This ensures all devices in the LAN to detect the collision.

Page 40: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

40北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.4.4 Interframe Spacing and BackoffBackoff Timing-----

After a collision occurs and all devices allow the cable to become idle (each waits the full interframe spacing), the devices whose transmissions collided must wait an additional - and potentially progressively longer - period of time before attempting to retransmit the collided frame.

所有站点等待一个完整的帧间隙时间,引起冲突的站点再等一个 backoff 时间(随机的。与回退次数有关)。

Page 41: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

41北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5 Ethernet Physical Layer

Page 42: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

42北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5.1 Overview of Ethernet Physical Layer Ethernet is covered by the IEEE 802.3 standards. Four data

rates are currently defined for operation over optical fiber and twisted-pair cables: 10 Mbps - 10Base-T Ethernet

100 Mbps - Fast Ethernet

1000 Mbps - Gigabit Ethernet

10 Gbps - 10 Gigabit Ethernet

Page 43: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

43北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5.2 10 and 100 Mbps Ethernet

The principal 10 Mbps implementations of Ethernet include:

10BASE5 using Thicknet coaxial cable

10BASE2 using Thinnet coaxial cable

10BASE-T using Cat3/Cat5 unshielded twisted-pair cable

Page 44: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

44北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5.2 10 and 100 Mbps Ethernet

100 Mbps Ethernet, also known as Fast Ethernet, can be implemented using twisted-pair copper wire or fiber media. The most popular implementations of 100 Mbps Ethernet are:

100BASE-TX using Cat5 or later UTP

100BASE-FX using fiber-optic cable

Page 45: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

45北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5.3 1000 Mbps Ethernet

The development of Gigabit Ethernet standards resulted in specifications for UTP copper, single-mode fiber, and multimode fiber.

1000BASE-T Ethernet provides full-duplex transmission using all four pairs in Category 5 or later UTP cable. ( 4D-PAM5 线路编码)

Page 46: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

46北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

The fiber versions of Gigabit Ethernet - 1000BASE-SX and 1000BASE-LX offer the following advantages over UTP: noise immunity, small physical size, and increased unrepeated distances and bandwidth.

9.5.3 1000 Mbps Ethernet

Page 47: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

47北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.5.4 Ethernet – Future Options The IEEE 802.3ae standard was adapted to include 10 Gbps, full-duplex

transmission over fiber-optic cable.

10-Gigabit Ethernet (10GbE) is evolving for use not only in LANs, but also for use in WANs and MANs.

Although 1-Gigabit Ethernet is now widely available and 10-Gigabit products are becoming more available, the IEEE and the 10-Gigabit Ethernet Alliance are working on 40-, 100-, or even 160-Gbps standards.

Page 48: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

48北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6 Hubs and Switches

Page 49: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

49北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.1 Legacy Ethernet – Using Hubs Classic Ethernet uses hubs to interconnect nodes on the LAN

segment. Hubs do not perform any type of traffic filtering.——share the bandwidth of the media.

Problem :–Collisions

–Scalability

–Latency

–Network Failure

Page 50: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

50北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.2 Ethernet – Using Switches Switches allow the segmentation of the LAN into separate collision

domains.

Page 51: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

51北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.2 Ethernet – Using Switches

In a LAN where all nodes are connected directly to the switch, the throughput of the network increases dramatically. The three primary reasons for this increase are:

Dedicated bandwidth to each port

Collision-free environment

Full-duplex operation

Page 52: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

52北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.3 Switches – Selective Forwarding Ethernet switches selectively forward individual frames from a receiving

port to the port where the destination node is connected. The switch maintains a table, called a MAC table. that matches a

destination MAC address with the port used to connect to a node.

Page 53: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

53北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.3 Switches – Selective Forwarding

To accomplish their purpose, Ethernet LAN switches use five basic operations:

Learning : 学习 MAC地址。分析进入帧的源地址得到。 Aging : 条目过期。时间戳 Flooding : 将帧发送到接收端口以外的所有其它端口。 Selective Forwarding :检查帧的目的 MAC 地址后将帧从适当的端口转发出去 Filtering : 交换机不会将帧转发到接收帧的端口 ; 丢弃损坏的帧 ; 进行安全设置

1

Page 54: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

54北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.3 Switches – Selective Forwarding

3

2

Page 55: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

55北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.3 Switches – Selective Forwarding

5

4

Page 56: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

56北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.3 Switches – Selective Forwarding

7

6

Page 57: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

57北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.6.4 Ethernet – Comparing Hubs and Switches

练习: Answer the questions below using the information

1. Where will the switch forword the frame?

Page 58: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

58北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7 Address Resolution Protocol (ARP)

Page 59: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

59北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.1 ARP Process – Mapping IP to MAC Addresses

1

The ARP protocol provides two basic functions:–Resolving IPv4 addresses to MAC addresses

–Maintaining a cache of mappings

建立 ARP条目的两种办法:1.收到帧,源 IP和 MAC

2.发 ARP请求 ARP过程分为两种:

目的为本地;目的为外网

Page 60: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

60北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

2

9.7.1 ARP Process – Mapping IP to MAC Addresses

Page 61: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

61北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

3

9.7.1 ARP Process – Mapping IP to MAC Addresses

Page 62: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

62北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

4

9.7.1 ARP Process – Mapping IP to MAC Addresses

Page 63: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

63北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

5

9.7.1 ARP Process – Mapping IP to MAC Addresses

Page 64: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

64北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

6

9.7.1 ARP Process – Mapping IP to MAC Addresses

Page 65: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

65北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

If the destination IPv4 host is not on the local network, the source node needs to deliver the frame to the router interface that is the gateway or next hop used to reach that destination.

The source node will use the MAC address of the gateway as the destination address for frames containing an IPv4 packet addressed to hosts on other networks.

1

Page 66: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

66北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

2

Page 67: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

67北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

3

Page 68: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

68北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

4

Page 69: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

69北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

5

Page 70: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

70北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network

6

Page 71: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

71北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.2 The ARP Process – Destinations outside the Local Network Using proxy ARP, a router interface acts as if it is the host with the IPv4 address

requested by the ARP request.

Another case where a proxy ARP is used is when a host believes that it is directly connected to the same logical network as the destination host. This generally occurs when a host is configured with an improper mask.

Another use for a proxy ARP is when a host is not configured with a default gateway.

Page 72: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

72北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.3 The ARP Process – Removing Address Mappings

For each device, an ARP cache timer removes ARP entries that have not been used for a specified period of time. The times differ depending on the device and its operating system.

Page 73: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

73北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

9.7.4 ARP Broadcasts - Issues

Overhead on the Media Security -- ARP spoofing/ARP poisoning

Page 74: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

74北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn

总 结

本章主要内容:描述以太网的演变过程

说明以太网帧的各个字段

描述以太网协议所用介质访问控制方法的功能和特性

描述以太网的物理层和数据链路层功能

比较以太网集线器和交换机

解释地址解析协议 (ARP)

Page 75: 1 北京邮电大学思科网络技术学院  Ethernet 网络基础知识 - 第九章

75北京邮电大学思科网络技术学院 http://cisco.bupt.edu.cn