ljerezchaves / ofswitch13

OFSwitch13: OpenFlow 1.3 module for ns-3.
http://www.lrc.ic.unicamp.br/ofswitch13/
GNU General Public License v2.0
24 stars 16 forks source link

Compatibilidade de tempo #10

Closed ljerezchaves closed 9 years ago

ljerezchaves commented 9 years ago

Originally reported by Luciano Chaves (Bitbucket: ljerezchaves, GitHub: ljerezchaves)


Como o ofsoftswitch13 é implementado usando funções de tempo real do kernel, e o ns3 usa um tempo de simulação independente, não há compatibilidade nos campos "time" das estruturas. Isso impede, por exemplo, o timeout de regras nas tabelas. É preciso encontrar uma estratégia para solucionar este problema.


ljerezchaves commented 9 years ago

Original comment by Luciano Chaves (Bitbucket: ljerezchaves, GitHub: ljerezchaves)


Feito. Commit [d26e432656a8]

ljerezchaves commented 9 years ago

Original comment by Luciano Chaves (Bitbucket: ljerezchaves, GitHub: ljerezchaves)


No geral, a estratégia é usar os campos das estruturas do ofsoftswitch13 para armazenar os timesteps do tempo de simulação. Nos momentos adequados esses timesteps são convertidos em ns3::Time e comparados adequadamente.

ljerezchaves commented 9 years ago

Original comment by Luciano Chaves (Bitbucket: ljerezchaves, GitHub: ljerezchaves)


Foi necessário a reescrita de algumas funções de flow_entry e flow_table (todas relacionadas com criação e timeout).

ljerezchaves commented 9 years ago

Original comment by Luciano Chaves (Bitbucket: ljerezchaves, GitHub: ljerezchaves)


Em implementação, branch features/sim-time