frenetic-lang / frenetic

The Frenetic Programming Language and Runtime System
http://www.frenetic-lang.org/
Other
223 stars 51 forks source link

Learning Switch App for Multi Switch #553

Closed sushiljain1989 closed 5 years ago

sushiljain1989 commented 7 years ago

Hi,

I was trying to execute the learning4.py with a network having topology like :

    h1 = self.addHost('h1')
    h2 = self.addHost('h2')
    h3 = self.addHost('h3')
    h4 = self.addHost('h4')
    h5 = self.addHost('h5')
    s1 = self.addSwitch('s1')
    s2 = self.addSwitch('s2')
    self.addLink(h1, s1)
    self.addLink(h2, s1)
    self.addLink(h3, s1)
    self.addLink(s1 , s2)
    self.addLink(h4 , s2)
    self.addLink(h5 , s2)

When I run the pingall command in mininet, hosts in switch are not able to communicate with hosts in another switch. I went through the multi-switch topology example mentioned in programmers guide. However, in that example internal ports that connect edge and core routers are hard-coded.

Is it possible to make mac learning application work in multi-switch topology without knowing the internal ports in advance ?

Thanks, SJ