The invention relates to the technical field of
wireless networking, in particular to a shipborne digital
wireless ad hoc
network method and
system, and the method comprises the following steps: obtaining ship communication equipment information, constructing a layered mark matrix, generating a node role identifier set, monitoring
response time delay, judging a connection relation, and establishing a communication topology. And optimizing spectrum allocation according to an
interference ratio and an overlapping coefficient, completing channel matching and path completion, executing AES
encryption and encapsulation of data frames, and decrypting and verifying time
delay record effective data frames by a receiving end according to a key index. According to the invention, through combination of hierarchical marks established by node equipment information and communication roles, the accuracy of inter-node connection priority and hierarchical mapping is improved, through dual detection of the
interference ratio and the spectrum overlapping coefficient of the channel, the stability of a communication path and the channel
utilization rate are improved, and the communication efficiency is improved. In a node link matching process, path breakpoints are complemented to guarantee
network integrity, a security header field is embedded in combination with a key index and a channel number, and the
security guarantee level of data
encryption transmission is improved.