15
1 實實實 實實實實實實實實 實實實實

實驗五:媒介存取協定模擬

  • Upload
    afya

  • View
    43

  • Download
    1

Embed Size (px)

DESCRIPTION

實驗五:媒介存取協定模擬. 教師: 助教:. Outline. Background Transmission Protocols ALOHA CSMA/CD CSMA/CA Network Devices Hub Switch Access Point (AP) Simulation Software - NCTUns Background Supported simulation function User interface Experiment Goals & Experiment methods Wired Networking - PowerPoint PPT Presentation

Citation preview

Page 1: 實驗五:媒介存取協定模擬

1

實驗五:媒介存取協定模擬

教師:助教:

Page 2: 實驗五:媒介存取協定模擬

2

Outline

Background Transmission Protocols

ALOHA CSMA/CD CSMA/CA

Network Devices Hub Switch Access Point (AP)

Simulation Software - NCTUns Background Supported simulation function User interface

Experiment Goals & Experiment methods Wired Networking Wireless Networking Simulation result

Page 3: 實驗五:媒介存取協定模擬

3

Background (1/2)

Why simulations are neededPlan a new networking topologyEstimate the efficiency of networksEvaluate new protocols or devices

AdvantagesLower costEasy to buildAvoid environmental interference

Page 4: 實驗五:媒介存取協定模擬

4

Background (2/2)

Goal of this experimentLearn to use the tool of NCTUNSRealize the mechanisms of

Transmission protocolsNetwork devices

Methodlogy of designing an experiment

Page 5: 實驗五:媒介存取協定模擬

5

Transmission Protocols (1/2)

ALOHA Transmit data only Two types

Pure-Aloha Slotted-Aloha

No sensing for collision and congestion Channel throughput: 18% (Stallings, 2000)

CSMA (Carrier Sense Multiple Access) Sense the media and transmit data if it’s idle Two implementations:

Persistent CSMA Non-persistent CSMA

Throughput is much better: over 40%

Page 6: 實驗五:媒介存取協定模擬

6

Transmission Protocols (2/2)

CSMA/CDCSMA with Collision DetectionWait a random time if collision and then transmitUsed in wired networks (ex: IEEE 802.3)

CSMA/CACSMA with Collision AvoidanceRTS/CTS mechanism for hidden terminals problemsUsed in wireless networks (ex: IEEE 802.11)

Page 7: 實驗五:媒介存取協定模擬

7

Network Devices

Hub Broadcast all packets to every port

Switch Build a table for mapping between MAC addresses and ports Broadcast packets at first time to verify the target port Send packets to the target port instead of broadcasting

Access Point (AP) A bridge for wired and wireless networks Use RTS/CTS mechanism on wireless network Always broadcast because of the media

Page 8: 實驗五:媒介存取協定模擬

8

Simulation Software - NCTUns

BackgroundDeveloped by the Network and System Laboratory (NSL)

of NCTU CSUsed in both wired and wireless IP networks Directly uses the Linux ’s TCP/IP protocol stack Open-Source Simulation engineProvides complete and high-quality documentationsContinuously supported, maintained and improved

Page 9: 實驗五:媒介存取協定模擬

9

Supported Simulation Functions

Flexibility of creating user’s own Traffic generator Configuration Tool Monitor Tool

Different and new types of networks Various networking devices and protocols Generate repeatable simulation results Remote and concurrent simulations

Page 10: 實驗五:媒介存取協定模擬

10

User Interface (1/2)

Network device

Assignment tools

Zoom tools

Mode selector

Time bar Playback tools

Location info.

Topology plane

Page 11: 實驗五:媒介存取協定模擬

11

User Interface (2/2)

Four modes:Draw Topology

Draw topology by using the network device toolboxEdit Property

Enter each device and set their property and reporting informationRun Simulation

Start simulation and recording the reportPlay Back

Use GUI interface to replay the simulation

Page 12: 實驗五:媒介存取協定模擬

12

Experiment

Goals : Find the relationship between the offered load and throughput

Experiment methods Use different offered loads to run simulations and compare the results Offered load:

Capacity of the line divided by the amount of input data

Throughput : The maximum of data rate the network can transmit

)(

)(

kbpscapacity

kbpsoutputthroughput

)(

)(_

kbpscapacity

kbpsinputloadoffered

Page 13: 實驗五:媒介存取協定模擬

13

Experiment: Wired Networking

Use hubs and switches with different offered loads to run simulations Example topologies:

Page 14: 實驗五:媒介存取協定模擬

14

Experiment: Wireless Networking

Use mobile hosts, access points (AP) with different offered loads to run simulations

Example topologies:

Page 15: 實驗五:媒介存取協定模擬

15

Results

Use [plot graph] tool to draw the throughput graph Example graphs:

The unit of values depend on the log file you selected