Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup guide #1

Closed
adibrastegarnia opened this issue Jun 24, 2018 · 27 comments
Closed

Setup guide #1

adibrastegarnia opened this issue Jun 24, 2018 · 27 comments

Comments

@adibrastegarnia
Copy link

Hi,
Would you please update the readme with a setup guide?

I tried to run the program but I am getting this error:

../go/src/github.com/google/gopacket/layers/tcp.go:1:1: expected 'package', found 'EOF'

Thanks,

@dbainbri-ciena
Copy link
Contributor

you likely have to do a go get to fetch the dependent packages. At this point, I have not used vendoring for this project. If you look in the Dockerfile, you can see the commands to download the dependencies, i.e.

go get -d -v ./... && go install -v ./...

Or are you still getting this error after downloading the dependencies?

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jun 24, 2018 via email

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jun 24, 2018 via email

@dbainbri-ciena
Copy link
Contributor

i just did a fresh clone and it was working for me using

$ go version
go version go1.9.5 darwin/amd64

The commands I ran were ...

$ go get http://github.com/ciena/oftee
$ cd oftee
$ export GOPATH=$(pwd)
$ go get -d -v ./...
$ go run oftee --help

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jun 25, 2018 via email

@dbainbri-ciena
Copy link
Contributor

Glad to hear it, what was the issue you were hitting?

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jun 25, 2018 via email

@adibrastegarnia
Copy link
Author

After the last time we talked about the setup, I wasn't able to spend time on it because of some other tasks. Would you please tell me what values do you use to set env variables? I am getting this error and I think it is because of action item in TEE_TO:

Unable to connect to outbound end point connection="dl_type=0x800" error="dial tcp: address dl_type=0x800: missing port in address"

Thanks,
Adib

@adibrastegarnia
Copy link
Author

resolved

@dbainbri-ciena
Copy link
Contributor

I have a working example with a AAA and DHCP application at https://github.com/dbainbri-ciena/oftee_workspace. The AAA does EAPOL to Radius and is written in Golang. The DHCP does L3 relay and is written in python. This should be a might be a good resource to see how oftee works.

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 16, 2018 via email

@adibrastegarnia
Copy link
Author

When I export PROXY_TO as follows:
export PROXY_TO=tcp://127.0.0.1:6653

It gives me the following error:
Unable to connect to SDN controller error="dial tcp: too many colons in address tcp://127.0.0.1:6653" proxy="tcp://127.0.0.1:6653"

Do I use the correct format?

Thanks

@dbainbri-ciena
Copy link
Contributor

dbainbri-ciena commented Jul 17, 2018 via email

@adibrastegarnia
Copy link
Author

Thanks but another problem is raised and I am still not sure it is because of my system or it is because of the code:

This is my scenario:

I run oftee and then run a mininet simulation scenario to connect a set of network switches to oftee. This is what happens: It keeps printing this message:

ERRO[0009] Error while accepting connection error="accept tcp [::]:6633: accept4: too many open files"
ERRO[0009] Error while accepting connection error="accept tcp [::]:6633: accept4: too many open files"
ERRO[0009] Error while accepting connection error="accept tcp [::]:6633: accept4: too many open files"
ERRO[0009] Error while accepting connection error="accept tcp [::]:6633: accept4: too many open files"
ERRO[0009] Error while accepting connection error="accept tcp [::]:6633: accept4: too many open files"
ERRO[0009] Error while accepting connection

Do you think I need to change my max file descriptors?
I think the order of execution of the controller, oftee, and a simulation scenario is also important right?

@dbainbri-ciena
Copy link
Contributor

dbainbri-ciena commented Jul 17, 2018

How many switches are in your simulation? How are you starting mininet?

the order of startup should not matter.

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 17, 2018 via email

@dbainbri-ciena
Copy link
Contributor

ok, let me attempt to create a 5 switch network in mininet and see what happens

@dbainbri-ciena
Copy link
Contributor

just started a network with sudo mn --topo=tree,3 --controller=remote,ip=127.0.0.1,port=6654 and not seeing the error. how long was it running before you saw the error?

@dbainbri-ciena
Copy link
Contributor

seems to be working with --topo=tree,5 as well, which is 37 switches

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 17, 2018 via email

@dbainbri-ciena
Copy link
Contributor

are you using the latest source code? not sure why you would see it and i don't. what are your limits for file descriptors?

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 17, 2018 via email

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 17, 2018 via email

@dbainbri-ciena
Copy link
Contributor

dbainbri-ciena commented Jul 17, 2018 via email

@dbainbri-ciena
Copy link
Contributor

dbainbri-ciena commented Jul 17, 2018 via email

@adibrastegarnia
Copy link
Author

adibrastegarnia commented Jul 17, 2018 via email

@dbainbri-ciena
Copy link
Contributor

OK. Glad it is working.

If everything is on the same host, then yes, the ports have to be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants