Open-QKD-Network / qkd-net

Protocol stack for QKD networks with key management
https://openqkdnetwork.net/
MIT License
34 stars 31 forks source link

Please help me, I encountered an error while running the project #9

Closed yc1997besti closed 4 years ago

yc1997besti commented 4 years ago

But when I took the obtained token and called the newkey function, I encountered the following problem cf94f5435b77743e7e1594ea59bb7c1

Then I went to check the logs and found that the routing connection failed 67a51fde7bf247e75ee6ca5ddd21692

xinhuafrankl commented 4 years ago

Can you please post the following: ~/.qkd/qnl/routes.json ~/.qkd/qnl/config.yaml ~/.qkd/kms/kms.conf ~/.qkd/kms/site.properties and the IP addresses of the QNL nodes?

yc1997besti commented 4 years ago

Thank you very much for replying to my message: When testing the function of the kms service, I opened two virtual machines A and B; the IP address of A is 192.168.210.131; the IP address of B is: 192.168.210.132; their respective The configuration file is shown below: A's configuration file: 站点A 站点A2

Configuration file of B 站点B 站点B2

xinhuafrankl commented 4 years ago

The files look ok to me. Can you verify that ping from A to B or B to A works? Another user got the same error message and it's gone after he fixed the network problem.

yc1997besti commented 4 years ago

Thank you very much for your answer, but unfortunately he has no problem with my network. I can ping each other to connect normally, and the screenshot shows the services that have been started normally. I have two questions. The first one is that there is a service that has not been started. It is qll-sim.conf. I tried to manually and start it, but it reported an error. The second question is why port 9395 appears in the LSRP routing module routing. I did not find information about this port in the code and configuration file. So, I don't know what to do, I'm confused, I hope you can answer it. Thank you for taking the time to answer my question A ping B A ping B B ping A B ping A

qll-sim.conf error qll错误 qll错误2

xinhuafrankl commented 4 years ago

@yc1997besti sorry for the delayed response due to the crazy COVID-19 pademic...
qll-sim is not needed, instead you just put the same simulated key file under .qkd/qnl/qll/keys/A/ as A_0 on site B and under .qkd/qnl/qll/keys/B/ as B_0 on site A. The file should contain one key per row, and each row contains 64 random hexdecimal characters, and 4096 rows. On the other hand, have you tried the two sets of config files in qkd-kaiduan-a.tar and qkd-kaiduan-b.tar? Just change the IP addresses accordingly and you should have no problem, as these two sets of files are being used in a current dev environment without any issues.

yc1997besti commented 4 years ago

Thank you very much for your reply. Recently, the new coronavirus is very dangerous. I hope you can protect yourself, stay at home and go out less! I understand what you mean. I went to check the configuration file and found that the key you configured is already configured in the configuration file you updated, but I do n’t understand why I still failed. The error indicates a problem with the network layer routing module, but I can ping each other without problems. I'm confused and uncomfortable. I've been stuck here for a long time. If you can, can you copy and send me the virtual machine running the entire project? I wish you good health and a happy life!

kaiduanx commented 4 years ago

After you untar the qkd-kaiduan-a.tar, copy .qkd directory in the tar ball to your home directory, and delete two directories, kms/pools and qnl/otp/keys. Put qkd-kaiduan-b.tar on another computer, and do the same thing. Please do not forget to change the IP address of the site A and B. You should be able to run the test.

yc1997besti commented 4 years ago

Thank you very much for your answers; I successfully ran the KMS service and the results are the same as the example you gave! Then, I went to run an application in the project qkd-net / applications / tls-kms-demo /; the result of the operation is shown in the figure below, I feel no problem, but it seems a little different from the example you gave Hope you can help me see!

One picture is the example you gave; the other picture is a screenshot of my operation

Alice: image

image

Bob: image

image

xinhuafrankl commented 4 years ago

That's fine. The Readme document needs update.

yc1997besti commented 4 years ago

Thanks a lot for your help, I successfully ran through the code. My next plan is to try to modify the code based on your project, which has conformed to the quantum key management layer I designed to distribute keys for the application. I would like to ask, there are still some materials or papers related to this project; I only found this paper "The Engineering of a Scalable Multi-Site Communications System Utilizing Quantum Key Distribution (QKD)", Quantum Science and Technology 3, no. 2 (2018): 024001, arXiv: 1712.02617v1; I want to understand this project in more depth, can you give me some publicly published information, I hope you can help me!

------------------ 原始邮件 ------------------ 发件人: "xinhuafrankl"<notifications@github.com>; 发送时间: 2020年4月6日(星期一) 晚上8:07 收件人: "Open-QKD-Network/qkd-net"<qkd-net@noreply.github.com>; 抄送: "淡淡清香/mn"<296823555@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [Open-QKD-Network/qkd-net] Please help me, I encountered an error while running the project (#9)

That's fine. The Readme document needs update.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

xinhuafrankl commented 4 years ago
Hi, the only publicly available document on this project is the paper you’ve found.  Feel free to modify the KMS layer code to suit your own design purpose. Good luck!   From: yc1997bestiSent: April 12, 2020 10:48 PMTo: Open-QKD-Network/qkd-netCc: xinhuafrankl; State changeSubject: Re: [Open-QKD-Network/qkd-net] Please help me, I encountered an error while running the project (#9) Thanks a lot for your help, I successfully ran through the code. My next plan is to try to modify the code based on your project, which has conformed to the quantum key management layer I designed to distribute keys for the application. I would like to ask, there are still some materials or papers related to this project; I only found this paper "The Engineering of a Scalable Multi-Site Communications System Utilizing Quantum Key Distribution (QKD)", Quantum Science and Technology 3, no. 2 (2018): 024001, arXiv: 1712.02617v1; I want to understand this project in more depth, can you give me some publicly published information, I hope you can help me! ------------------ 原始邮件 ------------------ 发件人: "xinhuafrankl"
yc1997besti commented 4 years ago

Thank you very much for your reply, I have been working hard to understand this project! I have a doubt now, I have done an experiment now if the application of A, C site wants to get the same key, but A, C site does not Adjacent, but A and C are adjacent to site B. Then I took the request to obtain the key. I found that sites A and C did obtain the same key. But I am very puzzled. In this case, is there a key relay function in the QNL layer? Is A relaying the key to B, then B relaying to C, and finally C to obtain the same key? Or A, C because the same key already exists in the configuration file, directly obtained? I hope you can help me answer!

------------------ 原始邮件 ------------------ 发件人: "xinhuafrankl"<notifications@github.com>; 发送时间: 2020年4月17日(星期五) 上午6:10 收件人: "Open-QKD-Network/qkd-net"<qkd-net@noreply.github.com>; 抄送: "淡淡清香/mn"<296823555@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [Open-QKD-Network/qkd-net] Please help me, I encountered an error while running the project (#9)