Mininet: SDN Network Emulator

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which command is used to display the network elements and their connections in a Mininet simulation?

  • `mininet> intfs`
  • `mininet> links`
  • `mininet> net` (correct)
  • `mininet> nodes`

What type of virtualization does Mininet primarily utilize to run multiple hosts and switches?

  • Lightweight process-based virtualization (correct)
  • Operating system-level virtualization
  • Para-virtualization
  • Full hardware virtualization

When would you use the command $ sudo mn -c or mininet> EOF?

  • To quit Mininet and stop all processes and virtual nodes. (correct)
  • To stop a specific switch within the Mininet environment.
  • To display available ports and interfaces for each switch.
  • To test connectivity between all hosts in the network.

What is the primary purpose of the pingallfull command in Mininet?

<p>To display a detailed report on the connectivity between all hosts, including minimum, average, and maximum latency. (B)</p> Signup and view all the answers

What is the function of the Mininet command mininet> switch s1 start?

<p>It starts or restarts the switch s1. (D)</p> Signup and view all the answers

What is the purpose of using xterm with Mininet?

<p>To access the command line interface of virtual hosts and switches for interactive tasks. (B)</p> Signup and view all the answers

In Mininet, what does the command mininet> h2 ping -c3 h1 achieve?

<p>Pings host h1 three times from host h2. (B)</p> Signup and view all the answers

What is the purpose of the iperf command used in Mininet?

<p>To test network performance, specifically measuring TCP or UDP bandwidth. (A)</p> Signup and view all the answers

When using Mininet, what benefit does emulating an entire OpenFlow network on a single computer provide?

<p>It allows for testing network applications with minimal resources and setup. (D)</p> Signup and view all the answers

Which of the following best describes the command $ sudo mn -x?

<p>It creates a terminal for every host and switch in the emulated network. (B)</p> Signup and view all the answers

Signup and view all the answers

Signup and view all the answers

Signup and view all the answers

Flashcards

What is Mininet?

A network emulator used to create virtual SDN networks, allowing entire OpenFlow networks to be emulated on a single computer.

What is the 'mn' utility?

A command-line utility that creates Mininet networks, allowing you to define topologies, invoke the Mininet CLI, and run tests.

What does 'sudo mn' do?

Starts Mininet with a minimal topology consisting of one switch, two hosts, and a controller.

mininet> help

Displays a list of available commands within the Mininet console.

Signup and view all the flashcards

mininet> net

Shows how network elements are connected to each other in the simulated network.

Signup and view all the flashcards

mininet> intfs

Lists interfaces of hosts and switch.

Signup and view all the flashcards

mininet> links

Reports on links between hosts and switch.

Signup and view all the flashcards

mininet> pingall

Tests connectivity between all hosts, indicating which hosts are connected.

Signup and view all the flashcards

mininet> xterm h1

Opens an xterm window to interact with a specific network element.

Signup and view all the flashcards

mininet> exit

Quits Mininet, stopping all processes and virtual nodes.

Signup and view all the flashcards

Study Notes

  • Mininet is a network emulator used for creating virtual Software Defined Networking (SDN) networks
  • It is a software tool that allows entire OpenFlow networks to be emulated on a single computer
  • Mininet uses lightweight process-based virtualization to run many hosts and switches on a single operating system kernel
  • It simplifies the initial development, debugging, testing, and deployment process
  • New network applications can be developed and tested on an emulation of the anticipated deployment network before being moved to the actual operational infrastructure
  • Code used in Mininet can be used with minimal or no changes on real SDN OpenFlow networks
  • Mininet enables complex topology testing without physical wiring
  • The mn utility creates Mininet networks from the command line
  • It can create parameterized topologies, invoke the Mininet Command Line Interface (CLI), and run tests.
  • A Terminal Emulator is needed to run Mininet commands

Mininet Commands

  • mn: Starts Mininet with a minimal topology consisting of one switch, two hosts, and a controller.
  • The default topology includes one OpenFlow switch connected to two hosts and an OpenFlow reference controller
  • All four entities (2 host processes, 1 switch process, and 1 basic controller) are now running in the Virtual Machine
  • mininet > help: displays a list of available commands
  • mininet > nodes: displays a list of available nodes in the Mininet console
  • mininet > dump: Dumps information about all nodes to see the IP addresses of each node in the simulated network
  • mininet > net: Shows how network elements are connected to each other in the simulated network
  • mininet > intfs: Lists interfaces of hosts and switches
  • mininet > links: Reports on links between hosts and switches
  • mininet > ports: Displays ports and interfaces for each switch
  • mininet > pingall: Displays the connectivity between all hosts and indicates which hosts are connected to each other
  • mininet > pingallfull: Provides more detailed connectivity information between hosts, including minimum, average, and maximum time
  • mininet > h2 ping -c3 h1: tests connectivity between hosts; it replaces host name automatically
  • mininet > h2 ifconfig: Run a single command on a node, prepending the command with the name of the node
  • mininet> hl arp: shows the ARP table for host h1
  • mininet> s1 ifconfig -a: displays the switch interfaces, plus the VM's connection out (eth0)
  • mininet >link s1 h2 down: bring a link down manually
  • mininet >link s1 h2 up: bring a link up manually
  • mininet >switch sl start: starts a switch
  • mininet >switch sl stop: stops a switch
  • mininet >iperf h1 h2: Tests Transmission Control Protocol (TCP) speed between two hosts, running an iperf TCP server on one host and a client on another
  • mininet >iperfudp bw h1 h2: performs a simple iperf User Datagram Protocol (UDP) test between two hosts
  • mininet > exit: Quits Mininet, stopping all processes and virtual nodes
  • $ sudo mn -c or mininet > EOF: Restarts mininet by cleaning residual states or processes, if mininet is not working correctly

Xterm Window Usage

  • Opening an xterm window to a network element is best for performing more interactive tasks
  • mininet> xterm h1: Opens an xterm window on host h1
  • mininet> xterm h1 h2: Opens xterm windows for h1 and h2
  • $ sudo mn -x: Starts an xterm for every host and switch
  • It is possible to execute commands on a host or switch using xterm window
  • $ iperf -s: Runs iperf on the xterm for h1 and starts a server
  • $ iperf -c 10.0.0.1: Let one h2 start up a client

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Chapitre 3 : SDN et OpenFlow
26 questions
Use Quizgecko on...
Browser
Browser