NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Detecting Contradictions from CoAP RFC Based on Knowledge Graph

Xinguo Feng, Yanjun Zhang, Mark Huasong Meng, Sin G. TeoNSS 2022

Abstract

Due to the boom of Internet of Things (IoT) in recent years, various IoT devices are connected to the internet and communicate with each other through web protocols such as the Constrained Application Protocol (CoAP). These web protocols are typically defined and described in the Request for Comments (RFC) documents, which are written in natural or semi-formal languages. Since developers largely follow the RFCs when implementing web protocols, the RFCs have become the de facto protocol specifications. Therefore, it is desirable to ensure that the technical details being described in the RFC are consistent, to avoid technological issues, incompatibility, security risks or even legal concerns. In this work, we propose RFCKG, a knowledge graph based contradictions detection tool for CoAP RFC. Our approach can automatically parse the RFC documents and construct knowledge graphs from them through entity extraction, relation extraction, and rule extraction. It then conducts an intra-entity and inter-entity consistency checking over the generated knowledge graph. We implement RFCKG and apply it to the main RFC (RFC7252) of CoAP, one of the most extensively used messaging protocols in IoT. Our evaluation shows that RFCKG manages to detect both direct contradiction and conditional contradictions from the RFC.
BibTeX
@inproceedings{feng2022detecting,
  author = {Xinguo Feng and Yanjun Zhang and Mark Huasong Meng and Sin G. Teo},
  title = {{Detecting Contradictions from CoAP RFC Based on Knowledge Graph}},
  booktitle = {NSS},
  year = {2022},
  url = {https://openreview.net/forum?id=8pKH52wSijh},
}

Loading related content...

Figure