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

USING P4_INT #3

Open
euclidesfjr opened this issue Jan 13, 2019 · 2 comments
Open

USING P4_INT #3

euclidesfjr opened this issue Jan 13, 2019 · 2 comments
Assignees

Comments

@euclidesfjr
Copy link

euclidesfjr commented Jan 13, 2019

Hi, good morning, can you help me? Because in the test that I am working on I can not make the system work properly, because I do not know how to use the * .py commands below, since I can only generate send packets, receive packets do not generate and consequently do not generate the network analysis when I use this program. Can you help me?

euclidesfjr@kaxassa:~/P03/P4_INT-ORIGINAL/P4_INT/INT_headerstack$ ls -lrt *.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 1035 Jan 12 17:54 original_send.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 3272 Jan 12 17:54 original_receive.py
-rw-rw-r-- 1 euclidesfjr euclidesfjr 713 Jan 12 17:54 cpu_plot.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 5202 Jan 12 17:54 receive_udp.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 12874 Jan 12 17:54 receive_udp_no_packets_h1.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 14269 Jan 12 17:54 receive_udp_multithreaded_h2.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 14661 Jan 12 17:54 receive_udp_multithreaded_h1.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 4554 Jan 12 17:54 receive_tcp.py
-rw-rw-r-- 1 euclidesfjr euclidesfjr 8052 Jan 12 17:54 receive_tcp_normaldist.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 8052 Jan 12 17:54 receive_tcp_normaldist_original.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 8282 Jan 12 17:54 receive_tcp_multithreaded.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 330 Jan 12 17:54 process_deq.py
-rw-rw-r-- 1 euclidesfjr euclidesfjr 345 Jan 12 17:54 print_packets.py
-rw-rw-r-- 1 euclidesfjr euclidesfjr 2555 Jan 12 17:54 populate_sx_xommands_file.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 391 Jan 12 17:54 tcp_single_send.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 492 Jan 12 17:54 tcp_single_receive.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 1938 Jan 12 17:54 send_udp.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 3354 Jan 12 17:54 send_udp_normaldist.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 1424 Jan 12 17:54 send_tcp.py
-rwxrwxr-x 1 euclidesfjr euclidesfjr 3370 Jan 12 17:54 send_tcp_normaldist.py
-rw-rw-r-- 1 euclidesfjr euclidesfjr 225 Jan 12 17:54 send_tcp_flows.py

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Because I can not generate * .pcap files for IN (input), only OUT (output). Can you help me? Since I can not get the network to communicate between IP addresses.

@vksysd vksysd self-assigned this Jan 14, 2019
@vksysd
Copy link
Owner

vksysd commented Jan 14, 2019

Hi @euclidesfjr, Please run the send_udp.py file on the h1 host and receive_udp.py script on the h8 host. Also please ensure that before running p4 code your hosts are able to ping each other.

@euclidesfjr
Copy link
Author

Hi, good morning, thank you very much for your attention, but I'm not able to execute. Maybe I did not understand the program send_udp.py and the program send_tcp.py, because when running it does not work, even though I see the arguments it asks, see how I executed it.

euclidesfjr @ kaxassa: ~ / P03 / P4_INT-ORIGINAL / P4_INT / INT_headerstack $ ./send_udp.py h1
WARNING: No route found for IPv6 destination :: (no default route?)
pass 2 arguments: ""
euclidesfjr @ kaxassa: ~ / P03 / P4_INT-ORIGINAL / P4_INT / INT_headerstack $
+++++++++++++++++++++++++++++++
euclidesfjr @ kaxassa: ~ / P03 / P4_INT-ORIGINAL / P4_INT / INT_headerstack $ ./send_udp.py h1 "test"
WARNING: No route found for IPv6 destination :: (no default route?)
Traceback (most recent call last):
File "./send_udp.py", line 61, in
main ()
File "./send_udp.py", line 32, in main
addr = socket.gethostbyname (sys.argv [1])
socket.gaierror: [Errno -2] Name or service not known
euclidesfjr @ kaxassa: ~ / P03 / P4_INT-ORIGINAL / P4_INT / INT_headerstack $
++++++++++++++++++++++++++++++++++++++++

Okay, but how to do this ?? "Also please ensure that before running your hosts are able to ping each other."

Thanks very much for the help, I need to be able to do an article about it.

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