Skip to content

yamt/aloha_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aloha_demo

This is an example to use aloha.

Build Status

How to run

"make run" starts an OpenFlow controller which listens for OpenFlow connections on port 6633.

   aloha_httpd_http  (cowboy protocol handler)
      |
   cowboy  (Unmodified cowboy)
      |
   ranch  (Unmodified ranch)
      |
   aloha_ranch  (ranch transport module for aloha_socket)
      |
   (port 8080)
      |
      |   aloha_upper  ("toupper" echo server)
      |      |
      |   (port 9999) 
      |      |
   aloha_socket
      |
   aloha_tcp  (Pure Erlang TCP/IP stack)
    |     |
aloha_ip aloha_ipv6
    |     |
   aloha_nic  (This virtual NIC has IP addresses 192.0.2.1 and 2001:db8::1)
      |
   aloha_datapath
      |
   aloha_ofc  (OpenFlow 1.3 Controller.  This uses of_protocol)
      |
   aloha_socket
      |
   gen_tcp/inet
      :
      : (OpenFlow channel)
      :
   OpenFlow 1.3 Switch  (Configure this switch to connect to our controller.)
      :
      : (Ethernet)
      :
   Some NIC

On the host which the above "Some NIC" belongs to, try:

# ifconfig thesomenic 192.0.2.2
# curl http://192.0.2.1:8080/

and/or:

# ifconfig thesomenic inet6 2001:db8::2
# curl -g 'http://[2001:db8::1]:8080/'

About

An example to use aloha

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages