WO2017206409A1 - Wireless ad-hoc network-based mobile communications system - Google Patents

Wireless ad-hoc network-based mobile communications system Download PDF

Info

Publication number
WO2017206409A1
WO2017206409A1 PCT/CN2016/101287 CN2016101287W WO2017206409A1 WO 2017206409 A1 WO2017206409 A1 WO 2017206409A1 CN 2016101287 W CN2016101287 W CN 2016101287W WO 2017206409 A1 WO2017206409 A1 WO 2017206409A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
routing
link state
data
record entry
Prior art date
Application number
PCT/CN2016/101287
Other languages
French (fr)
Chinese (zh)
Inventor
王岳彪
Original Assignee
尚一民
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 尚一民 filed Critical 尚一民
Publication of WO2017206409A1 publication Critical patent/WO2017206409A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • H04W40/14Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality based on stability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention belongs to the technical field of communications, and in particular relates to a mobile communication system based on a wireless self-organizing network.
  • Common communication devices such as mobile phones communicate with each other by means of cellular base stations or Wireless Local Area Networks (WLAN) access points, and access to cellular base stations or wireless local area networks when these mobile communication devices are relatively close.
  • the communication points communicate with each other, which not only causes the communication cost to rise, but also increases the burden on the cellular base station or the wireless local area network access point.
  • cellular base stations and wireless local area network access points are not always available. In remote areas without cellular network coverage or sudden spontaneous combustion disasters, it is unrealistic for mobile communication devices to communicate with each other via cellular base stations or wireless local area network access points. of.
  • a WiFi direct connection is a peer-to-peer (Peer-to-Peer) implementation of a client-to-access point.
  • a P2P group includes a P2P GO (Group Owner, GO) and one or more P2P clients, and the same P2P group.
  • the P2P Clients in the middle of each other must communicate with each other via P2P GO.
  • the P2P group is centered on the P2P GO, so the communication range of the entire P2P group is limited by the P2P GO communication range.
  • different P2P groups cannot be merged with each other.
  • the mobile communication device that starts the Soft AP is equivalent to the wireless LAN access point, and the mobile communication devices that access the Soft AP must communicate with each other via the Soft AP.
  • the entire network is centered on the Soft AP. Therefore, the communication range of the entire network is limited by the communication range of the mobile communication device that opens the Soft AP.
  • different Soft AP networks cannot be integrated with each other.
  • the wireless self-organizing network is a non-central network.
  • the wireless self-organizing network can communicate to expand the coverage of the network.
  • the failure of a mobile communication device in the wireless self-organizing network does not affect the communication of other mobile communication devices.
  • the organization network is robust, and wireless self-organizing networks also support network convergence.
  • 201210251730.X discloses a mobile ad hoc network system based on Android mobile phone and a construction method thereof, the system mainly comprises a plurality of Android mobile phones and a WiFi network card Ad-Hoc mode manager installed on the mobile phone, The automatic IP address allocation manager and the network topology manager are constructed by the activation of the Ad-Hoc mode of the mobile phone WiFi, the automatic allocation of the node IP address in the network, and the integration of the network topology in the node moving state.
  • the invention supports the mobile network topology environment.
  • the IP address of the Android mobile phone is automatically allocated and guarantees the uniqueness of the IP address of each mobile phone node in the network, but the invention does not involve the routing mechanism in the mobile ad hoc network, and the IP address allocation method proposed by the invention is complicated when there is a new When a mobile phone node joins the network or network convergence occurs, the IP address allocation process takes time.
  • the object of the present invention is to overcome the above disadvantages of the prior art and to provide a mobile communication system based on a wireless ad hoc network.
  • the basic idea is that each communication device in the mobile communication system periodically transmits a link state message. Routing data frames, each communication device maintaining routing information based on the received routing data frames, determining an optimal next hop communication device for each communication device to ensure an optimal communication path between each communication device and the destination communication device.
  • a wireless self-organizing network system with no fixed center, strong robustness, limited network communication range without network central nodes, and strong network communication capability is formed.
  • a mobile communication system based on a wireless ad hoc network includes a plurality of communication devices, each of which includes a routing unit and a data transceiving and parsing unit, wherein the routing unit maintains a routing allocation table, and the routing allocation table includes a plurality of allocations Recording entry, each mapping record item has a correspondence between the destination address and the candidate allocation routing address, and the candidate allocation routing address in the allocation record entry is when the communication device sends data to the destination communication device corresponding to the destination address.
  • the data transceiving and parsing unit sends a route query request to the routing unit before transmitting the data
  • the route query request includes a receiving destination address
  • the routing unit receives the After the route query request, the route allocation table searches for an allocation record entry whose destination address is the same as the destination address in the route query request, and sends a route query response to the data sending and receiving parsing unit according to the found allocation record entry.
  • the routing query response includes the found allocation record entry.
  • Candidate allocation routing address said routing data transceiving unit parsing the query candidate allocation in response to the routing address as the recipient address transmitted data.
  • the wireless ad hoc network-based mobile communication system wherein the routing unit includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32, and the original routing data frame generation subunit 32
  • the original routing data frame is periodically constructed according to a certain time interval and sent to other communication devices through the data transceiving and parsing unit, and the data transceiving and parsing unit receives the routing data frame generated by the other communication device, and sends the routing data frame.
  • the routing information maintenance sub-unit 31 the routing data frame includes a receiver address, a sender address, and a routing frame body, the routing frame body includes a link state packet, and the link state packet includes an original sending a party address and a link state value, the link state value being used to communicate a communication link state between the communication device corresponding to the original sender address of the link state message and the communication device corresponding to the sender address of the route data frame.
  • the routing information maintenance sub-unit 31 selects the communication device to the destination communication based on the routing data frame selection.
  • the communication link state is in the optimal next hop communication device of the communication device, and the address of the destination communication device and the address of the selected next hop communication device are respectively used as the destination address in the allocation record entry and The candidate allocates a routing address to maintain the routing allocation table.
  • the wireless ad hoc network-based mobile communication system wherein for each of the route allocation tables, a record entry is allocated, and the communication device transmits a neighboring hop of the communication device corresponding to the candidate route address by the candidate.
  • the transmission link state is optimal, and the transmission link state is determined by the transceiver link state and the reception link state, and the transceiver link state passes through the communication device.
  • the transmitted routing data frame is received by the adjacent one-hop communication device of the communication device, and is forwarded by the communication device, and then transmitted and received by the communication device, and the received data link is transmitted through the destination communication device.
  • the reception probability of the communication device being forwarded by the adjacent one-hop communication device is reflected by the communication device.
  • the wireless ad hoc network-based mobile communication system wherein the routing information maintenance sub-unit 31 maintains an overlay table, a reception table, a link state table, and the route allocation table based on the route data frame;
  • the overlay table includes a plurality of superimposed record entries, each of which records a correspondence between a candidate route address and a superimposed value, and in a correspondence relationship of each superimposed record entry, the candidate route address
  • the superimposed value is that the routing data frame sent by the communication device is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address and is forwarded again by the communication device.
  • the receiving table includes a plurality of receiving record entries, each of which records a correspondence between a destination address, a candidate routing address, and a received value, and each received record
  • the destination address is an address of the destination communication device
  • the candidate routing address is a phase of the communication device.
  • the address of the one-hop communication device, the received value is the reception probability that the routing data frame sent by the destination communication device corresponding to the destination address is forwarded by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address, and then received by the communication device
  • the link state table includes several link states Recording entries, each link state record entry records a correspondence between a destination address, a candidate route address, and a link state stable value, and the link state table is constructed based on the overlay table and the receive table, each chain The path state record entry is formed by an overlay record entry having the same candidate route address and a received record entry, and the destination address in the link state record entry is a destination address in the received record entry, the chain
  • the candidate route address in the route state record entry is the same candidate route address included in the overlay record entry and the receive record entry, and the link state stability value in the link state record entry is based on the overlay record entry.
  • the superimposed value and the received value in the received record entry are calculated; the route allocation table is constructed based on the link state table, and the link state record entry set having the same destination address is extracted in the link state table, Selecting, in the set of link state record entries, a link state record entry with the highest link state stability value, and the link state with the stable link state stable value Destination address and the routing address of the candidate record entry as the destination address and the address of an allocation candidate route is allocated allocation table records routing table entry.
  • the wireless ad hoc network-based mobile communication system wherein the original sender address of the link state message of the original route data frame constructed by the original route data frame generation subunit 32 in the present communication device is The address of the communication device, the link state value of the link state message of the original route data frame takes the maximum value, and the sequence number of the link state message of the original route data frame is reported in the previous link state report generated by the communication device.
  • the sequence number of the text is incrementally changed according to the fixed step size; the routing information maintenance sub-unit 31 updates the overlay table and the receiving table according to the received latest routing data frame, and routes the link state message of the data frame.
  • the routing information maintenance sub-unit 31 updates the overlay table, and in the overlay table, the candidate routing address is searched for the superimposed record entry of the sender address of the routing data frame. If the superimposed record entry is queried, the superimposed value in the superimposed record entry is updated, and if the superimposed record entry cannot be queried An overlay record entry is added to the overlay table.
  • the candidate route address in the newly added overlay record entry is the sender address of the route data frame, and the calculation method of the superimposed value in the newly added overlay record entry and the superimposed value
  • the update method is the same; when the original sender address of the link state message of the routing data frame is not the address of the communication device, the routing information maintenance subunit updates the receiving table, and the destination address is queried in the receiving table.
  • the original sender address of the link state message of the data frame and the candidate route address is the receiving record entry of the sender address of the routing data frame, and if the receiving record entry can be queried, the receiving record entry is updated.
  • a new receive record entry is added to the receive table, and the destination address in the newly received record entry is the original link state packet of the routed data frame.
  • the sender address, the candidate route address in the newly added record entry is the sender address of the route data frame, and the received value in the newly received record entry. Updating methods the same value with the receiver.
  • the wireless ad hoc network-based mobile communication system wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: first extracting The link state value of the link state packet of the routing data frame is recorded as x; secondly, the superimposed table is used to query the superimposed record entry of the sender address of the routing data frame in the overlay table, if it cannot be queried in the overlay table The superimposed record entry ends the update of the link state table.
  • the superimposed value in the superimposed record entry is extracted and recorded as y;
  • the received value in the receiving record entry of the link state message whose destination address is the route data frame and the candidate route address is the sender address of the route data frame is recorded as z; when (y/ z) ⁇ 1, the link state value of the link state message of the routed data frame is updated to x*(y/z), and when (y/z) ⁇ 1, the link state of the routed data frame is reported.
  • the link state value of the text is more The original value x is the last; in the link state table, the link state record entry whose destination address is the original sender address of the link state packet in the routing data frame and the candidate routing address is the sender address of the routing data frame is queried. If the link state record entry is queried, the route is based on the route The updated link state value of the link state packet of the data frame updates the link state stable value in the link state record entry. If the link state record entry cannot be queried, the link state table is in the link state table. A new link state record entry is added. The destination address of the newly added link state record entry is the original sender address of the link state packet in the routing data frame. The newly added link state record entry is added. The candidate route address is the sender address of the route data frame, and the link state stability value of the newly added link state record entry is the updated link state value of the link state message in the route data frame.
  • the wireless ad hoc network-based mobile communication system wherein the link state table maintains an average queue for each link state record entry, and each link state record table
  • the averaging queues of the items have the same length, and the averaging queue stores the updated link state value of the link state message of the routing data frame, and the moving in and out of the link state value in the averaging queue follows the first-come first
  • the principle that the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit updates each time after receiving the receiving table
  • the link state table is updated in the following manner: first, the link state value of the link state packet of the route data frame is extracted, and is recorded as x; secondly, the candidate route address is queried as the sender of the route data frame in the overlay table.
  • the superimposed record entry of the address if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, and if the overlay table can be queried And superimposing the record entry, extracting the superimposed value in the superimposed record entry, and recording it as y; and then extracting the original sender address of the link state message whose destination address is the route data frame in the receiving table and the candidate route address is
  • the received value in the received record entry of the sender address of the routed data frame is denoted as z; when (y/z) ⁇ 1, the link state value of the link state message of the routed data frame is updated to x* (y/z), when (y/z) ⁇ 1, update the link state value of the link state message of the routed data frame to the original value x; finally, query the destination address as the route data in the link state table.
  • the link sender record entry of the link state packet of the frame and the candidate route address being the link state record entry of the sender address of the route data frame. If the link state record entry is queried, the link state record is recorded to the link state record entry. The updated link state value of the link state packet of the routing data frame in the averaging queue corresponding to the entry, and recalculating the average value of all link state values in the averaging queue, and the link state record entry The link state stability value in the update is updated to the flat If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the newly added link state record entry is the link state of the route data frame.
  • the original sender address of the packet, the candidate route address of the newly added link state record entry is the sender address of the route data frame, and the route data frame is moved into the average queue corresponding to the newly added link state record entry.
  • the updated link state value of the link state packet, and the link state stability value of the newly added link state record entry is the average of the link state values in the corresponding average queue.
  • the wireless ad hoc network-based mobile communication system wherein the routing information maintenance sub-unit simultaneously updates the routing allocation table in the following manner after updating the link state table: Querying, in the link state table, a set of link state record entries of the original sender address whose destination address is a link state packet of the route data frame; and then selecting a link state in the link state record entry set The link state record entry with the highest stable value, and the destination address and the candidate route address in the link state record entry with the highest link state stability value are respectively used as the destination address and the candidate route address in the route update entry; Then, in the route allocation table, the allocation record entry whose destination address is the destination address in the route update entry is queried, and if the allocation record entry is found, the candidate allocation route address in the allocation record entry is updated to If the candidate routing address in the routing update entry cannot be found, add a new one in the routing allocation table. With record entry, the destination address and route address of the new candidate allocation record allocation table entries are the destination address and the
  • the wireless ad hoc network-based mobile communication system wherein the overlay table maintains a superimposition queue for each superimposed record entry, and an overlay team corresponding to each superimposed record entry
  • the column length is the same
  • the sequence number of the link state message of the routing data frame is stored in the superposition queue
  • the moving in and out of the sequence number in the superimposed queue follows the principle of first in first out
  • each superimposed record entry The superimposed value is a ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue, and the process of moving in and out of the serial number in the superimposed queue corresponding to each superimposed record entry in the superimposition table is kept synchronized, and the route is synchronized.
  • the superimposed value in the superimposed recording table item is updated in the following manner: the superimposed recording table in which the candidate routing address in the superimposition table is the sender address of the routing data frame As the superimposed record entry, the item moves the sequence number of the link state message of the routing data frame to the superposition queue corresponding to the superimposed record entry, and simultaneously superimposes the superimposed record table except the superimposed record entry in the superposition table.
  • the receiving table is updated based on the latest routing data frame
  • the received value in the received record entry is updated in the following manner: the original sender address of the link state message in which the destination address in the receiving table is the routing data frame and the candidate is received.
  • the receiving record entry whose routing address is the sender address of the routing data frame is used as the receiving record entry, and is sent to the receiving record table.
  • the sequence number of the link state packet in which the routing data frame is moved in the corresponding receiving queue, and the original sender address of the link state packet whose destination address is the routing data frame in the receiving table other than the receiving recording entry The receiving queue corresponding to the other receiving record entry moves an empty element, and then updates the received value of each receiving record entry of the original sender address of the link state message whose destination address is the routing data frame in the receiving table to The ratio of the number of serial numbers stored in the corresponding receive queue to the length of the receive queue.
  • the wireless ad hoc network-based mobile communication system wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same original transmission in the previous one.
  • the serial number of the link state message of the party address is incremented by a fixed step, and is recorded as L; each time the routing information maintenance subunit updates the superimposition table, the related superimposed record in the superimposition table is updated in the following manner.
  • Superimposed value of the entry extract the maximum value of the serial number in the superposition queue corresponding to each superimposed record entry in the superposition table, denoted as a, extract the serial number of the link state message of the routing data frame, and record it as b, superimpose
  • the ((ba)/L) empty elements are sequentially moved into the superposition queue corresponding to the superimposed record entry (((ba) ) / L) - 1) an empty element and a sequence number b, and then update the superimposed value in each superimposed record entry in the superimposed table to the number of serial numbers stored in the corresponding superimposed queue and the length of the superimposed queue
  • the routing information maintenance sub-unit updates the received value of the relevant receiving record entry in the receiving table each time the receiving table is updated: extracting the link state message whose destination address is the routing data frame in the receiving table The maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the original sender address is recorded as
  • the destination address other than the record entry is the (#nm)/L empty element in the receive queue corresponding to the receive record entry of the original sender address of the link state packet of the route data frame, and the destination record table is added to the receive record table.
  • (((nm)/L)-1) empty elements and sequence number n are sequentially shifted in, and then the original sender address of the link state message in which the destination address in the table is the routing data frame is received.
  • the received value of each received record entry is updated to the ratio of the number of sequence numbers stored in its corresponding receive queue to the length of the receive queue.
  • a wireless ad hoc network-based mobile communication system wherein the road
  • the information maintenance sub-unit 31 determines whether the received routing data frame is the latest routing data frame in the following manner: the routing information maintenance sub-unit 31 maintains a pre-processing table, and the pre-processing table includes a plurality of pre-processing tables.
  • the record entry is processed, and the correspondence between the original sender address and the serial number is recorded in each preprocess record entry.
  • the route information maintenance subunit 31 receives the route data frame from the data transceiving and parsing unit, the preprocessing is performed.
  • the route provided by the data transceiving and parsing unit is queried.
  • the data frame is determined to be the latest routing data frame, and a preprocessing record entry is added to the preprocessing table.
  • the original sender address and sequence number of the newly added preprocessing record entry are the links of the routing data frame respectively.
  • the original sender address and sequence number of the status message if the original sender address is queried as the link status message of the routing data frame in the preprocessing table And a pre-processing record entry of the original sender address, comparing the size relationship between the sequence number in the pre-processing record entry and the sequence number of the link state packet of the routing data frame, if the pre-processing record entry is If the sequence number is smaller than the sequence number of the link state packet of the routing data frame, the routing data frame provided by the data transceiving and parsing unit is determined as the latest routing data frame, and the serial number in the preprocessing record entry is updated. The routing data frame is discarded if the sequence number of the pre-processing record entry is greater than or equal to the sequence number of the link state packet of the routing data frame.
  • a mobile communication system based on a wireless ad hoc network comprising a plurality of communication devices, each communication device comprising a routing unit, a data parsing unit and a data transceiving unit, the data transceiving unit comprising at least one data transceiving subunit, the data
  • the transceiver unit sends routing data information to the data parsing unit, the data parsing unit sends the received routing data information to the routing unit, and the routing unit maintains a routing allocation table based on the routing data information, where the routing allocation table is
  • the method includes a plurality of allocation record entries, and each of the allocation record entries records a correspondence between a destination address, a data transceiving subunit address, and a candidate allocation routing address, and in a correspondence relationship of each allocation record entry, the destination The address is the address of the data transceiving subunit in the destination communication device, the data transceiving subunit address is the address of the data transceiving subunit in the communication device, and the candidate allocation routing
  • the wireless ad hoc network-based mobile communication system wherein the routing unit includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32, and the original routing data frame generation subunit 32
  • the original routing data frame is periodically constructed according to a certain time interval and transmitted to other communication devices through the data transceiver unit, and the data transceiver unit receives the routing data frame generated by the other communication device, and constructs the routing data information and sends the data frame.
  • the data parsing unit sends the routing data information to the routing information maintenance subunit 31 via the data parsing unit, where the routing data information includes a routing data frame and a data transceiving subunit address of the communication device receiving the routing data frame.
  • the routing data frame includes a receiver address, a sender address, and a routing frame body, where the routing frame body includes a link state packet, where the link state packet includes an original sender address, a link state value, and a sequence number.
  • the link state value is used to reflect the original sender of the link state message
  • the transmission link state is determined by a transceiver link state and a received link state, where the routing data frame sent by the data transceiver subunit of the communication device is used by the adjacent one-hop communication device of the communication device.
  • the transmission and reception probability of receiving and being forwarded by the communication device is reflected, and the routing data frame sent by the destination communication device is forwarded by the adjacent one-hop communication device of the communication device by the communication device.
  • the reception probability of the data transceiver subunit is reflected.
  • the wireless ad hoc network-based mobile communication system wherein the routing unit maintains an overlay table, a reception table, a link state table, and the route allocation table based on routing data information;
  • the overlay table includes There are a plurality of superimposed record entries, and each superimposed record entry records a correspondence between a data transceiving subunit address, a candidate route address, and a superimposed value, and in the correspondence relationship of each superimposed record entry, the data is transmitted and received.
  • the subunit address is an address of a data transceiving subunit in the communication device
  • the candidate routing address is an address of a data transceiving subunit in a neighboring one-hop communication device of the communication device
  • the superposition value is a data transceiving subunit
  • the routing data frame sent by the data transceiving subunit in the communication device corresponding to the address is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address, and is forwarded by the communication device and then received and received by the communication device.
  • the receiving table includes a plurality of receiving record entries, and each of the received record entries records a destination address and data.
  • the destination address is the address of the data transceiving subunit in the destination communication device
  • the data transceiver The unit address is the address of the data transceiving subunit in the communication device
  • the candidate routing address is the address of the data transceiving subunit in the adjacent one-hop communication device of the communication device
  • the receiving value is the destination corresponding to the destination address.
  • the path state table includes a plurality of link state record entries, and each link state record entry records a correspondence between a destination address, a data transceiving subunit address, a candidate route address, and a link state stable value, the chain
  • the road state table is constructed based on the overlay table and the receiving table, and each link state record entry is received by the same data.
  • the destination address in the link state record entry is a destination address in the receive record entry
  • the link state record The data transceiving subunit address in the entry is the same data transceiving subunit address contained in the superimposed record entry and the received record entry
  • the candidate route address in the link state record entry is an overlay record entry and reception.
  • the route allocation table is constructed based on the link state table, and extracts a link state record entry set having the same destination address and the same data transceiving subunit address in the link state table, where the link state record entry set Select the link state record entry with the highest link state stability value and the destination in the link state record entry with the highest link state stability value.
  • the address, the data transceiving subunit address, and the candidate routing address are respectively used as the destination address, the data transceiving subunit address, and the candidate allocation routing address in the corresponding allocation record entry of the route allocation table.
  • the wireless ad hoc network-based mobile communication system wherein the original sender address of the link state message of the original route data frame constructed by the original route data frame generation subunit 32 is the original transmission station
  • the address of the data transceiving subunit of the original routing data frame, the link state value of the link state packet of the original routing data frame takes a maximum value, and the sequence number of the link state packet of the original routing data frame is The sequence number of the link state message having the same original sender address is incremented according to a fixed step size; the routing information maintenance subunit 31 is further based on the latest route data received.
  • the new superimposition table and the receiving table when the original sender address of the link state message of the routing data frame in the routing data information is the address of any data transceiving subunit in the communication device, the routing information maintenance sub The unit 31 updates the overlay table, and in the overlay table, the data sending and receiving subunit address is the original sender address of the link state message of the routing data frame in the routing data information, and the candidate routing address is the routing data frame in the routing data information.
  • An overlay record entry of the sender address if the overlay record entry is queried, the overlay value in the overlay record entry is updated, and if the overlay record entry cannot be queried, a new one is added to the overlay table
  • the superimposed record entry, the data transceiving subunit address in the newly added superimposed record entry is the original sender address of the link state message of the routing data frame in the routing data information, and the candidate route in the newly added superimposed record entry
  • the address is the sender address of the routing data frame in the routing data information, and the calculation method of the superimposed value in the newly added superimposed record entry and the update of the superimposed value
  • the routing information maintenance subunit updates the receiving table when the original sender address of the link state message of the routing data frame in the routing data information is not the address of any data transceiving subunit in the communication device.
  • the receiving table query the original sender address of the link state message whose destination address is the routing data frame in the routing data information, and the data transceiving subunit address is the data transceiving subunit address of the routing data frame in the routing data information and candidate
  • the routing address is a receiving record entry of the sender address of the routing data frame in the routing data information, and if the receiving record entry is queried, the receiving value in the receiving record entry is updated, if the receiving is not queried
  • the record entry adds a new receive record entry in the receive table.
  • the destination address in the new receive record entry is the original sender address of the link state packet of the routed data frame in the route data information.
  • the data transceiving subunit address in the receiving record entry is the data transceiving subunit address of the routing data frame in the routing data information
  • the candidate route address in the newly received record entry is the sender address of the route data frame in the route data information
  • the calculation method of the received value in the newly added record entry is the same as the update method of the received value.
  • the wireless ad hoc network-based mobile communication system wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: first extracting The link state value of the link state packet of the routing data frame in the routing data information is recorded as x; secondly, the data transceiving subunit address is queried in the overlay table as the data transceiving subunit address of the routing data frame in the routing data information and The candidate routing address is an overlay record entry of the sender address of the routing data frame in the routing data information. If the superimposed recording entry cannot be queried in the overlay table, the update of the link state table is ended.
  • the superimposed value in the superimposed record entry is extracted, and is denoted as y; then the original of the link state message whose destination address is the route data frame in the routing data information is extracted.
  • the sender address and the data transceiving subunit address are the data transceiving subunit addresses of the routing data information in the routing data information and
  • the candidate routing address is the received value in the receiving record entry of the sender address of the routing data frame in the routing data information, and is denoted as z; when (y/z) ⁇ 1, the link of the routing data frame in the routing data information is to be routed.
  • the link state value of the status message is updated to x*(y/z).
  • the link state value of the link state packet of the routing data frame in the routing data information is updated to the original.
  • the value x is finally queried in the link state table.
  • the original sender address of the link state message in the routing data frame in the routing data information, and the data transceiver subunit address are the data of the received routing data frame in the routing data information. Transmitting the sub-unit address and the candidate routing address is a link state record entry of the sender address of the routing data frame in the routing data information, and if the link state record entry can be queried, based on the updated link state The value of the link state record in the link state record entry is updated.
  • link state record entry If the link state record entry cannot be queried, a link state record entry is added to the link state table, and the link is added.
  • Status record entry The address is the original sender address of the link state packet in the routing data frame in the routing data information, and the data transceiver subunit address of the newly added link state record entry is the data transceiver of the received routing data frame in the routing data information.
  • the address of the unit, the candidate route address of the newly added link state record entry is the sender address of the route data frame in the route data information.
  • the link state stability value of the link state record entry is the updated link state value.
  • the wireless ad hoc network-based mobile communication system wherein the link state table maintains an average queue for each link state record entry, and each link state record table
  • the averaging queues of the items have the same length, and the averaging queue stores the updated link state value of the link state message of the routing data frame in the routing data information, and the link state value of the averaging queue is moved in.
  • the removal follows the principle of first-in first-out, and the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit is updated every time.
  • the link state table is updated in the following manner: first, the link state value of the link state packet of the routing data frame in the routing data information is extracted, and is recorded as x; secondly, the data is sent and received in the overlay table.
  • the subunit address is the data transceiving subunit address of the routing data frame in the routing data information and the candidate routing address is the routing data frame in the routing data information.
  • the superimposed record entry of the sender address if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, and if the superimposed record entry is queried in the overlay table, the extraction is performed.
  • the superimposed value in the superimposed record entry is denoted as y; then the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information are extracted as the routing data.
  • the information receives the data transceiving subunit address of the routing data frame and the candidate routing address is the received value in the receiving record entry of the sender address of the routing data frame in the routing data information, and is recorded as z; when (y/z) ⁇ 1 Update the link state value of the link state packet of the routing data frame in the routing data information to x*(y/z), and when (y/z) ⁇ 1, route the data frame in the routing data information.
  • the link state value of the link state packet is updated to the original value x; finally, the query destination address is the original sender address of the link state message in the route data frame in the link data information, and the data transceiver unit
  • the address is a data link sub-unit address of the routing data frame in the routing data information, and the candidate routing address is a link state record entry of the sender address of the routing data frame in the routing data information, if the link state record can be queried
  • the entry moves the updated link state value of the link state packet to the average queue corresponding to the link state record entry, and recalculates the average value of all link state values in the averaging queue.
  • the link state stable value in the link state record entry is updated to the average value.
  • a link state record entry is added to the link state table.
  • the destination address of the link state record entry is the original sender address of the link state packet in the route data frame in the routing data information, and the data transceiver subunit address of the newly added link state record entry is the route data information.
  • the address of the data transceiving subunit that receives the routing data frame, and the candidate routing address of the newly added link state record entry is the sender of the routing data frame in the routing data information.
  • Address and the link state value of the updated link state packet is added to the averaging queue corresponding to the newly added link state record entry.
  • the link state of the newly added link state record entry is stable. The average of the link state values in the corresponding averaging queue.
  • the wireless ad hoc network-based mobile communication system wherein the routing information maintenance sub-unit simultaneously updates the routing allocation table in the following manner after updating the link state table: Querying, in the link state table, the original sender address of the link state message whose destination address is the route data frame in the route data information, and the data transceiver subunit address is the data transceiver subunit address of the route data message receiving the route data frame. a set of link state record entries; then, in the set of link state record entries, select a link state record entry with the highest link state stability value as a route update entry; and then query the destination address in the route allocation table.
  • the routing record entry in the routing update entry and the data transceiving subunit address is an allocation record entry of the data transceiving subunit address in the routing update entry, and if the allocation record entry can be found, the allocation record table is The candidate allocation routing address in the item is updated to the candidate routing address in the routing update entry, if not The record allocation table entry is allocated a new record entry in the routing table allocation, the allocation of the new allocation table entries recording destination address, the address and data transceiver subunit candidate routes to The addresses are the destination address, the data transceiving subunit address, and the candidate routing address in the routing update entry.
  • the wireless ad hoc network-based mobile communication system wherein the overlay table maintains a superimposed queue for each superimposed record entry, and the superimposed queues corresponding to each superimposed record entry have the same length.
  • the stacking queue stores the sequence number of the link state message of the routing data frame in the routing data, and the moving in and out of the serial number in the superimposed queue follows the principle of first in first out, and each superimposed record entry
  • the superimposed value is a ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue, and the sequence number of the superimposed queue corresponding to the superimposed record entry in the superimposed table has the same process.
  • the routing information maintenance sub-unit 31 updates the overlay table based on the latest routing data information
  • the superimposed value in the superimposed recording table item is updated in the following manner:
  • the data transceiving subunit address in the superimposing table is the routing data information.
  • the original sender address of the link state packet of the routing data frame and the candidate routing address is the number of routes
  • the superimposed record entry of the sender address of the routing data frame in the information is used as the superimposed record entry, and the sequence number of the link state message of the route data frame is moved into the superposition queue corresponding to the superimposed record entry.
  • the data transmission and reception subunit address other than the superimposed record entry in the superposition table is moved into a superposition queue corresponding to the other superimposition record entry of the original sender address of the link state message of the routing data frame in the routing data information.
  • Empty element and then update the superposition value of each superimposed record entry of the original sender address of the link state message of the routing data frame in the routing data information to the corresponding superposition queue in the superimposed table.
  • the entry and exit follows the principle of first-in first-out, and the received value in each received record entry is the ratio of the number of serial numbers stored in the corresponding receive queue to the length of the receive queue, and the data transceiver sub-unit address in the receive table
  • the process of moving in and out of the sequence number in the receiving queue corresponding to the receiving record entry that is the same as the destination address is synchronized, and when the routing information maintenance subunit 31 updates the receiving table based on the latest routing data information, the receiving is updated as follows.
  • the received value in the record entry: the original sender address and the data transceiver subunit address of the link state message whose destination address is the route data frame in the route data information is the data of the received route data frame in the route data information.
  • Receiving the sub-unit address and the candidate routing address is the receiving record entry of the sender address of the routing data frame in the routing data information as the receiving record entry, and shifting the routing data into the routing data corresponding to the receiving queue corresponding to the receiving record entry Serial number of the link state packet of the frame, and at the same time, in addition to the received record entry
  • the original sender address of the link state message whose destination address is the route data frame in the routing data information, and the data transceiver subunit address are other receiving record tables of the data transceiving subunit address of the routing data frame in the routing data information.
  • An empty element is added to the receiving queue corresponding to the item, and then the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information are received in the routing data information.
  • the received value of each received record entry of the data transceiving subunit address of the data frame is updated to the ratio of the number of sequence numbers stored in the corresponding receive queue to the length of the receive queue.
  • the wireless ad hoc network-based mobile communication system wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same original transmission in the previous one.
  • the serial number of the link state message of the party address is incremented by a fixed step, and is recorded as L; each time the routing information maintenance subunit updates the superimposition table, the related superimposed record in the superimposition table is updated in the following manner.
  • the superimposed value of the table item the maximum value of the serial number in the superposition queue corresponding to the superimposed record entry of the original sender address of the link state message of the route data frame in the routing data information in the extraction superposition table, Recorded as a, extract the serial number of the link state message of the routing data frame in the routing data information, denoted as b, and send the data transceiving subunit address other than the superimposed recording entry to the routing data in the superimposition table.
  • the superimposed queue corresponding to the other superimposed record entries of the original sender address of the link state packet of the routing data frame is sequentially moved into ((ba)/L) empty elements, and sequentially to the superimposed queue corresponding to the superimposed record entry.
  • the data transceiving subunit address in the superposition table is the original sender address of the link state message of the routing data frame in the routing data information.
  • the superimposed value in each superimposed record entry is updated to the ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue; the routing information maintenance subunit updates each time the update table is updated as follows Receiving the received value of the related receiving record entry in the receiving table: extracting the original sender address of the link state message whose destination address is the routing data frame in the routing data information in the receiving table and the data receiving and sending subunit address is the receiving route in the routing data information The maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the data receiving sub-unit address of the data frame is recorded as m, and the routing data frame in the routing data information is extracted.
  • the sequence number of the link state packet is marked as n.
  • the destination address other than the received record entry in the receiving table is the original sender address of the link state message of the routing data frame in the routing data information, and the data transceiver.
  • the unit address is a (#nm)/L empty element sequentially received in the receiving queue corresponding to the other receiving record entry of the data receiving sub-unit address of the routing data frame in the routing data information, and the receiving is corresponding to the receiving record entry.
  • the data transceiving subunit address is the ratio of the received value of each receiving record entry of the data transceiving subunit address of the received routing data frame in the routing data information to the ratio of the number of serial numbers stored in the corresponding receiving queue to the length of the receiving queue.
  • the routing information maintenance sub-unit 31 determines whether the received routing data information is the latest routing data information in the following manner: the routing information maintenance The pre-processing table is maintained in the sub-unit 31, and the pre-processing table includes a plurality of pre-processing record entries, and each pre-processing record entry records a correspondence between the original sender address and the sequence number, and the route is recorded.
  • the information maintenance subunit 31 queries the preprocessing table for the preprocessed record of the original sender address whose original sender address is the link state message of the routing data frame in the routing data information.
  • the routing data information provided by the data parsing unit is determined as the latest routing data information, and a pre-processing record entry is added to the pre-processing table.
  • the original sender address and sequence number of the added preprocessing record entry are respectively the routing data frame in the routing data information.
  • the sequence number in the pre-processing record entry is determined, the routing data information provided by the data parsing unit is determined as the latest routing data information, and the serial number in the preprocessing record entry is updated to the routing data.
  • the sequence number of the link state packet of the routing data frame in the information If the sequence number in the preprocessing record entry is greater than or equal to the sequence number of the link state packet of the routing data frame in the routing data information, the route is Data information is discarded.
  • the wireless ad hoc network-based mobile communication system wherein when the data transceiving unit of the communication device has at least two data transceiving subunits, the routing information maintenance subunit 31 transmits the data in the above manner. After determining the routing data information provided by the parsing unit as the latest routing data information, further determining whether the sender address of the routing data frame in the routing data information is any data transceiving subunit address in the communication device, and if so, The routing data information is discarded, if the overlay table and the receiving table are otherwise updated based on the latest routing data information.
  • the routing destination table is configured to query the allocation record entry of the destination address in the routing query request, and if the allocation record entry is not found, the routing query response is not generated.
  • the allocation record entry is queried, sending a route query response to the data parsing unit according to the record content of one of the allocation record entries, where the route query response includes the allocation record entry
  • the data transceiving subunit address and the candidate allocation routing address, the data parsing unit constructs a load data frame based on the routing query response, and uses the candidate allocation routing address in the routing query response as the receiving address in the payload data frame, and the routing query response
  • the data transceiving subunit address in the data is used as the sender address in the payload data frame.
  • the wireless ad hoc network-based mobile communication system wherein the first data transceiving subunit in the data transceiving unit is used as a main data transceiving subunit, and the data parsing unit is based on an IP data packet source.
  • the route query request includes a receiving destination address and a data transceiver subunit address, where the receiving destination address is an address of a communication device that finally receives the IP data packet, when the IP data packet is the communication
  • the data transceiving subunit address in the routing query request is empty, and when the IP data packet is an IP data packet generated by another communication device forwarded by the communication device, the data transceiving subunit in the routing query request
  • the address is the address of the data transceiving subunit that receives the IP data packet in the communication device; when receiving the routing query request, the routing unit first determines whether the data transceiving subunit address in the routing query request is empty.
  • the routing unit queries the destination address in the route allocation table as a route query request.
  • the destination address and the data transceiving subunit address are the allocation record entries of the primary data transceiving subunit address in the communication device. If the allocation record entry is not found, the route query response is not generated and the communication process is abandoned.
  • the data parsing unit constructs the load data frame based on the route query response, and uses the candidate route address in the route query response as the receiver address in the load data frame, and uses the data transceiver subunit address in the route query response as the sender in the load data frame.
  • the IP data packet is used as a frame body in the payload data frame; if the data transceiving subunit address in the route query request is not empty, the destination address in the route allocation table is the destination address received in the route query request.
  • the route query response is sent to the data parsing unit according to the record content of one of the allocation record entries, where the route query response includes the allocation record entry.
  • the data transceiving subunit address and the candidate allocation routing address, the data parsing unit constructs a load data frame based on the routing query response, and uses the candidate allocation routing address in the routing query response as the receiving address in the payload data frame, and the routing query response.
  • the data transceiving subunit address is used as the sender address in the payload data frame, and the IP data packet is used as the frame body in the payload data frame.
  • each of the allocation record entries of the route allocation table simultaneously records a link state stable value and a latest usage flag
  • the link state The stable value is a link state stable value in a corresponding link state record entry of the allocation record entry
  • a link available value is pre-set in the routing unit
  • the local communication device forwards the IP generated by the other communication device.
  • the routing unit When the data packet receives the route query request sent by the data parsing unit, the routing unit generates a route query response according to the following manner: first, in the route allocation table, the query destination address is the allocation record of the destination address received in the route query request. If the entry cannot be queried, the route query response is not generated and the communication process is abandoned.
  • the queried allocation record entry is recorded as the first entry set, if the first entry is in the set If the latest usage flag of the allocated record entry is empty, the link state stable value is greater than the link available value in the first entry set.
  • a second set of items called item table entry if the second set is empty, then the first The address of the query data transceiving subunit in the set of the entry is the entry of the data transceiving subunit address in the routing query request. If the entry is not found, the routing query response is not generated and the communication process is abandoned.
  • routing entry response is sent to the data parsing unit, where the routing query response includes the data transceiving subunit address and the candidate allocation routing address in the queried entry, and the queried entry is Setting a latest usage flag; if the second entry set is not empty, selecting the first entry in the second entry set, and sending a route query response to the data parsing unit, the route query response including the first The data transceiving subunit address and the candidate allocation routing address in the entry, and setting the latest usage flag of the first entry; if the latest entry identifier is not empty, the first entry is in the first In the table item set, the item with the latest use tag being empty is selected as the third item set. If the third item set is empty, the latest use mark is not selected in the first set of items.
  • An empty entry sends a route query response to the data parsing unit, where the route query response includes a data transceiving subunit address and a candidate allocation routing address in an entry that is not newly used; if the third set of entries is not If it is empty, the entry in the third set of entries that has a link state stable value greater than the link available value is called a fourth set of entries. If the fourth set of entries is empty, in the third set of entries.
  • the address of the data transceiving subunit is the entry of the data transceiving subunit address in the routing query request. If the entry is not found, the routing query response is not generated and the communication process is abandoned.
  • the route query response includes the data transceiving subunit address and the candidate allocation routing address in the queried entry, and setting the latest usage tag of the foregoing entry, canceling the first entry The latest use tag of the remaining entries in the set; if the fourth set of entries is not empty, the first entry in the fourth set of entries is selected and sent to the data parsing unit Responding to the query, the route query response includes a data transceiving subunit address and a candidate allocation routing address in the first entry in the fourth set of entries, and setting the latest usage flag of the first entry, canceling the first The most recent usage tag for the remaining entries in the table item collection.
  • each pre-processing record entry of the pre-processing table further records the latest reception time of the routing data information
  • each of the receiving tables The latest receiving time of the routing data information is also recorded in the strip receiving record entry
  • the routing information maintenance subunit 31 includes a timing update module 56, and the timing update module periodically traverses the preprocessing according to a certain time interval. For each preprocessing record entry in the preprocessing table, it is determined whether the difference between the latest receiving time and the current time exceeds the first threshold, and if it is exceeded, the corresponding preprocessing record entry is deleted in the preprocessing table.
  • the timing update module periodically traverses according to a certain time interval.
  • the receiving table determines the latest receiving time and current time of each of the receiving record entries in the receiving table.
  • the difference exceeds the second threshold, if the value is exceeded, the corresponding receiving record entry is deleted in the receiving table, and the destination address in the deleted receiving record entry is dest_mac, the data transceiving subunit address is sr_mac, and the candidate routing address is Cand_mac, after deleting the receiving record entry, delete the entry whose destination address is dest_mac and the data transceiving subunit address is sr_mac and the candidate routing address is cand_mac in the link state table, and then query the destination address in the link state table.
  • An entry that is dest_mac and whose data transceiving sub-unit address is sr_mac is recorded as a dynamic update entry set, and an entry with the largest link state stable value is selected as a routing update entry in the dynamic update entry set, and is updated based on the route.
  • the entry updates the route allocation table.
  • the routing information maintenance sub-unit 31 includes a pre-processing module 51, a transceiving information storage module 52, a link state calculation module 53, and a routing table module 54.
  • the forwarding module 55 and the timing update module 56, the pre-processing table is stored in the transceiver information storage module 52, and the pre-processing module 51 receives the routing data information sent by the data parsing unit, and is performed by the transceiver information storage module 52.
  • the block 51 sends the latest routing data information determined by the transceiving information storage module 52 to the link state calculation module 53, and the link state calculation module 53 maintains the overlay table and the receiving table based on the received latest routing data information.
  • a link state table, and sending a routing update entry to the routing table module 54, the routing table module 54 maintaining the routing allocation table based on the routing update entry, the timing update module 56 is configured according to a certain time interval.
  • the link state calculating module 53 each time updating the link state table.
  • the link state message with the updated link state value is sent to the forwarding module 55, and the forwarding module 55 constructs the forwarded route data frame based on the updated link state message, and sends the data through the data transceiver unit.
  • the wireless ad hoc network-based mobile communication system wherein the data parsing unit 11 includes a data encapsulating subunit 21, an ARP subunit 22, and a type discriminating subunit 23, the type discriminating subunit 23
  • the routing data information from the data transceiving unit 13 is sent to the pre-processing module 51, and the load data information from the data transceiving unit 13 is sent to the data encapsulating sub-unit 21, and the data encapsulating sub-unit 21 is based on the load data information.
  • a route query request is constructed, and a route query request is sent to the routing table module 54.
  • the data encapsulation sub-unit 21 constructs a load data frame according to the route query response, and sends the load data frame to the corresponding data transceiver sub-unit.
  • the present invention firstly transmits routing data frames by each mobile communication device to maintain routing information including an optimal next hop communication device, and the present invention is based on the present communication device to communicate to adjacent next hops.
  • a wireless self-organizing network system with strong network and network communication range that is not restricted by network central nodes and has strong network communication capabilities.
  • the mobile communication device of the present invention periodically transmits a routing data frame including a link state message, and the mobile communication device in the wireless ad hoc network receives a link state message transmitted from another mobile communication device, when there is a new
  • a mobile communication device joins a wireless ad hoc network or when some mobile communication devices in a wireless ad hoc network fail or when certain mobile communication devices in a wireless ad hoc network move each mobile communication device in the wireless ad hoc network
  • the routing information can be quickly updated, and the routing information can timely reflect the topology changes of the wireless ad hoc network.
  • the mobile communication device of the present invention maintains routing information about the optimal next hop, does not maintain global topology information, and has low routing overhead, and is suitable for the case where the device energy in the mobile scenario is limited.
  • Different wireless ad hoc networks composed of the mobile communication devices of the present invention can implement dynamic fusion.
  • the different wireless ad hoc networks composed of the mobile communication device of the present invention are a centerless network, which is robust and the network communication range is not limited by the network central node.
  • FIG. 1 is a general block diagram of a mobile communication system based on a wireless ad hoc network according to the present invention
  • FIG. 2 is a block diagram of a data parsing unit in the mobile communication system according to the present invention.
  • FIG. 3 is a block diagram of a routing unit in the mobile communication system according to the present invention.
  • FIG. 4 is a block diagram of a data transceiving unit in the mobile communication system according to the present invention.
  • FIG. 5 is a block diagram of a routing information maintenance subunit in a routing unit in the mobile communication system according to the present invention.
  • FIG. 6 is a schematic diagram of relative positions of communication devices in a specific embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a process of maintaining a queue in a specific embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a process of maintaining a receive queue according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a maintenance process of a mean queue in a specific embodiment of the present invention.
  • the communication device of the present invention comprises a wireless self-organizing network-based mobile communication system comprising a plurality of communication devices, all of which have the same functional structure and working mode, and any one of the communication devices is used as the communication device.
  • the communication device is taken as an example to describe its functional structure and working mode in detail.
  • the other communication devices are identical in structure to the communication device, and communicate the entire mobile communication system based on the same working mode.
  • An adjacent one-hop communication device another communication device that can communicate directly with the communication device over a certain distance range is an adjacent one-hop communication device of the communication device, and the condition that the certain distance range needs to be satisfied is sent by the communication device.
  • the data can be directly received by the adjacent one-hop communication device of the communication device without being forwarded by other communication devices, and the data transmitted by the adjacent one-hop communication device of the communication device can be forwarded by the other communication device without being forwarded by the other communication device.
  • Direct reception within a certain distance range described above, there may be multiple adjacent one-hop communication devices of the communication device.
  • the link state message is used by the communication device of the present invention to maintain the routing information.
  • the link state message in the solution of the present invention includes the original sender's MAC address (Media Access Control, media access control address). ), the transmission distance, the link state value, and the sequence number, wherein the original sender's MAC address represents the data transmission and reception in the communication device that originally generated the link state message (not the communication device that forwards the link state message)
  • the MAC address of the sub-unit, the other communication device does not change the original transmitted MAC address in the link state message when forwarding the link state message;
  • the transmission distance indicates the number of times the link state message is forwarded by other communication devices;
  • the link state value indicates the link state between the communication device that sends the link state message and the communication device corresponding to the original sender MAC address of the link state message, and the link state value is important when performing routing.
  • each communication device generates a serial number and a link state when generating a link state message.
  • the serial number of the text is no longer changed during the process of being forwarded by each communication device.
  • Each new communication device generates a link state message whose serial number is in the original serial number (the last generated and the newly generated chain)
  • the sequence number of the link state message with the same original sender MAC address of the path state message is incremented or decremented according to a fixed step size, and the preferred sequence number is incremented by 1 to distinguish the old and new link states generated by the communication device. Message.
  • 802.11 data frame A type of 802.11 frame. According to the 802.11 standard, an 802.11 data frame is used to transmit load data.
  • the 802.11 data frame includes a receiver MAC address, a sender MAC address, and a frame body.
  • Load data frame In the present invention, an 802.11 data frame in which a frame body includes an IP data packet is a payload data frame.
  • Routing data frame In the present invention, an 802.11 data frame in which a frame body includes a link state message is a routing data frame.
  • Type tag A tag used to distinguish between a load data frame and a route data frame in the frame of the 802.11 data frame, which is divided into a route data tag and a load data tag.
  • the load data tag indicates that the 802.11 data frame includes an IP data packet.
  • the routing data flag indicates that the 802.11 data frame includes a link state message.
  • each communication device In a wireless ad hoc network, the communication range of each communication device is limited, and communication between remote communication devices requires multi-hop transmission to transmit data, and data transmission path when multi-hop transmission data is required.
  • Each of the communication devices needs to select one communication device from the adjacent one-hop communication device of the communication device as the next hop.
  • the problem to be solved by the present invention is to select an optimal one among the plurality of adjacent one-hop communication devices. An adjacent one-hop communication device is used as the next hop.
  • the communication device has at least two data transceiving sub-units, it is also necessary to select a data transceiving sub-unit in the data transceiving sub-unit of the communication device to transmit data.
  • the present invention comprehensively describes the underlying communication device by using link state values.
  • Two factors of the one-hop communication device and the data transceiving subunit of the communication device, in the wireless ad hoc network formed by the plurality of wireless ad hoc network-based mobile communication devices according to the present invention each mobile communication device cycle Generating a link state message and broadcasting it, the link state value of the link state message periodically generated and broadcast by each of the mobile communication devices is a maximum value, and each communication device receives another communication device.
  • the link state message sent calculates and updates the link state value of the link state message and meets the condition
  • the updated link state message is forwarded in the form of a broadcast, and the link state message sent by each communication device (including the link state message originally generated by the communication device and the link status report forwarded by the communication device)
  • the link state value of the text indicates that the communication device corresponds to the destination communication device (the original sender MAC address of the link state message sent by the communication device) Link status between the communication device).
  • the link state message directly transmits the communication device (the direct transmission communication device is also the neighbor of the communication device).
  • the direct transmission communication device refers to a communication device that transmits the link state message and the link state message is directly received by the communication device, and the source of the link state message directly sent by the communication device includes two types.
  • one case is to directly transmit a link state message generated by the communication device, and the other case is to directly send a link state message sent by another communication device forwarded by the communication device) and the destination communication device (the link state report)
  • the link state between the communication device corresponding to the original sender MAC address of the text, the link state value of the link state message received by the communication device, that is, the link state value of the link state message before the update may be a direct transmission communication device indicating the link state message and a destination communication device (a communication device corresponding to the original sender MAC address of the link state message) The link status.
  • the communication state is the link state between the communication device and the direct transmission communication device of the link state message; the communication device calculates the link state value by considering the above two factors. Therefore, the link state value calculated by the communication device can be used to indicate that the communication device corresponding to the original sender MAC address of the link state message is used as the destination communication device and the direct transmission communication of the link state message is
  • the communication device is in communication with the destination communication device (the communication device corresponding to the original sender MAC address of the link state message) Link status, for the communication device, if the communication device is to send data to the destination communication device, it is necessary to select a neighboring one-hop communication device as the next hop from the adjacent one-hop communication device of the communication device.
  • the communication device updates the calculated link state value to the link state message and forwards the qualified updated link state message in a broadcast manner, so that when the communication device is adjacent to the hop
  • the communication device may use the link state value of the link state message sent by the communication device to indicate the communication device and the destination communication device (the link state sent by the communication device)
  • the link state between the communication device corresponding to the original sender MAC address of the message, the adjacent one-hop communication device of the communication device can calculate the relationship between the adjacent one-hop communication device of the communication device and the communication device Link state, and further, the adjacent one-hop communication device of the communication device can calculate a chain between the communication device and the destination communication device (the communication device corresponding to the original sender MAC address of the link state message transmitted by the communication device) Road status.
  • the wireless ad hoc network-based mobile communication system includes a plurality of communication devices, each of which includes a data parsing unit 11, a routing unit 12, and a data transceiving unit 13.
  • the data parsing unit 11 includes a data encapsulating subunit 21, an ARP subunit 22, and a type discriminating subunit 23; the IP data packet includes an IP address of the receiving party, an IP address of the sender, and a data part, and the communication device To send an IP data packet, it is necessary to determine the MAC address of the recipient according to the IP address of the recipient. In addition, the routing information maintained by the routing unit 12 is also based on the MAC address of the destination communication device, so the data parsing unit 11 includes the ARP subunit 22.
  • the ARP sub-unit 22 maintains the correspondence between the IP address and the MAC address based on the ARP (Address Resolution Protocol), and sends and receives the ARP packet for maintaining the correspondence between the IP address and the MAC address by using the data transceiving unit 13 (Slightly omitted), this is an address resolution process well known in the art and will not be described in detail herein.
  • ARP Address Resolution Protocol
  • the data encapsulation subunit 21 receives the IP data packet generated by the communication device that the communication device needs to transmit, extracts the IP address of the receiver in the IP data packet, and sends the query information including the IP address of the receiver to the ARP subunit 22, the ARP sub- The unit 22 transmits query response information including the recipient MAC address corresponding to the recipient IP address in the query information to the data encapsulation subunit 21, and the data encapsulation subunit 21 sends a route query request to the routing unit 12 based on the receiver MAC address, and routes
  • the query request includes a recipient MAC address corresponding to the recipient IP address of the IP packet and a MAC address of the data transceiver subunit of the received load data frame in the communication device, and the communication device needs to transmit the IP generated by the communication device.
  • the data transceiver sub-unit MAC address of the received load data frame in the route query request is empty, and the communication device needs to transmit an IP data packet generated by the non-local communication device (ie, the communication device is used as a multi-hop path) Receiving load in a routing query request in the case where one hop forwards an IP packet generated by another communication device)
  • the data transceiving subunit MAC address of the data frame is not empty, which is the MAC address of the data transceiving subunit that actually receives the payload data frame in the communication device.
  • the routing unit 12 sends a route query response to the data encapsulation sub-unit 21 according to the route query request, where the route query response includes the MAC address of the adjacent one-hop communication device selected by the communication device and the data transmission and reception in the communication device.
  • the data encapsulation sub-unit 21 constructs a load data frame according to the received route query response.
  • the receiver MAC address of the above-configured load data frame is the MAC address of the adjacent one-hop communication device in the route query response, and the above-described load data frame is constructed.
  • the sender MAC address is the MAC address of the data transceiving subunit in the routing query response, and the frame body of the payload data frame constructed above is the payload data tag and the above IP packet.
  • the receiver MAC address entry corresponding to the recipient IP address of the IP data packet may be selectively included. If the frame body of the load data frame configured as described above includes the receiver MAC address entry corresponding to the IP address of the receiver of the IP data packet, the other device on the multi-hop transmission path receives the load data frame and extracts the load data frame.
  • the receiver MAC address entry corresponding to the IP packet receiver IP address included in the frame body can determine the MAC address of the communication device that finally receives the IP packet in the frame body, and the frame body of the payload data frame constructed as described above Excluding the receiver MAC address entry corresponding to the recipient IP address of the IP packet, the other device on the multi-hop transmission path receives the payload data frame and extracts the receiver IP of the IP packet in the frame body of the payload data frame. The address can then also determine the MAC address of the communication device that ultimately receives the IP packet in the frame body by means of the ARP subunit.
  • the solution of the present invention is described below in the general payload data frame structure (excluding the recipient MAC address entry corresponding to the recipient IP address of the IP packet).
  • the data encapsulation sub-unit 21 transmits the load data frame constructed as described above to the data transceiving sub-unit corresponding to the MAC address of the data transceiving sub-unit in the routing query response and transmits it by the data transceiving sub-unit.
  • the routing unit in the present invention maintains the optimal next hop communication device of the communication device, based on the MAC address of the adjacent one hop communication device included in the route query response and the MAC address of the data transceiver subunit in the communication device.
  • the load data frame ensures that the payload data frame communicates with the destination communication device in accordance with the optimal communication path.
  • the 802.11 data frame transmitted and received by the mobile communication system in the wireless ad hoc network according to the present invention is divided into a routing data frame and a payload data frame according to the type flag, so the data parsing unit 11 includes the type discriminating subunit 23 for the above two types of 802.11.
  • the data frames are classified, and each data transceiving subunit of the data transceiving unit 13 transmits the received data information to the data parsing unit 11 after receiving the 802.11 data frame, and receives the data information.
  • the data transceiving subunit MAC address of the routing data information is the data transceiving subunit MAC address in the received data information; the type discriminating subunit 23 determines the type tag of the frame body of the 802.11 data frame, and if the type tag is the payload data tag,
  • the data encapsulation sub-unit 21 sends load data information, where the load data information includes the load data frame and the data transceiver sub-unit MAC address of the load data
  • the data encapsulation subunit 21 judges the payload data frame in the payload data information received from the type discriminating subunit 23, and extracts the IP data packet in the payload data frame:
  • the IP address of the receiver of the IP data packet is the IP address of any data transceiving subunit of the data transceiving unit 13 or the IP address of the receiver of the IP data packet is a broadcast address, it indicates that the IP data packet is sent to the present
  • the communication device extracts the IP data packet in the payload data frame and delivers it to the upper layer to complete the data reception communication.
  • the communication device needs to forward the The IP data packet, specifically, the data encapsulation sub-unit 21 extracts the recipient IP address in the IP data packet, and sends the query information including the above-mentioned recipient IP address to the ARP sub-unit 22, and the ARP sub-unit 22 sends the data to the data encapsulation sub-unit 21.
  • the query response information including the recipient MAC address corresponding to the recipient IP address in the query information, so that the MAC address of the communication device that finally receives the IP data packet can be determined, and the data encapsulation sub-unit 21 sends a route query request to the routing unit 12.
  • the sender MAC address of the route query request is the receiver MAC address corresponding to the receiver IP address of the IP data packet
  • the data transceiver sub-unit MAC address of the route query request is the data transceiver sub-unit MAC address in the load data information.
  • the routing unit 12 sends a route query response to the data encapsulation sub-unit 21 according to the route query request, and the route query response includes the communication device selection.
  • the data encapsulation subunit 21 constructs a load data frame according to the received route query response, and receiving the payload data frame of the above configuration
  • the party MAC address is the MAC address of the neighboring one-hop communication device in the route query response
  • the sender MAC address of the configured payload data frame is the MAC address of the data transceiver subunit in the route query response
  • the frame body is the payload data tag and the IP data packet
  • the data encapsulating sub-unit 21 transmits the load data frame constructed as described above to the data transceiving sub-unit corresponding to the MAC address of the data transceiving subunit in the routing query response and is configured by the data transceiving unit.
  • the unit transmits out so that the communication device forwards the IP data packet.
  • the routing unit 12 includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32.
  • the routing information maintenance subunit 31 receives and processes the routing data information sent from the data parsing unit 11 to maintain routing information and routing information.
  • the maintenance subunit 31 determines whether the routing data information needs to be forwarded. If forwarding is required, the routing data frame is constructed based on the routing data information and sent to the primary data transceiver unit of the data transceiver unit 13; the routing information maintenance subunit 31 receives the data analysis.
  • the route query request of the unit 11, the routing information maintenance sub-unit 31 sends a route query response to the data parsing unit 11 according to the route query request, and the route query response includes the MAC address of the adjacent one-hop communication device selected by the communication device and the communication device selection.
  • the MAC address of the data transceiving subunit in the present communication device; the original routing data frame generating subunit 32 periodically constructs the original routing data frame and sends it to the data transceiving list at a certain time interval.
  • the original routing data frame generating sub-unit 32 periodically constructs the routing data frames according to a certain time interval and respectively sends them to the respective data transceiving sub-units of the data transceiving unit 13 of the communication device, which is called the original routing data frame generating sub-unit 32.
  • the routing data frame (the routing data frame that has not been forwarded by other communication devices) is the original routing data frame, and the receiving MAC address of the original routing data frame is the broadcast address FF: FF: FF: FF: FF: FF, the original routing data.
  • the sender MAC address of the frame is the MAC address of the corresponding data transceiver unit in the data transceiver unit 13 in the communication device, and the frame body of the original route data frame includes a route data tag and a link state message, and the original route data.
  • the original sender MAC address of the link state message in the frame is the MAC address of the corresponding data transceiving subunit in the data transceiving unit 13 of the communication device, and preferably the chain of the original routing data frame sent to the main data transceiving subunit.
  • the transmission distance of the road state message is greater than the link status report sent to the original routing data frame of the data transceiver subunit
  • the transmission distance; the link state value in the link state message in the original routing data frame is the maximum value, indicating that the communication device and the destination communication device (the communication corresponding to the original sender MAC address of the link state message)
  • the sequence number in the link state packet of the newly generated routing data frame is based on the original number (on the sequence number in the link state message of the routing data frame generated by the same data transceiver subunit last time) according to the fixed step size.
  • the sequence number in the link state message in the original routing data frame with the same sender MAC address is gradually increased, and the preferred one is increased by one each time (but not limited thereto, it can be increased. Other fixed step sizes), the sequence number in the link state message of the routing data frame does not change during the forwarding process.
  • the adjacent one-hop communication device of the communication device calculates the link state between the communication device and the communication device, and then The adjacent one-hop communication device of the communication device updates the link state value in the link state message in the original routing data frame sent by the communication device, and then forwards the updated link state message, and then the communication
  • the adjacent two-hop communication device of the device receives, updates, and forwards the link state message forwarded by the adjacent one-hop communication device of the communication device, and the adjacent two-hop communication device of the communication device recalculates the phase of the communication device.
  • the link state between the adjacent two-hop communication device and the communication device so that the link state message in the original routing data frame generated by the communication device is received by other communication devices by means of multi-hop forwarding, and the like
  • the communication device can calculate a link state with the communication device, and the link state calculated by the other communication device with the communication device as another communication device
  • the communication device is used as the communication device for the communication device, the basis of the optimal next hop is selected, and the communication device periodically transmits the original routing data frame to ensure the real-time performance of the link state calculated by the other communication device and the communication device. Applicable to the dynamic change of the self-organizing network topology in the mobile scene.
  • the data transceiving unit 13 includes at least one data transceiving subunit.
  • the first data transceiving subunit is initialized as the main data transceiving subunit, and the remaining data transceiving subunits are slave data transceiving subunits.
  • BRIEF DESCRIPTION OF THE DRAWINGS In FIG. 4, at least one data transceiving subunit is represented by four data transceiving subunits, the main data transceiving subunit is a first data transceiving subunit 41, and the slave data transceiving subunit is a second data transceiving subunit 42 and a third.
  • the data transceiving subunit 43 and the fourth data transceiving subunit 44 each receive the original routing data frame sent by the routing unit 12 and send the original routing data frame according to the 802.11 standard, and each data transceiving subunit sends
  • the sender MAC address in the original routing data frame is the MAC address of the data transceiver subunit, and the sequence number in the link state message in the original routing data frame newly sent by each data transceiver subunit is in the data transceiver.
  • the serial number in the link state message in the previous original routing data frame sent by the unit is based on Incremented.
  • the primary data transceiver subunit receives the forwarded route data frame sent by the routing unit 12 and sends the forwarded route data frame according to the 802.11 standard.
  • Each data transceiver subunit transmits the received data information to the data parsing unit 11 after receiving the 802.11 data frame, and the received data information includes the 802.11 data frame received by the data transceiving subunit and the MAC of the data transceiving subunit receiving the 802.11 data frame.
  • each data transceiver sub-unit performs wireless communication in ad-hoc mode according to the 802.11 standard, and each data transceiving sub-unit can transmit and receive 802.11 data frames, each of which has a MAC address and an IP address. .
  • the routing information maintenance sub-unit 31 receives and processes the routing data information sent from the data parsing unit 11 to maintain routing information, and the routing information maintenance sub-unit 31 determines whether the routing data information needs to be forwarded. If forwarding is required, the forwarding is based on the routing data information.
  • the routing data frame is sent to the primary data transceiving subunit of the data transceiving unit 13; the routing information maintenance subunit 31 receives the routing query request sent from the data parsing unit 11, and the routing information maintenance subunit 31 proceeds to the data parsing unit 11 according to the routing query request. Send a route query response.
  • the routing information maintenance sub-unit 31 which is an important invention of the present invention, is mainly used for processing link state messages transmitted from other communication devices (including link state messages generated by other communication devices and links forwarded by other communication devices).
  • the status message the routing information maintenance sub-unit 31 calculates the link status between the communication device and the other communication device by processing the link status message.
  • the routing information maintenance subunit 31 includes a preprocessing module 51, a transceiver information storage module 52, a link state calculation module 53, a routing table module 54, a forwarding module 55, and a timing update module 56.
  • the pre-processing module 51 receives the routing data information sent from the data parsing unit 11, the routing data information includes a routing data frame and a MAC address of the data transceiving subunit receiving the routing data frame, and the pre-processing module 51 needs to determine whether the communication device needs further Processing the routing data information; each communication device in the present invention periodically generates the original routing data frame according to a certain time interval, and the link state message in the original routing data frame may be transmitted through different multi-hop paths. Therefore, the communication device needs to ensure that the further processed routing data information is up-to-date, so the routing information maintenance sub-unit 31 includes the transceiver information storage module 52, and the transceiver information storage module 52 is used to record that the communication device has been processed.
  • the pre-processing module 51 determines whether the routing data information is up-to-date by means of the transceiver information storage module 52. In addition, when the communication device has at least two data transceiving sub-units, there is a route sent by the communication device. The data frame is received by the communication device In the case, the pre-processing module 51 also needs to judge this situation. The pre-processing module 51 receives the routing data information sent from the data parsing unit 11, the routing data information including the routing data frame and the MAC address of the data transceiving sub-unit receiving the routing data frame, and the pre-processing module 51 transmits the valid to the trans-transmitting information storage module 52.
  • the valid determination request includes a receiving time, an original sender MAC address of the link state message of the routing data frame, and a sequence number of the link state message of the routing data frame, where the receiving time is received by the preprocessing module 51
  • the transmission/reception information storage module 52 transmits a determination response to the pre-processing module 51 based on the valid determination request to the system time when the data information is routed, and the determination response is classified into two types: a valid determination response and an invalidation response.
  • the transceiver information storage module 52 maintains a first binding table, the first binding table records the original sender MAC address, the serial number, and the latest receiving time, and the transceiver information storage module 52 maintains the first based on the valid determination request sent by the preprocessing module 51. Bind the table.
  • the transceiver information storage module 52 searches the first binding table for the entry of the original sender MAC address of the link state packet of the routing data frame in the original determination sender MAC address, if no corresponding entry is found. If the routing data information is the latest, a new record is added to the table and a valid decision response is sent to the pre-processing module 51.
  • the original sender MAC address, serial number, and latest receiving time of the newly added record are respectively valid.
  • the transceiver information storage module 52 finds an entry in the first binding table that the original sender MAC address is the original sender MAC address in the valid determination request. , compare the serial number of the above entry If the sequence number of the entry is smaller than the sequence number in the valid decision request, the routing data information is the latest because the sub-unit for each data is as described above. Each time the sequence number of the original routing data frame is newly increased, the sequence number and the latest receiving time in the above entry are updated to the serial number and the receiving time in the valid determination request, and are sent to the preprocessing module 51. If the sequence number of the entry is greater than or equal to the sequence number in the valid determination request, and the routing data information is not up-to-date, the invalidation response is sent to the pre-processing module 51.
  • the preprocessing module 51 receives the invalidation response from the transceiving information storage module 52, the routing data information is discarded, and the preprocessing process ends, if the preprocessing module 51 is configured to receive and receive information.
  • the routing data information is sent to the link state calculation module 53. If the communication device has at least two data transceiver subunits, if the preprocessing module 51 receives the invalid from the transceiver information storage module 52 If the response is determined, the routing data information is discarded, and the preprocessing process ends.
  • the preprocessing module 51 receives the valid decision response from the transceiver information storage module 52, the preprocessing module 51 further needs to determine the transmission of the routing data frame in the routing data information. Whether the party MAC address is the MAC address of any data transceiving subunit of the data transceiving unit 13 of the communication device, and if the sender MAC address of the routing data frame in the routing data information is any of the data transceiving units 13 of the communication device.
  • the MAC address of the data transceiver subunit indicates the number of routes in the routing data information.
  • the frame is sent by the communication device and received by the communication device itself.
  • the routing data frame does not involve the communication process between the communication device and other communication devices, and does not provide a response to the communication device and other communication devices.
  • the information of the communication status does not need to be further processed, and the routing data information is directly discarded, and the preprocessing process ends; if the sender MAC address of the routing data frame in the routing data information is not the data transceiving unit 13 of the communication device.
  • the MAC address of any data transceiver subunit indicates that the routing data frame in the routing data information is not sent by the communication device, and the routing data information is sent to the link state calculation module 53, so that the communication device receives the other
  • the original sender MAC address, the sequence number in the link state message, and the latest reception time in the link state message of the route data frame in all the latest route data information sent by the communication device are recorded by the transceiver information storage module 52. In the first binding table, the latest routing data information is sent through the pre-processing module. Calculation module 53 to the link state.
  • the link state calculation module 53 calculates the link state value according to the route data information, and the link state report of the route data frame in the route state information of the link state between the adjacent one-hop communication device and the destination communication device of the communication device.
  • the link state value of the text indicates that, therefore, the communication device needs to calculate the link state between the communication device and the adjacent one-hop communication device, and the communication device is adjacent to the communication device with respect to the communication device.
  • the link between the one-hop communication devices can be divided into a transmission link and a reception link.
  • the link state between the communication device and the adjacent one-hop communication device of the communication device refers to the above transmission.
  • Link state of the link the data transmitted by the communication device of the present invention is successfully received (directly or indirectly) by the adjacent one-hop communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device and is again
  • the probability of successful reception by the communication device indicates the superimposed value of the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device.
  • the link state message of the original routing data frame generated by the communication device that can be sent by the communication device is successfully received by the adjacent one-hop communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device.
  • the probability of successful reception by the communication device indicates the superposition value of the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device, and may also be sent by the communication device.
  • the link status message generated by the other communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is again successfully received by the communication device to indicate the communication.
  • the communication device is used for sending
  • the link state message originally generated by the communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is further represented by the probability that the communication device successfully receives the communication device.
  • the superimposed values of the transmit link state and the receive link state between the present communication device and the adjacent one-hop communication device of the present communication device which are described below in the context of the principles of the present invention.
  • the present invention uses the probability that the data transmitted by the adjacent one-hop communication device of the communication device is successfully received by the communication device to indicate the reception value of the receiving link state between the communication device and the adjacent one-hop communication device of the communication device.
  • the link state message of the routing data frame sent by the adjacent one-hop communication device of the communication device (including the link state message of the routing data frame originally generated by the adjacent one-hop communication device of the communication device)
  • the link state message of the routing data frame originally generated by the other communication device forwarded by the other communication device is successfully received by the communication device to indicate the receiving link between the communication device and the adjacent one-hop communication device of the communication device
  • the received value of the state preferably the probability that the link state message originally generated by the non-local communication device transmitted by the adjacent one-hop communication device of the communication device is successfully received by the communication device indicates the communication device and the communication device Received value of the receive link state between adjacent one-hop communication devices.
  • the present invention calculates data transmitted by the communication device (preferably original routing data).
  • the above superposition probability can reflect the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device. Further, the present invention calculates the successful reception probability P2' of the communication device successfully received by the communication device by the data transmitted by the adjacent one-hop communication device of the communication device (not necessarily forwarding the data transmitted by the communication device), and is used to indicate the present The received value of the receive link state between the communication device and the adjacent one-hop communication device of the present communication device. Finally, based on the superposition probability and the successful reception probability, the successful transmission probability of the communication device successfully received by the adjacent one-hop communication device of the communication device by the communication device is calculated: (P1*P2)/P2'.
  • the probability of successful transmission may reflect the status of the transmission link between the communication device and the adjacent one-hop communication device of the communication device, and the adjacent one-hop communication device with a high probability of successful transmission will be selected as the preferred selection when transmitting the data by the communication device.
  • One-hop communication device An innovative implementation of this principle process will be described in detail below.
  • the link state calculation module 53 maintains a second binding table, where the second binding table is used to record the correspondence between the superposition values, and the entries of the second binding table include a data transceiver sub-unit MAC address, a candidate routing MAC address, and an overlay.
  • the value maintains an overlay queue for each record in the table.
  • the length of the overlay queue corresponding to each record in the second binding table is the same.
  • the sequence number of the link state message is stored in the overlay queue.
  • the ratio of the number of serial numbers to the length of the superimposed queue reflects that the data transmitted by the communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is successfully succeeded by the communication device.
  • the superimposed probability of the received, the ratio of the number of the serial number in the superimposed queue to the length of the superimposed queue is the superimposed value of the corresponding entry, and the sequence of the superimposed queue corresponding to the entry with the same MAC address of the data transceiving subunit in the second binding table
  • the number shifting in and out process is kept in sync, and the elements in the stacking queue are moved in and out of the stacking queue according to the principle of first in, first out.
  • the link state calculation module 53 maintains a third binding table, where the third binding table is used to record the correspondence between the received values, and the entries of the third binding table include a destination MAC address, a data transceiver sub-unit MAC address, and a candidate path.
  • a receiving queue is maintained for each record in the table by the MAC address, the received value, and the latest receiving time.
  • the length of the receiving queue corresponding to each record in the third binding table is the same, and the preferred receiving queue is
  • the length of the superimposed queue is the same, and the sequence number of the link state message is stored in the receiving queue, and the ratio of the number of the serial number in the receiving queue to the length of the receiving queue is used as the data sent by the adjacent one-hop communication device of the communication device.
  • the sequence number of the receiving queue corresponding to the item is kept in synchronization with the process of moving in and out, and the elements in the receiving queue are moved in and out of the stacking queue according to the principle of first in first out.
  • the link state calculation module 53 receives the routing data information sent by the preprocessing module 51.
  • the routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is the MAC address of any data transceiver subunit of the communication device, indicating that the link state message is generated by the communication device and the link state message is used by the adjacent one hop communication device of the communication device. After being successfully received and forwarded by the adjacent one-hop communication device and successfully received by the communication device, the second binding table is updated.
  • the link state message originally generated by the communication device is necessarily transmitted by the unique data transceiving subunit of the communication device, and the link state message is adjacent to the communication device. After being received and forwarded by the one-hop communication device, if it is received by the communication device, it is necessarily received by the data transceiving subunit unique to the communication device.
  • the link state message originally generated by the communication device is transmitted by a certain data transceiving subunit of the communication device, but the link state message passes through the phase of the communication device.
  • the adjacent-hop communication device receives and forwards and is received by another data transceiving sub-unit of the communication device
  • the above-mentioned case also belongs to the data transmitted by the communication device being received and forwarded by the adjacent one-hop communication device of the communication device and The range received by the communication device, so the present invention approximates the link state originally generated by the communication device forwarded by the adjacent one-hop communication device of the communication device when calculating the superimposed value in the second binding table.
  • the message is received by the same data transceiving subunit of the communication device (the communication device transmits the data transceiving subunit of the link state message originally generated by the communication device), and the approximation does not affect the final link state value. Calculation.
  • the link state calculation module 53 searches the second binding table for the original sender MAC address of the link state message of the routing data frame whose data transceiver subunit MAC address is the routing data information (data in the communication device)
  • the MAC address of the transceiver unit is transmitted, and the candidate routing MAC address is an entry of the sender MAC address of the routing data frame of the routing data information. If the entry cannot be found in the second binding table, the second binding is performed.
  • a new record is added to the table, and the MAC address of the data transmission and reception subunit of the newly added record is the original sender MAC address of the link state message of the route data frame of the route data information, and the candidate route MAC address of the newly added record is The sender MAC address of the routing data frame of the routing data information is added to the following table item update process. If the above entry is found in the second binding table, the following table item update process is directly performed: The MAC address of the data transceiver subunit in the binding table is the sequence in the superposition queue corresponding to the original sender MAC address of the link state packet of the routing data frame of the routing data information.
  • the maximum value of the column number is a, and the sequence number of the link state message in the route data information received by the link state calculation module 53 is b (b is necessarily greater than a because the route received by the link state calculation module 53)
  • the routing data frame in the data information must be newly generated.
  • the sequence number in the link state message is incremented by 1 on the original basis (including 0). If b is less than or equal to a, the transceiver information storage module 52 will advance to The processing module 51 sends an invalidation decision response, and the pre-processing module 51 discards the routing data information after receiving the invalidation decision response, and does not reach the link state calculation module 53), and refers to the data transceiver sub-unit MAC address in the second binding table.
  • the Data binding in the second binding table is a route element of the original sender MAC address of the link state packet of the routing data message, and the (KB) empty element is sequentially moved into the superposition queue of the entry other than the superimposed entry.
  • the (ba-1) empty element and the sequence number b are sequentially moved into the superposition queue of the superposition table item, and the link of the routing data frame in which the MAC address of the data transceiving subunit in the second binding table is the routing data information is calculated and updated.
  • the superimposed value of the entry of the original sender MAC address of the status message, and the superimposed value is the ratio of the number of the sequence number in the corresponding superposition queue to the length of the superimposed queue, so that the superposition corresponding to the entry in the second binding table is The sequence number or the empty element is moved into the queue.
  • the superimposed value can dynamically indicate the transmission link status and the receiving link of each adjacent one-hop communication device of the communication device and the communication device. The probability of superposition of the state. The technical principle is explained in detail here.
  • each entry in the second binding table records the correspondence between the data transceiver sub-unit MAC address, the candidate routing MAC address, and the superimposed value, and the second binding table.
  • the update is limited to the routing message data received by the communication device.
  • the original sender MAC address of the link state message of the routing data frame is the MAC address of any data transceiving subunit of the communication device, that is, the second binding.
  • the table actually records the communication status of the transmission link and the receiving link that the link state message in the original routing data frame generated by the communication device is received by the adjacent one-hop communication device of the communication device and forwarded to the communication device.
  • the communication device newly generates a raw routing data frame each time, the serial number in the link state message is increased by 1 on the original basis, corresponding to each newly generated original routing data frame of the communication device.
  • the link state message is forwarded back by its neighboring one-hop communication device, and is automatically updated by the link state calculation module 53 in the second binding table, and
  • the data transceiver sub-unit MAC address in the second binding table may correspond to multiple entries, because the link state message in the original routing data frame sent by one data transceiver sub-unit may be multiple adjacent ones.
  • the communication device receives and forwards back to the local communication device, such that a data transceiving subunit MAC address can correspond to a plurality of candidate MAC addresses.
  • the present invention is in the above update.
  • the serial number is added to the superimposed queue corresponding to the superimposed table item, and the superimposition queue corresponding to the other items is added to the blank (the number of serial numbers before the superimposed queue is kept unchanged) is avoided, and the superposition with the original is guaranteed.
  • the entry is in the same dynamic update process.
  • the communication device corresponding to the candidate MAC in the entry corresponding to the superposition queue with the most serial number in the predetermined time period should be the original received by the communication device during the period of time.
  • a communication device that routes the link state message of the data frame and forwards the link state message with the most original route data frame to the communication device, That is to say, the communication device having the same MAC address and the candidate MAC address (the candidate MAC in the entry corresponding to the superposition queue with the largest sequence number added) communicates with the communication device frequently during the period of time, and the mutual communication is
  • the communication link state is better and can be used as a preferred next hop communication device of the communication device. Therefore, the superimposed value can reflect the superposition probability of successfully transmitting communication and successfully receiving communication between the communication device and the adjacent one-hop communication device of the communication device.
  • the first superimposition queue of the present invention is introduced.
  • the quantity can represent the above-mentioned communication frequency.
  • the superposition queue is introduced, and the ratio of the number of serial numbers in the superimposed queue to the length of the superimposed queue is used as the ratio.
  • Probability that is, the superimposed value, which can effectively reflect the superposition probability of the transmission link state and the reception link state between the communication device and each adjacent one-hop communication device of the communication device, and the following reception queue and reception
  • the value is based on the same principle, but the calculation of each probability of the present invention is not limited thereto, and the introduction of the queue is only In a preferred embodiment, it can use other methods such as statistical probability of success of a communication frequency and a predetermined period of time the ratio of the total number of the communication request, etc., the same below.
  • the link state calculation module 53 receives the routing data information sent by the preprocessing module 51.
  • the routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is not the MAC address of any data transceiver subunit of the communication device, indicating that the link state message of the route data frame is another communication device (the communication device other than the communication device, including the communication)
  • Adjacent one-hop communication devices of the device which can be generated as the destination communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device and successfully received by the communication device, update the third binding Set the table.
  • the link state calculation module 53 searches the third binding table for the original sender MAC address of the link state message in the routing data frame in the routing data information, and the data transceiver sub-unit MAC address is Transmitting the data transceiver sub-unit MAC address in the routing data information (the communication device receives the data transceiving sub-unit MAC address of the routing data frame in the routing data information) and the candidate routing MAC address is the transmission of the routing data frame in the routing data information If the entry of the MAC address is not found in the third binding table, a new record is added to the third binding table, and the destination MAC address of the newly added record is in the routing data information.
  • the original sender MAC address of the link state message in the routing data frame, the MAC address of the newly transmitted data transceiver subunit is the data transceiver subunit MAC address in the routing data information, and the candidate route MAC address of the newly added record
  • add the record and perform the following table item update process if it can be found in the third binding table To the above entry, the following table item update process is directly performed: the destination MAC address in the third binding table is the original sender MAC address of the link state message in the routing data frame in the routing data information, and the data is transmitted and received.
  • the sub-unit MAC address is the maximum value of the sequence number of the receiving queue corresponding to the entry of the data transceiver sub-unit MAC address in the routing data information, and the link state in the routing data information received by the link state calculating module 53 is set.
  • the sequence number of the message is n (n is necessarily greater than m. If n is less than or equal to m, the transceiver information storage module 52 sends an invalidation response to the pre-processing module 51, and the pre-processing module 51 will route the data after receiving the invalidation response.
  • the destination MAC address is the original sender MAC address of the link state message in the routing data frame in the routing data information and the data transceiver sub-unit MAC address is in the routing data information.
  • the data transmission and reception sub-unit MAC address and the candidate routing MAC address are the entries of the sender MAC address of the routing data frame in the routing data information, which are the receiving entries, and are tied to the third
  • the destination MAC address in the fixed table is the original sender MAC address of the link state message in the routing data frame in the routing data information
  • the data transceiving subunit MAC address is the entry of the data transceiving subunit MAC address in the routing data information.
  • the (nm) empty elements are sequentially shifted into the receiving queue of the entries other than the receiving entry, and the (nm-1) empty elements and the serial number n are sequentially shifted into the receiving queue of the receiving entry, and the calculation is performed.
  • Updating the original sender MAC address of the link state message in the routing data frame in the third binding table, and the data transceiver sub-unit MAC address is the data transceiver sub-unit MAC in the routing data information.
  • the receiving value is a ratio of the number of the serial number in the receiving queue to the length of the receiving queue, and the latest receiving time of the current receiving entry in the third binding table is the current system time.
  • each entry records a correspondence between a destination MAC address, a data transceiver sub-unit MAC address, a candidate routing MAC address, a received value, and a receiving time, wherein the destination MAC address is routing data in the routing data information.
  • the original sender MAC address of the link state message in the frame that is, the communication device corresponding to the original sender MAC address of the link state message in the received route data frame, the destination communication device of the communication device, and the data transmission and reception
  • the sub-unit MAC address is the data transceiving sub-unit MAC address in the routing data information, that is, the data of the routing data frame received by the communication device.
  • the MAC address of the transceiver unit, the candidate routing MAC address is the sender MAC address of the routing data frame in the routing data information, that is, the communication device that sends the routing data frame to the communication device is sent as the communication device to the destination communication device.
  • Candidate next hop communication device for data is the sender MAC address of the link state message in the frame.
  • the third binding table actually records the communication status of the receiving link of the communication data transmitted by the adjacent communication device of the present communication device by the communication device.
  • all the communication devices in the mobile communication system of the present invention are the same, so each communication device generates a new original routing data frame each time, and the sequence number of the link state message is increased by 1 on the original basis, so that other communication is performed.
  • the link status message of each newly generated original routing data frame of the device is sent by the neighboring one-hop communication device of the communication device to the local communication device, and the link state calculation module 53 automatically updates the third binding.
  • the same data transceiver sub-unit MAC address and destination MAC address in the third binding table may correspond to multiple candidate MAC addresses.
  • the present invention In order to select an optimal candidate MAC address among the multiple candidate MAC addresses, the present invention In the above update, each time the sequence number is added to the receiving queue corresponding to the receiving entry, and the receiving queue corresponding to the other entry is added to the blank (the number of serial numbers before the receiving queue is kept unchanged) is ensured, and the same is ensured.
  • the receiving entry is in the same dynamic update process, and the communication device corresponding to the candidate MAC in the entry corresponding to the receiving queue with the highest sequence number in the predetermined time period should be sent to the communication device during the period of time.
  • the communication device with the most number of link state messages that is, the communication device receives the candidate MAC address (the candidate MAC address in the entry corresponding to the receive queue with the most serial number added) corresponding to the communication device in the period of time
  • the link state message forwarded by the communication device is relatively frequent, so the received value can reflect the link state message sent by the communication device corresponding to the candidate MAC address.
  • the reception probability successfully received by the communication device, in order to calculate the reception probability is introduced in the above-mentioned receiving queue, and the link state calculation module 53 received by the link state calculation module 53 for updating the third binding table in the predetermined time period as described above.
  • the more routing data information the more frequent the communication between the communication device where the sender MAC address of the routing data frame is located and the communication device, and because each new routing data information includes a new serial number. Therefore, the number of serial numbers updated in the predetermined time period can represent the above-mentioned communication frequency.
  • the receiving queue is introduced, and the serial number in the receiving queue is used. The ratio of the number to the length of the receive queue is taken as the probability, that is, the received value, which can effectively reflect the successful reception probability of the state of the receiving link between the communication device and each adjacent one-hop communication device of the communication device.
  • the length of the superposition queue which is the basis of the probability normalization to be consistent with the length of the reception queue.
  • the link state calculation module 53 receives the routing data information sent by the preprocessing module 51.
  • the routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is not the MAC address of any data transceiver subunit of the communication device, indicating that the link state message of the route data frame is generated by another communication device and forwarded by the adjacent one-hop communication device of the communication device. And being successfully received by the communication device, updating the third binding table according to the foregoing process, and after updating the third binding table, the link state calculation module 53 further needs to update the routing data frame of the routing data information.
  • the link state value of the link state message (the above link state message generated by the other communication device) and the updated link state message are sent to the forwarding module 55. That is, the link state calculation module 53 updates the link state value of the link state packet of the routing data frame of the routing data information each time the third binding table is updated based on the received routing data information. Specifically, the link state of the routing data frame of the pre-update routing data information (in which the original sender MAC address of the link state message of the routing data frame is not the MAC address of any data transceiving subunit of the communication device) is set.
  • the link state value of the packet is x
  • the link state calculation module 53 reads the link state value as x, and searches the second binding table for the data transceiver subunit of the data transceiver subunit MAC address as the routing data information.
  • MAC address and candidate The routing MAC address is the entry of the sender MAC address of the routing data frame of the routing data information. If the entry cannot be found in the second binding table, the routing data information is directly discarded, and the link state packet update process is performed.
  • the updated received value of the entry is z, where y can reflect the data sent by the data transceiving subunit of the communication device that is the same as the MAC address of the data transceiving subunit in the routing data information.
  • the superimposed probability of reception, z represents the probability that the data transmitted by the communication device corresponding to the sender MAC address of the routing data frame of the routing data information is successfully received by the communication device, and the data transceiver of the MAC address and the routing data information in the communication device
  • the probability that the data transmitted by the data transceiving subunit with the same MAC address of the unit is successfully received by the communication device corresponding to the sender MAC address of the routing data frame of the routing data information is y/z, and the superposition probability y
  • P2 represents the routing data frame of the routing data information
  • the data transmitted by the communication device corresponding to the sender MAC address is successfully received by the data transceiving subunit with the same MAC address in the communication device and the data transceiving subunit in the routing data information, z is the same as the P2 Equivalent, therefore, P1 is obtained by y/z, that is, the sender of the routing data frame in the routing data frame in which the MAC address of the communication device is the same as the MAC address of the data transceiving subunit in the routing data information.
  • the probability that the communication device corresponding to the MAC address successfully transmits data.
  • the same denominator is selected in the normalization process for the values y and z, that is, the lengths of the superimposition queue and the reception queue are the same, so that when (y/z) ⁇ 1, the route information of the updated routing data information is routed.
  • the link state value of the link state message of the data frame is set x*(y/z) because the link state ratio between the communication device corresponding to the original sender MAC address of the link state message is The communication device that transmits the link state message by the neighboring communication device of the communication device has a worse link state between the communication device corresponding to the original sender MAC address of the link state message, and the link state value should be reduced.
  • the link state value of the link state packet of the routing data frame of the routing data information is kept unchanged. Change, because the link state between the communication device corresponding to the original sender MAC address of the link state message is no more than the communication device of the communication device (sending the communication of the link state message) Device) original transmission with this link state message.
  • the link state between the communication devices corresponding to the MAC address is better, and the link state message of the route data frame of the route data information is directly sent to the forwarding module 55, and the link state report in this case is also reported. This is called the updated link state message.
  • the state calculation module 53 maintains a fourth binding table, where the fourth binding table is used to record the correspondence between the average values of the link states, and the entries of the fourth binding table include the destination MAC address, the data transceiver sub-unit MAC address, and the candidate. Average value of the routed MAC address and link state. The average value of the link state is used to represent the average of the last link states. A mean queue is maintained for each record in the table. Each record in the fourth binding table. The corresponding averaging queues have the same length.
  • the averaging queue stores link state values.
  • the link state average is the average of the link state values in the averaging queue.
  • the link state calculation module 53 sends the updated link state message to the forwarding module 55, it needs to update the fourth binding table according to the routing data information and the updated link state message.
  • the destination MAC address in the fourth binding table is the original sender MAC address of the link state packet in the routing data frame in the routing data information
  • the data transceiver sub-unit MAC address is the data transceiver sub-unit MAC in the routing data information.
  • the address and the candidate routing MAC address are the entries of the sender MAC address of the routing data frame in the routing data information, and the link state value of the updated link state packet is moved into the average queue of the foregoing entry, and the calculation is performed.
  • the average link state is the average of the link state values in the average queue. If the entry cannot be found in the fourth binding table, the new binding table is added. Adding a record, the destination MAC address of the newly added record is the original sender MAC address of the link state message in the route data frame in the route data information, and the data of the newly added record is sent and received.
  • the sub-unit MAC address is the data transceiving sub-unit MAC address in the routing data information
  • the newly-recorded candidate routing MAC address is the sender MAC address of the routing data frame in the routing data information.
  • the address and data transceiver sub-unit MAC address is an entry of the data transceiving sub-unit MAC address in the routing data information, and the entry with the largest link state average value is selected in the above-mentioned entry, and the routing update information is sent to the routing table module 54 and the route is sent.
  • the update information includes a destination MAC address, a data transceiving subunit MAC address, a candidate routing MAC address, and a link state average value of the selected item, and the routing update information indicates that the local communication device corresponds to the data transceiving subunit MAC in the routing update information.
  • the data transceiving subunit of the present communication device transmits data to the communication device (destination communication device) corresponding to the destination MAC address in the routing update information
  • the communication device corresponding to the candidate routing MAC address in the routing update information is the next hop
  • the communication device corresponding to the destination MAC address in the communication device and the routing update information can be realized (the destination communication device) Link state optimal communication between.
  • the routing table module 54 maintains a fifth binding table, and the fifth binding table records the correspondence between the destination MAC address, the data transceiver sub-unit MAC address, the candidate routing MAC address, the link state average, and the latest usage flag, and the routing table module 54 receives
  • the route update information sent by the link state calculation module 53 includes the destination MAC address, the data transceiver sub-unit MAC address, the candidate route MAC address, and the link state average value, and the routing table module 54 searches for the purpose in the fifth binding table.
  • the MAC address is the destination MAC address in the route update information
  • the data transceiver sub-unit MAC address is an entry of the data transceiver sub-unit MAC address in the route update information.
  • a destination MAC address and a data transceiver sub-unit MAC address correspond to a unique candidate routing MAC address, and the data sent by the data transceiver sub-unit corresponding to the MAC address of the data transceiver sub-unit
  • the communication device corresponding to the candidate routing MAC address forwards the link state of the communication device corresponding to the destination MAC address to the best.
  • each communication device generates a subunit by its original routed data frame according to a predetermined time.
  • the original routing data frame is sent at a periodic interval, and each communication device maintains its own second binding table by the communication process forwarded by the adjacent communication device through the link state message of the original routing data frame sent by itself and maintained by itself.
  • each communication device maintains its own third binding table and fourth binding table by receiving routing data frames sent by other communication devices, and finally maintains its own fifth binding table based on the related information of these binding tables, thereby
  • the fifth binding table of each communication device records the correspondence between each group of destination MAC addresses, data transceiver sub-unit MAC addresses, and candidate route MAC addresses whose communication link status is optimal (the link state average is the largest), so that When each communication device wants to generate communication data to the destination MAC address recorded in the fifth binding table, by selecting (specifically selected as follows), the MAC address of the data transceiving subunit in the entry of the destination MAC address is corresponding.
  • the data transceiver unit selects a communication device corresponding to the candidate routing MAC address in the entry of the destination MAC address as the next The hop communication device ensures that the communication path is optimal.
  • Each communication device in the mobile communication system selects its own data transceiving subunit and next hop communication device in this way, and can ensure that the entire communication system is in an optimal communication state.
  • the routing table module 54 selects the data transceiving subunit of the present communication device and the next hop communication device of the present communication device according to the routing query request.
  • a preferred link settable value is used, and a link available value is used to measure the quality of the link, and the data transceiver of the communication device corresponding to the entry whose link state average value is greater than the link available value is preferentially selected.
  • the unit and the next hop communication device of the communication device are preferentially selected.
  • the entries of the fifth binding table include the latest use. Mark, the latest use mark is used to record the next hop communication device of this selection, providing a basis for the next selection.
  • the routing table module 54 receives the routing query request sent by the data parsing unit 11, and the routing query request includes the MAC address of the receiving party (based on the IP address of the receiving IP address of the IP packet) and the MAC address of the data transceiver subunit, if the routing query request is The data transceiver sub-unit MAC address is empty, indicating that the load data to be sent is generated by the communication device itself, and is sent by the primary data transceiver sub-unit of the communication device, and the destination MAC address is searched for the route query in the fifth binding table.
  • the MAC address of the receiver in the request and the MAC address of the data transceiving subunit are the entries of the MAC address of the primary data transceiver subunit, if the above entry is not found in the fifth binding table, the communication process is abandoned; If the above-mentioned entry is found in the fifth binding table, the latest usage flag of the foregoing entry is set, and a route query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the above entry.
  • the candidate routing MAC address, the MAC address of the data transceiving subunit of the routing query response is the data transceiving subunit MAC address of the above entry.
  • Subunit present the main data transceiving communication device MAC address, the fifth cancel the destination MAC address in the binding table for later use tag receiver MAC address in the routing query request to other entries.
  • the routing table module 54 receives the routing query request sent by the data parsing unit 11, and the routing query request includes the MAC address of the receiving party and the MAC address of the data transceiving subunit. If the MAC address of the data transceiving subunit in the routing query request is not empty, the requirement is required. If the load data sent by the other communication device is the load data generated by the communication device, the fifth binding table is used to find the entry of the destination MAC address in the routing query request in the fifth binding table. If the above table entry is not found in the table, the communication process is abandoned.
  • the above-mentioned found entry is said to be the first set of entries, if the first table is The latest usage flag of the entry in the item set is empty, indicating that this is the first time the communication device sends load data to the destination communication device (the communication device corresponding to the MAC address of the receiver in the route query request).
  • An entry in the set of entries that has a link state average value greater than the link available value is called a second set of entries. If the second set of entries is empty, the first entry is found in the set of entries.
  • the MAC address of the data transceiving sub-unit in the routing query request if the above entry is not found in the fifth binding table, the communication process is abandoned, if the fifth binding is If the above table entry is found in the table, then the number is
  • the parsing unit 11 sends a route query response, and the MAC address of the neighboring one-hop communication device of the route query response is the candidate route MAC address of the entry, and the MAC address of the data transceiver sub-unit of the route query response is the data transmission and reception of the above entry.
  • the sub-unit MAC address (that is, the data transceiving sub-unit MAC address in the routing query request) sets the latest usage flag of the above entry; if the second entry set is not empty, the first one of the second entry is selected
  • the table entry sends a route query response to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the candidate route MAC address of the above entry, and the MAC address of the data transceiver sub-unit of the route query response is the above table.
  • the data transmission and reception sub-unit MAC address of the item sets the latest usage flag of the above-mentioned entry; if there is an entry in the first entry set that is not newly used, the communication device has previously sent the destination communication device (route query request) If the communication device corresponding to the MAC address of the receiver transmits the overload data, the latest usage flag is selected in the first set of entries as The table entry is called a third table item set.
  • the route query response is sent to the data parsing unit 11,
  • the MAC address of the neighboring one-hop communication device of the route query response is the candidate route MAC address of the foregoing entry, and the MAC address of the data transceiver sub-unit of the route query response is the data transceiver sub-unit MAC address of the above entry; If the item set is not empty, the item whose link state average value is greater than the link available value is called the fourth item set in the third set of items.
  • the third item is The MAC address of the data transceiver sub-unit in the set is the entry of the data transceiver sub-unit MAC address in the routing query request. If the above-mentioned entry is not found in the fifth binding table, the communication process is abandoned. If the foregoing entry is found in the five binding table, the routing query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device in the routing query response is the candidate routing MAC address of the foregoing entry, and the routing query is performed.
  • the MAC address of the data transceiver unit is the MAC address of the data transceiver subunit of the above entry, and the latest usage flag of the above entry is set, and the latest usage flag of the remaining entries in the first entry is canceled; if the fourth entry is If the set is not empty, the first entry of the fourth set of entries is selected, and the route query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the candidate route of the foregoing entry.
  • the MAC address, the MAC address of the data transceiving subunit of the routing query response is the MAC address of the data transceiving subunit of the above entry, and the latest usage flag of the above entry is set, and the latest usage tag of the remaining entries in the first entry set is cancelled.
  • the forwarding module 55 receives the updated link state packet sent by the link state calculation module 53 and performs the following processing:
  • step (2) (1) determining whether the transmission distance of the link state message is less than or equal to 1, if yes, discarding the routing data frame, not forwarding the routing data frame, if not, proceeding to step (2);
  • the receiving MAC address of the forwarding routing data frame constructed as above is a broadcast address FF: FF: FF: FF: FF, FF, FF,
  • the sender MAC address of the configured forwarding routing data frame is the MAC address of the primary data transceiver subunit, and the frame body of the forwarding routing data frame constructed above is the routing data identifier and the link state message processed in step (2).
  • the timing update module 56 is configured to process the foregoing situation. Specifically, the timing update module 56 periodically traverses the first binding table maintained by the transceiver information storage module 52 according to a certain time interval, for each of the first binding tables.
  • the item records determine the difference between the latest receiving time and the current time. If the value exceeds a certain threshold, indicating that the routing information of the destination communication device corresponding to the original sender MAC address of the entry maintained by the communication device is not up to date, and the routing information of the communication device for the communication device needs to be deleted,
  • the record is deleted in the first binding table, and the original sender MAC address of the record is time_out_mac, and the destination MAC address is deleted in the third binding table and the fourth binding table maintained by the link state calculation module 53.
  • the entry of the time_out_mac is deleted, and the entry of the destination MAC address is time_out_mac is deleted in the fifth binding table maintained by the routing table module 54.
  • the timing update module 56 periodically traverses the link state calculation module 53 to maintain at a certain time interval.
  • the third binding table determines the difference between the latest receiving time and the current time for each record in the third binding table. If the difference exceeds a certain threshold, it indicates that the communication device maintains the entry related to the entry. If the routing information of the neighboring one-hop communication device of the communication device corresponding to the candidate routing MAC address is not up to date, the third binding table is deleted. For the record, set the destination MAC address of the record to dest_mac, the data transceiver sub-unit MAC address to sr_mac, and the candidate route MAC address to cand_mac.
  • the fourth binding table delete the destination MAC address as dest_mac and the data transceiver sub-unit MAC address.
  • the entry of the sr_mac and the candidate route MAC address is the cand_mac entry, and the entry in the fourth binding table that looks for the destination MAC address as dest_mac and the data transceiver sub-unit MAC address is sr_mac is called the fifth entry set, in the fifth table.
  • the entry in the item set with the largest link state average value is sent to the routing table module 54 to send routing update information, where the routing update information includes the destination MAC address, the data transceiver sub-unit MAC address, the candidate routing MAC address, and the chain of the selected entry. Road state average.
  • the communication device of the present invention clarifies the selection of an optimal one-hop communication device among a plurality of adjacent one-hop communication devices as a next
  • the process of hopping and the process of selecting an optimal data transceiving subunit of the communication device to transmit data assuming that there are five communication devices a, b, c, d, e in the original case, the relative of the five communication devices
  • the position is as shown in Figure 6.
  • In the range of one hop of a there are only b, c, d, and only one a, c, e, and one hop of b has only one hop of a, b, e, and d within one hop range of c.
  • a periodically constructs the original route at regular intervals
  • the sender MAC address of the original routing data frame sent by a to the main data transceiving subunit a_master is the broadcast address FF: FF: FF: FF: FF: FF, a is sent
  • the sender MAC address of the original routing data frame to the primary data transceiver subunit a_master is the MAC address a_master_mac of a_master
  • the frame body of the original routing data frame sent by the primary data transceiver subunit a_master is the routing data label route_lable and the link state.
  • the original sender MAC address of the link state message is the MAC address a_master_mac of the a_master, the transmission distance of the link state message is a_master_distance, and the link state value of the link state message is a_max, the chain
  • the sequence number of the road state message is a_master_num, and a_master sends the original route data frame according to the 802.11 standard; a.
  • the sender MAC address sent to the original route data frame from the data transceiver subunit a_slave is the broadcast address FF: FF: FF :FF:FF
  • a sender's MAC address sent to the original routing data frame from the data transceiving subunit a_slave is a_slave
  • the MAC address a_slave_mac, a frame body sent to the original routing data frame from the data transceiving subunit a_slave is a routing data tag route_lable and a link state message
  • the original sender MAC address of the link state message is the MAC address of the a_slave A_slave_mac
  • the transmission distance of the link state message is a_slave_distance, a_slave_distance ⁇ a_master_distance
  • the link state value of the link state message is a_max
  • the sequence number of the link state message is a_slave_num
  • a_slave uses the original route data.
  • the link state packet of the original routing data frame is forwarded after being processed, and a will be sent from b, c, d,
  • the link state packet of e is sent out and the conditional link state message is sent out.
  • a is indirectly received through b or c.
  • the maintenance of the first binding table is performed by using the first binding table to maintain the first binding table.
  • the first binding table maintained by a is as shown in Table 2 below. Show:
  • Table 2 shows a first binding example of maintenance of the communication device a
  • a receives a link state message sent from b at time t9, and the original sender of the link state message
  • the MAC address e_master_mac of the primary data transceiver unit of the e-address is e
  • the sequence number of the link-state packet is 24, and the address in the first binding table is the e-master_mac entry of the original sender MAC address.
  • the foregoing entry is The serial number is updated to 24 and the latest receiving time of the above entry is updated to t9; a receives the link state message sent from b at time t10, and the original sender MAC address of the link state message is c
  • the MAC address of the primary data transceiver unit is c_master_mac
  • the sequence number of the link state packet is 31, and a is found in the first binding table as an entry of the original sender MAC address as c_master_mac, which can be in the first binding. If the sequence number of the above-mentioned entry is 31, and the sequence number of the above-mentioned entry is equal to the sequence number of the link state packet, the link state packet is discarded. No further processing
  • the communication device a calculates the data transmitted by a by the second binding table to be successfully received by the adjacent one-hop communication device (including b, c, d) of a and is adjacent to the one-hop communication device (including b, c, d) Probability of forwarding and being successfully received by a, for example, the maintenance process of the second binding table described above, assuming that the second binding table maintained by a is as shown in Table 3 below:
  • Table 3 shows a second binding example of maintenance of the communication device a
  • the superimposed queue corresponding to the entry of the data transceiving subunit with the MAC address of a_master_mac and the candidate routing MAC address being b_master_mac is the superposition queue 1, and the MAC address of the data transceiving subunit is a_master_mac and the candidate routing MAC address is referred to in Table 3.
  • the superimposed queue corresponding to the entry of b_slave_mac is the superposition queue 2, and the MAC address of the data transceiving subunit of the entry corresponding to the superposition queue 1 is the same as the MAC address of the data transceiving subunit of the entry corresponding to the superposition queue 2, and the superposition queue 1 and the superposition are superimposed.
  • a receives the link state message of the original sender MAC address of a_master_mac sent from b_slave and the sequence number of the link state message is 43, In queue 2, an empty element and sequence number 43 are sequentially shifted, and the superposition value of the entry corresponding to the superposition queue 2 is Two empty elements are sequentially moved into the superposition queue 1, and the superposition values of the items corresponding to the superposition queue 1 are The superposition value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a. On the basis of this, as shown in FIG. 7(c), a receives the original sender sent from the b_slave.
  • the sequence number 44 is added to the stack queue 2.
  • the superimposed value of the entry corresponding to the stack queue 2 is An empty element is moved into the superposition queue 1, and the superposition value of the corresponding item of the superposition queue 1 is The superimposed value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a. On the basis of this, as shown in FIG. 7(d), a receives the original sender sent from the b_master.
  • the sequence number 45 is added to the superposition queue 1, and the superposition value of the entry corresponding to the superposition queue 1 is An empty element is moved into the superposition queue 2, and the superposition value of the corresponding item of the superposition queue 2 is The superimposed value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a.
  • the problem to be solved by the present invention is to select an optimal adjacent one from a plurality of adjacent one-hop communication devices of the communication device in the process of multi-hop data transmission.
  • the hopping communication device transmits data as the next hop.
  • the communication device uses the adjacent one-hop communication device of the communication device as the destination communication device, the problem of multi-hop data transmission is not involved. Therefore, in order to make the example more representative Sex, in the adjacent one-hop communication device of a, only b is selected as an example listed in Table 4):
  • Table 4 shows a third binding example of maintenance of the communication device a
  • the receiving queue corresponding to the entry in the table 4 in which the destination MAC address is e_master_mac and the data forwarding sub-unit MAC address is a_master_mac and the candidate routing MAC address is b_master_mac is the receiving queue 1
  • the destination MAC address in the table 4 is e_master_mac and the data is
  • the receiving queue corresponding to the entry with the MAC address of a_master_mac and the candidate routing MAC address being c_master_mac is the receiving queue 2
  • the destination MAC address of the entry corresponding to the receiving queue 1 and the MAC address of the data receiving and receiving sub-unit respectively correspond to the receiving queue 2
  • the destination MAC address and the data transceiver sub-unit MAC address are the same, and the elements of the receiving queue 1 and the receiving queue 2 are synchronized in the process of moving in and out, as shown in FIG.
  • the serial numbers of the receiving queue 1 and the receiving queue 2 are The ratio of the quantity to the length of the receiving queue respectively represents the superimposed value of the corresponding item in Table 4, that is, On the basis of this, as shown in FIG. 8(b), the a_master of a receives the link state message of the original sender MAC address e_master_mac sent from the c_master, and the sequence number of the link state message is 52.
  • the sequence number 52 is moved into the receiving queue 2, and the receiving value of the entry corresponding to the receiving queue 2 is An empty element is added to the receiving queue 1, and the receiving value of the entry corresponding to the receiving queue 1 is The received value of the entry corresponding to the receiving queue 1 and the receiving queue 2 is updated in the third binding table maintained by a.
  • the a_master of a receives the sending from c_master. If the original sender MAC address is the link state packet of the e_master_mac and the sequence number of the link state packet is 54, the empty queue element and the sequence number 54 are sequentially stored in the receive queue 2, and the entry corresponding to the queue 2 is received.
  • Received value Two empty elements are stored in the receiving queue 1, and the receiving value of the entry corresponding to the receiving queue 1 is The received value of the entry corresponding to the receiving queue 1 and the receiving queue 2 is updated in the third binding table maintained by a.
  • the a_master of a receives the sending from the b_master. If the original sender MAC address is the link state packet of the e_master_mac and the sequence number of the link state packet is 55, the sequence number 55 is stored in the receiving queue 1, and the receiving value of the entry corresponding to the queue 1 is received.
  • An empty element is stored in the receiving queue 2, and the receiving value of the entry corresponding to the receiving queue 2 is The received value of the entry corresponding to the receive queue 1 and the receive queue 2 is updated in the third binding table maintained by the communication device a according to the communication with the a_master and the c_master and the b_master in the predetermined time period.
  • the link state value is that a selects an optimal adjacent one-hop communication device from a plurality of adjacent one-hop communication devices (including b, c, d) of a as a next hop during multi-hop data transmission.
  • An important basis for the transmission of data is an example of the calculation of the link state value.
  • the a_master of a receives the link state packet of the original sender MAC address of the b_master, which is e_master_mac, and the link state value of the link state packet.
  • a is found in the second binding table maintained by a (Table 3).
  • the data forwarding sub-unit MAC address is a_master_mac and the candidate routing MAC address MAC is b_master_mac.
  • the superimposed value of the above entry is multi1, a.
  • the entry with the destination MAC address being e_master_mac and the data forwarding sub-unit MAC address being a_master_mac and the candidate routing MAC address being b_master_mac is found.
  • the receiving value of the above entry is recv5.
  • the calculated link status value is: The calculated link state value indicates a link state when a a_master of a transmits data from e and the b is the next hop communication device; a determines the transmission distance of the link state message, if If the transmission distance of the link state packet is less than or equal to 1, the link state packet is discarded, and a does not forward the link state packet.
  • the a The link state packet is updated and then forwarded. Specifically, the link state value of the link state packet is updated to the calculated link state value, and the transmission distance of the link state packet is decreased by 1.
  • a encapsulates the updated link state message into a forwarding route data frame and sends it out through the a_master of a.
  • the sender MAC address of the above-mentioned forwarding route data frame is the broadcast address FF: FF: FF: FF.
  • the sender MAC address of the above-mentioned forwarding routing data frame is a_master_mac
  • the frame body of the above-mentioned forwarding routing data frame is the routing data label route_lable and the updated link shape.
  • a determining the link between a and the destination communication device (including b, c, d, e) by calculating the average of the last few link states of a and the destination communication device (including b, c, d, e)
  • the state, a maintains the correspondence between the link state averages by maintaining the fourth binding table, and illustrates the maintenance process of the fourth binding table, and assumes that the fourth binding table maintained by a is as shown in Table 5 below.
  • the problem to be solved focuses on selecting an optimal adjacent one-hop communication device from the plurality of adjacent one-hop communication devices of the communication device as the next hop to transmit data during the multi-hop data transmission.
  • the device is a communication device for the adjacent one-hop communication device of the communication device
  • the problem of multi-hop data transmission is not involved. Therefore, in order to make the example more representative, only the adjacent one-hop communication device of a is selected.
  • b is listed as an example in Table 5):
  • Table 5 shows a fourth binding example of maintenance of the communication device a
  • the average queue corresponding to the entry in the table 5 whose destination MAC address is e_master_mac and whose data forwarding sub-unit MAC address is a_master_mac and whose candidate routing MAC address is b_master_mac is the average queue 1, as shown in Figure 9(a), the average queue 1
  • a_master receives the link state message sent from the b_master whose original sender MAC address is e_master_mac and the calculated link state value is a 4 , then stores the link state value a 4 in the averaging queue 1 and updates the mean value.
  • the link state of the entry corresponding to queue 1 is (a 2 + a 3 + a 4 ) / 3.
  • the a_master of a receives the original transmission sent from b_master.
  • the fifth binding table maintained by a is updated according to the fourth binding table maintained by a, and the maintenance process of the fifth binding table is illustrated. It is assumed that the fifth binding table maintained by a is as shown in Table 6 (the problem to be solved by the present invention is to focus on selecting an optimal one of a plurality of adjacent one-hop communication devices of the communication device in the process of multi-hop data transmission.
  • the adjacent one-hop communication device transmits data as the next hop.
  • the communication device is the communication device for the adjacent one-hop communication device of the communication device, the problem of multi-hop data transmission is not involved. Therefore, in order to make the example More representative, in the adjacent one-hop communication device of a, only b is selected as an example listed in Table 6):
  • Table 6 shows a fifth binding example of maintenance of the communication device a
  • A_master of a receives the link state message of the original sender MAC address of e_master_mac sent from c_master, a calculates and updates the destination MAC address of the fourth binding table to e_master_mac based on the link state message, and the data transceiver
  • the link state of the entry whose MAC address is a_master_mac and the candidate route MAC address is c_master_mac is avg21
  • the entry in the fourth binding table is the entry of the destination MAC address e_master_mac and the data transceiver sub-unit MAC address is a_master_mac.
  • the entry with the highest link state average is selected in the above-mentioned entry, and the entry with the highest link state is the e_master_mac and the MAC address of the data sub-unit is a_master_mac and the candidate route MAC address. If the entry is c_master_mac, the entry in the fifth binding table is the entry of the e_master_mac and the data forwarding sub-unit MAC address is a_master_mac, and the candidate of the entry found in the fifth binding table is selected. The routing MAC address is updated to c_master_mac, and the above-mentioned entries found in the fifth binding table are Road status update to mean avg21.
  • a determines the destination MAC address as e_slave_mac according to the ARP protocol, and then in the fifth binding table ( In Table 6), the entry with the destination MAC address being e_slave_mac and the MAC address of the data transceiving sub-unit is a_master_mac, and the candidate route MAC address of the above-mentioned entry is b_master_mac, and the latest usage flag of the above entry is set to cancel other purposes.
  • the MAC address is the latest usage flag of the e_slave_mac entry.
  • a constructs the payload data frame and sends it through a_master.
  • the receiver MAC address of the payload data frame constructed above is b_master_mac.
  • the sender MAC address of the payload data frame constructed above is a_master_mac.
  • the frame body of the load data frame constructed above is the load data tag and the above IP data packet; if d is to send an IP data packet to e, d selects a as the next hop, and a receives the IP data packet sent from d through a_master. If the destination MAC address is e_master_mac according to the ARP protocol, look for the entry with the destination MAC address being e_master_mac in the fifth binding table (Table 6).
  • the destination MAC address is e_master_mac and the MAC address of the data transceiver sub-unit is a_slave_mac and the candidate route MAC address is c_master_mac, and a is selected as the next-hop communication device.
  • the link state of the above entry is avg18. If avg18 is greater than the link available value, set the latest usage flag of the above entry, cancel the latest usage tag of the other entry with the destination MAC address being e_master_mac, and construct a payload data frame.
  • the communication device a selects the optimal next hop communication device and the optimal data transceiver sub-unit for data transmission (transmitting data generated by itself or forwarding data generated by other communication devices) by the communication device a.
  • the mobile communication process of wireless self-organizing network based on dynamic transformation.
  • the mobile communication system based on the wireless self-organizing network described in the patent of the present invention can be applied to all industrial fields that require Internet communication, in particular, it is required to arrange a fixed center without robustness, and the network communication range is not restricted by the network central node.
  • the industrial field of wireless self-organizing network systems with strong network communication capabilities has strong industrial applicability.

Abstract

The present invention provides a wireless ad-hoc network-based mobile communications system. The basic concept thereof comprises: Each communications device in a mobile communications system periodically sends a routing data frame comprising link state messages. The communications device updates the link state messages with calculated link state values and broadcasts link state messages that meet conditions, so that after receiving a link state message sent by the communications device, an adjacent-hop communications device can use a link state value of the link state message sent by the communications device to represent a link state between the communications device and a destination communications device. Each communications device maintains routing information according to the received routing data frame, and determines an optimal next-hop communications device of each communications device to ensure an optimal communication path between each communications device and the destination communications device, so as to form a wireless ad-hoc network system that has no fixed center and is strong in robustness and high in network communication capability, and the network communication range thereof is not limited by a network center node.

Description

基于无线自组织网络的移动通信系统Mobile communication system based on wireless self-organizing network
本专利申请要求本申请人“尚一民”于2016年05月31日提交中国国家知识产权局的、申请号为“CN201610376434.0”、发明名称为“基于无线自组织网络的移动通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This patent application requires the applicant "Shang Yimin" to submit to the State Intellectual Property Office of China on May 31, 2016, the application number is "CN201610376434.0", and the invention name is "mobile communication system based on wireless self-organizing network". Priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference.
技术领域Technical field
本发明属于通信技术领域,尤其涉及一种基于无线自组织网络的移动通信系统。The invention belongs to the technical field of communications, and in particular relates to a mobile communication system based on a wireless self-organizing network.
背景技术Background technique
常见的移动通信装置(如手机)之间相互通信大多借助蜂窝基站或者无线局域网(Wireless Local Area Networks,简称WLAN)接入点,在这些移动通信装置距离较近时再接入蜂窝基站或者无线局域网接入点以相互通信,不仅会导致通信成本上升,而且会加重蜂窝基站或者无线局域网接入点的负担。此外,蜂窝基站和无线局域网接入点并不总是可用的,在没有蜂窝网络覆盖的偏远地区或突发自燃灾害情况下,移动通信装置借助蜂窝基站或者无线局域网接入点相互通信是不现实的。Common communication devices (such as mobile phones) communicate with each other by means of cellular base stations or Wireless Local Area Networks (WLAN) access points, and access to cellular base stations or wireless local area networks when these mobile communication devices are relatively close. The communication points communicate with each other, which not only causes the communication cost to rise, but also increases the burden on the cellular base station or the wireless local area network access point. In addition, cellular base stations and wireless local area network access points are not always available. In remote areas without cellular network coverage or sudden spontaneous combustion disasters, it is unrealistic for mobile communication devices to communicate with each other via cellular base stations or wireless local area network access points. of.
当移动通信装置距离较近时,常采用WiFi直连或者Soft AP(Access Point,简称AP)的方式相互通信。WiFi直连是一种客户端到接入点的点对点(Peer to Peer,简称P2P)实现,一个P2P组包括一个P2P GO(Group Owner,简称GO)和一个或多个P2P Client,同一个P2P组中的P2P Client之间相互通信必须借助P2P GO。P2P组是以P2P GO为中心的,因此整个P2P组的通信范围受到P2P GO通信范围的限制。此外,不同的P2P组是不能相互融合的。当采用Soft AP的方式相互通信时,开启Soft AP的移动通信装置相当于无线局域网接入点,接入Soft AP的移动通信装置之间相互通信必须借助Soft AP,整个网络是以Soft AP为中心的,因此整个网络的通信范围受到开启Soft AP的移动通信装置的通信范围的限制。此外,不同的Soft AP网络是不能相互融合的。When the mobile communication device is close to each other, the WiFi direct connection or the Soft AP (Access Point, AP for short) is used to communicate with each other. A WiFi direct connection is a peer-to-peer (Peer-to-Peer) implementation of a client-to-access point. A P2P group includes a P2P GO (Group Owner, GO) and one or more P2P clients, and the same P2P group. The P2P Clients in the middle of each other must communicate with each other via P2P GO. The P2P group is centered on the P2P GO, so the communication range of the entire P2P group is limited by the P2P GO communication range. In addition, different P2P groups cannot be merged with each other. When the Soft AP is used to communicate with each other, the mobile communication device that starts the Soft AP is equivalent to the wireless LAN access point, and the mobile communication devices that access the Soft AP must communicate with each other via the Soft AP. The entire network is centered on the Soft AP. Therefore, the communication range of the entire network is limited by the communication range of the mobile communication device that opens the Soft AP. In addition, different Soft AP networks cannot be integrated with each other.
无线自组织网络是一种无中心的网络,采用无线自组织网络进行通信可以拓展网络的覆盖范围,无线自组织网络中的某个移动通信装置失效并不影响其它移动通信装置进行通信,无线自组织网络的健壮性强,此外,无线自组织网络还支持网络融合。申请号为201210251730.X的发明专利公开了一种基于Android手机的移动自组网系统及其构建方法,该系统主要包括多部Android手机和安装在手机上的WiFi网卡Ad-Hoc模式管理器、自动IP地址分配管理器和网络拓扑管理器,构建方法包括手机WiFi的Ad-Hoc模式的开启,网络中节点IP地址的自动分配和节点移动状态下网络拓扑的融合,该发明支持移动网络拓扑环境下Android手机IP地址自动分配并保证网络中每个手机节点IP地址的唯一性,但是该发明没有涉及移动自组网中的路由机制,此外该发明提出的IP地址分配方法复杂,当有新的手机节点加入网络或者发生网络融合时,IP地址分配过程耗时。The wireless self-organizing network is a non-central network. The wireless self-organizing network can communicate to expand the coverage of the network. The failure of a mobile communication device in the wireless self-organizing network does not affect the communication of other mobile communication devices. The organization network is robust, and wireless self-organizing networks also support network convergence. The invention patent No. 201210251730.X discloses a mobile ad hoc network system based on Android mobile phone and a construction method thereof, the system mainly comprises a plurality of Android mobile phones and a WiFi network card Ad-Hoc mode manager installed on the mobile phone, The automatic IP address allocation manager and the network topology manager are constructed by the activation of the Ad-Hoc mode of the mobile phone WiFi, the automatic allocation of the node IP address in the network, and the integration of the network topology in the node moving state. The invention supports the mobile network topology environment. The IP address of the Android mobile phone is automatically allocated and guarantees the uniqueness of the IP address of each mobile phone node in the network, but the invention does not involve the routing mechanism in the mobile ad hoc network, and the IP address allocation method proposed by the invention is complicated when there is a new When a mobile phone node joins the network or network convergence occurs, the IP address allocation process takes time.
发明内容Summary of the invention
本发明的目的在于克服上述已有技术的缺点,提出一种基于无线自组织网络的移动通信系统,其基本思路是移动通信系统中的每个通信装置周期性地发送包括链路状态报文的路由数据帧,每个通信装置根据接收到的路由数据帧维护路由信息,确定每个通信装置的最优下一跳通信装置,以确保每个通信装置与目的通信装置之间的最优通信路径,形成无固定中心的、健壮性强、网络通信范围不受网络中心节点的限制、网络通信能力强的无线自组织网络系统。The object of the present invention is to overcome the above disadvantages of the prior art and to provide a mobile communication system based on a wireless ad hoc network. The basic idea is that each communication device in the mobile communication system periodically transmits a link state message. Routing data frames, each communication device maintaining routing information based on the received routing data frames, determining an optimal next hop communication device for each communication device to ensure an optimal communication path between each communication device and the destination communication device A wireless self-organizing network system with no fixed center, strong robustness, limited network communication range without network central nodes, and strong network communication capability is formed.
本发明解决上述技术问题所采取的技术方案如下,这些技术方案单独或其任意组合、引用都构成本发明的创新技术方案: The technical solutions adopted by the present invention to solve the above technical problems are as follows. These technical solutions alone or any combination and reference thereof constitute an innovative technical solution of the present invention:
基于无线自组织网络的移动通信系统,包括若干通信装置,每个通信装置都包括路由单元和数据收发解析单元,所述路由单元中维护有路由分配表,所述路由分配表中包括有若干分配记录表项,每个分配记录表项中记录有目的地址和候选分配路由地址的对应关系,且分配记录表项中的候选分配路由地址为本通信装置向目的地址对应的目的通信装置发送数据时最优选择的下一跳通信装置的地址,所述数据收发解析单元发送数据前向所述路由单元发送路由查询请求,所述路由查询请求包括有接收目的地址,所述路由单元接收到所述路由查询请求后在路由分配表中查找目的地址与路由查询请求中的接收目的地址相同的分配记录表项,并根据查找到的分配记录表项向所述数据收发解析单元发送路由查询响应,所述路由查询响应包括查找到的分配记录表项中的候选分配路由地址,所述数据收发解析单元将路由查询响应中的候选分配路由地址作为发送数据的接收方地址。A mobile communication system based on a wireless ad hoc network includes a plurality of communication devices, each of which includes a routing unit and a data transceiving and parsing unit, wherein the routing unit maintains a routing allocation table, and the routing allocation table includes a plurality of allocations Recording entry, each mapping record item has a correspondence between the destination address and the candidate allocation routing address, and the candidate allocation routing address in the allocation record entry is when the communication device sends data to the destination communication device corresponding to the destination address. An address of the optimally selected next hop communication device, the data transceiving and parsing unit sends a route query request to the routing unit before transmitting the data, the route query request includes a receiving destination address, and the routing unit receives the After the route query request, the route allocation table searches for an allocation record entry whose destination address is the same as the destination address in the route query request, and sends a route query response to the data sending and receiving parsing unit according to the found allocation record entry. The routing query response includes the found allocation record entry. Candidate allocation routing address, said routing data transceiving unit parsing the query candidate allocation in response to the routing address as the recipient address transmitted data.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由单元包括路由信息维护子单元31和原始路由数据帧产生子单元32,所述原始路由数据帧产生子单元32按照一定的时间间隔周期性地构造原始路由数据帧并通过数据收发解析单元发送给其他通信装置,同时所述数据收发解析单元接收其他通信装置产生的路由数据帧,并将所述路由数据帧发送给所述路由信息维护子单元31,所述路由数据帧包括接收方地址、发送方地址和路由帧体,所述路由帧体包括链路状态报文,所述链路状态报文包括原始发送方地址和链路状态值,所述链路状态值用于反应链路状态报文的原始发送方地址对应的通信装置和路由数据帧的发送方地址对应的通信装置之间的通信链路状态,所述路由信息维护子单元31基于路由数据帧选择使本通信装置到目的通信装置的通信链路状态处于最优的本通信装置的下一跳通信装置,并通过将目的通信装置的地址和所选择的下一跳通信装置的地址分别作为分配记录表项中的目的地址和候选分配路由地址来维护所述路由分配表。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing unit includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32, and the original routing data frame generation subunit 32 The original routing data frame is periodically constructed according to a certain time interval and sent to other communication devices through the data transceiving and parsing unit, and the data transceiving and parsing unit receives the routing data frame generated by the other communication device, and sends the routing data frame. The routing information maintenance sub-unit 31, the routing data frame includes a receiver address, a sender address, and a routing frame body, the routing frame body includes a link state packet, and the link state packet includes an original sending a party address and a link state value, the link state value being used to communicate a communication link state between the communication device corresponding to the original sender address of the link state message and the communication device corresponding to the sender address of the route data frame The routing information maintenance sub-unit 31 selects the communication device to the destination communication based on the routing data frame selection. The communication link state is in the optimal next hop communication device of the communication device, and the address of the destination communication device and the address of the selected next hop communication device are respectively used as the destination address in the allocation record entry and The candidate allocates a routing address to maintain the routing allocation table.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中对于路由分配表中的每一个分配记录表项,由本通信装置经候选分配路由地址对应的本通信装置的相邻一跳通信装置向目的地址对应的目的通信装置发送数据时其发送链路状态处于最佳,所述发送链路状态通过收发链路状态与接收链路状态确定,所述收发链路状态通过本通信装置发送的路由数据帧被本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率反映,所述接收链路状态通过目的通信装置发送的路由数据帧经本通信装置的相邻一跳通信装置转发后被本通信装置接收的接收概率反映。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein for each of the route allocation tables, a record entry is allocated, and the communication device transmits a neighboring hop of the communication device corresponding to the candidate route address by the candidate. When the communication device transmits data to the destination communication device corresponding to the destination address, the transmission link state is optimal, and the transmission link state is determined by the transceiver link state and the reception link state, and the transceiver link state passes through the communication device. The transmitted routing data frame is received by the adjacent one-hop communication device of the communication device, and is forwarded by the communication device, and then transmitted and received by the communication device, and the received data link is transmitted through the destination communication device. The reception probability of the communication device being forwarded by the adjacent one-hop communication device is reflected by the communication device.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元31基于路由数据帧维护有叠加表、接收表、链路状态表和所述路由分配表;所述叠加表包括有若干条叠加记录表项,每条叠加记录表项中记录有候选路由地址和叠加值的对应关系,且在每条叠加记录表项的对应关系中,所述候选路由地址为本通信装置的相邻一跳通信装置的地址,所述叠加值为本通信装置发送的路由数据帧被候选路由地址对应的本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率;所述接收表包括有若干条接收记录表项,每条接收记录表项中记录有目的地址、候选路由地址和接收值的对应关系,且在每条接收记录表项的对应关系中,所述目的地址为目的通信装置的地址,所述候选路由地址为本通信装置的相邻一跳通信装置的地址,所述接收值为目的地址对应的目的通信装置发送的路由数据帧经由候选路由地址对应的本通信装置的相邻一跳通信装置转发后被本通信装置接收的接收概率;所述链路状态表包括有若干条链路状态 记录表项,每条链路状态记录表项中记录有目的地址、候选路由地址和链路状态稳定值的对应关系,所述链路状态表基于所述叠加表和接收表构造,每条链路状态记录表项由具有相同候选路由地址的一条叠加记录表项和一条接收记录表项形成,所述链路状态记录表项中的目的地址为接收记录表项中的目的地址,所述链路状态记录表项中的候选路由地址为叠加记录表项和接收记录表项中含有的相同的候选路由地址,所述链路状态记录表项中的链路状态稳定值基于叠加记录表项中的叠加值和接收记录表项中的接收值计算得到;所述路由分配表基于所述链路状态表来构造,在链路状态表中提取具有相同目的地址的链路状态记录表项集合,在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址和候选路由地址分别作为路由分配表的一条分配记录表项中的目的地址和候选分配路由地址。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit 31 maintains an overlay table, a reception table, a link state table, and the route allocation table based on the route data frame; The overlay table includes a plurality of superimposed record entries, each of which records a correspondence between a candidate route address and a superimposed value, and in a correspondence relationship of each superimposed record entry, the candidate route address For the address of the adjacent one-hop communication device of the communication device, the superimposed value is that the routing data frame sent by the communication device is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address and is forwarded again by the communication device. The receiving and receiving probability received by the communication device; the receiving table includes a plurality of receiving record entries, each of which records a correspondence between a destination address, a candidate routing address, and a received value, and each received record In the correspondence between the entries, the destination address is an address of the destination communication device, and the candidate routing address is a phase of the communication device. The address of the one-hop communication device, the received value is the reception probability that the routing data frame sent by the destination communication device corresponding to the destination address is forwarded by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address, and then received by the communication device The link state table includes several link states Recording entries, each link state record entry records a correspondence between a destination address, a candidate route address, and a link state stable value, and the link state table is constructed based on the overlay table and the receive table, each chain The path state record entry is formed by an overlay record entry having the same candidate route address and a received record entry, and the destination address in the link state record entry is a destination address in the received record entry, the chain The candidate route address in the route state record entry is the same candidate route address included in the overlay record entry and the receive record entry, and the link state stability value in the link state record entry is based on the overlay record entry. The superimposed value and the received value in the received record entry are calculated; the route allocation table is constructed based on the link state table, and the link state record entry set having the same destination address is extracted in the link state table, Selecting, in the set of link state record entries, a link state record entry with the highest link state stability value, and the link state with the stable link state stable value Destination address and the routing address of the candidate record entry as the destination address and the address of an allocation candidate route is allocated allocation table records routing table entry.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中本通信装置中的原始路由数据帧产生子单元32构造的原始路由数据帧的链路状态报文的原始发送方地址为本通信装置的地址,原始路由数据帧的链路状态报文的链路状态值取最大值,原始路由数据帧的链路状态报文的序列号在本通信装置产生的前一个链路状态报文的序列号的基础上按照固定步长递增变化;所述路由信息维护子单元31根据接收到的最新的路由数据帧更新所述叠加表和接收表,当路由数据帧的链路状态报文的原始发送方地址为本通信装置的地址时,所述路由信息维护子单元31更新所述叠加表,在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若能查询到所述叠加记录表项则更新所述叠加记录表项中的叠加值,若不能查询到所述叠加记录表项则在叠加表中新增一条叠加记录表项,新增的叠加记录表项中的候选路由地址为路由数据帧的发送方地址,新增的叠加记录表项中的叠加值的计算方法与叠加值的更新方法相同;当路由数据帧的链路状态报文的原始发送方地址不为本通信装置的地址时,所述路由信息维护子单元更新所述接收表,在接收表中查询目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项,若能查询到所述接收记录表项则更新所述接收记录表项中的接收值,若不能查询到所述接收记录表项则在接收表中新增一条接收记录表项,新增的接收记录表项中的目的地址为路由数据帧的链路状态报文的原始发送方地址,新增的接收记录表项中的候选路由地址为路由数据帧的发送方地址,新增的接收记录表项中的接收值的计算方法与所述接收值的更新方法相同。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the original sender address of the link state message of the original route data frame constructed by the original route data frame generation subunit 32 in the present communication device is The address of the communication device, the link state value of the link state message of the original route data frame takes the maximum value, and the sequence number of the link state message of the original route data frame is reported in the previous link state report generated by the communication device. The sequence number of the text is incrementally changed according to the fixed step size; the routing information maintenance sub-unit 31 updates the overlay table and the receiving table according to the received latest routing data frame, and routes the link state message of the data frame. When the original sender address is the address of the communication device, the routing information maintenance sub-unit 31 updates the overlay table, and in the overlay table, the candidate routing address is searched for the superimposed record entry of the sender address of the routing data frame. If the superimposed record entry is queried, the superimposed value in the superimposed record entry is updated, and if the superimposed record entry cannot be queried An overlay record entry is added to the overlay table. The candidate route address in the newly added overlay record entry is the sender address of the route data frame, and the calculation method of the superimposed value in the newly added overlay record entry and the superimposed value The update method is the same; when the original sender address of the link state message of the routing data frame is not the address of the communication device, the routing information maintenance subunit updates the receiving table, and the destination address is queried in the receiving table. The original sender address of the link state message of the data frame and the candidate route address is the receiving record entry of the sender address of the routing data frame, and if the receiving record entry can be queried, the receiving record entry is updated. If the received record entry cannot be queried, a new receive record entry is added to the receive table, and the destination address in the newly received record entry is the original link state packet of the routed data frame. The sender address, the candidate route address in the newly added record entry is the sender address of the route data frame, and the received value in the newly received record entry. Updating methods the same value with the receiver.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据帧中的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的链路状态记录表项,若能查询到所述链路状态记录表项,则基于路由 数据帧的链路状态报文的更新后的链路状态值更新该链路状态记录表项中的链路状态稳定值,若不能查询到所述链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的候选路由地址为路由数据帧的发送方地址,新增的链路状态记录表项的链路状态稳定值为路由数据帧中的链路状态报文的更新后的链路状态值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: first extracting The link state value of the link state packet of the routing data frame is recorded as x; secondly, the superimposed table is used to query the superimposed record entry of the sender address of the routing data frame in the overlay table, if it cannot be queried in the overlay table The superimposed record entry ends the update of the link state table. If the superimposed record entry is queried in the overlay table, the superimposed value in the superimposed record entry is extracted and recorded as y; The received value in the receiving record entry of the link state message whose destination address is the route data frame and the candidate route address is the sender address of the route data frame is recorded as z; when (y/ z)<1, the link state value of the link state message of the routed data frame is updated to x*(y/z), and when (y/z)≥1, the link state of the routed data frame is reported. The link state value of the text is more The original value x is the last; in the link state table, the link state record entry whose destination address is the original sender address of the link state packet in the routing data frame and the candidate routing address is the sender address of the routing data frame is queried. If the link state record entry is queried, the route is based on the route The updated link state value of the link state packet of the data frame updates the link state stable value in the link state record entry. If the link state record entry cannot be queried, the link state table is in the link state table. A new link state record entry is added. The destination address of the newly added link state record entry is the original sender address of the link state packet in the routing data frame. The newly added link state record entry is added. The candidate route address is the sender address of the route data frame, and the link state stability value of the newly added link state record entry is the updated link state value of the link state message in the route data frame.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述链路状态表中为每一条链路状态记录表项都维护有一个均值队列,且每条链路状态记录表项对应的均值队列的长度相同,所述均值队列中存储有路由数据帧的链路状态报文的更新后的链路状态值,且所述均值队列中链路状态值的移入移出遵循先入先出的原则,所述链路状态记录表项中的链路状态稳定值为均值队列中存储的所有链路状态值的平均值;所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则向该链路状态记录表项对应的均值队列中移入路由数据帧的链路状态报文的更新后的链路状态值,并重新计算均值队列中所有链路状态值的平均值,将所述链路状态记录表项中的链路状态稳定值更新为所述平均值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据帧的链路状态报文的原始发送方地址,新增的链路状态记录表项的候选路由地址为路由数据帧的发送方地址,并向新增的链路状态记录表项对应的均值队列中移入路由数据帧的链路状态报文的更新后的链路状态值,新增的链路状态记录表项的链路状态稳定值为其对应的均值队列中链路状态值的平均值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the link state table maintains an average queue for each link state record entry, and each link state record table The averaging queues of the items have the same length, and the averaging queue stores the updated link state value of the link state message of the routing data frame, and the moving in and out of the link state value in the averaging queue follows the first-come first The principle that the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit updates each time after receiving the receiving table The link state table is updated in the following manner: first, the link state value of the link state packet of the route data frame is extracted, and is recorded as x; secondly, the candidate route address is queried as the sender of the route data frame in the overlay table. The superimposed record entry of the address, if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, and if the overlay table can be queried And superimposing the record entry, extracting the superimposed value in the superimposed record entry, and recording it as y; and then extracting the original sender address of the link state message whose destination address is the route data frame in the receiving table and the candidate route address is The received value in the received record entry of the sender address of the routed data frame is denoted as z; when (y/z)<1, the link state value of the link state message of the routed data frame is updated to x* (y/z), when (y/z) ≥ 1, update the link state value of the link state message of the routed data frame to the original value x; finally, query the destination address as the route data in the link state table. The link sender record entry of the link state packet of the frame and the candidate route address being the link state record entry of the sender address of the route data frame. If the link state record entry is queried, the link state record is recorded to the link state record entry. The updated link state value of the link state packet of the routing data frame in the averaging queue corresponding to the entry, and recalculating the average value of all link state values in the averaging queue, and the link state record entry The link state stability value in the update is updated to the flat If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the newly added link state record entry is the link state of the route data frame. The original sender address of the packet, the candidate route address of the newly added link state record entry is the sender address of the route data frame, and the route data frame is moved into the average queue corresponding to the newly added link state record entry. The updated link state value of the link state packet, and the link state stability value of the newly added link state record entry is the average of the link state values in the corresponding average queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元每次更新完所述链路状态表后,按照以下方式同时更新所述路由分配表:首先在链路状态表中查询得到目的地址为路由数据帧的链路状态报文的原始发送方地址的链路状态记录表项集合;接着在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址和候选路由地址分别作为路由更新表项中的目的地址和候选路由地址;然后在路由分配表中查询目的地址为路由更新表项中的目的地址的分配记录表项,若能查到所述分配记录表项则将所述分配记录表项中的候选分配路由地址更新为所述路由更新表项中的候选路由地址,若不能查到所述分配记录表项,则在路由分配表中新增一条分配记录表项,新增的分配记录表项的目的地址和候选分配路由地址分别为所述路由更新表项中的目的地址和候选路由地址。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit simultaneously updates the routing allocation table in the following manner after updating the link state table: Querying, in the link state table, a set of link state record entries of the original sender address whose destination address is a link state packet of the route data frame; and then selecting a link state in the link state record entry set The link state record entry with the highest stable value, and the destination address and the candidate route address in the link state record entry with the highest link state stability value are respectively used as the destination address and the candidate route address in the route update entry; Then, in the route allocation table, the allocation record entry whose destination address is the destination address in the route update entry is queried, and if the allocation record entry is found, the candidate allocation route address in the allocation record entry is updated to If the candidate routing address in the routing update entry cannot be found, add a new one in the routing allocation table. With record entry, the destination address and route address of the new candidate allocation record allocation table entries are the destination address and the address of the candidate routes in the routing table entry updates.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述叠加表为每条叠加记录表项都维护有一个叠加队列,且各叠加记录表项对应的叠加队 列长度相同,所述叠加队列中存储有路由数据帧的链路状态报文的序列号,且所述叠加队列中序列号的移入移出遵循先入先出的原则,每条叠加记录表项中的叠加值为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值,且所述叠加表中各叠加记录表项对应的叠加队列中序列号的移入移出过程保持同步,所述路由信息维护子单元31基于最新的路由数据帧更新所述叠加表时,按照以下方式更新叠加记录表项中的叠加值:将叠加表中候选路由地址为路由数据帧的发送方地址的叠加记录表项作为本叠加记录表项,向本叠加记录表项对应的叠加队列中移入路由数据帧的链路状态报文的序列号,同时向叠加表中除本叠加记录表项以外的其他叠加记录表项对应的叠加队列中移入一个空元素,然后将叠加表中的各叠加记录表项的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述接收表为每条接收记录表项都维护有一个接收队列,且各接收记录表项对应的接收队列长度相同,所述接收队列中存储有路由数据帧的链路状态报文的序列号,且所述接收队列中序列号的移入移出遵循先入先出的原则,每条接收记录表项中的接收值为其对应的接收队列中存储的序列号的数量与接收队列长度的比值,且所述接收表中目的地址相同的接收记录表项对应的接收队列中序列号的移入移出过程保持同步,所述路由信息维护子单元31基于最新的路由数据帧更新所述接收表时,按照以下方式更新接收记录表项中的接收值:将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项作为本接收记录表项,向本接收记录表项对应的接收队列中移入路由数据帧的链路状态报文的序列号,同时向除本接收记录表项之外的接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的其他接收记录表项对应的接收队列中移入一个空元素,然后将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the overlay table maintains a superimposition queue for each superimposed record entry, and an overlay team corresponding to each superimposed record entry The column length is the same, the sequence number of the link state message of the routing data frame is stored in the superposition queue, and the moving in and out of the sequence number in the superimposed queue follows the principle of first in first out, and each superimposed record entry The superimposed value is a ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue, and the process of moving in and out of the serial number in the superimposed queue corresponding to each superimposed record entry in the superimposition table is kept synchronized, and the route is synchronized. When the information maintenance sub-unit 31 updates the superimposition table based on the latest routing data frame, the superimposed value in the superimposed recording table item is updated in the following manner: the superimposed recording table in which the candidate routing address in the superimposition table is the sender address of the routing data frame As the superimposed record entry, the item moves the sequence number of the link state message of the routing data frame to the superposition queue corresponding to the superimposed record entry, and simultaneously superimposes the superimposed record table except the superimposed record entry in the superposition table. An empty element is moved into the superimposed queue corresponding to the item, and then the superimposed value of each superimposed record item in the superimposed table is updated to its corresponding Adding a ratio of the number of serial numbers stored in the queue to the length of the superimposed queue; the receiving table maintains one receiving queue for each receiving record entry, and the receiving queues corresponding to each receiving record entry have the same length, and the receiving The sequence number of the link state packet of the routing data frame is stored in the queue, and the moving in and out of the serial number in the receiving queue follows the principle of first in first out, and the receiving value in each receiving record entry is its corresponding receiving. And the ratio of the number of the serial number stored in the queue to the length of the receiving queue, and the process of moving in and out of the sequence number in the receiving queue corresponding to the receiving record entry having the same destination address in the receiving table is synchronized, and the routing information maintenance subunit 31. When the receiving table is updated based on the latest routing data frame, the received value in the received record entry is updated in the following manner: the original sender address of the link state message in which the destination address in the receiving table is the routing data frame and the candidate is received. The receiving record entry whose routing address is the sender address of the routing data frame is used as the receiving record entry, and is sent to the receiving record table. The sequence number of the link state packet in which the routing data frame is moved in the corresponding receiving queue, and the original sender address of the link state packet whose destination address is the routing data frame in the receiving table other than the receiving recording entry The receiving queue corresponding to the other receiving record entry moves an empty element, and then updates the received value of each receiving record entry of the original sender address of the link state message whose destination address is the routing data frame in the receiving table to The ratio of the number of serial numbers stored in the corresponding receive queue to the length of the receive queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述叠加队列与所述接收队列的长度相同;新生成的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按固定步长递增,记为L;所述路由信息维护子单元每次更新所述叠加表时,按照以下方式更新叠加表中相关叠加记录表项的叠加值:提取叠加表中各叠加记录表项对应的叠加队列中序列号的最大值,记为a,提取路由数据帧的链路状态报文的序列号,记为b,向叠加表中除本叠加记录表项以外的其他叠加记录表项对应的叠加队列中依次移入((b-a)/L)个空元素,向本叠加记录表项对应的叠加队列中依次移入(((b-a)/L)-1)个空元素和序列号b,然后将叠加表中的各叠加记录表项中的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述路由信息维护子单元每次更新所述接收表时,按照以下方式更新接收表中相关接收记录表项的接收值:提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的接收记录表项对应的接收队列中序列号的最大值,记为m,提取路由数据帧的链路状态报文的序列号,记为n,向接收表中除本接收记录表项以外的目的地址为路由数据帧的链路状态报文的原始发送方地址的接收记录表项对应的接收队列中依次移入((n-m)/L)个空元素,向本接收记录表项对应的接收队列中依次移入(((n-m)/L)-1)个空元素和序列号n,然后将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same original transmission in the previous one. The serial number of the link state message of the party address is incremented by a fixed step, and is recorded as L; each time the routing information maintenance subunit updates the superimposition table, the related superimposed record in the superimposition table is updated in the following manner. Superimposed value of the entry: extract the maximum value of the serial number in the superposition queue corresponding to each superimposed record entry in the superposition table, denoted as a, extract the serial number of the link state message of the routing data frame, and record it as b, superimpose In the superimposition queue corresponding to the superimposed record entry except the superimposed record entry, the ((ba)/L) empty elements are sequentially moved into the superposition queue corresponding to the superimposed record entry (((ba) ) / L) - 1) an empty element and a sequence number b, and then update the superimposed value in each superimposed record entry in the superimposed table to the number of serial numbers stored in the corresponding superimposed queue and the length of the superimposed queue The routing information maintenance sub-unit updates the received value of the relevant receiving record entry in the receiving table each time the receiving table is updated: extracting the link state message whose destination address is the routing data frame in the receiving table The maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the original sender address is recorded as m, and the sequence number of the link state message of the routed data frame is extracted, which is denoted as n, and is received in the receiving table. The destination address other than the record entry is the (#nm)/L empty element in the receive queue corresponding to the receive record entry of the original sender address of the link state packet of the route data frame, and the destination record table is added to the receive record table. In the receiving queue corresponding to the item, (((nm)/L)-1) empty elements and sequence number n are sequentially shifted in, and then the original sender address of the link state message in which the destination address in the table is the routing data frame is received. The received value of each received record entry is updated to the ratio of the number of sequence numbers stored in its corresponding receive queue to the length of the receive queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路 由信息维护子单元31按照以下方式判定接收到的路由数据帧是否为最新的路由数据帧:所述路由信息维护子单元31中维护有预处理表,所述预处理表中包括有若干条预处理记录表项,每条预处理记录表项中记录有原始发送方地址和序列号的对应关系,所述路由信息维护子单元31接收到来自数据收发解析单元的路由数据帧时,在预处理表中查询原始发送方地址为路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,若没有查询到对应的预处理记录表项,则将数据收发解析单元提供的路由数据帧判定为最新的路由数据帧,并在预处理表中新增一项预处理记录表项,新增的预处理记录表项的原始发送方地址和序列号分别为路由数据帧的链路状态报文的原始发送方地址和序列号;若在预处理表中查询到原始发送方地址为路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,则比较所述预处理记录表项中的序列号与路由数据帧的链路状态报文的序列号的大小关系,若所述预处理记录表项中的序列号小于路由数据帧的链路状态报文的序列号,则将数据收发解析单元提供的路由数据帧判定为最新的路由数据帧,并将所述预处理记录表项中的序列号更新为路由数据帧的链路状态报文的序列号,若所述预处理记录表项中的序列号大于等于路由数据帧的链路状态报文的序列号,将所述路由数据帧丢弃。Further, a wireless ad hoc network-based mobile communication system according to the present invention, wherein the road The information maintenance sub-unit 31 determines whether the received routing data frame is the latest routing data frame in the following manner: the routing information maintenance sub-unit 31 maintains a pre-processing table, and the pre-processing table includes a plurality of pre-processing tables. The record entry is processed, and the correspondence between the original sender address and the serial number is recorded in each preprocess record entry. When the route information maintenance subunit 31 receives the route data frame from the data transceiving and parsing unit, the preprocessing is performed. If the original sender address is the pre-processed record entry of the original sender address of the link state packet of the routing data frame, if the corresponding pre-processing record entry is not queried, the route provided by the data transceiving and parsing unit is queried. The data frame is determined to be the latest routing data frame, and a preprocessing record entry is added to the preprocessing table. The original sender address and sequence number of the newly added preprocessing record entry are the links of the routing data frame respectively. The original sender address and sequence number of the status message; if the original sender address is queried as the link status message of the routing data frame in the preprocessing table And a pre-processing record entry of the original sender address, comparing the size relationship between the sequence number in the pre-processing record entry and the sequence number of the link state packet of the routing data frame, if the pre-processing record entry is If the sequence number is smaller than the sequence number of the link state packet of the routing data frame, the routing data frame provided by the data transceiving and parsing unit is determined as the latest routing data frame, and the serial number in the preprocessing record entry is updated. The routing data frame is discarded if the sequence number of the pre-processing record entry is greater than or equal to the sequence number of the link state packet of the routing data frame.
一种基于无线自组织网络的移动通信系统,包括若干通信装置,每个通信装置都包括路由单元、数据解析单元和数据收发单元,所述数据收发单元包括至少一个数据收发子单元,所述数据收发单元向数据解析单元发送路由数据信息,所述数据解析单元将接收到的路由数据信息发送至所述路由单元,所述路由单元基于路由数据信息维护有路由分配表,所述路由分配表中包括有若干分配记录表项,每个分配记录表项中记录有目的地址、数据收发子单元地址和候选分配路由地址的对应关系,且在每个分配记录表项的对应关系中,所述目的地址为目的通信装置中的数据收发子单元的地址,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选分配路由地址为由数据收发子单元地址对应的本通信装置中的数据收发子单元向目的地址对应的目的通信装置中的数据收发子单元发送通信数据时最优选择的下一跳通信装置的数据收发子单元的地址;所述数据解析单元发送负载数据前向所述路由单元发送路由查询请求,所述路由查询请求包括有接收目的地址,所述路由单元接收到所述路由查询请求后在路由分配表中查找目的地址与路由查询请求中的接收目的地址相同的分配记录表项,并根据查找到的分配记录表项向所述数据解析单元发送路由查询响应,所述路由查询响应包括查找到的分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元将路由查询响应中的候选分配路由地址作为发送负载数据的接收方地址、将路由查询响应中的数据收发子单元地址作为发送负载数据的发送方地址。A mobile communication system based on a wireless ad hoc network, comprising a plurality of communication devices, each communication device comprising a routing unit, a data parsing unit and a data transceiving unit, the data transceiving unit comprising at least one data transceiving subunit, the data The transceiver unit sends routing data information to the data parsing unit, the data parsing unit sends the received routing data information to the routing unit, and the routing unit maintains a routing allocation table based on the routing data information, where the routing allocation table is The method includes a plurality of allocation record entries, and each of the allocation record entries records a correspondence between a destination address, a data transceiving subunit address, and a candidate allocation routing address, and in a correspondence relationship of each allocation record entry, the destination The address is the address of the data transceiving subunit in the destination communication device, the data transceiving subunit address is the address of the data transceiving subunit in the communication device, and the candidate allocation routing address is the address corresponding to the data transceiving subunit address The data transceiving subunit in the communication device corresponds to the destination address The address of the data transceiving subunit of the next hop communication device that is optimally selected when the data transceiving subunit in the destination communication device transmits the communication data; the data parsing unit sends a routing query request to the routing unit before transmitting the payload data, The routing query request includes a receiving destination address, and after receiving the routing query request, the routing unit searches the routing allocation table for an allocation record entry whose destination address is the same as the receiving destination address in the routing query request, and according to the found The allocation record entry sends a route query response to the data parsing unit, the route query response includes a data transceiving subunit address and a candidate allocation routing address in the found allocation record entry, and the data parsing unit will route the query. The candidate allocation routing address in the response is used as the recipient address of the transmission load data, and the data transceiving subunit address in the routing query response is used as the sender address of the transmission load data.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由单元包括路由信息维护子单元31和原始路由数据帧产生子单元32,所述原始路由数据帧产生子单元32按照一定的时间间隔周期性地构造原始路由数据帧并通过数据收发单元发送给其他通信装置,同时所述数据收发单元接收其他通信装置产生的路由数据帧,并将其构造成路由数据信息后发送给数据解析单元,经数据解析单元将所述路由数据信息发送给路由信息维护子单元31,所述路由数据信息包括路由数据帧和本通信装置中接收此路由数据帧的数据收发子单元地址,所述路由数据帧包括接收方地址、发送方地址和路由帧体,所述路由帧体包括链路状态报文,所述链路状态报文包括原始发送方地址、链路状态值和序列号,所述链路状态值用于反应链路状态报文的原始发送方地址对应的通信装置和路由数据帧的发送方地址对应 的通信装置之间的通信链路状态;对于路由分配表中的每一个分配记录表项,其中由数据收发子单元地址、候选分配路由地址和目的地址组成发送链路状态处于最佳的通信路径,所述发送链路状态通过收发链路状态与接收链路状态确定,所述收发链路状态通过本通信装置的数据收发子单元发送的路由数据帧被本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率反映,所述接收链路状态通过目的通信装置发送的路由数据帧经本通信装置的相邻一跳通信装置转发后被本通信装置的数据收发子单元接收的接收概率反映。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing unit includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32, and the original routing data frame generation subunit 32 The original routing data frame is periodically constructed according to a certain time interval and transmitted to other communication devices through the data transceiver unit, and the data transceiver unit receives the routing data frame generated by the other communication device, and constructs the routing data information and sends the data frame. The data parsing unit sends the routing data information to the routing information maintenance subunit 31 via the data parsing unit, where the routing data information includes a routing data frame and a data transceiving subunit address of the communication device receiving the routing data frame. The routing data frame includes a receiver address, a sender address, and a routing frame body, where the routing frame body includes a link state packet, where the link state packet includes an original sender address, a link state value, and a sequence number. The link state value is used to reflect the original sender of the link state message And routing a communication device corresponding sender address corresponding to the data frame Communication link status between communication devices; for each of the route allocation table allocation record entries, wherein the data transmission and reception sub-unit address, the candidate distribution route address, and the destination address constitute a transmission link state in an optimal communication path The transmission link state is determined by a transceiver link state and a received link state, where the routing data frame sent by the data transceiver subunit of the communication device is used by the adjacent one-hop communication device of the communication device. The transmission and reception probability of receiving and being forwarded by the communication device is reflected, and the routing data frame sent by the destination communication device is forwarded by the adjacent one-hop communication device of the communication device by the communication device. The reception probability of the data transceiver subunit is reflected.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由单元基于路由数据信息维护叠加表、接收表、链路状态表和所述路由分配表;所述叠加表包括有若干条叠加记录表项,每条叠加记录表项中记录有数据收发子单元地址、候选路由地址和叠加值的对应关系,且在每条叠加记录表项的对应关系中,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选路由地址为本通信装置的相邻一跳通信装置中的数据收发子单元的地址,所述叠加值为数据收发子单元地址对应的本通信装置中的数据收发子单元发送的路由数据帧被候选路由地址对应的本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率;所述接收表包括有若干条接收记录表项,每条接收记录表项中记录有目的地址、数据收发子单元地址、候选路由地址和接收值的对应关系,且在每条接收记录表项的对应关系中,所述目的地址为目的通信装置中的数据收发子单元的地址,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选路由地址为本通信装置的相邻一跳通信装置中的数据收发子单元的地址,所述接收值为目的地址对应的目的通信装置发送的路由数据帧经由候选路由地址对应的本通信装置的相邻一跳通信装置转发后被数据收发子单元地址对应的本通信装置中的数据收发子单元接收的接收概率;所述链路状态表包括有若干条链路状态记录表项,每条链路状态记录表项中记录有目的地址、数据收发子单元地址、候选路由地址和链路状态稳定值的对应关系,所述链路状态表基于所述叠加表和接收表构造,每条链路状态记录表项由具有相同数据收发子单元地址和相同候选路由地址的一条叠加记录表项和一条接收记录表项形成,所述链路状态记录表项中的目的地址为接收记录表项中的目的地址,所述链路状态记录表项中的数据收发子单元地址为叠加记录表项和接收记录表项中含有的相同的数据收发子单元地址,所述链路状态记录表项中的候选路由地址为叠加记录表项和接收记录表项中含有的相同的候选路由地址,所述链路状态记录表项中的链路状态稳定值基于叠加记录表项中的叠加值和接收记录表项中的接收值计算得到;所述路由分配表基于所述链路状态表来构造,在链路状态表中提取具有相同目的地址和相同数据收发子单元地址的链路状态记录表项集合,在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址、数据收发子单元地址和候选路由地址分别作为路由分配表的对应分配记录表项中的目的地址、数据收发子单元地址和候选分配路由地址。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing unit maintains an overlay table, a reception table, a link state table, and the route allocation table based on routing data information; the overlay table includes There are a plurality of superimposed record entries, and each superimposed record entry records a correspondence between a data transceiving subunit address, a candidate route address, and a superimposed value, and in the correspondence relationship of each superimposed record entry, the data is transmitted and received. The subunit address is an address of a data transceiving subunit in the communication device, and the candidate routing address is an address of a data transceiving subunit in a neighboring one-hop communication device of the communication device, and the superposition value is a data transceiving subunit The routing data frame sent by the data transceiving subunit in the communication device corresponding to the address is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address, and is forwarded by the communication device and then received and received by the communication device. The receiving table includes a plurality of receiving record entries, and each of the received record entries records a destination address and data. Corresponding relationship between the address of the sending unit, the candidate routing address, and the received value, and in the correspondence between each received record entry, the destination address is the address of the data transceiving subunit in the destination communication device, and the data transceiver The unit address is the address of the data transceiving subunit in the communication device, and the candidate routing address is the address of the data transceiving subunit in the adjacent one-hop communication device of the communication device, and the receiving value is the destination corresponding to the destination address. The reception probability that the routing data frame transmitted by the communication device is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address and received by the data transceiving subunit in the communication device corresponding to the data transceiving subunit address; the chain The path state table includes a plurality of link state record entries, and each link state record entry records a correspondence between a destination address, a data transceiving subunit address, a candidate route address, and a link state stable value, the chain The road state table is constructed based on the overlay table and the receiving table, and each link state record entry is received by the same data. Forming, by the subunit address, an overlay record entry of the same candidate route address and a received record entry, the destination address in the link state record entry is a destination address in the receive record entry, and the link state record The data transceiving subunit address in the entry is the same data transceiving subunit address contained in the superimposed record entry and the received record entry, and the candidate route address in the link state record entry is an overlay record entry and reception. Recording the same candidate route address included in the entry, and the link state stability value in the link state record entry is calculated based on the superimposed value in the superimposed record entry and the received value in the received record entry; The route allocation table is constructed based on the link state table, and extracts a link state record entry set having the same destination address and the same data transceiving subunit address in the link state table, where the link state record entry set Select the link state record entry with the highest link state stability value and the destination in the link state record entry with the highest link state stability value. The address, the data transceiving subunit address, and the candidate routing address are respectively used as the destination address, the data transceiving subunit address, and the candidate allocation routing address in the corresponding allocation record entry of the route allocation table.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述原始路由数据帧产生子单元32构造的原始路由数据帧的链路状态报文的原始发送方地址为原始发送所述原始路由数据帧的数据收发子单元的地址,所述原始路由数据帧的链路状态报文的链路状态值取最大值,所述原始路由数据帧的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按照固定步长递增变化;所述路由信息维护子单元31根据接收到的最新的路由数据信息更 新所述叠加表和接收表,当路由数据信息中路由数据帧的链路状态报文的原始发送方地址为本通信装置中的任一数据收发子单元的地址时,所述路由信息维护子单元31更新所述叠加表,在叠加表中查询数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若能查询到所述叠加记录表项则更新所述叠加记录表项中的叠加值,若不能查询到所述叠加记录表项则在叠加表中新增一条叠加记录表项,新增的叠加记录表项中的数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址,新增的叠加记录表项中的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增的叠加记录表项中的叠加值的计算方法与叠加值的更新方法相同;当路由数据信息中路由数据帧的链路状态报文的原始发送方地址不为本通信装置中的任一数据收发子单元的地址时,所述路由信息维护子单元更新所述接收表,在接收表中查询目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项,若能查询到所述接收记录表项则更新所述接收记录表项中的接收值,若不能查询到所述接收记录表项则在接收表中新增一条接收记录表项,新增的接收记录表项中的目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址,新增的接收记录表项中的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的接收记录表项中的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增的接收记录表项中的接收值的计算方法与所述接收值的更新方法相同。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the original sender address of the link state message of the original route data frame constructed by the original route data frame generation subunit 32 is the original transmission station The address of the data transceiving subunit of the original routing data frame, the link state value of the link state packet of the original routing data frame takes a maximum value, and the sequence number of the link state packet of the original routing data frame is The sequence number of the link state message having the same original sender address is incremented according to a fixed step size; the routing information maintenance subunit 31 is further based on the latest route data received. The new superimposition table and the receiving table, when the original sender address of the link state message of the routing data frame in the routing data information is the address of any data transceiving subunit in the communication device, the routing information maintenance sub The unit 31 updates the overlay table, and in the overlay table, the data sending and receiving subunit address is the original sender address of the link state message of the routing data frame in the routing data information, and the candidate routing address is the routing data frame in the routing data information. An overlay record entry of the sender address, if the overlay record entry is queried, the overlay value in the overlay record entry is updated, and if the overlay record entry cannot be queried, a new one is added to the overlay table The superimposed record entry, the data transceiving subunit address in the newly added superimposed record entry is the original sender address of the link state message of the routing data frame in the routing data information, and the candidate route in the newly added superimposed record entry The address is the sender address of the routing data frame in the routing data information, and the calculation method of the superimposed value in the newly added superimposed record entry and the update of the superimposed value The routing information maintenance subunit updates the receiving table when the original sender address of the link state message of the routing data frame in the routing data information is not the address of any data transceiving subunit in the communication device. In the receiving table, query the original sender address of the link state message whose destination address is the routing data frame in the routing data information, and the data transceiving subunit address is the data transceiving subunit address of the routing data frame in the routing data information and candidate The routing address is a receiving record entry of the sender address of the routing data frame in the routing data information, and if the receiving record entry is queried, the receiving value in the receiving record entry is updated, if the receiving is not queried The record entry adds a new receive record entry in the receive table. The destination address in the new receive record entry is the original sender address of the link state packet of the routed data frame in the route data information. The data transceiving subunit address in the receiving record entry is the data transceiving subunit address of the routing data frame in the routing data information, The candidate route address in the newly received record entry is the sender address of the route data frame in the route data information, and the calculation method of the received value in the newly added record entry is the same as the update method of the received value.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据信息中路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中的路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则基于更新后的所述链路状态值更新该链路状态记录表项中的链路状态稳定值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的链路状态记录表项的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增 的链路状态记录表项的链路状态稳定值为更新后的所述链路状态值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: first extracting The link state value of the link state packet of the routing data frame in the routing data information is recorded as x; secondly, the data transceiving subunit address is queried in the overlay table as the data transceiving subunit address of the routing data frame in the routing data information and The candidate routing address is an overlay record entry of the sender address of the routing data frame in the routing data information. If the superimposed recording entry cannot be queried in the overlay table, the update of the link state table is ended. If the superimposed record entry is queried in the table, the superimposed value in the superimposed record entry is extracted, and is denoted as y; then the original of the link state message whose destination address is the route data frame in the routing data information is extracted. The sender address and the data transceiving subunit address are the data transceiving subunit addresses of the routing data information in the routing data information and The candidate routing address is the received value in the receiving record entry of the sender address of the routing data frame in the routing data information, and is denoted as z; when (y/z)<1, the link of the routing data frame in the routing data information is to be routed. The link state value of the status message is updated to x*(y/z). When (y/z)≥1, the link state value of the link state packet of the routing data frame in the routing data information is updated to the original. The value x is finally queried in the link state table. The original sender address of the link state message in the routing data frame in the routing data information, and the data transceiver subunit address are the data of the received routing data frame in the routing data information. Transmitting the sub-unit address and the candidate routing address is a link state record entry of the sender address of the routing data frame in the routing data information, and if the link state record entry can be queried, based on the updated link state The value of the link state record in the link state record entry is updated. If the link state record entry cannot be queried, a link state record entry is added to the link state table, and the link is added. Status record entry The address is the original sender address of the link state packet in the routing data frame in the routing data information, and the data transceiver subunit address of the newly added link state record entry is the data transceiver of the received routing data frame in the routing data information. The address of the unit, the candidate route address of the newly added link state record entry is the sender address of the route data frame in the route data information. The link state stability value of the link state record entry is the updated link state value.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述链路状态表中为每一条链路状态记录表项都维护有一个均值队列,且每条链路状态记录表项对应的均值队列的长度相同,所述均值队列中存储有路由数据信息中路由数据帧的链路状态报文的更新后的链路状态值,且所述均值队列中链路状态值的移入移出遵循先入先出的原则,所述链路状态记录表项中的链路状态稳定值为均值队列中存储的所有链路状态值的平均值;所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据信息中路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中的路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则向该链路状态记录表项对应的均值队列中移入更新后的上述链路状态报文的链路状态值,并重新计算均值队列中所有链路状态值的平均值,将所述链路状态记录表项中的链路状态稳定值更新为所述平均值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的链路状态记录表项的候选路由地址为路由数据信息中路由数据帧的发送方地址,并向新增的链路状态记录表项对应的均值队列中移入更新后的链路状态报文的链路状态值,新增的链路状态记录表项的链路状态稳定值为其对应的均值队列中链路状态值的平均值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the link state table maintains an average queue for each link state record entry, and each link state record table The averaging queues of the items have the same length, and the averaging queue stores the updated link state value of the link state message of the routing data frame in the routing data information, and the link state value of the averaging queue is moved in. The removal follows the principle of first-in first-out, and the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit is updated every time. After the receiving table is described, the link state table is updated in the following manner: first, the link state value of the link state packet of the routing data frame in the routing data information is extracted, and is recorded as x; secondly, the data is sent and received in the overlay table. The subunit address is the data transceiving subunit address of the routing data frame in the routing data information and the candidate routing address is the routing data frame in the routing data information. The superimposed record entry of the sender address, if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, and if the superimposed record entry is queried in the overlay table, the extraction is performed. The superimposed value in the superimposed record entry is denoted as y; then the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information are extracted as the routing data. The information receives the data transceiving subunit address of the routing data frame and the candidate routing address is the received value in the receiving record entry of the sender address of the routing data frame in the routing data information, and is recorded as z; when (y/z)<1 Update the link state value of the link state packet of the routing data frame in the routing data information to x*(y/z), and when (y/z)≥1, route the data frame in the routing data information. The link state value of the link state packet is updated to the original value x; finally, the query destination address is the original sender address of the link state message in the route data frame in the link data information, and the data transceiver unit The address is a data link sub-unit address of the routing data frame in the routing data information, and the candidate routing address is a link state record entry of the sender address of the routing data frame in the routing data information, if the link state record can be queried The entry moves the updated link state value of the link state packet to the average queue corresponding to the link state record entry, and recalculates the average value of all link state values in the averaging queue. The link state stable value in the link state record entry is updated to the average value. If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the link state record entry is the original sender address of the link state packet in the route data frame in the routing data information, and the data transceiver subunit address of the newly added link state record entry is the route data information. The address of the data transceiving subunit that receives the routing data frame, and the candidate routing address of the newly added link state record entry is the sender of the routing data frame in the routing data information. Address and the link state value of the updated link state packet is added to the averaging queue corresponding to the newly added link state record entry. The link state of the newly added link state record entry is stable. The average of the link state values in the corresponding averaging queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元每次更新完所述链路状态表后,按照以下方式同时更新所述路由分配表:首先在链路状态表中查询得到目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的链路状态记录表项集合;接着在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项作为路由更新表项;然后在路由分配表中查询目的地址为路由更新表项中的目的地址并且数据收发子单元地址为路由更新表项中的数据收发子单元地址的分配记录表项,若能查到所述分配记录表项则将所述分配记录表项中的候选分配路由地址更新为所述路由更新表项中的候选路由地址,若不能查到所述分配记录表项,则在路由分配表中新增一条分配记录表项,新增的分配记录表项的目的地址、数据收发子单元地址和候选分配路由地 址分别为所述路由更新表项中的目的地址、数据收发子单元地址和候选路由地址。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit simultaneously updates the routing allocation table in the following manner after updating the link state table: Querying, in the link state table, the original sender address of the link state message whose destination address is the route data frame in the route data information, and the data transceiver subunit address is the data transceiver subunit address of the route data message receiving the route data frame. a set of link state record entries; then, in the set of link state record entries, select a link state record entry with the highest link state stability value as a route update entry; and then query the destination address in the route allocation table. The routing record entry in the routing update entry and the data transceiving subunit address is an allocation record entry of the data transceiving subunit address in the routing update entry, and if the allocation record entry can be found, the allocation record table is The candidate allocation routing address in the item is updated to the candidate routing address in the routing update entry, if not The record allocation table entry is allocated a new record entry in the routing table allocation, the allocation of the new allocation table entries recording destination address, the address and data transceiver subunit candidate routes to The addresses are the destination address, the data transceiving subunit address, and the candidate routing address in the routing update entry.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述叠加表为每条叠加记录表项都维护有一个叠加队列,且各叠加记录表项对应的叠加队列长度相同,所述叠加队列中存储有路由数据信息中路由数据帧的链路状态报文的序列号,且所述叠加队列中序列号的移入移出遵循先入先出的原则,每条叠加记录表项中的叠加值为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值,且所述叠加表中数据收发子单元地址相同的叠加记录表项对应的叠加队列中序列号的移入移出过程保持同步,所述路由信息维护子单元31基于最新的路由数据信息更新所述叠加表时,按照以下方式更新叠加记录表项中的叠加值:将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项作为本叠加记录表项,向本叠加记录表项对应的叠加队列中移入路由数据信息中路由数据帧的链路状态报文的序列号,同时向叠加表中除本叠加记录表项以外的数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的其他叠加记录表项对应的叠加队列中移入一个空元素,然后将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的各叠加记录表项的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述接收表为每条接收记录表项都维护有一个接收队列,且各接收记录表项对应的接收队列长度相同,所述接收队列中存储有路由数据信息中路由数据帧的链路状态报文的序列号,且所述接收队列中序列号的移入移出遵循先入先出的原则,每条接收记录表项中的接收值为其对应的接收队列中存储的序列号的数量与接收队列长度的比值,且所述接收表中数据收发子单元地址和目的地址均相同的接收记录表项对应的接收队列中序列号的移入移出过程保持同步,所述路由信息维护子单元31基于最新的路由数据信息更新所述接收表时,按照以下方式更新接收记录表项中的接收值:将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项作为本接收记录表项,向本接收记录表项对应的接收队列中移入路由数据信息中路由数据帧的链路状态报文的序列号,同时向除本接收记录表项之外的接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的其他接收记录表项对应的接收队列中移入一个空元素,然后将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the overlay table maintains a superimposed queue for each superimposed record entry, and the superimposed queues corresponding to each superimposed record entry have the same length. The stacking queue stores the sequence number of the link state message of the routing data frame in the routing data, and the moving in and out of the serial number in the superimposed queue follows the principle of first in first out, and each superimposed record entry The superimposed value is a ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue, and the sequence number of the superimposed queue corresponding to the superimposed record entry in the superimposed table has the same process. When the routing information maintenance sub-unit 31 updates the overlay table based on the latest routing data information, the superimposed value in the superimposed recording table item is updated in the following manner: the data transceiving subunit address in the superimposing table is the routing data information. The original sender address of the link state packet of the routing data frame and the candidate routing address is the number of routes The superimposed record entry of the sender address of the routing data frame in the information is used as the superimposed record entry, and the sequence number of the link state message of the route data frame is moved into the superposition queue corresponding to the superimposed record entry. At the same time, the data transmission and reception subunit address other than the superimposed record entry in the superposition table is moved into a superposition queue corresponding to the other superimposition record entry of the original sender address of the link state message of the routing data frame in the routing data information. Empty element, and then update the superposition value of each superimposed record entry of the original sender address of the link state message of the routing data frame in the routing data information to the corresponding superposition queue in the superimposed table. The ratio of the number of serial numbers to the length of the superimposed queue; the receiving table maintains one receiving queue for each receiving record entry, and the receiving queues corresponding to each receiving record entry have the same length, and the receiving queue stores The sequence number of the link state message of the routing data frame in the routing data information, and the sequence number of the receiving queue is shifted The entry and exit follows the principle of first-in first-out, and the received value in each received record entry is the ratio of the number of serial numbers stored in the corresponding receive queue to the length of the receive queue, and the data transceiver sub-unit address in the receive table And the process of moving in and out of the sequence number in the receiving queue corresponding to the receiving record entry that is the same as the destination address is synchronized, and when the routing information maintenance subunit 31 updates the receiving table based on the latest routing data information, the receiving is updated as follows. The received value in the record entry: the original sender address and the data transceiver subunit address of the link state message whose destination address is the route data frame in the route data information is the data of the received route data frame in the route data information. Receiving the sub-unit address and the candidate routing address is the receiving record entry of the sender address of the routing data frame in the routing data information as the receiving record entry, and shifting the routing data into the routing data corresponding to the receiving queue corresponding to the receiving record entry Serial number of the link state packet of the frame, and at the same time, in addition to the received record entry The original sender address of the link state message whose destination address is the route data frame in the routing data information, and the data transceiver subunit address are other receiving record tables of the data transceiving subunit address of the routing data frame in the routing data information. An empty element is added to the receiving queue corresponding to the item, and then the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information are received in the routing data information. The received value of each received record entry of the data transceiving subunit address of the data frame is updated to the ratio of the number of sequence numbers stored in the corresponding receive queue to the length of the receive queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述叠加队列与所述接收队列的长度相同;新生成的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按固定步长递增,记为L;所述路由信息维护子单元每次更新所述叠加表时,按照以下方式更新叠加表中相关叠加记录表项的叠加值:提取叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的叠加记录表项对应的叠加队列中序列号的最大值,记为a,提取路由数据信息中路由数据帧的链路状态报文的序列号,记为b,向叠加表中除本叠加记录表项以外的数据收发子单元地址为路由数据信息中 路由数据帧的链路状态报文的原始发送方地址的其他叠加记录表项对应的叠加队列中依次移入((b-a)/L)个空元素,向本叠加记录表项对应的叠加队列中依次移入(((b-a)/L)-1)个空元素和序列号b,然后将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的各叠加记录表项中的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述路由信息维护子单元每次更新所述接收表时,按照以下方式更新接收表中相关接收记录表项的接收值:提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的接收记录表项对应的接收队列中序列号的最大值,记为m,提取路由数据信息中路由数据帧的链路状态报文的序列号,记为n,向接收表中除本接收记录表项以外的目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的其他接收记录表项对应的接收队列中依次移入((n-m)/L)个空元素,向本接收记录表项对应的接收队列中依次移入(((n-m)/L)-1)个空元素和序列号n,然后将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same original transmission in the previous one. The serial number of the link state message of the party address is incremented by a fixed step, and is recorded as L; each time the routing information maintenance subunit updates the superimposition table, the related superimposed record in the superimposition table is updated in the following manner. The superimposed value of the table item: the maximum value of the serial number in the superposition queue corresponding to the superimposed record entry of the original sender address of the link state message of the route data frame in the routing data information in the extraction superposition table, Recorded as a, extract the serial number of the link state message of the routing data frame in the routing data information, denoted as b, and send the data transceiving subunit address other than the superimposed recording entry to the routing data in the superimposition table. The superimposed queue corresponding to the other superimposed record entries of the original sender address of the link state packet of the routing data frame is sequentially moved into ((ba)/L) empty elements, and sequentially to the superimposed queue corresponding to the superimposed record entry. Move in ((ba)/L)-1) empty elements and sequence number b, and then the data transceiving subunit address in the superposition table is the original sender address of the link state message of the routing data frame in the routing data information. The superimposed value in each superimposed record entry is updated to the ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue; the routing information maintenance subunit updates each time the update table is updated as follows Receiving the received value of the related receiving record entry in the receiving table: extracting the original sender address of the link state message whose destination address is the routing data frame in the routing data information in the receiving table and the data receiving and sending subunit address is the receiving route in the routing data information The maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the data receiving sub-unit address of the data frame is recorded as m, and the routing data frame in the routing data information is extracted. The sequence number of the link state packet is marked as n. The destination address other than the received record entry in the receiving table is the original sender address of the link state message of the routing data frame in the routing data information, and the data transceiver. The unit address is a (#nm)/L empty element sequentially received in the receiving queue corresponding to the other receiving record entry of the data receiving sub-unit address of the routing data frame in the routing data information, and the receiving is corresponding to the receiving record entry. In the queue, the (((nm)/L)-1) empty element and the sequence number n are sequentially shifted, and then the original sender address of the link state message of the routing data frame in the routing data information is received in the receiving table, The data transceiving subunit address is the ratio of the received value of each receiving record entry of the data transceiving subunit address of the received routing data frame in the routing data information to the ratio of the number of serial numbers stored in the corresponding receiving queue to the length of the receiving queue.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元31按照以下方式判定接收到的路由数据信息是否为最新的路由数据信息:所述路由信息维护子单元31中维护有预处理表,所述预处理表中包括有若干条预处理记录表项,每条预处理记录表项中记录有原始发送方地址和序列号的对应关系,所述路由信息维护子单元31接收到来自数据解析单元的路由数据信息时,在预处理表中查询原始发送方地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,若没有查询到对应的预处理记录表项,则将数据解析单元提供的路由数据信息判定为最新的路由数据信息,并在预处理表中新增一项预处理记录表项,新增的预处理记录表项的原始发送方地址和序列号分别为路由数据信息中路由数据帧的链路状态报文的原始发送方地址和序列号;若在预处理表中查询到原始发送方地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,则比较所述预处理记录表项中的序列号与路由数据信息中路由数据帧的链路状态报文的序列号的大小关系,若所述预处理记录表项中的序列号小于路由数据信息中路由数据帧的链路状态报文的序列号,则将数据解析单元提供的路由数据信息判定为最新的路由数据信息,并将所述预处理记录表项中的序列号更新为路由数据信息中路由数据帧的链路状态报文的序列号,若所述预处理记录表项中的序列号大于等于路由数据信息中路由数据帧的链路状态报文的序列号,将所述路由数据信息丢弃。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit 31 determines whether the received routing data information is the latest routing data information in the following manner: the routing information maintenance The pre-processing table is maintained in the sub-unit 31, and the pre-processing table includes a plurality of pre-processing record entries, and each pre-processing record entry records a correspondence between the original sender address and the sequence number, and the route is recorded. When receiving the routing data information from the data parsing unit, the information maintenance subunit 31 queries the preprocessing table for the preprocessed record of the original sender address whose original sender address is the link state message of the routing data frame in the routing data information. If the entry does not query the corresponding pre-processing record entry, the routing data information provided by the data parsing unit is determined as the latest routing data information, and a pre-processing record entry is added to the pre-processing table. The original sender address and sequence number of the added preprocessing record entry are respectively the routing data frame in the routing data information. The original sender address and sequence number of the route status message; if the original sender address is queried in the preprocessing table, the preprocess record entry of the original sender address of the link state message of the route data frame in the route data information is queried. And comparing the relationship between the sequence number in the pre-processing record entry and the sequence number of the link state packet of the routing data frame in the routing data information, if the sequence number in the pre-processing record entry is smaller than the routing data. In the information, the sequence number of the link state message of the routing data frame is determined, the routing data information provided by the data parsing unit is determined as the latest routing data information, and the serial number in the preprocessing record entry is updated to the routing data. The sequence number of the link state packet of the routing data frame in the information. If the sequence number in the preprocessing record entry is greater than or equal to the sequence number of the link state packet of the routing data frame in the routing data information, the route is Data information is discarded.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中当本通信装置的数据收发单元具有至少两个数据收发子单元时,所述路由信息维护子单元31按照上述方式将数据解析单元提供的路由数据信息判定为最新的路由数据信息后,还进一步判断路由数据信息中路由数据帧的发送方地址是否为本通信装置中的任一数据收发子单元地址,若是则将所述路由数据信息丢弃,若否则基于所述最新的路由数据信息更新所述叠加表和接收表。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein when the data transceiving unit of the communication device has at least two data transceiving subunits, the routing information maintenance subunit 31 transmits the data in the above manner. After determining the routing data information provided by the parsing unit as the latest routing data information, further determining whether the sender address of the routing data frame in the routing data information is any data transceiving subunit address in the communication device, and if so, The routing data information is discarded, if the overlay table and the receiving table are otherwise updated based on the latest routing data information.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路 由单元接收到所述路由查询请求时,在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则根据其中一条分配记录表项的记录内容向数据解析单元发送路由查询响应,所述路由查询响应包括所述分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址。Further, a wireless ad hoc network-based mobile communication system according to the present invention, wherein the road When the routing query request is received by the unit, the routing destination table is configured to query the allocation record entry of the destination address in the routing query request, and if the allocation record entry is not found, the routing query response is not generated. And abandoning the communication process, if the allocation record entry is queried, sending a route query response to the data parsing unit according to the record content of one of the allocation record entries, where the route query response includes the allocation record entry The data transceiving subunit address and the candidate allocation routing address, the data parsing unit constructs a load data frame based on the routing query response, and uses the candidate allocation routing address in the routing query response as the receiving address in the payload data frame, and the routing query response The data transceiving subunit address in the data is used as the sender address in the payload data frame.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述数据收发单元中的第一个数据收发子单元作为主数据收发子单元,所述数据解析单元根据IP数据包来源构造所述路由查询请求,所述路由查询请求中包括接收目的地址和数据收发子单元地址,所述接收目的地址为最终接收所述IP数据包的通信装置的地址,当IP数据包为本通信装置产生时,所述路由查询请求中的数据收发子单元地址为空,当IP数据包为本通信装置转发的其他通信装置产生的IP数据包时,所述路由查询请求中的数据收发子单元地址为本通信装置中接收所述IP数据包的数据收发子单元的地址;所述路由单元接收到所述路由查询请求时,首先判定所述路由查询请求中的数据收发子单元地址是否为空,若为空则所述路由单元在路由分配表中查询目的地址为路由查询请求中接收目的地址并且数据收发子单元地址为本通信装置中的主数据收发子单元地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址,将所述IP数据包作为负载数据帧中的帧体;若路由查询请求中的数据收发子单元地址不为空,则在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则根据其中一条分配记录表项的记录内容向数据解析单元发送路由查询响应,所述路由查询响应包括分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址,将所述IP数据包作为负载数据帧中的帧体。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the first data transceiving subunit in the data transceiving unit is used as a main data transceiving subunit, and the data parsing unit is based on an IP data packet source. Constructing the route query request, where the route query request includes a receiving destination address and a data transceiver subunit address, where the receiving destination address is an address of a communication device that finally receives the IP data packet, when the IP data packet is the communication When the device is generated, the data transceiving subunit address in the routing query request is empty, and when the IP data packet is an IP data packet generated by another communication device forwarded by the communication device, the data transceiving subunit in the routing query request The address is the address of the data transceiving subunit that receives the IP data packet in the communication device; when receiving the routing query request, the routing unit first determines whether the data transceiving subunit address in the routing query request is empty. If the route unit is empty, the routing unit queries the destination address in the route allocation table as a route query request. The destination address and the data transceiving subunit address are the allocation record entries of the primary data transceiving subunit address in the communication device. If the allocation record entry is not found, the route query response is not generated and the communication process is abandoned. And if the allocation record entry is queried, sending a route query response to the data parsing unit, where the route query response includes the data transceiving subunit address and the candidate allocation routing address in the queried allocation record entry, the data The parsing unit constructs the load data frame based on the route query response, and uses the candidate route address in the route query response as the receiver address in the load data frame, and uses the data transceiver subunit address in the route query response as the sender in the load data frame. Address, the IP data packet is used as a frame body in the payload data frame; if the data transceiving subunit address in the route query request is not empty, the destination address in the route allocation table is the destination address received in the route query request. Assigning a record entry, if no query record entry is found, no route is generated. Querying the response and abandoning the communication process. If the allocation record entry is queried, the route query response is sent to the data parsing unit according to the record content of one of the allocation record entries, where the route query response includes the allocation record entry. The data transceiving subunit address and the candidate allocation routing address, the data parsing unit constructs a load data frame based on the routing query response, and uses the candidate allocation routing address in the routing query response as the receiving address in the payload data frame, and the routing query response The data transceiving subunit address is used as the sender address in the payload data frame, and the IP data packet is used as the frame body in the payload data frame.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由分配表的每个分配记录表项中同时记录有链路状态稳定值和最新使用标记,所述链路状态稳定值为更新所述分配记录表项的对应链路状态记录表项中的链路状态稳定值,所述路由单元中预设有链路可用值,当本通信装置转发其他通信装置产生的IP数据包时,所述路由单元接收到所述数据解析单元发送的路由查询请求时,按照以下方式生成路由查询响应:首先在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若无法查询到则不产生路由查询响应并放弃本次通信过程,若能够查询到则将所查询到的分配记录表项记为第一表项集合,若第一表项集合中的分配录表项的最新使用标记都为空,则在第一表项集合中选取链路状态稳定值大于链路可用值的表项称为第二表项集合,若第二表项集合为空,则在第一 表项集合中查询数据收发子单元地址为路由查询请求中的数据收发子单元地址的表项,若查询不到所述表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的所述表项中的数据收发子单元地址和候选分配路由地址,并在查询到的所述表项中设置最新使用标记;若第二表项集合不为空,则选取第二表项集合中的第一个表项,向数据解析单元发送路由查询响应,所述路由查询响应包括该第一个表项中的数据收发子单元地址和候选分配路由地址,并设置该第一个表项的最新使用标记;若第一表项集合中存在最新使用标记不为空的表项,则在第一表项集合中选取最新使用标记为空的表项记为第三表项集合,若第三表项集合为空,则在第一表项集合中选取最新使用标记不为空的表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括最新使用标记不为空的表项中的数据收发子单元地址和候选分配路由地址;若第三表项集合不为空,则在第三表项集合中选取链路状态稳定值大于链路可用值的表项称为第四表项集合,若第四表项集合为空,则在第三表项集合中查询数据收发子单元地址为路由查询请求中数据收发子单元地址的表项,若查询不到所述表项,则不产生路由查询响应并放弃本次通信过程,若可以查询到所述表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的表项中的数据收发子单元地址和候选分配路由地址,并设置上述表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记;若第四表项集合不为空,则选取第四表项集合中的第一个表项,向数据解析单元发送路由查询响应,所述路由查询响应包括第四表项集合中第一个表项中的数据收发子单元地址和候选分配路由地址,并设置该第一个表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein each of the allocation record entries of the route allocation table simultaneously records a link state stable value and a latest usage flag, the link state The stable value is a link state stable value in a corresponding link state record entry of the allocation record entry, and a link available value is pre-set in the routing unit, and the local communication device forwards the IP generated by the other communication device. When the data packet receives the route query request sent by the data parsing unit, the routing unit generates a route query response according to the following manner: first, in the route allocation table, the query destination address is the allocation record of the destination address received in the route query request. If the entry cannot be queried, the route query response is not generated and the communication process is abandoned. If the query is available, the queried allocation record entry is recorded as the first entry set, if the first entry is in the set If the latest usage flag of the allocated record entry is empty, the link state stable value is greater than the link available value in the first entry set. A second set of items called item table entry if the second set is empty, then the first The address of the query data transceiving subunit in the set of the entry is the entry of the data transceiving subunit address in the routing query request. If the entry is not found, the routing query response is not generated and the communication process is abandoned. And the routing entry response is sent to the data parsing unit, where the routing query response includes the data transceiving subunit address and the candidate allocation routing address in the queried entry, and the queried entry is Setting a latest usage flag; if the second entry set is not empty, selecting the first entry in the second entry set, and sending a route query response to the data parsing unit, the route query response including the first The data transceiving subunit address and the candidate allocation routing address in the entry, and setting the latest usage flag of the first entry; if the latest entry identifier is not empty, the first entry is in the first In the table item set, the item with the latest use tag being empty is selected as the third item set. If the third item set is empty, the latest use mark is not selected in the first set of items. An empty entry sends a route query response to the data parsing unit, where the route query response includes a data transceiving subunit address and a candidate allocation routing address in an entry that is not newly used; if the third set of entries is not If it is empty, the entry in the third set of entries that has a link state stable value greater than the link available value is called a fourth set of entries. If the fourth set of entries is empty, in the third set of entries. The address of the data transceiving subunit is the entry of the data transceiving subunit address in the routing query request. If the entry is not found, the routing query response is not generated and the communication process is abandoned. And sending a route query response to the data parsing unit, where the route query response includes the data transceiving subunit address and the candidate allocation routing address in the queried entry, and setting the latest usage tag of the foregoing entry, canceling the first entry The latest use tag of the remaining entries in the set; if the fourth set of entries is not empty, the first entry in the fourth set of entries is selected and sent to the data parsing unit Responding to the query, the route query response includes a data transceiving subunit address and a candidate allocation routing address in the first entry in the fourth set of entries, and setting the latest usage flag of the first entry, canceling the first The most recent usage tag for the remaining entries in the table item collection.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述预处理表的每条预处理记录表项中还记录有路由数据信息的最新接收时间,所述接收表的每条接收记录表项中还记录有路由数据信息的最新接收时间,所述路由信息维护子单元31包括有定时更新模块56,所述定时更新模块按照一定的时间间隔周期性地遍历所述预处理表,对于预处理表中的每一条预处理记录表项都判断其中的最新接收时间和当前时间的差值是否超出第一阈值,若超出则在预处理表中删除对应的预处理记录表项,并在接收表、链路状态表和路由分配表中同时删除目的地址为该预处理记录表项中原始发送方地址的对应表项;所述定时更新模块按照一定的时间间隔周期性地遍历所述接收表,对于接收表中的每一项接收记录表项都判断其中的最新接收时间和当前时间的差值是否超出第二阈值,若超出则在接收表中删除对应的接收记录表项,设被删除的接收记录表项中的目的地址为dest_mac、数据收发子单元地址为sr_mac、候选路由地址为cand_mac,删除所述接收记录表项后同时在链路状态表中删除目的地址为dest_mac并且数据收发子单元地址为sr_mac并且候选路由地址为cand_mac的表项,然后在链路状态表中查询目的地址为dest_mac并且数据收发子单元地址为sr_mac的表项记为动态更新表项集合,在动态更新表项集合中选取链路状态稳定值最大的表项作为路由更新表项,并基于所述路由更新表项更新路由分配表。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein each pre-processing record entry of the pre-processing table further records the latest reception time of the routing data information, and each of the receiving tables The latest receiving time of the routing data information is also recorded in the strip receiving record entry, and the routing information maintenance subunit 31 includes a timing update module 56, and the timing update module periodically traverses the preprocessing according to a certain time interval. For each preprocessing record entry in the preprocessing table, it is determined whether the difference between the latest receiving time and the current time exceeds the first threshold, and if it is exceeded, the corresponding preprocessing record entry is deleted in the preprocessing table. And deleting, in the receiving table, the link state table, and the routing allocation table, the corresponding entry whose destination address is the original sender address in the pre-processing record entry; the timing update module periodically traverses according to a certain time interval. The receiving table determines the latest receiving time and current time of each of the receiving record entries in the receiving table. If the difference exceeds the second threshold, if the value is exceeded, the corresponding receiving record entry is deleted in the receiving table, and the destination address in the deleted receiving record entry is dest_mac, the data transceiving subunit address is sr_mac, and the candidate routing address is Cand_mac, after deleting the receiving record entry, delete the entry whose destination address is dest_mac and the data transceiving subunit address is sr_mac and the candidate routing address is cand_mac in the link state table, and then query the destination address in the link state table. An entry that is dest_mac and whose data transceiving sub-unit address is sr_mac is recorded as a dynamic update entry set, and an entry with the largest link state stable value is selected as a routing update entry in the dynamic update entry set, and is updated based on the route. The entry updates the route allocation table.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述路由信息维护子单元31包括预处理模块51、收发信息存储模块52、链路状态计算模块53、路由表模块54、转发模块55和定时更新模块56,所述收发信息存储模块52中存储有所述预处理表,所述预处理模块51接收数据解析单元发送的路由数据信息,并借助收发信息存储模块52进行路由数据信息是否最新的判断,所述预处理模 块51将经过收发信息存储模块52判定的最新的路由数据信息发送至链路状态计算模块53,所述链路状态计算模块53基于接收到的最新的路由数据信息维护所述叠加表、接收表和链路状态表,并向所述路由表模块54发送路由更新表项,所述路由表模块54基于路由更新表项维护所述路由分配表,所述定时更新模块56按照一定的时间间隔周期性地遍历所述收发信息存储模块52中的预处理表和所述链路状态计算模块53中的接收表,所述链路状态计算模块53每次完成所述链路状态表的更新时,同时向所述转发模块55发送链路状态值更新后的链路状态报文,所述转发模块55基于更新的链路状态报文构造转发路由数据帧,并通过数据收发单元发送。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the routing information maintenance sub-unit 31 includes a pre-processing module 51, a transceiving information storage module 52, a link state calculation module 53, and a routing table module 54. The forwarding module 55 and the timing update module 56, the pre-processing table is stored in the transceiver information storage module 52, and the pre-processing module 51 receives the routing data information sent by the data parsing unit, and is performed by the transceiver information storage module 52. Judging whether the routing data information is up to date, the preprocessing mode The block 51 sends the latest routing data information determined by the transceiving information storage module 52 to the link state calculation module 53, and the link state calculation module 53 maintains the overlay table and the receiving table based on the received latest routing data information. And a link state table, and sending a routing update entry to the routing table module 54, the routing table module 54 maintaining the routing allocation table based on the routing update entry, the timing update module 56 is configured according to a certain time interval. Traversing the pre-processing table in the transceiving information storage module 52 and the receiving table in the link state calculating module 53, the link state calculating module 53 each time updating the link state table, At the same time, the link state message with the updated link state value is sent to the forwarding module 55, and the forwarding module 55 constructs the forwarded route data frame based on the updated link state message, and sends the data through the data transceiver unit.
进一步的根据本发明所述的基于无线自组织网络的移动通信系统,其中所述数据解析单元11包括数据封装子单元21、ARP子单元22和类型判别子单元23,所述类型判别子单元23将来自数据收发单元13的路由数据信息发送至所述预处理模块51,将来自数据收发单元13的负载数据信息发送至所述数据封装子单元21,所述数据封装子单元21根据负载数据信息构造路由查询请求,并将路由查询请求发送至所述路由表模块54,所述数据封装子单元21根据路由查询响应构造负载数据帧,并将负载数据帧发送至对应的数据收发子单元。Further, the wireless ad hoc network-based mobile communication system according to the present invention, wherein the data parsing unit 11 includes a data encapsulating subunit 21, an ARP subunit 22, and a type discriminating subunit 23, the type discriminating subunit 23 The routing data information from the data transceiving unit 13 is sent to the pre-processing module 51, and the load data information from the data transceiving unit 13 is sent to the data encapsulating sub-unit 21, and the data encapsulating sub-unit 21 is based on the load data information. A route query request is constructed, and a route query request is sent to the routing table module 54. The data encapsulation sub-unit 21 constructs a load data frame according to the route query response, and sends the load data frame to the corresponding data transceiver sub-unit.
通过本发明的技术方案至少能够达到以下技术效果:At least the following technical effects can be achieved by the technical solution of the present invention:
1)、本发明首创的通过每个移动通信装置周期性地发送路由数据帧来维护包括最佳下一跳通信装置的路由信息,且本发明首创的基于本通信装置向相邻下一跳通信装置成功发送通信数据的概率来确定每个通信装置的最佳下一跳通信装置,从而有效的确定了每个通信装置与其目的通信装置之间的最优通信路径,形成无固定中心的、健壮性强、网络通信范围不受网络中心节点的限制、网络通信能力强的无线自组织网络系统。1) The present invention firstly transmits routing data frames by each mobile communication device to maintain routing information including an optimal next hop communication device, and the present invention is based on the present communication device to communicate to adjacent next hops. The probability that the device successfully transmits the communication data to determine the optimal next hop communication device of each communication device, thereby effectively determining the optimal communication path between each communication device and its destination communication device, forming a robust center without a fixed center A wireless self-organizing network system with strong network and network communication range that is not restricted by network central nodes and has strong network communication capabilities.
2)、本发明的移动通信装置周期性发送包括链路状态报文的路由数据帧,无线自组织网络中的移动通信装置接收发送自其它移动通信装置的链路状态报文,当有新的移动通信装置加入无线自组织网络时或者无线自组织网络中的某些移动通信装置失效时或者无线自组织网络中的某些移动通信装置移动时,无线自组织网络中的每个移动通信装置都可以快速更新路由信息,路由信息可以及时反映无线自组织网络的拓扑变化。2) The mobile communication device of the present invention periodically transmits a routing data frame including a link state message, and the mobile communication device in the wireless ad hoc network receives a link state message transmitted from another mobile communication device, when there is a new When a mobile communication device joins a wireless ad hoc network or when some mobile communication devices in a wireless ad hoc network fail or when certain mobile communication devices in a wireless ad hoc network move, each mobile communication device in the wireless ad hoc network The routing information can be quickly updated, and the routing information can timely reflect the topology changes of the wireless ad hoc network.
3)、本发明的移动通信装置维护关于最优下一跳的路由信息,不维护全局的拓扑信息,路由开销小,适用于移动场景中设备能量有限的情况。3) The mobile communication device of the present invention maintains routing information about the optimal next hop, does not maintain global topology information, and has low routing overhead, and is suitable for the case where the device energy in the mobile scenario is limited.
4)、由本发明的移动通信装置组成的不同无线自组织网络可以实现动态融合。4) Different wireless ad hoc networks composed of the mobile communication devices of the present invention can implement dynamic fusion.
5)、由本发明的移动通信装置组成的不同无线自组织网络是一种无中心的网络,健壮性强,网络通信范围不受网络中心节点的限制。5) The different wireless ad hoc networks composed of the mobile communication device of the present invention are a centerless network, which is robust and the network communication range is not limited by the network central node.
附图说明DRAWINGS
图1为本发明所述基于无线自组织网络的移动通信系统的总体框图;1 is a general block diagram of a mobile communication system based on a wireless ad hoc network according to the present invention;
图2为本发明所述移动通信系统中数据解析单元的框图;2 is a block diagram of a data parsing unit in the mobile communication system according to the present invention;
图3为本发明所述移动通信系统中路由单元框图;3 is a block diagram of a routing unit in the mobile communication system according to the present invention;
图4为本发明所述移动通信系统中数据收发单元框图;4 is a block diagram of a data transceiving unit in the mobile communication system according to the present invention;
图5为本发明所述移动通信系统中路由单元中的路由信息维护子单元框图;5 is a block diagram of a routing information maintenance subunit in a routing unit in the mobile communication system according to the present invention;
图6为本发明具体实施例中各通信装置相对位置示意图;6 is a schematic diagram of relative positions of communication devices in a specific embodiment of the present invention;
图7为本发明具体实施例中叠加队列维护过程示意图;7 is a schematic diagram of a process of maintaining a queue in a specific embodiment of the present invention;
图8为本发明具体实施例中接收队列维护过程示意图;FIG. 8 is a schematic diagram of a process of maintaining a receive queue according to an embodiment of the present invention; FIG.
图9为本发明具体实施例中均值队列维护过程示意图。 FIG. 9 is a schematic diagram of a maintenance process of a mean queue in a specific embodiment of the present invention.
具体实施方式detailed description
在描述本发明实施方式之前,对本发明中的一些概念进行必要的阐述:Before describing the embodiments of the present invention, some of the concepts in the present invention are described as necessary:
本通信装置:本发明创新提出的基于无线自组织网络的移动通信系统包括有若干个通信装置,所有通信装置都具有相同的功能结构和工作方式,下面以其中任何一个通信装置作为本通信装置,并以本通信装置为例来详细描述其功能结构与工作方式,其他各通信装置与本通信装置结构完全相同,并基于完全相同的工作方式来沟通构建整个移动通信系统。The communication device of the present invention comprises a wireless self-organizing network-based mobile communication system comprising a plurality of communication devices, all of which have the same functional structure and working mode, and any one of the communication devices is used as the communication device. The communication device is taken as an example to describe its functional structure and working mode in detail. The other communication devices are identical in structure to the communication device, and communicate the entire mobile communication system based on the same working mode.
相邻一跳通信装置:称能够与本通信装置在一定距离范围进行直接通信的其它通信装置为本通信装置的相邻一跳通信装置,上述一定距离范围需要满足的条件是本通信装置发送的数据不经过其它通信装置转发就可以被本通信装置的相邻一跳通信装置直接接收,同时,本通信装置的相邻一跳通信装置发送的数据不经过其它通信装置转发就可以被本通信装置直接接收;在上述一定距离范围内,可能存在多个本通信装置的相邻一跳通信装置。An adjacent one-hop communication device: another communication device that can communicate directly with the communication device over a certain distance range is an adjacent one-hop communication device of the communication device, and the condition that the certain distance range needs to be satisfied is sent by the communication device. The data can be directly received by the adjacent one-hop communication device of the communication device without being forwarded by other communication devices, and the data transmitted by the adjacent one-hop communication device of the communication device can be forwarded by the other communication device without being forwarded by the other communication device. Direct reception; within a certain distance range described above, there may be multiple adjacent one-hop communication devices of the communication device.
链路状态报文:本发明中的各个通信装置用来维护路由信息的报文,本发明所述方案中的链路状态报文包括原始发送方的MAC地址(Media Access Control,介质访问控制地址)、传输距离、链路状态值和序列号,其中,原始发送方的MAC地址表示原始产生此链路状态报文的通信装置(并非转发此链路状态报文的通信装置)中的数据收发子单元的MAC地址,其它通信装置在转发链路状态报文时不改变链路状态报文中的原始发送发的MAC地址;传输距离表示本链路状态报文被其它通信装置转发的次数;链路状态值表示发送此链路状态报文的通信装置与此链路状态报文的原始发送方MAC地址对应的通信装置之间的链路状态,链路状态值是进行路由选择时的重要依据;序列号在本发明的各个通信装置中有特别的定义,每个通信装置在产生链路状态报文时生成序列号,链路状态报文在被各通信装置转发的过程中其序列号不再发生变化,每个通信装置每新产生一个链路状态报文其序列号都在原有序列号(上一次产生的与上述新产生的链路状态报文的原始发送方MAC地址相同的链路状态报文的序列号)的基础上按照固定步长递增或者递减变化,优选的序列号增加1,以区分通信装置产生的新旧链路状态报文。The link state message is used by the communication device of the present invention to maintain the routing information. The link state message in the solution of the present invention includes the original sender's MAC address (Media Access Control, media access control address). ), the transmission distance, the link state value, and the sequence number, wherein the original sender's MAC address represents the data transmission and reception in the communication device that originally generated the link state message (not the communication device that forwards the link state message) The MAC address of the sub-unit, the other communication device does not change the original transmitted MAC address in the link state message when forwarding the link state message; the transmission distance indicates the number of times the link state message is forwarded by other communication devices; The link state value indicates the link state between the communication device that sends the link state message and the communication device corresponding to the original sender MAC address of the link state message, and the link state value is important when performing routing. According to the serial number, there is a special definition in each communication device of the present invention, and each communication device generates a serial number and a link state when generating a link state message. The serial number of the text is no longer changed during the process of being forwarded by each communication device. Each new communication device generates a link state message whose serial number is in the original serial number (the last generated and the newly generated chain) The sequence number of the link state message with the same original sender MAC address of the path state message is incremented or decremented according to a fixed step size, and the preferred sequence number is incremented by 1 to distinguish the old and new link states generated by the communication device. Message.
802.11数据帧:802.11帧的一种,按照802.11标准,802.11数据帧用来传输负载数据,802.11数据帧包括接收方MAC地址、发送方MAC地址和帧体(Frame Body)。802.11 data frame: A type of 802.11 frame. According to the 802.11 standard, an 802.11 data frame is used to transmit load data. The 802.11 data frame includes a receiver MAC address, a sender MAC address, and a frame body.
负载数据帧:本发明中称帧体包括IP数据包的802.11数据帧为负载数据帧。Load data frame: In the present invention, an 802.11 data frame in which a frame body includes an IP data packet is a payload data frame.
路由数据帧:本发明中称帧体包括链路状态报文的802.11数据帧为路由数据帧。Routing data frame: In the present invention, an 802.11 data frame in which a frame body includes a link state message is a routing data frame.
类型标记:本发明中用来区分负载数据帧和路由数据帧的标记,位于802.11数据帧的帧体中,分为路由数据标记和负载数据标记,负载数据标记表明802.11数据帧包括IP数据包,路由数据标记表明802.11数据帧包括链路状态报文。Type tag: A tag used to distinguish between a load data frame and a route data frame in the frame of the 802.11 data frame, which is divided into a route data tag and a load data tag. The load data tag indicates that the 802.11 data frame includes an IP data packet. The routing data flag indicates that the 802.11 data frame includes a link state message.
在无线自组织网络中,每个通信装置的通信范围是有限的,相距较远的通信装置之间若要进行通信就需要通过多跳的方式来传输数据,在多跳传输数据时数据传输路径上的每一个通信装置都需要从本通信装置的相邻一跳通信装置中选择一个通信装置作为下一跳,本发明需要解决的问题是在多个相邻一跳通信装置中选择最优的一个相邻一跳通信装置作为下一跳,此外,若本通信装置具有至少两个数据收发子单元,还需要在本通信装置的数据收发子单元中选取一个数据收发子单元来传输数据。In a wireless ad hoc network, the communication range of each communication device is limited, and communication between remote communication devices requires multi-hop transmission to transmit data, and data transmission path when multi-hop transmission data is required. Each of the communication devices needs to select one communication device from the adjacent one-hop communication device of the communication device as the next hop. The problem to be solved by the present invention is to select an optimal one among the plurality of adjacent one-hop communication devices. An adjacent one-hop communication device is used as the next hop. In addition, if the communication device has at least two data transceiving sub-units, it is also necessary to select a data transceiving sub-unit in the data transceiving sub-unit of the communication device to transmit data.
首先说明本发明的技术原理,本发明采用链路状态值综合描述本通信装置的下 一跳通信装置与本通信装置的数据收发子单元两个方面的因素,在多个本发明所述的基于无线自组织网络的移动通信装置形成的无线自组织网络中,每个移动通信装置周期性地产生链路状态报文并广播出去,上述每个移动通信装置周期性地产生并广播出去的链路状态报文的链路状态值为最大值,每个通信装置当接收到其它通信装置发送的链路状态报文(包括其它通信装置原始产生的链路状态报文和其它通信装置转发的链路状态报文)后计算并更新链路状态报文的链路状态值并将符合条件的更新后的链路状态报文以广播的形式转发出去,每个通信装置发送的链路状态报文(包括本通信装置原始产生的链路状态报文和本通信装置转发的链路状态报文)的链路状态值都表示本通信装置与目的通信装置(本通信装置发送的链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态。First, the technical principle of the present invention will be described. The present invention comprehensively describes the underlying communication device by using link state values. Two factors of the one-hop communication device and the data transceiving subunit of the communication device, in the wireless ad hoc network formed by the plurality of wireless ad hoc network-based mobile communication devices according to the present invention, each mobile communication device cycle Generating a link state message and broadcasting it, the link state value of the link state message periodically generated and broadcast by each of the mobile communication devices is a maximum value, and each communication device receives another communication device. The link state message sent (including the link state message originally generated by other communication devices and the link state message forwarded by other communication devices) calculates and updates the link state value of the link state message and meets the condition The updated link state message is forwarded in the form of a broadcast, and the link state message sent by each communication device (including the link state message originally generated by the communication device and the link status report forwarded by the communication device) The link state value of the text indicates that the communication device corresponds to the destination communication device (the original sender MAC address of the link state message sent by the communication device) Link status between the communication device).
在上述计算链路状态报文的链路状态值的过程中综合考虑两个方面的因素,一方面为此链路状态报文的直接发送通信装置(直接发送通信装置也是本通信装置的相邻一跳通信装置,直接发送通信装置指发送此链路状态报文并且此链路状态报文被本通信装置直接接收的通信装置,直接发送通信装置发送的链路状态报文的来源包括两种情况,一种情况是直接发送通信装置产生的链路状态报文,另一种情况是直接发送通信装置转发的其它通信装置发送的链路状态报文)与目的通信装置(此链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态,本通信装置接收到的链路状态报文的链路状态值即更新之前的链路状态报文的链路状态值可以表示此链路状态报文的直接发送通信装置与目的通信装置(此链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态。另一方面为本通信装置与此链路状态报文的直接发送通信装置之间的链路状态;本通信装置综合考虑上述两个方面的因素计算出链路状态值。因此,本通信装置计算出的链路状态值可以用来表示在以此链路状态报文的原始发送方MAC地址对应的通信装置作为目的通信装置并且以此链路状态报文的直接发送通信装置为下一跳通信装置并且通过选定的本通信装置的数据收发子单元发送数据时本通信装置与目的通信装置(此链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态,对于本通信装置而言,本通信装置若要向目的通信装置发送数据,需要从本通信装置的相邻一跳通信装置中选择一个相邻一跳通信装置作为下一跳,并且从本通信装置的数据收发子单元中选取一个数据收发子单元来发送数据,以确保本通信装置与目的通信装置之间的链路状态值最大,从而选择本通信装置与目的通信装置之间的最佳通信路径。In the above process of calculating the link state value of the link state message, two factors are comprehensively considered. On the one hand, the link state message directly transmits the communication device (the direct transmission communication device is also the neighbor of the communication device). A one-hop communication device, the direct transmission communication device refers to a communication device that transmits the link state message and the link state message is directly received by the communication device, and the source of the link state message directly sent by the communication device includes two types. In one case, one case is to directly transmit a link state message generated by the communication device, and the other case is to directly send a link state message sent by another communication device forwarded by the communication device) and the destination communication device (the link state report) The link state between the communication device corresponding to the original sender MAC address of the text, the link state value of the link state message received by the communication device, that is, the link state value of the link state message before the update may be a direct transmission communication device indicating the link state message and a destination communication device (a communication device corresponding to the original sender MAC address of the link state message) The link status. On the other hand, the communication state is the link state between the communication device and the direct transmission communication device of the link state message; the communication device calculates the link state value by considering the above two factors. Therefore, the link state value calculated by the communication device can be used to indicate that the communication device corresponding to the original sender MAC address of the link state message is used as the destination communication device and the direct transmission communication of the link state message is When the device is a next hop communication device and transmits data through the selected data transceiving subunit of the communication device, the communication device is in communication with the destination communication device (the communication device corresponding to the original sender MAC address of the link state message) Link status, for the communication device, if the communication device is to send data to the destination communication device, it is necessary to select a neighboring one-hop communication device as the next hop from the adjacent one-hop communication device of the communication device. And selecting a data transceiver subunit from the data transceiver subunit of the communication device to transmit data to ensure that the link state value between the communication device and the destination communication device is the largest, thereby selecting between the communication device and the destination communication device. The best communication path.
本通信装置将计算后的链路状态值更新到链路状态报文中并将符合条件的更新后的链路状态报文以广播的形式转发出去,这样,当本通信装置的相邻一跳通信装置接收到本通信装置发送的链路状态报文后,可以用本通信装置发送的链路状态报文的链路状态值表示本通信装置与目的通信装置(本通信装置发送的链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态,本通信装置的相邻一跳通信装置可以计算出本通信装置的相邻一跳通信装置与本通信装置之间的链路状态,进而,本通信装置的相邻一跳通信装置可以计算出其与目的通信装置(本通信装置发送的链路状态报文的原始发送方MAC地址对应的通信装置)之间的链路状态。The communication device updates the calculated link state value to the link state message and forwards the qualified updated link state message in a broadcast manner, so that when the communication device is adjacent to the hop After receiving the link state message sent by the communication device, the communication device may use the link state value of the link state message sent by the communication device to indicate the communication device and the destination communication device (the link state sent by the communication device) The link state between the communication device corresponding to the original sender MAC address of the message, the adjacent one-hop communication device of the communication device can calculate the relationship between the adjacent one-hop communication device of the communication device and the communication device Link state, and further, the adjacent one-hop communication device of the communication device can calculate a chain between the communication device and the destination communication device (the communication device corresponding to the original sender MAC address of the link state message transmitted by the communication device) Road status.
本发明所述的基于无线自组织网络的移动通信系统包括有若干个通信装置,每个通信装置都包括数据解析单元11、路由单元12和数据收发单元13。The wireless ad hoc network-based mobile communication system according to the present invention includes a plurality of communication devices, each of which includes a data parsing unit 11, a routing unit 12, and a data transceiving unit 13.
数据解析单元11包括数据封装子单元21、ARP子单元22和类型判别子单元23;IP数据包包括接收方的IP地址、发送方的IP地址以及数据部分,本通信装置 若要发送IP数据包,则需要根据接收方的IP地址确定接收方的MAC地址,此外路由单元12维护的路由信息也是基于目的通信装置的MAC地址的,因此数据解析单元11包括ARP子单元22,ARP子单元22基于ARP(Address Resolution Protocol,地址解析协议)维护IP地址与MAC地址的对应关系,并借助数据收发单元13发送和接收用来维护上述IP地址与MAC地址对应关系的ARP报文(图略),这属于本领域熟知的地址解析过程,在此不做详述。数据封装子单元21接收本通信装置需要发送的本通信装置产生的IP数据包,提取IP数据包中的接收方IP地址,向ARP子单元22发送包括上述接收方IP地址的查询信息,ARP子单元22向数据封装子单元21发送包括与查询信息中接收方IP地址对应的接收方MAC地址的查询响应信息,数据封装子单元21基于上述接收方MAC地址向路由单元12发送路由查询请求,路由查询请求包括与上述IP数据包的接收方IP地址对应的接收方MAC地址和本通信装置中的接收负载数据帧的数据收发子单元的MAC地址,在本通信装置需要发送本通信装置产生的IP数据包的情况下,路由查询请求中的接收负载数据帧的数据收发子单元MAC地址为空,在本通信装置需要发送非本通信装置产生的IP数据包(即本通信装置作为多跳路径中的一跳转发其它通信装置产生的IP数据包)的情况下,路由查询请求中的接收负载数据帧的数据收发子单元MAC地址不为空,其为本通信装置中实际接收负载数据帧的数据收发子单元的MAC地址。所以对于负载数据帧,路由单元12根据路由查询请求向数据封装子单元21发送路由查询响应,路由查询响应包括本通信装置选取的相邻一跳通信装置的MAC地址以及本通信装置中的数据收发子单元的MAC地址。数据封装子单元21根据接收到的路由查询响应构造负载数据帧,上述构造的负载数据帧的接收方MAC地址为路由查询响应中的相邻一跳通信装置的MAC地址,上述构造的负载数据帧的发送方MAC地址为路由查询响应中的数据收发子单元的MAC地址,上述构造的负载数据帧的帧体为负载数据标记和上述IP数据包。优选的,上述构造的负载数据帧的帧体中除负载数据标记和IP数据包外,还可以选择性的包括与IP数据包的接收方IP地址对应的接收方MAC地址项。若上述构造的负载数据帧的帧体中包括有IP数据包的接收方IP地址对应的接收方MAC地址项,则多跳传输路径上的其它装置接收到负载数据帧后,通过提取负载数据帧的帧体中含有的与IP数据包接收方IP地址对应的接收方MAC地址项就可以确定最终接收帧体中的IP数据包的通信装置的MAC地址,若上述构造的负载数据帧的帧体不包括与IP数据包的接收方IP地址对应的接收方MAC地址项,则多跳传输路径上的其它装置接收到负载数据帧后提取负载数据帧的帧体中的IP数据包的接收方IP地址再借助ARP子单元也可以确定最终接收帧体中的IP数据包的通信装置的MAC地址。以下以普通负载数据帧结构(不包括与IP数据包的接收方IP地址对应的接收方MAC地址项)阐述本发明的方案。数据封装子单元21将上述构造的负载数据帧发送至路由查询响应中的数据收发子单元MAC地址对应的数据收发子单元并由上述数据收发子单元发送出去。本发明中的路由单元维护了本通信装置最优的下一跳通信装置,基于上述路由查询响应中包括的相邻一跳通信装置的MAC地址及本通信装置中数据收发子单元的MAC地址发送负载数据帧,能够确保负载数据帧按照最优的通信路径与目的通信装置进行通信。The data parsing unit 11 includes a data encapsulating subunit 21, an ARP subunit 22, and a type discriminating subunit 23; the IP data packet includes an IP address of the receiving party, an IP address of the sender, and a data part, and the communication device To send an IP data packet, it is necessary to determine the MAC address of the recipient according to the IP address of the recipient. In addition, the routing information maintained by the routing unit 12 is also based on the MAC address of the destination communication device, so the data parsing unit 11 includes the ARP subunit 22. The ARP sub-unit 22 maintains the correspondence between the IP address and the MAC address based on the ARP (Address Resolution Protocol), and sends and receives the ARP packet for maintaining the correspondence between the IP address and the MAC address by using the data transceiving unit 13 (Slightly omitted), this is an address resolution process well known in the art and will not be described in detail herein. The data encapsulation subunit 21 receives the IP data packet generated by the communication device that the communication device needs to transmit, extracts the IP address of the receiver in the IP data packet, and sends the query information including the IP address of the receiver to the ARP subunit 22, the ARP sub- The unit 22 transmits query response information including the recipient MAC address corresponding to the recipient IP address in the query information to the data encapsulation subunit 21, and the data encapsulation subunit 21 sends a route query request to the routing unit 12 based on the receiver MAC address, and routes The query request includes a recipient MAC address corresponding to the recipient IP address of the IP packet and a MAC address of the data transceiver subunit of the received load data frame in the communication device, and the communication device needs to transmit the IP generated by the communication device. In the case of a data packet, the data transceiver sub-unit MAC address of the received load data frame in the route query request is empty, and the communication device needs to transmit an IP data packet generated by the non-local communication device (ie, the communication device is used as a multi-hop path) Receiving load in a routing query request in the case where one hop forwards an IP packet generated by another communication device) The data transceiving subunit MAC address of the data frame is not empty, which is the MAC address of the data transceiving subunit that actually receives the payload data frame in the communication device. Therefore, for the load data frame, the routing unit 12 sends a route query response to the data encapsulation sub-unit 21 according to the route query request, where the route query response includes the MAC address of the adjacent one-hop communication device selected by the communication device and the data transmission and reception in the communication device. The MAC address of the subunit. The data encapsulation sub-unit 21 constructs a load data frame according to the received route query response. The receiver MAC address of the above-configured load data frame is the MAC address of the adjacent one-hop communication device in the route query response, and the above-described load data frame is constructed. The sender MAC address is the MAC address of the data transceiving subunit in the routing query response, and the frame body of the payload data frame constructed above is the payload data tag and the above IP packet. Preferably, in the frame body of the payload data frame configured as described above, in addition to the payload data tag and the IP data packet, the receiver MAC address entry corresponding to the recipient IP address of the IP data packet may be selectively included. If the frame body of the load data frame configured as described above includes the receiver MAC address entry corresponding to the IP address of the receiver of the IP data packet, the other device on the multi-hop transmission path receives the load data frame and extracts the load data frame. The receiver MAC address entry corresponding to the IP packet receiver IP address included in the frame body can determine the MAC address of the communication device that finally receives the IP packet in the frame body, and the frame body of the payload data frame constructed as described above Excluding the receiver MAC address entry corresponding to the recipient IP address of the IP packet, the other device on the multi-hop transmission path receives the payload data frame and extracts the receiver IP of the IP packet in the frame body of the payload data frame. The address can then also determine the MAC address of the communication device that ultimately receives the IP packet in the frame body by means of the ARP subunit. The solution of the present invention is described below in the general payload data frame structure (excluding the recipient MAC address entry corresponding to the recipient IP address of the IP packet). The data encapsulation sub-unit 21 transmits the load data frame constructed as described above to the data transceiving sub-unit corresponding to the MAC address of the data transceiving sub-unit in the routing query response and transmits it by the data transceiving sub-unit. The routing unit in the present invention maintains the optimal next hop communication device of the communication device, based on the MAC address of the adjacent one hop communication device included in the route query response and the MAC address of the data transceiver subunit in the communication device. The load data frame ensures that the payload data frame communicates with the destination communication device in accordance with the optimal communication path.
本发明中的基于无线自组织网络中的移动通信系统发送和接收的802.11数据帧根据类型标记分为路由数据帧和负载数据帧,因此数据解析单元11包括类型判别子单元23对上述两种802.11数据帧进行分类,数据收发单元13的每个数据收发子单元接收到802.11数据帧后都向数据解析单元11发送接收数据信息,接收数据信息 包括数据收发子单元接收到的802.11数据帧和接收此802.11数据帧的数据收发子单元的MAC地址,类型判别子单元23判断上述802.11数据帧的帧体的类型标记,如果类型标记为路由数据标记,则向路由单元12发送路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,路由数据信息的路由数据帧为接收数据信息中的802.11数据帧,路由数据信息的数据收发子单元MAC地址为接收数据信息中的数据收发子单元MAC地址;类型判别子单元23判断上述802.11数据帧的帧体的类型标记,如果类型标记为负载数据标记,则向数据封装子单元21发送负载数据信息,负载数据信息包括上述负载数据帧和接收此负载数据帧的数据收发子单元MAC地址,负载数据信息的负载数据帧为接收数据信息中的802.11数据帧,负载数据信息的数据收发子单元MAC地址为接收数据信息中的数据收发子单元MAC地址。The 802.11 data frame transmitted and received by the mobile communication system in the wireless ad hoc network according to the present invention is divided into a routing data frame and a payload data frame according to the type flag, so the data parsing unit 11 includes the type discriminating subunit 23 for the above two types of 802.11. The data frames are classified, and each data transceiving subunit of the data transceiving unit 13 transmits the received data information to the data parsing unit 11 after receiving the 802.11 data frame, and receives the data information. The 802.11 data frame received by the data transceiving subunit and the MAC address of the data transceiving subunit receiving the 802.11 data frame, the type discriminating subunit 23 determining the type tag of the frame body of the 802.11 data frame, if the type tag is a routing data tag And sending routing data information to the routing unit 12, the routing data information includes a routing data frame and a MAC address of the data transceiver subunit receiving the routing data frame, and the routing data frame of the routing data information is an 802.11 data frame in the received data information, The data transceiving subunit MAC address of the routing data information is the data transceiving subunit MAC address in the received data information; the type discriminating subunit 23 determines the type tag of the frame body of the 802.11 data frame, and if the type tag is the payload data tag, The data encapsulation sub-unit 21 sends load data information, where the load data information includes the load data frame and the data transceiver sub-unit MAC address of the load data frame, and the load data frame of the load data information is an 802.11 data frame in the received data information, and the load Data transceiver data unit sub address MAC address Subunit MAC address data transceiver receives data information.
数据封装子单元21判断从类型判别子单元23接收到的负载数据信息中的负载数据帧,提取负载数据帧中的IP数据包:The data encapsulation subunit 21 judges the payload data frame in the payload data information received from the type discriminating subunit 23, and extracts the IP data packet in the payload data frame:
(1)若IP数据包的接收方的IP地址为数据收发单元13的任一数据收发子单元的IP地址或IP数据包的接收方IP地址为广播地址,说明此IP数据包是发向本通信装置的,则提取负载数据帧中的IP数据包并交付给上层,完成数据接收通信。(1) If the IP address of the receiver of the IP data packet is the IP address of any data transceiving subunit of the data transceiving unit 13 or the IP address of the receiver of the IP data packet is a broadcast address, it indicates that the IP data packet is sent to the present The communication device extracts the IP data packet in the payload data frame and delivers it to the upper layer to complete the data reception communication.
(2)若IP数据包的接收方的IP地址不为数据收发单元13的任一数据收发子单元的IP地址,表明本通信装置为多跳传输路径上的一跳,本通信装置需要转发此IP数据包,具体的,数据封装子单元21提取IP数据包中的接收方IP地址,向ARP子单元22发送包括上述接收方IP地址的查询信息,ARP子单元22向数据封装子单元21发送包括与查询信息中接收方IP地址对应的接收方MAC地址的查询响应信息,这样,可以确定最终接收此IP数据包的通信装置的MAC地址,数据封装子单元21向路由单元12发送路由查询请求,上述路由查询请求的接收方MAC地址为IP数据包的接收方IP地址对应的接收方MAC地址,上述路由查询请求的数据收发子单元MAC地址为负载数据信息中的数据收发子单元MAC地址,路由单元12根据路由查询请求向数据封装子单元21发送路由查询响应,路由查询响应包括本通信装置选取的相邻一跳通信装置的MAC地址以及本通信装置中的数据收发子单元的MAC地址,数据封装子单元21根据接收到的路由查询响应构造负载数据帧,上述构造的负载数据帧的接收方MAC地址为路由查询响应中的相邻一跳通信装置的MAC地址,上述构造的负载数据帧的发送方MAC地址为路由查询响应中的数据收发子单元的MAC地址,上述构造的负载数据帧的帧体为负载数据标记和上述IP数据包,数据封装子单元21将上述构造的负载数据帧发送至路由查询响应中的数据收发子单元MAC地址对应的数据收发子单元并由上述数据收发子单元发送出去,这样,本通信装置将IP数据包转发出去。(2) If the IP address of the receiver of the IP data packet is not the IP address of any data transceiver unit of the data transceiver unit 13, indicating that the communication device is a hop on the multi-hop transmission path, the communication device needs to forward the The IP data packet, specifically, the data encapsulation sub-unit 21 extracts the recipient IP address in the IP data packet, and sends the query information including the above-mentioned recipient IP address to the ARP sub-unit 22, and the ARP sub-unit 22 sends the data to the data encapsulation sub-unit 21. The query response information including the recipient MAC address corresponding to the recipient IP address in the query information, so that the MAC address of the communication device that finally receives the IP data packet can be determined, and the data encapsulation sub-unit 21 sends a route query request to the routing unit 12. The sender MAC address of the route query request is the receiver MAC address corresponding to the receiver IP address of the IP data packet, and the data transceiver sub-unit MAC address of the route query request is the data transceiver sub-unit MAC address in the load data information. The routing unit 12 sends a route query response to the data encapsulation sub-unit 21 according to the route query request, and the route query response includes the communication device selection. Taking the MAC address of the adjacent one-hop communication device and the MAC address of the data transceiving subunit in the communication device, the data encapsulation subunit 21 constructs a load data frame according to the received route query response, and receiving the payload data frame of the above configuration The party MAC address is the MAC address of the neighboring one-hop communication device in the route query response, and the sender MAC address of the configured payload data frame is the MAC address of the data transceiver subunit in the route query response, and the load data frame constructed as described above The frame body is the payload data tag and the IP data packet, and the data encapsulating sub-unit 21 transmits the load data frame constructed as described above to the data transceiving sub-unit corresponding to the MAC address of the data transceiving subunit in the routing query response and is configured by the data transceiving unit. The unit transmits out so that the communication device forwards the IP data packet.
参见图3,路由单元12包括路由信息维护子单元31和原始路由数据帧产生子单元32,路由信息维护子单元31接收并处理发送自数据解析单元11的路由数据信息以维护路由信息,路由信息维护子单元31判断路由数据信息是否需要转发,若需要转发则基于路由数据信息构造转发路由数据帧并发送至数据收发单元13的主数据收发子单元;路由信息维护子单元31接收发送自数据解析单元11的路由查询请求,路由信息维护子单元31根据路由查询请求向数据解析单元11发送路由查询响应,路由查询响应包括本通信装置选取的相邻一跳通信装置的MAC地址以及本通信装置选取的本通信装置中的数据收发子单元的MAC地址;原始路由数据帧产生子单元32按照一定的时间间隔周期性地构造原始路由数据帧并发送至数据收发单 元13的各个数据收发子单元。Referring to FIG. 3, the routing unit 12 includes a routing information maintenance subunit 31 and an original routing data frame generation subunit 32. The routing information maintenance subunit 31 receives and processes the routing data information sent from the data parsing unit 11 to maintain routing information and routing information. The maintenance subunit 31 determines whether the routing data information needs to be forwarded. If forwarding is required, the routing data frame is constructed based on the routing data information and sent to the primary data transceiver unit of the data transceiver unit 13; the routing information maintenance subunit 31 receives the data analysis. The route query request of the unit 11, the routing information maintenance sub-unit 31 sends a route query response to the data parsing unit 11 according to the route query request, and the route query response includes the MAC address of the adjacent one-hop communication device selected by the communication device and the communication device selection. The MAC address of the data transceiving subunit in the present communication device; the original routing data frame generating subunit 32 periodically constructs the original routing data frame and sends it to the data transceiving list at a certain time interval. Each data transceiving subunit of element 13.
原始路由数据帧产生子单元32按照一定的时间间隔周期性地构造路由数据帧并分别发送至本通信装置的数据收发单元13的各个数据收发子单元,称原始路由数据帧产生子单元32构造的路由数据帧(未经过其它通信装置转发的路由数据帧)为原始路由数据帧,上述原始路由数据帧的接收方MAC地址为广播地址FF:FF:FF:FF:FF:FF,上述原始路由数据帧的发送方MAC地址为本通信装置中的数据收发单元13中对应的数据收发子单元的MAC地址,上述原始路由数据帧的帧体包括路由数据标记和链路状态报文,上述原始路由数据帧中的链路状态报文的原始发送方MAC地址为本通信装置的数据收发单元13中对应的数据收发子单元的MAC地址,优选的发送至主数据收发子单元的原始路由数据帧的链路状态报文的传输距离大于发送至从数据收发子单元的原始路由数据帧的链路状态报文的传输距离;上述原始路由数据帧中的链路状态报文中的链路状态值为最大值,表明本通信装置与目的通信装置(此链路状态报文的原始发送方MAC地址对应的通信装置,也就是本通信装置)之间的链路状态是最好的;上述原始路由数据帧的链路状态报文的序列号优选按照递增方式设置,即原始路由数据帧产生子单元32每次新产生的路由数据帧的链路状态报文中的序列号在原有基础上(上一次针对相同数据收发子单元产生的路由数据帧的链路状态报文中的序列号上)按照固定步长递增的方式变化,优选的具有同一发送方MAC地址的原始路由数据帧中的链路状态报文中的序列号逐步递增,更优选的每次增加1(但并不以此为限,可以增加其他固定步长),路由数据帧的链路状态报文中的序列号在转发过程中不再发生变化。当本通信装置的相邻一跳通信装置收到本通信装置发出的原始路由数据帧后,本通信装置的相邻一跳通信装置计算出其与本通信装置之间的链路状态,然后本通信装置的相邻一跳通信装置将本通信装置发出的原始路由数据帧中的链路状态报文中的链路状态值更新再将更新后的链路状态报文转发出去,然后,本通信装置的相邻两跳通信装置会接收、更新并转发上述本通信装置的相邻一跳通信装置转发的链路状态报文,本通信装置的相邻两跳通信装置再计算本通信装置的相邻两跳通信装置与本通信装置之间的链路状态,这样,通过多跳转发的方式,本通信装置产生的原始路由数据帧中的链路状态报文会被其它通信装置接收,其它通信装置可以计算出与本通信装置之间的链路状态,上述其它通信装置计算出的与本通信装置之间的链路状态作为其它通信装置以本通信装置为目的通信装置时选择最优下一跳的依据,本通信装置周期性地发送原始路由数据帧可以保证其它通信装置计算出的与本通信装置之间的链路状态的实时性,适用于移动场景中自组织网络拓扑动态变化的情况。The original routing data frame generating sub-unit 32 periodically constructs the routing data frames according to a certain time interval and respectively sends them to the respective data transceiving sub-units of the data transceiving unit 13 of the communication device, which is called the original routing data frame generating sub-unit 32. The routing data frame (the routing data frame that has not been forwarded by other communication devices) is the original routing data frame, and the receiving MAC address of the original routing data frame is the broadcast address FF: FF: FF: FF: FF: FF, the original routing data. The sender MAC address of the frame is the MAC address of the corresponding data transceiver unit in the data transceiver unit 13 in the communication device, and the frame body of the original route data frame includes a route data tag and a link state message, and the original route data. The original sender MAC address of the link state message in the frame is the MAC address of the corresponding data transceiving subunit in the data transceiving unit 13 of the communication device, and preferably the chain of the original routing data frame sent to the main data transceiving subunit. The transmission distance of the road state message is greater than the link status report sent to the original routing data frame of the data transceiver subunit The transmission distance; the link state value in the link state message in the original routing data frame is the maximum value, indicating that the communication device and the destination communication device (the communication corresponding to the original sender MAC address of the link state message) The link state between the device, that is, the communication device, is the best; the sequence number of the link state message of the original routed data frame is preferably set in an incremental manner, that is, the original route data frame generation subunit 32 each time The sequence number in the link state packet of the newly generated routing data frame is based on the original number (on the sequence number in the link state message of the routing data frame generated by the same data transceiver subunit last time) according to the fixed step size. In the incremental manner, the sequence number in the link state message in the original routing data frame with the same sender MAC address is gradually increased, and the preferred one is increased by one each time (but not limited thereto, it can be increased. Other fixed step sizes), the sequence number in the link state message of the routing data frame does not change during the forwarding process. After the adjacent one-hop communication device of the communication device receives the original routing data frame sent by the communication device, the adjacent one-hop communication device of the communication device calculates the link state between the communication device and the communication device, and then The adjacent one-hop communication device of the communication device updates the link state value in the link state message in the original routing data frame sent by the communication device, and then forwards the updated link state message, and then the communication The adjacent two-hop communication device of the device receives, updates, and forwards the link state message forwarded by the adjacent one-hop communication device of the communication device, and the adjacent two-hop communication device of the communication device recalculates the phase of the communication device. The link state between the adjacent two-hop communication device and the communication device, so that the link state message in the original routing data frame generated by the communication device is received by other communication devices by means of multi-hop forwarding, and the like The communication device can calculate a link state with the communication device, and the link state calculated by the other communication device with the communication device as another communication device When the communication device is used as the communication device for the communication device, the basis of the optimal next hop is selected, and the communication device periodically transmits the original routing data frame to ensure the real-time performance of the link state calculated by the other communication device and the communication device. Applicable to the dynamic change of the self-organizing network topology in the mobile scene.
参见图4,数据收发单元13包括至少一个数据收发子单元,系统初始化时选取其中第一个初始化的数据收发子单元为主数据收发子单元,其余数据收发子单元为从数据收发子单元,为叙述简便图4中用四个数据收发子单元表示至少一个数据收发子单元,主数据收发子单元为第一数据收发子单元41,从数据收发子单元为第二数据收发子单元42、第三数据收发子单元43和第四数据收发子单元44,每个数据收发子单元都接收路由单元12发送的原始路由数据帧并按照802.11标准将原始路由数据帧发送出去,每个数据收发子单元发送的原始路由数据帧中的发送方MAC地址为该数据收发子单元的MAC地址,每个数据收发子单元新发送的原始路由数据帧中的链路状态报文中的序列号在该数据收发子单元发送的前一个原始路由数据帧中的链路状态报文中的序列号的基础上优选的递增1。主数据收发子单元接收路由单元12发送的转发路由数据帧并按照802.11标准将转发路由数据帧发送出去, 每个数据收发子单元接收到802.11数据帧后都向数据解析单元11发送接收数据信息,接收数据信息包括数据收发子单元接收到的802.11数据帧和接收此802.11数据帧的数据收发子单元的MAC地址,每个数据收发子单元都按照802.11标准在ad-hoc模式下进行无线通信,每个数据收发子单元都可以发送和接收802.11数据帧,每个数据收发子单元都具有MAC地址和IP地址。Referring to FIG. 4, the data transceiving unit 13 includes at least one data transceiving subunit. When the system is initialized, the first data transceiving subunit is initialized as the main data transceiving subunit, and the remaining data transceiving subunits are slave data transceiving subunits. BRIEF DESCRIPTION OF THE DRAWINGS In FIG. 4, at least one data transceiving subunit is represented by four data transceiving subunits, the main data transceiving subunit is a first data transceiving subunit 41, and the slave data transceiving subunit is a second data transceiving subunit 42 and a third. The data transceiving subunit 43 and the fourth data transceiving subunit 44 each receive the original routing data frame sent by the routing unit 12 and send the original routing data frame according to the 802.11 standard, and each data transceiving subunit sends The sender MAC address in the original routing data frame is the MAC address of the data transceiver subunit, and the sequence number in the link state message in the original routing data frame newly sent by each data transceiver subunit is in the data transceiver. Preferably, the serial number in the link state message in the previous original routing data frame sent by the unit is based on Incremented. The primary data transceiver subunit receives the forwarded route data frame sent by the routing unit 12 and sends the forwarded route data frame according to the 802.11 standard. Each data transceiver subunit transmits the received data information to the data parsing unit 11 after receiving the 802.11 data frame, and the received data information includes the 802.11 data frame received by the data transceiving subunit and the MAC of the data transceiving subunit receiving the 802.11 data frame. Address, each data transceiver sub-unit performs wireless communication in ad-hoc mode according to the 802.11 standard, and each data transceiving sub-unit can transmit and receive 802.11 data frames, each of which has a MAC address and an IP address. .
所述路由信息维护子单元31接收并处理发送自数据解析单元11的路由数据信息以维护路由信息,路由信息维护子单元31判断路由数据信息是否需要转发,若需要转发则基于路由数据信息构造转发路由数据帧并发送至数据收发单元13的主数据收发子单元;路由信息维护子单元31接收发送自数据解析单元11的路由查询请求,路由信息维护子单元31根据路由查询请求向数据解析单元11发送路由查询响应。作为本发明重要发明之处的路由信息维护子单元31,主要用于处理发送自其它通信装置的链路状态报文(包括其它通信装置产生的链路状态报文和其它通信装置转发的链路状态报文),路由信息维护子单元31通过处理上述链路状态报文计算本通信装置与其它通信装置之间的链路状态。具体的如附图5所示,所述路由信息维护子单元31包括预处理模块51、收发信息存储模块52、链路状态计算模块53、路由表模块54、转发模块55和定时更新模块56,下面详细描述本发明创新的各模块的工作过程。The routing information maintenance sub-unit 31 receives and processes the routing data information sent from the data parsing unit 11 to maintain routing information, and the routing information maintenance sub-unit 31 determines whether the routing data information needs to be forwarded. If forwarding is required, the forwarding is based on the routing data information. The routing data frame is sent to the primary data transceiving subunit of the data transceiving unit 13; the routing information maintenance subunit 31 receives the routing query request sent from the data parsing unit 11, and the routing information maintenance subunit 31 proceeds to the data parsing unit 11 according to the routing query request. Send a route query response. The routing information maintenance sub-unit 31, which is an important invention of the present invention, is mainly used for processing link state messages transmitted from other communication devices (including link state messages generated by other communication devices and links forwarded by other communication devices). The status message), the routing information maintenance sub-unit 31 calculates the link status between the communication device and the other communication device by processing the link status message. Specifically, as shown in FIG. 5, the routing information maintenance subunit 31 includes a preprocessing module 51, a transceiver information storage module 52, a link state calculation module 53, a routing table module 54, a forwarding module 55, and a timing update module 56. The working process of each module of the inventive innovation will be described in detail below.
预处理模块51接收发送自数据解析单元11的路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,预处理模块51需要判定本通信装置是否需要进一步处理上述路由数据信息;在本发明中的每个通信装置都在按照一定的时间间隔周期性地产生原始路由数据帧,原始路由数据帧中的链路状态报文可能通过不同的多跳路径传输从而被本通信装置接收,本通信装置需要保证进一步处理的路由数据信息是最新的,所以路由信息维护子单元31包括收发信息存储模块52,收发信息存储模块52用来记录本通信装置已经处理过的路由数据信息的情况,这样预处理模块51借助收发信息存储模块52判断上述路由数据信息是否是最新的,此外在本通信装置具有至少两个数据收发子单元时,存在本通信装置发出的路由数据帧被本通信装置接收的情况,所以预处理模块51也需要对这种情况进行判断。预处理模块51接收发送自数据解析单元11的路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,预处理模块51向收发信息存储模块52发送有效判定请求,有效判定请求包括接收时间、上述路由数据帧的链路状态报文的原始发送方MAC地址和上述路由数据帧的链路状态报文的序列号,上述接收时间为预处理模块51接收到路由数据信息时的的系统时间,收发信息存储模块52根据有效判定请求向预处理模块51发送判定应答,判定应答分为有效判定应答和无效判定应答两种。The pre-processing module 51 receives the routing data information sent from the data parsing unit 11, the routing data information includes a routing data frame and a MAC address of the data transceiving subunit receiving the routing data frame, and the pre-processing module 51 needs to determine whether the communication device needs further Processing the routing data information; each communication device in the present invention periodically generates the original routing data frame according to a certain time interval, and the link state message in the original routing data frame may be transmitted through different multi-hop paths. Therefore, the communication device needs to ensure that the further processed routing data information is up-to-date, so the routing information maintenance sub-unit 31 includes the transceiver information storage module 52, and the transceiver information storage module 52 is used to record that the communication device has been processed. In the case of routing data information, the pre-processing module 51 determines whether the routing data information is up-to-date by means of the transceiver information storage module 52. In addition, when the communication device has at least two data transceiving sub-units, there is a route sent by the communication device. The data frame is received by the communication device In the case, the pre-processing module 51 also needs to judge this situation. The pre-processing module 51 receives the routing data information sent from the data parsing unit 11, the routing data information including the routing data frame and the MAC address of the data transceiving sub-unit receiving the routing data frame, and the pre-processing module 51 transmits the valid to the trans-transmitting information storage module 52. Determining the request, the valid determination request includes a receiving time, an original sender MAC address of the link state message of the routing data frame, and a sequence number of the link state message of the routing data frame, where the receiving time is received by the preprocessing module 51 The transmission/reception information storage module 52 transmits a determination response to the pre-processing module 51 based on the valid determination request to the system time when the data information is routed, and the determination response is classified into two types: a valid determination response and an invalidation response.
收发信息存储模块52维护第一绑定表,第一绑定表记录原始发送方MAC地址、序列号和最新接收时间,收发信息存储模块52基于预处理模块51发送的有效判定请求来维护第一绑定表。收发信息存储模块52在第一绑定表中查找原始发送方MAC地址为有效判定请求中路由数据帧的链路状态报文的原始发送方MAC地址的表项,若没有查找到对应的表项,说明上述路由数据信息是最新的,则在表中新增一项记录并向预处理模块51发送有效判定应答,上述新增记录的原始发送方MAC地址、序列号和最新接收时间分别为有效判定请求中的原始发送方MAC地址、序列号和接收时间;收发信息存储模块52若在第一绑定表中查找到原始发送方MAC地址为有效判定请求中的原始发送方MAC地址的表项,则比较上述表项的序列号 与有效判定请求中的序列号的大小关系,若上述表项的序列号小于有效判定请求中的序列号,说明上述路由数据信息是最新的,因为如之前所述的针对每个数据收发子单元每次新产生原始路由数据帧时其中的序列号增加1,则将上述表项中的序列号和最新接收时间更新为有效判定请求中的序列号和接收时间,并向预处理模块51发送有效判定应答,若上述表项的序列号大于或者等于有效判定请求中的序列号,说明上述路由数据信息不是最新的,则向预处理模块51发送无效判定应答。The transceiver information storage module 52 maintains a first binding table, the first binding table records the original sender MAC address, the serial number, and the latest receiving time, and the transceiver information storage module 52 maintains the first based on the valid determination request sent by the preprocessing module 51. Bind the table. The transceiver information storage module 52 searches the first binding table for the entry of the original sender MAC address of the link state packet of the routing data frame in the original determination sender MAC address, if no corresponding entry is found. If the routing data information is the latest, a new record is added to the table and a valid decision response is sent to the pre-processing module 51. The original sender MAC address, serial number, and latest receiving time of the newly added record are respectively valid. Determining the original sender MAC address, the sequence number, and the receiving time in the request; the transceiver information storage module 52 finds an entry in the first binding table that the original sender MAC address is the original sender MAC address in the valid determination request. , compare the serial number of the above entry If the sequence number of the entry is smaller than the sequence number in the valid decision request, the routing data information is the latest because the sub-unit for each data is as described above. Each time the sequence number of the original routing data frame is newly increased, the sequence number and the latest receiving time in the above entry are updated to the serial number and the receiving time in the valid determination request, and are sent to the preprocessing module 51. If the sequence number of the entry is greater than or equal to the sequence number in the valid determination request, and the routing data information is not up-to-date, the invalidation response is sent to the pre-processing module 51.
在本通信装置具有一个数据收发子单元时,若预处理模块51从收发信息存储模块52接收到无效判定应答,则将路由数据信息丢弃,预处理过程结束,若预处理模块51从收发信息存储模块52接收到有效判定应答,则将路由数据信息发送至链路状态计算模块53;在本通信装置具有至少两个数据收发子单元时,若预处理模块51从收发信息存储模块52接收到无效判定应答,则将路由数据信息丢弃,预处理过程结束,若预处理模块51从收发信息存储模块52接收到有效判定应答,预处理模块51还需要进一步判断路由数据信息中的路由数据帧的发送方MAC地址是否为本通信装置的数据收发单元13的任一数据收发子单元的MAC地址,若路由数据信息中的路由数据帧的发送方MAC地址为本通信装置的数据收发单元13的任一数据收发子单元的MAC地址,表明上述路由数据信息中的路由数据帧是本通信装置发出同时被本通信装置自身接收的,这种情况下说明该路由数据帧不涉及本通信装置与其他通信装置间的通信过程,其不会提供反应本通信装置与其他通信装置间通信状态的信息,无需对其做进一步处理,直接将此路由数据信息丢弃,预处理过程结束;若路由数据信息中的路由数据帧的发送方MAC地址不为本通信装置的数据收发单元13的任一数据收发子单元的MAC地址,表明上述路由数据信息中的路由数据帧不是本通信装置发出的,则将路由数据信息发送至链路状态计算模块53,这样本通信装置接收到的其他通信装置发送来的所有最新路由数据信息中的路由数据帧的链路状态报文中的原始发送方MAC地址、链路状态报文中的序列号和最新接收时间都由收发信息存储模块52记录在第一绑定表中,同时这些最新的路由数据信息经预处理模块发送至链路状态计算模块53。When the communication device has a data transceiving subunit, if the preprocessing module 51 receives the invalidation response from the transceiving information storage module 52, the routing data information is discarded, and the preprocessing process ends, if the preprocessing module 51 is configured to receive and receive information. When the module 52 receives the valid decision response, the routing data information is sent to the link state calculation module 53. If the communication device has at least two data transceiver subunits, if the preprocessing module 51 receives the invalid from the transceiver information storage module 52 If the response is determined, the routing data information is discarded, and the preprocessing process ends. If the preprocessing module 51 receives the valid decision response from the transceiver information storage module 52, the preprocessing module 51 further needs to determine the transmission of the routing data frame in the routing data information. Whether the party MAC address is the MAC address of any data transceiving subunit of the data transceiving unit 13 of the communication device, and if the sender MAC address of the routing data frame in the routing data information is any of the data transceiving units 13 of the communication device The MAC address of the data transceiver subunit indicates the number of routes in the routing data information. The frame is sent by the communication device and received by the communication device itself. In this case, the routing data frame does not involve the communication process between the communication device and other communication devices, and does not provide a response to the communication device and other communication devices. The information of the communication status does not need to be further processed, and the routing data information is directly discarded, and the preprocessing process ends; if the sender MAC address of the routing data frame in the routing data information is not the data transceiving unit 13 of the communication device The MAC address of any data transceiver subunit indicates that the routing data frame in the routing data information is not sent by the communication device, and the routing data information is sent to the link state calculation module 53, so that the communication device receives the other The original sender MAC address, the sequence number in the link state message, and the latest reception time in the link state message of the route data frame in all the latest route data information sent by the communication device are recorded by the transceiver information storage module 52. In the first binding table, the latest routing data information is sent through the pre-processing module. Calculation module 53 to the link state.
链路状态计算模块53根据路由数据信息计算链路状态值,本通信装置的相邻一跳通信装置与目的通信装置之间的链路状态用路由数据信息中的路由数据帧的链路状态报文的链路状态值表示,因此,本通信装置需要计算本通信装置与相邻一跳通信装置之间的链路状态,相对于本通信装置而言,本通信装置与本通信装置的相邻一跳通信装置之间的链路可以分为发送链路和接收链路,在本发明中,本通信装置与本通信装置的相邻一跳通信装置之间的链路状态指的是上述发送链路的链路状态;本发明采用本通信装置发送的数据被本通信装置的相邻一跳通信装置成功接收(直接或间接)并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态的叠加值。具体的可以采用本通信装置发送的本通信装置产生的原始路由数据帧的链路状态报文被本通信装置的相邻一跳通信装置成功接收并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态的叠加值,也可以采用本通信装置发送的其它通信装置产生的链路状态报文被本通信装置的相邻一跳通信装置成功接收并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态的叠加值。优选的,采用本通信装置发送 的本通信装置原始产生的链路状态报文被本通信装置的相邻一跳通信装置成功接收并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态的叠加值,以下阐述本发明原理的内容采用的是上述优选的方法。本发明采用本通信装置的相邻一跳通信装置发送的数据被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的接收链路状态的接收值,具体的可以采用本通信装置的相邻一跳通信装置发送的路由数据帧的链路状态报文(包括本通信装置的相邻一跳通信装置原始产生的路由数据帧的链路状态报文和其转发的其它通信装置原始产生的路由数据帧的链路状态报文)被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的接收链路状态的接收值,优选的采用本通信装置的相邻一跳通信装置发送的非本通信装置原始产生的链路状态报文被本通信装置成功接收的概率来表示本通信装置与本通信装置的相邻一跳通信装置之间的接收链路状态的接收值。因无法直接计算本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态,因此本发明采用间接计算的方法,首先本发明计算本通信装置发送的数据(优选原始路由数据帧的链路状态报文)被本通信装置的相邻一跳通信装置成功接收并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的叠加概率,用以表示本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态的叠加值,这种叠加概率可表示为Y=P1*P2,其中P1表示本通信装置发送的数据被本通信装置的相邻一跳通信装置成功接收的本通信装置的成功发送概率,P2表示本通信装置的相邻一跳通信装置发送的数据被本通信装置成功接收的本通信装置的成功接收概率。因此上述叠加概率即可反应本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态与接收链路状态。进一步的本发明计算本通信装置的相邻一跳通信装置发送的数据(不一定转发本通信装置发送的数据)被本通信装置成功接收的本通信装置的成功接收概率P2′,用以表示本通信装置与本通信装置的相邻一跳通信装置之间的接收链路状态的接收值。最后基于上述叠加概率和成功接收概率计算得到本通信装置发送的数据被本通信装置的相邻一跳通信装置成功接收的本通信装置的成功发送概率:(P1*P2)/P2′,这种成功发送概率可以反应本通信装置与本通信装置的相邻一跳通信装置之间的发送链路状态,成功发送概率高的相邻一跳通信装置将作为本通信装置发送数据时择优选择的下一跳的通信装置。下面将具体描述这一原理过程的创新实现方案。The link state calculation module 53 calculates the link state value according to the route data information, and the link state report of the route data frame in the route state information of the link state between the adjacent one-hop communication device and the destination communication device of the communication device The link state value of the text indicates that, therefore, the communication device needs to calculate the link state between the communication device and the adjacent one-hop communication device, and the communication device is adjacent to the communication device with respect to the communication device. The link between the one-hop communication devices can be divided into a transmission link and a reception link. In the present invention, the link state between the communication device and the adjacent one-hop communication device of the communication device refers to the above transmission. Link state of the link; the data transmitted by the communication device of the present invention is successfully received (directly or indirectly) by the adjacent one-hop communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device and is again The probability of successful reception by the communication device indicates the superimposed value of the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device. Specifically, the link state message of the original routing data frame generated by the communication device that can be sent by the communication device is successfully received by the adjacent one-hop communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device. And the probability of successful reception by the communication device indicates the superposition value of the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device, and may also be sent by the communication device. The link status message generated by the other communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is again successfully received by the communication device to indicate the communication. The superimposed value of the transmit link state and the receive link state between the device and the adjacent one-hop communication device of the present communication device. Preferably, the communication device is used for sending The link state message originally generated by the communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is further represented by the probability that the communication device successfully receives the communication device. The superimposed values of the transmit link state and the receive link state between the present communication device and the adjacent one-hop communication device of the present communication device, which are described below in the context of the principles of the present invention. The present invention uses the probability that the data transmitted by the adjacent one-hop communication device of the communication device is successfully received by the communication device to indicate the reception value of the receiving link state between the communication device and the adjacent one-hop communication device of the communication device. Specifically, the link state message of the routing data frame sent by the adjacent one-hop communication device of the communication device (including the link state message of the routing data frame originally generated by the adjacent one-hop communication device of the communication device) The link state message of the routing data frame originally generated by the other communication device forwarded by the other communication device is successfully received by the communication device to indicate the receiving link between the communication device and the adjacent one-hop communication device of the communication device The received value of the state, preferably the probability that the link state message originally generated by the non-local communication device transmitted by the adjacent one-hop communication device of the communication device is successfully received by the communication device indicates the communication device and the communication device Received value of the receive link state between adjacent one-hop communication devices. Since the transmission link state between the communication device and the adjacent one-hop communication device of the communication device cannot be directly calculated, the present invention adopts an indirect calculation method. First, the present invention calculates data transmitted by the communication device (preferably original routing data). The link state message of the frame) is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is successfully received by the communication device to indicate the present a superposition value of a transmission link state and a reception link state between the communication device and the adjacent one-hop communication device of the communication device, the superposition probability may be expressed as Y=P1*P2, where P1 represents the transmission by the communication device The successful transmission probability of the communication device successfully received by the adjacent one-hop communication device of the communication device, and P2 indicates the success of the communication device successfully received by the communication device by the adjacent one-hop communication device of the communication device. Receive probability. Therefore, the above superposition probability can reflect the transmission link state and the reception link state between the communication device and the adjacent one-hop communication device of the communication device. Further, the present invention calculates the successful reception probability P2' of the communication device successfully received by the communication device by the data transmitted by the adjacent one-hop communication device of the communication device (not necessarily forwarding the data transmitted by the communication device), and is used to indicate the present The received value of the receive link state between the communication device and the adjacent one-hop communication device of the present communication device. Finally, based on the superposition probability and the successful reception probability, the successful transmission probability of the communication device successfully received by the adjacent one-hop communication device of the communication device by the communication device is calculated: (P1*P2)/P2'. The probability of successful transmission may reflect the status of the transmission link between the communication device and the adjacent one-hop communication device of the communication device, and the adjacent one-hop communication device with a high probability of successful transmission will be selected as the preferred selection when transmitting the data by the communication device. One-hop communication device. An innovative implementation of this principle process will be described in detail below.
链路状态计算模块53维护第二绑定表,第二绑定表用来记录上述叠加值的对应关系,第二绑定表的表项包括数据收发子单元MAC地址、候选路由MAC地址、叠加值,对于表中的每一项记录都维护一个叠加队列,第二绑定表中的每项记录对应的叠加队列长度相同,叠加队列中存储链路状态报文的序列号,用叠加队列中序列号的数量与叠加队列长度的比值反应本通信装置发送的数据被本通信装置的相邻一跳通信装置成功接收并且被本通信装置的相邻一跳通信装置转发并且又被本通信装置成功接收的叠加概率,叠加队列中序列号的数量与叠加队列长度的比值即为对应表项的叠加值,第二绑定表中的数据收发子单元MAC地址相同的表项对应的叠加队列的序列号移入、移出过程保持同步,叠加队列中的元素移入、移出叠加队列按照先入先出的原则。The link state calculation module 53 maintains a second binding table, where the second binding table is used to record the correspondence between the superposition values, and the entries of the second binding table include a data transceiver sub-unit MAC address, a candidate routing MAC address, and an overlay. The value maintains an overlay queue for each record in the table. The length of the overlay queue corresponding to each record in the second binding table is the same. The sequence number of the link state message is stored in the overlay queue. The ratio of the number of serial numbers to the length of the superimposed queue reflects that the data transmitted by the communication device is successfully received by the adjacent one-hop communication device of the communication device and is forwarded by the adjacent one-hop communication device of the communication device and is successfully succeeded by the communication device. The superimposed probability of the received, the ratio of the number of the serial number in the superimposed queue to the length of the superimposed queue is the superimposed value of the corresponding entry, and the sequence of the superimposed queue corresponding to the entry with the same MAC address of the data transceiving subunit in the second binding table The number shifting in and out process is kept in sync, and the elements in the stacking queue are moved in and out of the stacking queue according to the principle of first in, first out.
链路状态计算模块53维护第三绑定表,第三绑定表用来记录上述接收值的对应关系,第三绑定表的表项包括目的MAC地址、数据收发子单元MAC地址、候选路 由MAC地址、接收值和最新接收时间,对于表中的每项记录都维护一个接收队列,第三绑定表中的每项记录对应的接收队列的长度相同,且优选的所述接收队列与上述叠加队列的长度相同,接收队列中存储链路状态报文的序列号,将接收队列中序列号的数量与接收队列长度的比值作为本通信装置的相邻一跳通信装置发送的数据被本通信装置成功接收的概率,接收队列中序列号的数量与接收队列长度的比值即为对应表项的接收值,第三绑定表中的目的MAC地址相同并且数据收发子单元MAC地址相同的表项对应的接收队列的序列号移入、移出过程保持同步,接收队列中的元素移入、移出叠加队列按照先入先出的原则。The link state calculation module 53 maintains a third binding table, where the third binding table is used to record the correspondence between the received values, and the entries of the third binding table include a destination MAC address, a data transceiver sub-unit MAC address, and a candidate path. A receiving queue is maintained for each record in the table by the MAC address, the received value, and the latest receiving time. The length of the receiving queue corresponding to each record in the third binding table is the same, and the preferred receiving queue is The length of the superimposed queue is the same, and the sequence number of the link state message is stored in the receiving queue, and the ratio of the number of the serial number in the receiving queue to the length of the receiving queue is used as the data sent by the adjacent one-hop communication device of the communication device. The probability that the communication device successfully receives, the ratio of the number of the sequence number in the receiving queue to the length of the receiving queue is the received value of the corresponding entry, and the table in the third binding table has the same destination MAC address and the same MAC address of the data transceiver subunit The sequence number of the receiving queue corresponding to the item is kept in synchronization with the process of moving in and out, and the elements in the receiving queue are moved in and out of the stacking queue according to the principle of first in first out.
链路状态计算模块53接收预处理模块51发送的路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,若路由数据帧的链路状态报文的原始发送方MAC地址为本通信装置的任一数据收发子单元的MAC地址,表明此链路状态报文为本通信装置产生并且此链路状态报文被本通信装置的相邻一跳通信装置成功接收后被该相邻一跳通信装置转发并且又被本通信装置成功接收,则更新第二绑定表。在本通信装置只具有一个数据收发子单元时,本通信装置原始产生的链路状态报文必然通过本通信装置唯一的数据收发子单元发送,上述链路状态报文被本通信装置的相邻一跳通信装置接收并转发后若被本通信装置接收则必然被本通信装置唯一的数据收发子单元接收。在本通信装置具有多个数据收发子单元时,存在本通信装置原始产生的链路状态报文被本通信装置的某一数据收发子单元发送但是上述链路状态报文经本通信装置的相邻一跳通信装置接收并转发后被本通信装置的另一数据收发子单元接收的情况,上述情况也属于本通信装置发送的数据被本通信装置的相邻一跳通信装置接收并转发并且又被本通信装置接收的范围,所以本发明在计算第二绑定表中的叠加值时,将上述情况近似为本通信装置的相邻一跳通信装置转发的本通信装置原始产生的链路状态报文被本通信装置的相同的数据收发子单元(本通信装置发送上述本通信装置原始产生的链路状态报文的数据收发子单元)接收,这种近似并不影响最终链路状态值的计算。具体的,链路状态计算模块53在第二绑定表中查找数据收发子单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址(本通信装置中的数据收发子单元的MAC地址)并且候选路由MAC地址为路由数据信息的路由数据帧的发送方MAC地址的表项,若不能在第二绑定表中查找到上述表项,则在第二绑定表中新增一项记录,上述新增记录的数据收发子单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址,上述新增记录的候选路由MAC地址为路由数据信息的路由数据帧的发送方MAC地址,新增记录后进行如下表项更新过程;若能在第二绑定表中查找到上述表项,则直接进行如下表项更新过程:设第二绑定表中数据收发子单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址的表项对应的叠加队列中的序列号的最大值为a,设链路状态计算模块53接收到的路由数据信息中的链路状态报文的序列号为b(b必然大于a,因为链路状态计算模块53接收到的路由数据信息中的路由数据帧必然为最新产生的,其中链路状态报文中的序列号会在原来基础上(包括0)递增1,若b小于或者等于a,收发信息存储模块52会向预处理模块51发送无效判定应答,预处理模块51收到无效判定应答后会将路由数据信息丢弃,不会到达链路状态计算模块53),称在第二绑定表中数据收发子单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址并且候选路由MAC地址为路由数据信息的路由数据帧的发送方MAC地址的表项为本叠加表项,则向第二绑定表中数据收发子 单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址的表项中除本叠加表项以外的其它表项的叠加队列中依次移入(b-a)个空元素,向本叠加表项的叠加队列中依次移入(b-a-1)个空元素和序列号b,计算并更新第二绑定表中数据收发子单元MAC地址为路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址的表项的叠加值,叠加值为对应叠加队列中序列号的数量与叠加队列长度的比值,这样,通过向第二绑定表中的表项对应的叠加队列中移入序列号或者空元素,基于叠加队列的先入先出的特性,叠加值可以动态地表示出本通信装置与本通信装置的各个相邻一跳通信装置的发送链路状态与接收链路状态的叠加概率。在此对该技术原理进行详细的解释,如上所述第二绑定表中每一个表项记录有数据收发子单元MAC地址、候选路由MAC地址和叠加值的对应关系,而且第二绑定表的更新仅限于本通信装置接收的路由数据信息的路由数据帧的链路状态报文的原始发送方MAC地址为本通信装置的任一数据收发子单元的MAC地址,也就是说第二绑定表实际上记录了本通信装置产生的原始路由数据帧中的链路状态报文被本通信装置的相邻一跳通信装置接收并转发给本通信装置的发送链路和接收链路的通信情况,而且因为本通信装置每次新产生一个原始路由数据帧其链路状态报文中的序列号都会在原有基础上增加1,这样对应于本通信装置每个新产生的原始路由数据帧中的链路状态报文被其相邻一跳通信装置转发回来的情况都会被链路状态计算模块53自动更新在上述第二绑定表中,且所述第二绑定表中的一个数据收发子单元MAC地址可对应于多个表项,因为一个数据收发子单元发出的原始路由数据帧中的链路状态报文可能会被多个相邻一条通信装置接收并转发回本通信装置,从而一个数据收发子单元MAC地址可对应有多个候选MAC地址,为了在这多个候选MAC地址中选择最优的候选MAC地址,本发明在上述更新中,每次向本叠加表项对应的叠加队列补入序列号,同时将其他表项对应的叠加队列补空(避免了叠加队列一直保持之前的序列号数量不变,保证了与所述本叠加表项处于同等的动态更新过程),在预定时间段内补入序列号最多的那个叠加队列所对应表项中的候选MAC所对应的通信装置应当是该段时间内接收本通信装置发出的原始路由数据帧的链路状态报文并向本通信装置转发所述原始路由数据帧的链路状态报文次数最多的通信装置,也就是说MAC地址与所述候选MAC地址(补入序列号最多的叠加队列所对应表项中的候选MAC)相同的通信装置在该段时间内与本通信装置的来回通信较为频繁,其相互之间的通信链路状态较佳,可作为本通信装置优选的下一跳通信装置。所以上述叠加值能够反应本通信装置与本通信装置的相邻一跳通信装置之间成功发送通信和成功接收通信的叠加概率。为了计算这种叠加概率本发明首创的引入上述叠加队列,如上所述预定时间段内链路状态计算模块53接收到的用于更新第二绑定表的路由数据信息越多,说明路由数据信息中路由数据帧的发送方MAC地址所在通信装置与本通信装置间的通信越频繁,又因为每个新的路由数据信息都包括有一个新的序列号,因此预定时间段内更新的序列号的数量即可代表上述通信频繁程度,为进一步将这种序列号的更新数量转换为一种概率,引入所述叠加队列,利用补入叠加队列中的序列号的数量与叠加队列长度的比值来作为概率,即所述的叠加值,其能够有效的反应本通信装置与本通信装置的各个相邻一跳通信装置间的发送链路状态与接收链路状态的叠加概率,下面的接收队列以及接收值基于同样的原理考虑,但本发明关于各概率的计算并不以此为限,引入队列只是其中一种优选方式,亦可采用其他的概率统计方法如预定时间段内成功通信次数与总通信请求次数的比值等,下同。 The link state calculation module 53 receives the routing data information sent by the preprocessing module 51. The routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is the MAC address of any data transceiver subunit of the communication device, indicating that the link state message is generated by the communication device and the link state message is used by the adjacent one hop communication device of the communication device. After being successfully received and forwarded by the adjacent one-hop communication device and successfully received by the communication device, the second binding table is updated. When the communication device has only one data transceiving subunit, the link state message originally generated by the communication device is necessarily transmitted by the unique data transceiving subunit of the communication device, and the link state message is adjacent to the communication device. After being received and forwarded by the one-hop communication device, if it is received by the communication device, it is necessarily received by the data transceiving subunit unique to the communication device. When the communication device has a plurality of data transceiving subunits, the link state message originally generated by the communication device is transmitted by a certain data transceiving subunit of the communication device, but the link state message passes through the phase of the communication device. When the adjacent-hop communication device receives and forwards and is received by another data transceiving sub-unit of the communication device, the above-mentioned case also belongs to the data transmitted by the communication device being received and forwarded by the adjacent one-hop communication device of the communication device and The range received by the communication device, so the present invention approximates the link state originally generated by the communication device forwarded by the adjacent one-hop communication device of the communication device when calculating the superimposed value in the second binding table. The message is received by the same data transceiving subunit of the communication device (the communication device transmits the data transceiving subunit of the link state message originally generated by the communication device), and the approximation does not affect the final link state value. Calculation. Specifically, the link state calculation module 53 searches the second binding table for the original sender MAC address of the link state message of the routing data frame whose data transceiver subunit MAC address is the routing data information (data in the communication device) The MAC address of the transceiver unit is transmitted, and the candidate routing MAC address is an entry of the sender MAC address of the routing data frame of the routing data information. If the entry cannot be found in the second binding table, the second binding is performed. A new record is added to the table, and the MAC address of the data transmission and reception subunit of the newly added record is the original sender MAC address of the link state message of the route data frame of the route data information, and the candidate route MAC address of the newly added record is The sender MAC address of the routing data frame of the routing data information is added to the following table item update process. If the above entry is found in the second binding table, the following table item update process is directly performed: The MAC address of the data transceiver subunit in the binding table is the sequence in the superposition queue corresponding to the original sender MAC address of the link state packet of the routing data frame of the routing data information. The maximum value of the column number is a, and the sequence number of the link state message in the route data information received by the link state calculation module 53 is b (b is necessarily greater than a because the route received by the link state calculation module 53) The routing data frame in the data information must be newly generated. The sequence number in the link state message is incremented by 1 on the original basis (including 0). If b is less than or equal to a, the transceiver information storage module 52 will advance to The processing module 51 sends an invalidation decision response, and the pre-processing module 51 discards the routing data information after receiving the invalidation decision response, and does not reach the link state calculation module 53), and refers to the data transceiver sub-unit MAC address in the second binding table. For the original sender MAC address of the link state message of the routing data frame of the routing data information and the entry MAC address of the routing data frame of the routing data information of the candidate routing MAC address is the superimposed entry, the Data binding in the second binding table The unit MAC address is a route element of the original sender MAC address of the link state packet of the routing data message, and the (KB) empty element is sequentially moved into the superposition queue of the entry other than the superimposed entry. The (ba-1) empty element and the sequence number b are sequentially moved into the superposition queue of the superposition table item, and the link of the routing data frame in which the MAC address of the data transceiving subunit in the second binding table is the routing data information is calculated and updated. The superimposed value of the entry of the original sender MAC address of the status message, and the superimposed value is the ratio of the number of the sequence number in the corresponding superposition queue to the length of the superimposed queue, so that the superposition corresponding to the entry in the second binding table is The sequence number or the empty element is moved into the queue. Based on the first-in first-out characteristics of the overlay queue, the superimposed value can dynamically indicate the transmission link status and the receiving link of each adjacent one-hop communication device of the communication device and the communication device. The probability of superposition of the state. The technical principle is explained in detail here. As described above, each entry in the second binding table records the correspondence between the data transceiver sub-unit MAC address, the candidate routing MAC address, and the superimposed value, and the second binding table. The update is limited to the routing message data received by the communication device. The original sender MAC address of the link state message of the routing data frame is the MAC address of any data transceiving subunit of the communication device, that is, the second binding. The table actually records the communication status of the transmission link and the receiving link that the link state message in the original routing data frame generated by the communication device is received by the adjacent one-hop communication device of the communication device and forwarded to the communication device. And because the communication device newly generates a raw routing data frame each time, the serial number in the link state message is increased by 1 on the original basis, corresponding to each newly generated original routing data frame of the communication device. The link state message is forwarded back by its neighboring one-hop communication device, and is automatically updated by the link state calculation module 53 in the second binding table, and The data transceiver sub-unit MAC address in the second binding table may correspond to multiple entries, because the link state message in the original routing data frame sent by one data transceiver sub-unit may be multiple adjacent ones. The communication device receives and forwards back to the local communication device, such that a data transceiving subunit MAC address can correspond to a plurality of candidate MAC addresses. In order to select an optimal candidate MAC address among the plurality of candidate MAC addresses, the present invention is in the above update. Each time, the serial number is added to the superimposed queue corresponding to the superimposed table item, and the superimposition queue corresponding to the other items is added to the blank (the number of serial numbers before the superimposed queue is kept unchanged) is avoided, and the superposition with the original is guaranteed. The entry is in the same dynamic update process. The communication device corresponding to the candidate MAC in the entry corresponding to the superposition queue with the most serial number in the predetermined time period should be the original received by the communication device during the period of time. And a communication device that routes the link state message of the data frame and forwards the link state message with the most original route data frame to the communication device, That is to say, the communication device having the same MAC address and the candidate MAC address (the candidate MAC in the entry corresponding to the superposition queue with the largest sequence number added) communicates with the communication device frequently during the period of time, and the mutual communication is The communication link state is better and can be used as a preferred next hop communication device of the communication device. Therefore, the superimposed value can reflect the superposition probability of successfully transmitting communication and successfully receiving communication between the communication device and the adjacent one-hop communication device of the communication device. In order to calculate the superposition probability, the first superimposition queue of the present invention is introduced. The more the routing data information received by the link state calculation module 53 for updating the second binding table in the predetermined time period as described above, the routing data information is explained. The more frequently the communication between the communication device where the sender MAC address of the routing data frame is located and the communication device, and because each new routing data information includes a new serial number, the sequence number updated within the predetermined time period The quantity can represent the above-mentioned communication frequency. To further convert the updated quantity of the serial number into a probability, the superposition queue is introduced, and the ratio of the number of serial numbers in the superimposed queue to the length of the superimposed queue is used as the ratio. Probability, that is, the superimposed value, which can effectively reflect the superposition probability of the transmission link state and the reception link state between the communication device and each adjacent one-hop communication device of the communication device, and the following reception queue and reception The value is based on the same principle, but the calculation of each probability of the present invention is not limited thereto, and the introduction of the queue is only In a preferred embodiment, it can use other methods such as statistical probability of success of a communication frequency and a predetermined period of time the ratio of the total number of the communication request, etc., the same below.
链路状态计算模块53接收预处理模块51发送的路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,若路由数据帧的链路状态报文的原始发送方MAC地址不为本通信装置的任一数据收发子单元的MAC地址,表明此路由数据帧的链路状态报文为其它通信装置(除本通信装置之外的通信装置,包括本通信装置的相邻一跳通信装置,这些其他通信装置可以作为本通信装置的目的通信装置)产生并且经过本通信装置的相邻一跳通信装置转发并且被本通信装置成功接收,则更新第三绑定表。具体的,链路状态计算模块53在第三绑定表中查找目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址(本通信装置的接收所述路由数据信息中路由数据帧的数据收发子单元MAC地址)并且候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址的表项,若不能在第三绑定表中查找到上述表项,则在第三绑定表中新增一项记录,上述新增记录的目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址,上述新增记录的数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址,上述新增记录的候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址,新增记录后进行如下表项更新过程;若能在第三绑定表中查找到上述表项,则直接进行如下表项更新过程:设在第三绑定表中目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址的表项对应的接收队列的序列号的最大值为m,设链路状态计算模块53接收到的路由数据信息中的链路状态报文的序列号为n(n必然大于m,若n小于或者等于m,收发信息存储模块52会向预处理模块51发送无效判定应答,预处理模块51收到无效判定应答后会将路由数据信息丢弃),称在第三绑定表中目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址并且候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址的表项为本接收表项,向第三绑定表中目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址的表项中除本接收表项以外的其它表项的接收队列中依次移入(n-m)个空元素,向本接收表项的接收队列中依次移入(n-m-1)个空元素和序列号n,计算并更新第三绑定表中目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址的表项的接收值。所述接收值为接收队列中序列号的数量与接收队列长度的比值,更新第三绑定表中的本接收表项的最新接收时间为当前系统时间。这样,通过向第三绑定表中的表项对应的接收队列中移入序列号或者空元素,基于接收队列的先入先出的特性,接收值可以动态地表示出本通信装置与本通信装置的各个相邻一跳通信装置的接收链路状态的接收概率。第三绑定表中,每一个表项记录有目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址、接收值和接收时间的对应关系,其中目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址,也就是以接收的路由数据帧中链路状态报文的原始发送方MAC地址对应的通信装置最为本通信装置的目的通信装置,数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址,也就是本通信装置中接收路由数据帧的数据 收发子单元的MAC地址,候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址,也就是将向本通信装置发送路由数据帧的通信装置做为本通信装置向目的通信装置发送数据时的候选下一跳通信装置。因此第三绑定表实际记录了本通信装置接收本通信装置的相邻通信装置发送的通信数据的接收链路的通信情况。同理本发明所述移动通信系统中的所有通信装置相同,因此每个通信装置每次新产生一个原始路由数据帧其链路状态报文的序列号都会在原有基础上增加1,这样其他通信装置每个新产生的原始路由数据帧的链路状态报文被本通信装置的相邻一跳通信装置发送给本通信装置的情况都会被链路状态计算模块53自动更新在上述第三绑定表中。同时所述第三绑定表中同样的数据收发子单元MAC地址和目的MAC地址可能对应有多个候选MAC地址,为了在这多个候选MAC地址中选择最优的候选MAC地址,本发明在上述更新中,每次向本接收表项对应的接收队列补入序列号,同时将其他表项对应的接收队列补空(避免了接收队列一直保持之前的序列号数量不变,保证了与所述本接收表项处于同等的动态更新过程),在预定时间段内补入序列号最多的那个接收队列所对应表项中的候选MAC所对应的通信装置应当是该段时间内向本通信装置发送链路状态报文次数最多的通信装置,也就是说本通信装置在该段时间内接收所述候选MAC地址(补入序列号最多的接收队列所对应表项中的候选MAC地址)所对应的通信装置转发的链路状态报文较为频繁,所以上述接收值能够反应所述候选MAC地址对应的通信装置发送的链路状态报文被本通信装置成功接收的接收概率,为了计算这种接收概率本发明首创的引入上述接收队列,如上所述预定时间段内链路状态计算模块53接收到的用于更新第三绑定表的路由数据信息越多,说明路由数据信息中路由数据帧的发送方MAC地址所在通信装置与本通信装置间的通信越频繁,又因为每个新的路由数据信息都包括有一个新的序列号,因此预定时间段内更新的序列号的数量即可代表上述通信频繁程度,为进一步将这种序列号的更新数量转换为一种概率,引入所述接收队列,利用补入接收队列中的序列号的数量与接收队列长度的比值来作为概率,即所述的接收值,其能够有效的反应本通信装置与本通信装置的各个相邻一跳通信装置间的接收链路状态的成功接收概率。为便于后面运算,在计算所述叠加概率和接收概率时,由于序列号的补入数量是客观的,优选的将作为其概率归一化基础的叠加队列的长度与接收队列的长度选择为一致。The link state calculation module 53 receives the routing data information sent by the preprocessing module 51. The routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is not the MAC address of any data transceiver subunit of the communication device, indicating that the link state message of the route data frame is another communication device (the communication device other than the communication device, including the communication) Adjacent one-hop communication devices of the device, which can be generated as the destination communication device of the communication device and forwarded by the adjacent one-hop communication device of the communication device and successfully received by the communication device, update the third binding Set the table. Specifically, the link state calculation module 53 searches the third binding table for the original sender MAC address of the link state message in the routing data frame in the routing data information, and the data transceiver sub-unit MAC address is Transmitting the data transceiver sub-unit MAC address in the routing data information (the communication device receives the data transceiving sub-unit MAC address of the routing data frame in the routing data information) and the candidate routing MAC address is the transmission of the routing data frame in the routing data information If the entry of the MAC address is not found in the third binding table, a new record is added to the third binding table, and the destination MAC address of the newly added record is in the routing data information. The original sender MAC address of the link state message in the routing data frame, the MAC address of the newly transmitted data transceiver subunit is the data transceiver subunit MAC address in the routing data information, and the candidate route MAC address of the newly added record To update the sender MAC address of the routing data frame in the routing data information, add the record and perform the following table item update process; if it can be found in the third binding table To the above entry, the following table item update process is directly performed: the destination MAC address in the third binding table is the original sender MAC address of the link state message in the routing data frame in the routing data information, and the data is transmitted and received. The sub-unit MAC address is the maximum value of the sequence number of the receiving queue corresponding to the entry of the data transceiver sub-unit MAC address in the routing data information, and the link state in the routing data information received by the link state calculating module 53 is set. The sequence number of the message is n (n is necessarily greater than m. If n is less than or equal to m, the transceiver information storage module 52 sends an invalidation response to the pre-processing module 51, and the pre-processing module 51 will route the data after receiving the invalidation response. Information discarding), in the third binding table, the destination MAC address is the original sender MAC address of the link state message in the routing data frame in the routing data information and the data transceiver sub-unit MAC address is in the routing data information. The data transmission and reception sub-unit MAC address and the candidate routing MAC address are the entries of the sender MAC address of the routing data frame in the routing data information, which are the receiving entries, and are tied to the third The destination MAC address in the fixed table is the original sender MAC address of the link state message in the routing data frame in the routing data information, and the data transceiving subunit MAC address is the entry of the data transceiving subunit MAC address in the routing data information. The (nm) empty elements are sequentially shifted into the receiving queue of the entries other than the receiving entry, and the (nm-1) empty elements and the serial number n are sequentially shifted into the receiving queue of the receiving entry, and the calculation is performed. Updating the original sender MAC address of the link state message in the routing data frame in the third binding table, and the data transceiver sub-unit MAC address is the data transceiver sub-unit MAC in the routing data information. The received value of the entry of the address. The receiving value is a ratio of the number of the serial number in the receiving queue to the length of the receiving queue, and the latest receiving time of the current receiving entry in the third binding table is the current system time. In this way, by inserting a sequence number or an empty element into the receiving queue corresponding to the entry in the third binding table, based on the first-in-first-out characteristic of the receiving queue, the received value can dynamically represent the communication device and the communication device. The probability of reception of the status of the receive link of each adjacent one-hop communication device. In the third binding table, each entry records a correspondence between a destination MAC address, a data transceiver sub-unit MAC address, a candidate routing MAC address, a received value, and a receiving time, wherein the destination MAC address is routing data in the routing data information. The original sender MAC address of the link state message in the frame, that is, the communication device corresponding to the original sender MAC address of the link state message in the received route data frame, the destination communication device of the communication device, and the data transmission and reception The sub-unit MAC address is the data transceiving sub-unit MAC address in the routing data information, that is, the data of the routing data frame received by the communication device. The MAC address of the transceiver unit, the candidate routing MAC address is the sender MAC address of the routing data frame in the routing data information, that is, the communication device that sends the routing data frame to the communication device is sent as the communication device to the destination communication device. Candidate next hop communication device for data. Therefore, the third binding table actually records the communication status of the receiving link of the communication data transmitted by the adjacent communication device of the present communication device by the communication device. Similarly, all the communication devices in the mobile communication system of the present invention are the same, so each communication device generates a new original routing data frame each time, and the sequence number of the link state message is increased by 1 on the original basis, so that other communication is performed. The link status message of each newly generated original routing data frame of the device is sent by the neighboring one-hop communication device of the communication device to the local communication device, and the link state calculation module 53 automatically updates the third binding. In the table. At the same time, the same data transceiver sub-unit MAC address and destination MAC address in the third binding table may correspond to multiple candidate MAC addresses. In order to select an optimal candidate MAC address among the multiple candidate MAC addresses, the present invention In the above update, each time the sequence number is added to the receiving queue corresponding to the receiving entry, and the receiving queue corresponding to the other entry is added to the blank (the number of serial numbers before the receiving queue is kept unchanged) is ensured, and the same is ensured. The receiving entry is in the same dynamic update process, and the communication device corresponding to the candidate MAC in the entry corresponding to the receiving queue with the highest sequence number in the predetermined time period should be sent to the communication device during the period of time. The communication device with the most number of link state messages, that is, the communication device receives the candidate MAC address (the candidate MAC address in the entry corresponding to the receive queue with the most serial number added) corresponding to the communication device in the period of time The link state message forwarded by the communication device is relatively frequent, so the received value can reflect the link state message sent by the communication device corresponding to the candidate MAC address. The reception probability successfully received by the communication device, in order to calculate the reception probability, is introduced in the above-mentioned receiving queue, and the link state calculation module 53 received by the link state calculation module 53 for updating the third binding table in the predetermined time period as described above. The more routing data information, the more frequent the communication between the communication device where the sender MAC address of the routing data frame is located and the communication device, and because each new routing data information includes a new serial number. Therefore, the number of serial numbers updated in the predetermined time period can represent the above-mentioned communication frequency. To further convert the updated number of the serial numbers into a probability, the receiving queue is introduced, and the serial number in the receiving queue is used. The ratio of the number to the length of the receive queue is taken as the probability, that is, the received value, which can effectively reflect the successful reception probability of the state of the receiving link between the communication device and each adjacent one-hop communication device of the communication device. In order to facilitate the subsequent operations, when calculating the superposition probability and the reception probability, since the number of additions of the sequence number is objective, it is preferable to select the length of the superposition queue which is the basis of the probability normalization to be consistent with the length of the reception queue. .
链路状态计算模块53接收预处理模块51发送的路由数据信息,路由数据信息包括路由数据帧和接收此路由数据帧的数据收发子单元的MAC地址,若路由数据帧的链路状态报文的原始发送方MAC地址不为本通信装置的任一数据收发子单元的MAC地址,表明此路由数据帧的链路状态报文为其它通信装置产生并且经过本通信装置的相邻一跳通信装置转发并且被本通信装置成功接收,则按照上述过程更新第三绑定表,同时在更新第三绑定表后,所述链路状态计算模块53还需要更新所述路由数据信息的路由数据帧的链路状态报文(上述由其它通信装置产生的链路状态报文)的链路状态值并将更新后的链路状态报文发送至转发模块55。也就是说链路状态计算模块53基于接收到的路由数据信息每次更新第三绑定表时,同时要更新所述路由数据信息的路由数据帧的链路状态报文的链路状态值,具体的设更新前路由数据信息(其中的路由数据帧的链路状态报文的原始发送方MAC地址不为本通信装置的任一数据收发子单元的MAC地址)的路由数据帧的链路状态报文的链路状态值为x,链路状态计算模块53读取该链路状态值为x,并在第二绑定表中查找数据收发子单元MAC地址为路由数据信息的数据收发子单元的MAC地址并且候选 路由MAC地址为路由数据信息的路由数据帧的发送方MAC地址的表项,若不能在第二绑定表中查找到上述表项,则将路由数据信息直接丢弃,链路状态报文更新过程结束;若能在第二绑定表中查找到上述表项(表明第二绑定表和第三绑定表中同一数据收发子单元MAC地址在发送和接收数据时对应有相同的候选MAC地址),设上述在第二绑定表中查找到的表项的叠加值为y,设在第三绑定表中的本接收表项(目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址并且候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址的表项)的更新后的接收值为z,此处的y可反应本通信装置中与路由数据信息中的数据收发子单元的MAC地址相同的数据收发子单元发送的数据被路由数据信息中的路由数据帧的发送方MAC地址对应的通信装置成功接收并且被该通信装置(路由数据信息的路由数据帧的发送方MAC地址对应的通信装置)转发并且又被本通信装置成功接收的叠加概率,z表示路由数据信息的路由数据帧的发送方MAC地址对应的通信装置发送的数据被本通信装置成功接收的概率,则本通信装置中MAC地址与路由数据信息的数据收发子单元的MAC地址相同的数据收发子单元发送的数据被路由数据信息的路由数据帧的发送方MAC地址对应的通信装置成功接收的概率为y/z,如前所述的叠加概率y可表示为:y=P1*P2,其中P1表示本通信装置中与路由数据信息中的数据收发子单元的MAC地址相同的数据收发子单元发送的数据被路由数据信息中的路由数据帧的发送方MAC地址对应的通信装置成功接收的成功发送概率,P2表示路由数据信息的路由数据帧的发送方MAC地址对应的通信装置发送的数据被本通信装置中的MAC地址与路由数据信息中的数据收发子单元MAC地址相同的数据收发子单元成功接收的成功接收概率,z即与所述P2等同,因此通过y/z即得到P1,也就是本通信装置中MAC地址与路由数据信息中的数据收发子单元的MAC地址相同的数据收发子单元向路由数据信息中的路由数据帧的发送方MAC地址对应的通信装置成功发送数据的概率。并且优选的在对值y和z的归一化处理中选用同一分母,也就是叠加队列和接收队列的长度相同,这样当(y/z)<1时,将更新后的路由数据信息的路由数据帧的链路状态报文的链路状态值设置x*(y/z),因为本通信装置与该链路状态报文的原始发送方MAC地址对应的通信装置之间的链路状态比本通信装置的相邻通信装置发送此链路状态报文的通信装置与此链路状态报文的原始发送方MAC地址对应的通信装置之间的链路状态更差,链路状态值应当减小,将更新后的链路状态报文发送至转发模块55;当(y/z)≥1时,将路由数据信息的路由数据帧的链路状态报文的链路状态值保持原值不变,因为本通信装置与该链路状态报文的原始发送方MAC地址对应的通信装置之间的链路状态不会比本通信装置的相邻通信装置(发送此链路状态报文的通信装置)与此链路状态报文的原始发送方MAC地址对应的通信装置之间的链路状态更优,并直接将所述路由数据信息的路由数据帧的链路状态报文发送至转发模块55,也将这种情况下的链路状态报文称为更新后的链路状态报文。The link state calculation module 53 receives the routing data information sent by the preprocessing module 51. The routing data information includes a routing data frame and a MAC address of the data transceiver subunit that receives the routing data frame, and if the link state message of the routing data frame is The original sender MAC address is not the MAC address of any data transceiver subunit of the communication device, indicating that the link state message of the route data frame is generated by another communication device and forwarded by the adjacent one-hop communication device of the communication device. And being successfully received by the communication device, updating the third binding table according to the foregoing process, and after updating the third binding table, the link state calculation module 53 further needs to update the routing data frame of the routing data information. The link state value of the link state message (the above link state message generated by the other communication device) and the updated link state message are sent to the forwarding module 55. That is, the link state calculation module 53 updates the link state value of the link state packet of the routing data frame of the routing data information each time the third binding table is updated based on the received routing data information. Specifically, the link state of the routing data frame of the pre-update routing data information (in which the original sender MAC address of the link state message of the routing data frame is not the MAC address of any data transceiving subunit of the communication device) is set. The link state value of the packet is x, and the link state calculation module 53 reads the link state value as x, and searches the second binding table for the data transceiver subunit of the data transceiver subunit MAC address as the routing data information. MAC address and candidate The routing MAC address is the entry of the sender MAC address of the routing data frame of the routing data information. If the entry cannot be found in the second binding table, the routing data information is directly discarded, and the link state packet update process is performed. Ending; if the above entry is found in the second binding table (indicating that the same data transceiver sub-unit MAC address in the second binding table and the third binding table corresponds to the same candidate MAC address when transmitting and receiving data) And setting the superposition value of the table item found in the second binding table as y, and setting the receiving entry in the third binding table (the destination MAC address is in the routing data frame in the routing data information) The original sender MAC address of the link state message and the data transceiving subunit MAC address is the data transceiving subunit MAC address in the routing data information and the candidate routing MAC address is the sender MAC address of the routing data frame in the routing data information. The updated received value of the entry is z, where y can reflect the data sent by the data transceiving subunit of the communication device that is the same as the MAC address of the data transceiving subunit in the routing data information. Successfully received by the communication device corresponding to the sender MAC address of the routing data frame in the data information and forwarded by the communication device (communication device corresponding to the sender MAC address of the routing data frame of the routing data information) and succeeded by the communication device again The superimposed probability of reception, z represents the probability that the data transmitted by the communication device corresponding to the sender MAC address of the routing data frame of the routing data information is successfully received by the communication device, and the data transceiver of the MAC address and the routing data information in the communication device The probability that the data transmitted by the data transceiving subunit with the same MAC address of the unit is successfully received by the communication device corresponding to the sender MAC address of the routing data frame of the routing data information is y/z, and the superposition probability y as described above may be expressed as : y = P1 * P2, where P1 represents the sender MAC address of the routing data frame in the data-transferred data information transmitted by the data transceiving sub-unit in the communication device that is the same as the MAC address of the data transceiving sub-unit in the routing data information. The successful transmission probability of the corresponding communication device successfully received, and P2 represents the routing data frame of the routing data information The data transmitted by the communication device corresponding to the sender MAC address is successfully received by the data transceiving subunit with the same MAC address in the communication device and the data transceiving subunit in the routing data information, z is the same as the P2 Equivalent, therefore, P1 is obtained by y/z, that is, the sender of the routing data frame in the routing data frame in which the MAC address of the communication device is the same as the MAC address of the data transceiving subunit in the routing data information. The probability that the communication device corresponding to the MAC address successfully transmits data. And preferably, the same denominator is selected in the normalization process for the values y and z, that is, the lengths of the superimposition queue and the reception queue are the same, so that when (y/z) < 1, the route information of the updated routing data information is routed. The link state value of the link state message of the data frame is set x*(y/z) because the link state ratio between the communication device corresponding to the original sender MAC address of the link state message is The communication device that transmits the link state message by the neighboring communication device of the communication device has a worse link state between the communication device corresponding to the original sender MAC address of the link state message, and the link state value should be reduced. If the (y/z) ≥ 1, the link state value of the link state packet of the routing data frame of the routing data information is kept unchanged. Change, because the link state between the communication device corresponding to the original sender MAC address of the link state message is no more than the communication device of the communication device (sending the communication of the link state message) Device) original transmission with this link state message The link state between the communication devices corresponding to the MAC address is better, and the link state message of the route data frame of the route data information is directly sent to the forwarding module 55, and the link state report in this case is also reported. This is called the updated link state message.
无线信道的链路状态存在抖动,因此本通信装置通过计算本通信装置与目的通信装置的最近几次链路状态的平均值来确定本通信装置与目的通信装置之间的链路状态,链路状态计算模块53维护第四绑定表,第四绑定表用来记录上述链路状态平均值的对应关系,第四绑定表的表项包括目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址和链路状态均值,链路状态均值用来表示最近几次链路状态的平均值,对于表中的每项记录都维护一个均值队列,第四绑定表中的每项记录 对应的均值队列的长度相同,均值队列中存储链路状态值,链路状态均值为均值队列中的链路状态值的平均值。链路状态计算模块53每次向转发模块55发送更新后的链路状态报文后,同时需要根据路由数据信息和更新后的链路状态报文来更新第四绑定表,具体的,在第四绑定表中查找目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址并且候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址的表项,并向上述表项的均值队列中移入更新后的该链路状态报文的链路状态值,计算上述表项的链路状态均值,链路状态均值为均值队列中的链路状态值的平均值,若不能在第四绑定表中查找到上述表项,则在第四绑定表中新增一项记录,上述新增记录的目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址,上述新增记录的数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址,上述新增记录的候选路由MAC地址为路由数据信息中的路由数据帧的发送方MAC地址。在第四绑定表中新增上述记录后,向上述表项的均值队列中移入更新后的链路状态报文的链路状态值,计算上述表项的链路状态均值,链路状态均值为均值队列中的链路状态值的平均值。在第四绑定表每次更新完成后,链路状态计算模块53在第四绑定表中查找目的MAC地址为路由数据信息中的路由数据帧中的链路状态报文的原始发送方MAC地址并且数据收发子单元MAC地址为路由数据信息中的数据收发子单元MAC地址的表项,在上述表项中选取链路状态均值最大的表项,向路由表模块54发送路由更新信息,路由更新信息包括上述选取的表项的目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址和链路状态均值,路由更新信息表明当本通信装置从路由更新信息中的数据收发子单元MAC对应的本通信装置的数据收发子单元向路由更新信息中的目的MAC地址对应的通信装置(目的通信装置)发送数据时,如果以路由更新信息中的候选路由MAC地址对应的通信装置为下一跳,则可以实现本通信装置与路由更新信息中的目的MAC地址对应的通信装置(目的通信装置)之间的链路状态最优通信。There is jitter in the link state of the wireless channel, so the communication device determines the link state between the communication device and the destination communication device by calculating the average value of the last several link states of the communication device and the destination communication device, and the link The state calculation module 53 maintains a fourth binding table, where the fourth binding table is used to record the correspondence between the average values of the link states, and the entries of the fourth binding table include the destination MAC address, the data transceiver sub-unit MAC address, and the candidate. Average value of the routed MAC address and link state. The average value of the link state is used to represent the average of the last link states. A mean queue is maintained for each record in the table. Each record in the fourth binding table. The corresponding averaging queues have the same length. The averaging queue stores link state values. The link state average is the average of the link state values in the averaging queue. After the link state calculation module 53 sends the updated link state message to the forwarding module 55, it needs to update the fourth binding table according to the routing data information and the updated link state message. Specifically, The destination MAC address in the fourth binding table is the original sender MAC address of the link state packet in the routing data frame in the routing data information, and the data transceiver sub-unit MAC address is the data transceiver sub-unit MAC in the routing data information. The address and the candidate routing MAC address are the entries of the sender MAC address of the routing data frame in the routing data information, and the link state value of the updated link state packet is moved into the average queue of the foregoing entry, and the calculation is performed. The average link state of the preceding entry. The average link state is the average of the link state values in the average queue. If the entry cannot be found in the fourth binding table, the new binding table is added. Adding a record, the destination MAC address of the newly added record is the original sender MAC address of the link state message in the route data frame in the route data information, and the data of the newly added record is sent and received. The sub-unit MAC address is the data transceiving sub-unit MAC address in the routing data information, and the newly-recorded candidate routing MAC address is the sender MAC address of the routing data frame in the routing data information. After the foregoing record is added to the fourth binding table, the link state value of the updated link state packet is added to the average queue of the entry, and the link state average value of the entry is calculated, and the link state average value is obtained. Is the average of the link state values in the averaging queue. After each update of the fourth binding table is completed, the link state calculation module 53 searches the fourth binding table for the original sender MAC whose destination MAC address is the link state message in the routing data frame in the routing data information. The address and data transceiver sub-unit MAC address is an entry of the data transceiving sub-unit MAC address in the routing data information, and the entry with the largest link state average value is selected in the above-mentioned entry, and the routing update information is sent to the routing table module 54 and the route is sent. The update information includes a destination MAC address, a data transceiving subunit MAC address, a candidate routing MAC address, and a link state average value of the selected item, and the routing update information indicates that the local communication device corresponds to the data transceiving subunit MAC in the routing update information. When the data transceiving subunit of the present communication device transmits data to the communication device (destination communication device) corresponding to the destination MAC address in the routing update information, if the communication device corresponding to the candidate routing MAC address in the routing update information is the next hop , the communication device corresponding to the destination MAC address in the communication device and the routing update information can be realized (the destination communication device) Link state optimal communication between.
路由表模块54维护第五绑定表,第五绑定表记录目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址、链路状态均值和最新使用标记的对应关系,路由表模块54接收链路状态计算模块53发送的路由更新信息,路由更新信息包括目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址和链路状态均值,路由表模块54在第五绑定表中查找目的MAC地址为路由更新信息中的目的MAC地址并且数据收发子单元MAC地址为路由更新信息中的数据收发子单元MAC地址的表项,若可以在第五绑定表中查找到上述表项,则将上述表项的候选路由MAC地址更新为路由更新信息中的候选路由MAC地址并将上述表项的链路状态均值更新为路由更新信息中的链路状态均值;若在第五绑定表中查找不到上述表项,则在第五绑定表中新增一项记录,新增记录的目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址、链路状态均值分别为路由更新信息中的目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址、链路状态均值,新增记录的最新使用标记为空。这样在第五绑定表中,一个目的MAC地址和一个数据收发子单元MAC地址之间对应于唯一的一个候选路由MAC地址,由该数据收发子单元MAC地址对应的数据收发子单元发出的数据经该候选路由MAC地址对应的通信装置转发到达目的MAC地址对应的通信装置的链路状态最佳。The routing table module 54 maintains a fifth binding table, and the fifth binding table records the correspondence between the destination MAC address, the data transceiver sub-unit MAC address, the candidate routing MAC address, the link state average, and the latest usage flag, and the routing table module 54 receives The route update information sent by the link state calculation module 53 includes the destination MAC address, the data transceiver sub-unit MAC address, the candidate route MAC address, and the link state average value, and the routing table module 54 searches for the purpose in the fifth binding table. The MAC address is the destination MAC address in the route update information, and the data transceiver sub-unit MAC address is an entry of the data transceiver sub-unit MAC address in the route update information. If the entry is found in the fifth binding table, Updating the candidate routing MAC address of the foregoing entry to the candidate routing MAC address in the routing update information, and updating the link state average of the entry to the link state average in the routing update information; if in the fifth binding table If the above entry is not found, a new record is added to the fifth binding table, and the destination MAC address of the newly added record and the MAC address of the data transceiver subunit are newly added. , Candidate route MAC address, update the link state mean values in the destination MAC address of the routing information, the data transceiver subunit MAC address, the MAC address of the candidate route, the link state means, new use of the latest record as empty. Thus, in the fifth binding table, a destination MAC address and a data transceiver sub-unit MAC address correspond to a unique candidate routing MAC address, and the data sent by the data transceiver sub-unit corresponding to the MAC address of the data transceiver sub-unit The communication device corresponding to the candidate routing MAC address forwards the link state of the communication device corresponding to the destination MAC address to the best.
这样本发明中每个通信装置通过其原始路由数据帧产生子单元按照预定的时间 周期间隔发送原始路由数据帧,每个通信装置通过其自身发送的原始路由数据帧的链路状态报文被相邻的通信装置转发并被自己接收的通信过程维护自身的第二绑定表,同时每个通信装置通过接收其他通信装置发送的路由数据帧维护自身的第三绑定表和第四绑定表,最后基于这些绑定表的相关信息维护自身的第五绑定表,从而在每个通信装置的第五绑定表中记录了通信链路状态处于最佳(链路状态均值最大)的各组目的MAC地址、数据收发子单元MAC地址和候选路由MAC地址的对应关系,使得每个通信装置要向其第五绑定表中记录的目的MAC地址发生通信数据时,通过选择(具体选择方式下述)所述目的MAC地址所在表项中的数据收发子单元MAC地址对应的数据收发子单元作为数据发送单元、选择所述目的MAC地址所在表项中的候选路由MAC地址对应的通信装置作为下一跳通信装置,能够确保处于最佳的通信路径。移动通信系统中的每个通信装置都以此方式选择自身的数据收发子单元和下一跳通信装置,能够确保整个通信系统处于最佳的通信状态。Thus, in the present invention, each communication device generates a subunit by its original routed data frame according to a predetermined time. The original routing data frame is sent at a periodic interval, and each communication device maintains its own second binding table by the communication process forwarded by the adjacent communication device through the link state message of the original routing data frame sent by itself and maintained by itself. At the same time, each communication device maintains its own third binding table and fourth binding table by receiving routing data frames sent by other communication devices, and finally maintains its own fifth binding table based on the related information of these binding tables, thereby The fifth binding table of each communication device records the correspondence between each group of destination MAC addresses, data transceiver sub-unit MAC addresses, and candidate route MAC addresses whose communication link status is optimal (the link state average is the largest), so that When each communication device wants to generate communication data to the destination MAC address recorded in the fifth binding table, by selecting (specifically selected as follows), the MAC address of the data transceiving subunit in the entry of the destination MAC address is corresponding. As a data sending unit, the data transceiver unit selects a communication device corresponding to the candidate routing MAC address in the entry of the destination MAC address as the next The hop communication device ensures that the communication path is optimal. Each communication device in the mobile communication system selects its own data transceiving subunit and next hop communication device in this way, and can ensure that the entire communication system is in an optimal communication state.
路由表模块54根据路由查询请求选择本通信装置的数据收发子单元以及本通信装置的下一跳通信装置。在上述选择过程中,优选的可设置链路可用值,链路可用值用来衡量链路的质量,优先选取链路状态均值大于链路可用值的表项对应的本通信装置的数据收发子单元以及本通信装置的下一跳通信装置。此外进一步优选的,为了实现网络流量均匀分布,避免某一条链路负载过大,需要在满足条件的情况下尽量选择不同的下一跳通信装置,因此第五绑定表的表项包括最新使用标记,最新使用标记用来记录本次选择的下一跳通信装置,为下一次选择时提供依据。The routing table module 54 selects the data transceiving subunit of the present communication device and the next hop communication device of the present communication device according to the routing query request. In the above selection process, a preferred link settable value is used, and a link available value is used to measure the quality of the link, and the data transceiver of the communication device corresponding to the entry whose link state average value is greater than the link available value is preferentially selected. The unit and the next hop communication device of the communication device. Further, in order to achieve uniform distribution of network traffic and avoid overloading of a certain link, it is necessary to select different next hop communication devices as long as the conditions are met, so the entries of the fifth binding table include the latest use. Mark, the latest use mark is used to record the next hop communication device of this selection, providing a basis for the next selection.
路由表模块54接收数据解析单元11发送的路由查询请求,路由查询请求包括接收方的MAC地址(基于IP数据包的接收方IP地址解析得到)和数据收发子单元MAC地址,若路由查询请求中的数据收发子单元MAC地址为空,说明需要发送的负载数据为本通信装置自身产生,则通过本通信装置的主数据收发子单元发送,在第五绑定表中查找目的MAC地址为路由查询请求中的接收方MAC地址并且数据收发子单元MAC地址为主数据收发子单元MAC地址的表项,若在第五绑定表中查找不到上述表项,则放弃此次通信过程;若可以在第五绑定表中查找到上述表项,则设置上述表项的最新使用标记,向数据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址即本通信装置的主数据收发子单元MAC地址,取消第五绑定表中目的MAC地址为路由查询请求中的接收方MAC地址的其它表项的最新使用标记。The routing table module 54 receives the routing query request sent by the data parsing unit 11, and the routing query request includes the MAC address of the receiving party (based on the IP address of the receiving IP address of the IP packet) and the MAC address of the data transceiver subunit, if the routing query request is The data transceiver sub-unit MAC address is empty, indicating that the load data to be sent is generated by the communication device itself, and is sent by the primary data transceiver sub-unit of the communication device, and the destination MAC address is searched for the route query in the fifth binding table. If the MAC address of the receiver in the request and the MAC address of the data transceiving subunit are the entries of the MAC address of the primary data transceiver subunit, if the above entry is not found in the fifth binding table, the communication process is abandoned; If the above-mentioned entry is found in the fifth binding table, the latest usage flag of the foregoing entry is set, and a route query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the above entry. The candidate routing MAC address, the MAC address of the data transceiving subunit of the routing query response is the data transceiving subunit MAC address of the above entry. Subunit present the main data transceiving communication device MAC address, the fifth cancel the destination MAC address in the binding table for later use tag receiver MAC address in the routing query request to other entries.
路由表模块54接收数据解析单元11发送的路由查询请求,路由查询请求包括接收方的MAC地址和数据收发子单元MAC地址,若路由查询请求中的数据收发子单元MAC地址不为空,说明需要发送的负载数据为本通信装置转发的其它通信装置产生的负载数据,则在第五绑定表中查找目的MAC地址为路由查询请求中的接收方MAC地址的表项,若在第五绑定表中查找不到上述表项,则放弃此次通信过程,若可以在第五绑定表中查找到上述表项,则称上述查找到的表项为第一表项集合,若第一表项集合中的表项的最新使用标记都为空,说明这是本通信装置第一次向目的通信装置(路由查询请求中的接收方的MAC地址对应的通信装置)发送负载数据,则在第一表项集合中选取链路状态均值大于链路可用值的表项称为第二表项集合,若第二表项集合为空,则在第一表项集合中查找数据收发子单元MAC地址为路由查询请求中的数据收发子单元MAC地址的表项,若在第五绑定表中查找不到上述表项,则放弃此次通信过程,若在第五绑定表中查找到上述表项,则向数 据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址(亦即路由查询请求中的数据收发子单元MAC地址),设置上述表项的最新使用标记;若第二表项集合不为空,则选取第二表项集合的第一个表项,向数据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址,设置上述表项的最新使用标记;若第一表项集合中存在最新使用标记不为空的表项,说明本通信装置之前已经向目的通信装置(路由查询请求中的接收方的MAC地址对应的通信装置)发送过负载数据,则在第一表项集合中选取最新使用标记为空的表项称为第三表项集合,若第三表项集合为空,则在第一表项集合中选取最新使用标记不为空的表项,则向数据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址;若第三表项集合不为空,则在第三表项集合中选取链路状态均值大于链路可用值的表项称为第四表项集合,若第四表项集合为空,则在第三表项集合中查找数据收发子单元MAC地址为路由查询请求中的数据收发子单元MAC地址的表项,若在第五绑定表中查找不到上述表项,则放弃此次通信过程,若在第五绑定表中可以查找到上述表项,则向数据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址,设置上述表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记;若第四表项集合不为空,则选取第四表项集合的第一个表项,则向数据解析单元11发送路由查询响应,路由查询响应的相邻一跳通信装置的MAC地址为上述表项的候选路由MAC地址,路由查询响应的数据收发子单元的MAC地址为上述表项的数据收发子单元MAC地址,设置上述表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记。The routing table module 54 receives the routing query request sent by the data parsing unit 11, and the routing query request includes the MAC address of the receiving party and the MAC address of the data transceiving subunit. If the MAC address of the data transceiving subunit in the routing query request is not empty, the requirement is required. If the load data sent by the other communication device is the load data generated by the communication device, the fifth binding table is used to find the entry of the destination MAC address in the routing query request in the fifth binding table. If the above table entry is not found in the table, the communication process is abandoned. If the above entry is found in the fifth binding table, the above-mentioned found entry is said to be the first set of entries, if the first table is The latest usage flag of the entry in the item set is empty, indicating that this is the first time the communication device sends load data to the destination communication device (the communication device corresponding to the MAC address of the receiver in the route query request). An entry in the set of entries that has a link state average value greater than the link available value is called a second set of entries. If the second set of entries is empty, the first entry is found in the set of entries. According to the MAC address of the transceiver sub-unit, the MAC address of the data transceiving sub-unit in the routing query request, if the above entry is not found in the fifth binding table, the communication process is abandoned, if the fifth binding is If the above table entry is found in the table, then the number is The parsing unit 11 sends a route query response, and the MAC address of the neighboring one-hop communication device of the route query response is the candidate route MAC address of the entry, and the MAC address of the data transceiver sub-unit of the route query response is the data transmission and reception of the above entry. The sub-unit MAC address (that is, the data transceiving sub-unit MAC address in the routing query request) sets the latest usage flag of the above entry; if the second entry set is not empty, the first one of the second entry is selected The table entry sends a route query response to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the candidate route MAC address of the above entry, and the MAC address of the data transceiver sub-unit of the route query response is the above table. The data transmission and reception sub-unit MAC address of the item sets the latest usage flag of the above-mentioned entry; if there is an entry in the first entry set that is not newly used, the communication device has previously sent the destination communication device (route query request) If the communication device corresponding to the MAC address of the receiver transmits the overload data, the latest usage flag is selected in the first set of entries as The table entry is called a third table item set. If the third table item set is empty, if the latest use tag is not empty in the first table item set, the route query response is sent to the data parsing unit 11, The MAC address of the neighboring one-hop communication device of the route query response is the candidate route MAC address of the foregoing entry, and the MAC address of the data transceiver sub-unit of the route query response is the data transceiver sub-unit MAC address of the above entry; If the item set is not empty, the item whose link state average value is greater than the link available value is called the fourth item set in the third set of items. If the fourth item set is empty, the third item is The MAC address of the data transceiver sub-unit in the set is the entry of the data transceiver sub-unit MAC address in the routing query request. If the above-mentioned entry is not found in the fifth binding table, the communication process is abandoned. If the foregoing entry is found in the five binding table, the routing query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device in the routing query response is the candidate routing MAC address of the foregoing entry, and the routing query is performed. The MAC address of the data transceiver unit is the MAC address of the data transceiver subunit of the above entry, and the latest usage flag of the above entry is set, and the latest usage flag of the remaining entries in the first entry is canceled; if the fourth entry is If the set is not empty, the first entry of the fourth set of entries is selected, and the route query response is sent to the data parsing unit 11, and the MAC address of the adjacent one-hop communication device of the route query response is the candidate route of the foregoing entry. The MAC address, the MAC address of the data transceiving subunit of the routing query response is the MAC address of the data transceiving subunit of the above entry, and the latest usage flag of the above entry is set, and the latest usage tag of the remaining entries in the first entry set is cancelled.
转发模块55接收链路状态计算模块53发送的更新后的链路状态报文,进行如下处理:The forwarding module 55 receives the updated link state packet sent by the link state calculation module 53 and performs the following processing:
(1)判断链路状态报文的传输距离是否小于或者等于1,若是,则将此路由数据帧丢弃,不转发此路由数据帧,若不是,进入步骤(2);(1) determining whether the transmission distance of the link state message is less than or equal to 1, if yes, discarding the routing data frame, not forwarding the routing data frame, if not, proceeding to step (2);
(2)将链路状态报文的传输距离减1;(2) Decrease the transmission distance of the link state message by one;
(3)构造转发路由数据帧并发送至数据收发单元13的主数据收发子单元,上述构造的转发路由数据帧的接收方MAC地址为广播地址FF:FF:FF:FF:FF:FF,上述构造的转发路由数据帧的发送方MAC地址为主数据收发子单元的MAC地址,上述构造的转发路由数据帧的帧体为路由数据标记和步骤(2)处理后的链路状态报文。(3) constructing a forwarding routing data frame and transmitting it to the primary data transceiver subunit of the data transceiving unit 13, the receiving MAC address of the forwarding routing data frame constructed as above is a broadcast address FF: FF: FF: FF: FF, FF, The sender MAC address of the configured forwarding routing data frame is the MAC address of the primary data transceiver subunit, and the frame body of the forwarding routing data frame constructed above is the routing data identifier and the link state message processed in step (2).
在由多个本通信装置形成的无线自组织网路中,存在某些节点退出无线自组织网络的情况,此外,本发明的无线自组织网络的拓扑是动态变化的,本通信装置的相邻一跳通信装置的情况会发生变化,需要保证本通信装置维护的关于目的通信装置的路由信息和关于本通信装置的相邻一跳通信装置的路由信息的实时性,因此路由信息维护子单元31包括定时更新模块56对上述情况进行处理;具体的,定时更新模块56按照一定的时间间隔周期性地遍历收发信息存储模块52维护的第一绑定表,对于第一绑定表中的每一项记录都判断最新接收时间和当前时间的差值,若差 值超过一定的阈值,表明本通信装置维护的关于此表项的原始发送方MAC地址对应的目的通信装置的路由信息已经不是最新的,需要删除以此通信装置为目的通信装置的路由信息,则在第一绑定表中删除此项记录,设此项记录的原始发送方MAC地址为time_out_mac,在链路状态计算模块53维护的第三绑定表和第四绑定表中同时删除目的MAC地址为time_out_mac的表项,在路由表模块54维护的第五绑定表中删除目的MAC地址为time_out_mac的表项;定时更新模块56按照一定的时间间隔周期性地遍历链路状态计算模块53维护的第三绑定表,对于第三绑定表中的每一项记录都判断最新接收时间和当前时间的差值,若差值超过一定的阈值,表明本通信装置维护的关于此表项的候选路由MAC地址对应的本通信装置的相邻一跳通信装置的路由信息已经不是最新的,则在第三绑定表中删除此项记录,设此项记录的目的MAC地址为dest_mac,数据收发子单元MAC地址为sr_mac,候选路由MAC地址为cand_mac,在第四绑定表中删除目的MAC地址为dest_mac并且数据收发子单元MAC地址为sr_mac并且候选路由MAC地址为cand_mac的表项,在第四绑定表中查找目的MAC地址为dest_mac并且数据收发子单元MAC地址为sr_mac的表项称为第五表项集合,在第五表项集合中选取链路状态均值最大的表项,向路由表模块54发送路由更新信息,路由更新信息包括上述选取的表项的目的MAC地址、数据收发子单元MAC地址、候选路由MAC地址和链路状态均值。In a wireless ad hoc network formed by a plurality of the communication devices, there are cases where some nodes exit the wireless ad hoc network, and in addition, the topology of the wireless ad hoc network of the present invention is dynamically changed, and adjacent to the communication device. The situation of the one-hop communication device may change, and the routing information about the destination communication device maintained by the communication device and the real-time information about the routing information of the adjacent one-hop communication device of the communication device need to be ensured, so the routing information maintenance subunit 31 The timing update module 56 is configured to process the foregoing situation. Specifically, the timing update module 56 periodically traverses the first binding table maintained by the transceiver information storage module 52 according to a certain time interval, for each of the first binding tables. The item records determine the difference between the latest receiving time and the current time. If the value exceeds a certain threshold, indicating that the routing information of the destination communication device corresponding to the original sender MAC address of the entry maintained by the communication device is not up to date, and the routing information of the communication device for the communication device needs to be deleted, The record is deleted in the first binding table, and the original sender MAC address of the record is time_out_mac, and the destination MAC address is deleted in the third binding table and the fourth binding table maintained by the link state calculation module 53. The entry of the time_out_mac is deleted, and the entry of the destination MAC address is time_out_mac is deleted in the fifth binding table maintained by the routing table module 54. The timing update module 56 periodically traverses the link state calculation module 53 to maintain at a certain time interval. The third binding table determines the difference between the latest receiving time and the current time for each record in the third binding table. If the difference exceeds a certain threshold, it indicates that the communication device maintains the entry related to the entry. If the routing information of the neighboring one-hop communication device of the communication device corresponding to the candidate routing MAC address is not up to date, the third binding table is deleted. For the record, set the destination MAC address of the record to dest_mac, the data transceiver sub-unit MAC address to sr_mac, and the candidate route MAC address to cand_mac. In the fourth binding table, delete the destination MAC address as dest_mac and the data transceiver sub-unit MAC address. The entry of the sr_mac and the candidate route MAC address is the cand_mac entry, and the entry in the fourth binding table that looks for the destination MAC address as dest_mac and the data transceiver sub-unit MAC address is sr_mac is called the fifth entry set, in the fifth table. The entry in the item set with the largest link state average value is sent to the routing table module 54 to send routing update information, where the routing update information includes the destination MAC address, the data transceiver sub-unit MAC address, the candidate routing MAC address, and the chain of the selected entry. Road state average.
以下给出基于本发明所述创新原理的具体实施例,通过该实施例阐明本发明中的通信装置在多个相邻一跳通信装置中选择最优的一个相邻一跳通信装置作为下一跳的过程以及选择本通信装置的最优的一个数据收发子单元来传输数据的过程,假设原始情况下,有a、b、c、d、e五个通信装置,这五个通信装置的相对位置如图6所示,a的一跳范围内只有b、c、d,b的一跳范围内只有a、c、e,c的一跳范围内只有a、b、e,d的一跳范围内只有a,e的一跳范围内只有b、c,a、b、c、d、e按照一定的时间间隔周期性地构造原始路由数据帧并发送至对应通信装置的各个数据收发子单元,假设a、b、c、d、e都具有两个数据收发子单元,以a为例,假设a的两个数据收发子单元分别为主数据收发子单元a_master和从数据收发子单元a_slave,a按照一定的时间间隔周期性地构造原始路由数据帧并发送至a的两个数据收发子单元,a发送至主数据收发子单元a_master的原始路由数据帧的接收方MAC地址为广播地址FF:FF:FF:FF:FF:FF,a发送至主数据收发子单元a_master的原始路由数据帧的发送方MAC地址为a_master的MAC地址a_master_mac,a发送至主数据收发子单元a_master的原始路由数据帧的帧体为路由数据标记route_lable和链路状态报文,上述链路状态报文的原始发送方MAC地址为a_master的MAC地址a_master_mac,上述链路状态报文的传输距离为a_master_distance,上述链路状态报文的链路状态值为a_max,上述链路状态报文的序列号为a_master_num,a_master将上述原始路由数据帧按照802.11标准发送出去;a发送至从数据收发子单元a_slave的原始路由数据帧的接收方MAC地址为广播地址FF:FF:FF:FF:FF:FF,a发送至从数据收发子单元a_slave的原始路由数据帧的发送方MAC地址为a_slave的MAC地址a_slave_mac,a发送至从数据收发子单元a_slave的原始路由数据帧的帧体为路由数据标记route_lable和链路状态报文,上述链路状态报文的原始发送方MAC地址为a_slave的MAC地址a_slave_mac,上述链路状态报文的传输距离为a_slave_distance,a_slave_distance<a_master_distance,上述链路状态报文的链路状态值为a_max,上述链路状态报文的序列号为a_slave_num,a_slave将上述原始路由数据帧按照802.11标准发送出去。 A specific embodiment based on the innovative principle of the present invention is given below, by which the communication device of the present invention clarifies the selection of an optimal one-hop communication device among a plurality of adjacent one-hop communication devices as a next The process of hopping and the process of selecting an optimal data transceiving subunit of the communication device to transmit data, assuming that there are five communication devices a, b, c, d, e in the original case, the relative of the five communication devices The position is as shown in Figure 6. In the range of one hop of a, there are only b, c, d, and only one a, c, e, and one hop of b has only one hop of a, b, e, and d within one hop range of c. Only a, e, b, c, d, e in the range of one, e, e, e, periodically construct the original routing data frame at a certain time interval and send it to each data transceiver subunit of the corresponding communication device. Assuming that a, b, c, d, and e all have two data transceiving subunits, taking a as an example, assuming that two data transceiving subunits of a are the main data transceiving subunit a_master and the slave data transceiving subunit a_slave, a periodically constructs the original route at regular intervals According to the two data transceiving subunits that are sent to a, the sender MAC address of the original routing data frame sent by a to the main data transceiving subunit a_master is the broadcast address FF: FF: FF: FF: FF: FF, a is sent The sender MAC address of the original routing data frame to the primary data transceiver subunit a_master is the MAC address a_master_mac of a_master, and the frame body of the original routing data frame sent by the primary data transceiver subunit a_master is the routing data label route_lable and the link state. The original sender MAC address of the link state message is the MAC address a_master_mac of the a_master, the transmission distance of the link state message is a_master_distance, and the link state value of the link state message is a_max, the chain The sequence number of the road state message is a_master_num, and a_master sends the original route data frame according to the 802.11 standard; a. The sender MAC address sent to the original route data frame from the data transceiver subunit a_slave is the broadcast address FF: FF: FF :FF:FF:FF, a sender's MAC address sent to the original routing data frame from the data transceiving subunit a_slave is a_slave The MAC address a_slave_mac, a frame body sent to the original routing data frame from the data transceiving subunit a_slave is a routing data tag route_lable and a link state message, and the original sender MAC address of the link state message is the MAC address of the a_slave A_slave_mac, the transmission distance of the link state message is a_slave_distance, a_slave_distance<a_master_distance, the link state value of the link state message is a_max, the sequence number of the link state message is a_slave_num, and a_slave uses the original route data. Frames are sent out in accordance with the 802.11 standard.
b、c、d接收到a发送的原始路由数据帧后,提取原始路由数据帧的链路状态报文经过处理后符合条件的会转发出去,a也会收到发送自b、c、d、e的链路状态报文并将经过处理后符合条件的链路状态报文发送出去,其中对于发送自e的链路状态报文,a是通过b或者c间接接收到的。After b, c, and d receive the original routing data frame sent by a, the link state packet of the original routing data frame is forwarded after being processed, and a will be sent from b, c, d, The link state packet of e is sent out and the conditional link state message is sent out. For the link state message sent from e, a is indirectly received through b or c.
以下为叙述简便,不同的参数使用特定的符号来代替,所涉及的参数与符号的对照如下表所示:The following is a brief description. Different parameters are replaced by specific symbols. The parameters and symbols involved are shown in the following table:
表1参数与符号对照表Table 1 parameter and symbol comparison table
Figure PCTCN2016101287-appb-000001
Figure PCTCN2016101287-appb-000001
a通过维护第一绑定表来确定是否需要对接收到的链路状态报文做进一步处理,举例说明上述第一绑定表的维护过程,假设a维护的第一绑定表如下表2所示:a. The maintenance of the first binding table is performed by using the first binding table to maintain the first binding table. The first binding table maintained by a is as shown in Table 2 below. Show:
表2通信装置a维护的第一绑定表示例Table 2 shows a first binding example of maintenance of the communication device a
Figure PCTCN2016101287-appb-000002
Figure PCTCN2016101287-appb-000002
a在t9时刻接收到发送自b的链路状态报文,上述链路状态报文的原始发送方 MAC地址为e的主数据收发子单元的MAC地址e_master_mac,上述链路状态报文的序列号为24,a则在第一绑定表中查找为原始发送方MAC地址为e_master_mac的表项,可以在第一绑定表中查找到上述表项并且上述查找到的表项的序列号为23,上述查找到的表项的序列号小于上述链路状态报文的序列号,则将上述表项的序列号更新为24并将上述表项的最新接收时间更新为t9;a在t10时刻接收到发送自b的链路状态报文,上述链路状态报文的原始发送方MAC地址为c的主数据收发子单元的MAC地址c_master_mac,上述链路状态报文的序列号为31,a则在第一绑定表中查找为原始发送方MAC地址为c_master_mac的表项,可以在第一绑定表中查找到上述表项并且上述查找到的表项的序列号为31,上述查找到的表项的序列号等于上述链路状态报文的序列号,则将此链路状态报文丢弃,不做进一步处理。a receives a link state message sent from b at time t9, and the original sender of the link state message The MAC address e_master_mac of the primary data transceiver unit of the e-address is e, and the sequence number of the link-state packet is 24, and the address in the first binding table is the e-master_mac entry of the original sender MAC address. If the above-mentioned entry is found in the first binding table, and the sequence number of the above-mentioned listed entry is 23, and the serial number of the obtained entry is smaller than the serial number of the link state packet, the foregoing entry is The serial number is updated to 24 and the latest receiving time of the above entry is updated to t9; a receives the link state message sent from b at time t10, and the original sender MAC address of the link state message is c The MAC address of the primary data transceiver unit is c_master_mac, and the sequence number of the link state packet is 31, and a is found in the first binding table as an entry of the original sender MAC address as c_master_mac, which can be in the first binding. If the sequence number of the above-mentioned entry is 31, and the sequence number of the above-mentioned entry is equal to the sequence number of the link state packet, the link state packet is discarded. No further processing
通信装置a通过维护第二绑定表计算a发送的数据被a的相邻一跳通信装置(包括b、c、d)成功接收并且被a的相邻一跳通信装置(包括b、c、d)转发并且又被a成功接收的概率,举例说明上述第二绑定表的维护过程,假设a维护的第二绑定表如下表3所示:The communication device a calculates the data transmitted by a by the second binding table to be successfully received by the adjacent one-hop communication device (including b, c, d) of a and is adjacent to the one-hop communication device (including b, c, d) Probability of forwarding and being successfully received by a, for example, the maintenance process of the second binding table described above, assuming that the second binding table maintained by a is as shown in Table 3 below:
表3通信装置a维护的第二绑定表示例Table 3 shows a second binding example of maintenance of the communication device a
Figure PCTCN2016101287-appb-000003
Figure PCTCN2016101287-appb-000003
称在表3中数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为b_master_mac的表项对应的叠加队列为叠加队列1,称在表3中数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为b_slave_mac的表项对应的叠加队列为叠加队列2,叠加队列1对应的表项的数据收发子单元MAC地址与叠加队列2对应的表项的数据收发子单元MAC地址相同,叠加队列1和叠加队列2的元素的移入、移出过程保持同步,如图7(a)所示,叠加队列1和叠加队列2中序列号的数量与叠加队列长度的比值分别表示表3中对应表项的叠加值,即
Figure PCTCN2016101287-appb-000004
Figure PCTCN2016101287-appb-000005
在此基础上,如图7(b)所示,a接收到发送自b_slave的原始发送方MAC地址为a_master_mac的链路状态报文并且此链路状态报文的序列号为43,则向叠加队列2中依次移入一个空元素和序列号43,叠加队列2对应的表项的叠加值为
Figure PCTCN2016101287-appb-000006
向叠加队列1中依次移入两个空元素,叠加队列1对应的表项的叠加值为
Figure PCTCN2016101287-appb-000007
在a维护的第二绑定表中更新叠加队列1和叠加队列2对应的表项的叠加值,在此基础上,如图7(c)所示,a接收到发送自b_slave的原始发送方MAC地址为a_master_mac的链路状态报文并且此链路状态报文的序列号为44,则向叠加队列2 中移入序列号44,叠加队列2对应的表项的叠加值为
Figure PCTCN2016101287-appb-000008
向叠加队列1中移入一个空元素,叠加队列1对应的表项的叠加值为
Figure PCTCN2016101287-appb-000009
在a维护的第二绑定表中更新叠加队列1和叠加队列2对应的表项的叠加值,在此基础上,如图7(d)所示,a接收到发送自b_master的原始发送方MAC地址为a_master_mac的链路状态报文并且此链路状态报文的序列号为45,则向叠加队列1中移入序列号45,叠加队列1对应的表项的叠加值为
Figure PCTCN2016101287-appb-000010
向叠加队列2中移入一个空元素,叠加队列2对应的表项的叠加值为
Figure PCTCN2016101287-appb-000011
在a维护的第二绑定表中更新叠加队列1和叠加队列2对应的表项的叠加值。
The superimposed queue corresponding to the entry of the data transceiving subunit with the MAC address of a_master_mac and the candidate routing MAC address being b_master_mac is the superposition queue 1, and the MAC address of the data transceiving subunit is a_master_mac and the candidate routing MAC address is referred to in Table 3. The superimposed queue corresponding to the entry of b_slave_mac is the superposition queue 2, and the MAC address of the data transceiving subunit of the entry corresponding to the superposition queue 1 is the same as the MAC address of the data transceiving subunit of the entry corresponding to the superposition queue 2, and the superposition queue 1 and the superposition are superimposed. The process of moving in and out of the elements of queue 2 is kept synchronized. As shown in Fig. 7(a), the ratio of the number of serial numbers in the superimposed queue 1 and the superimposed queue 2 to the length of the superimposed queue respectively represents the superimposed value of the corresponding entries in Table 3. , which is
Figure PCTCN2016101287-appb-000004
Figure PCTCN2016101287-appb-000005
On the basis of this, as shown in FIG. 7(b), a receives the link state message of the original sender MAC address of a_master_mac sent from b_slave and the sequence number of the link state message is 43, In queue 2, an empty element and sequence number 43 are sequentially shifted, and the superposition value of the entry corresponding to the superposition queue 2 is
Figure PCTCN2016101287-appb-000006
Two empty elements are sequentially moved into the superposition queue 1, and the superposition values of the items corresponding to the superposition queue 1 are
Figure PCTCN2016101287-appb-000007
The superposition value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a. On the basis of this, as shown in FIG. 7(c), a receives the original sender sent from the b_slave. If the MAC address is the link state packet of a_master_mac and the sequence number of the link state packet is 44, the sequence number 44 is added to the stack queue 2. The superimposed value of the entry corresponding to the stack queue 2 is
Figure PCTCN2016101287-appb-000008
An empty element is moved into the superposition queue 1, and the superposition value of the corresponding item of the superposition queue 1 is
Figure PCTCN2016101287-appb-000009
The superimposed value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a. On the basis of this, as shown in FIG. 7(d), a receives the original sender sent from the b_master. If the MAC address is a link state packet of the a_master_mac and the sequence number of the link state packet is 45, the sequence number 45 is added to the superposition queue 1, and the superposition value of the entry corresponding to the superposition queue 1 is
Figure PCTCN2016101287-appb-000010
An empty element is moved into the superposition queue 2, and the superposition value of the corresponding item of the superposition queue 2 is
Figure PCTCN2016101287-appb-000011
The superimposed value of the entry corresponding to the superposition queue 1 and the superposition queue 2 is updated in the second binding table maintained by a.
a通过维护第三绑定表计算a的相邻一跳通信装置(包括b、c、d)发送的数据被a成功接收的概率,举例说明上述第三绑定表的维护过程,假设a维护的第三绑定表如下表4所示(本发明需要解决的问题侧重于在多跳数据传输的过程中从本通信装置的多个相邻一跳通信装置中选择一个最优的相邻一跳通信装置作为下一跳来传输数据,当本通信装置以本通信装置的相邻一跳通信装置为目的通信装置时,不牵涉多跳数据传输的问题,因此,为使得本示例更有代表性,在a的相邻一跳通信装置中只选取b作为示例在表4中列出):a. Maintaining the third binding table to calculate the probability that the data sent by the adjacent one-hop communication device (including b, c, d) is successfully received by a, and exemplifies the maintenance process of the third binding table, assuming maintenance The third binding table is as shown in Table 4 below. The problem to be solved by the present invention is to select an optimal adjacent one from a plurality of adjacent one-hop communication devices of the communication device in the process of multi-hop data transmission. The hopping communication device transmits data as the next hop. When the communication device uses the adjacent one-hop communication device of the communication device as the destination communication device, the problem of multi-hop data transmission is not involved. Therefore, in order to make the example more representative Sex, in the adjacent one-hop communication device of a, only b is selected as an example listed in Table 4):
表4通信装置a维护的第三绑定表示例Table 4 shows a third binding example of maintenance of the communication device a
Figure PCTCN2016101287-appb-000012
Figure PCTCN2016101287-appb-000012
称在表4中目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为b_master_mac的表项对应的接收队列为接收队列1,称在表4中目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为c_master_mac的表项对应的接收队列为接收队列2,接收队列1对应的表项的目的MAC地址、数据收发子单元MAC地址分别与接收队列2对应的目的MAC地址、数据收发子单元MAC地址相同,接收队列1和接收队列2的元素的移入、移出过程保持同步,如图8(a)所示,接收队列1和接收队列2中序列号的数量与接收队列长度的比值分别表示表4中对应表项的叠加值,即
Figure PCTCN2016101287-appb-000013
在此基础上,如图8(b)所示,a的a_master又接收到发送自c_master的原始发送方MAC地址为e_master_mac的链路状态报文并且此链路状态报文的序列号为52,则向接收队列2中移入序列号52,接收队列2对应的表项的接收值为
Figure PCTCN2016101287-appb-000014
向接收队列1中移入一个空元素,接收队列1对应的表项的 接收值为
Figure PCTCN2016101287-appb-000015
在a维护的第三绑定表中更新接收队列1和接收队列2对应的表项的接收值,在此基础上,如图8(c)所示,a的a_master又接收到发送自c_master的原始发送方MAC地址为e_master_mac的链路状态报文并且此链路状态报文的序列号为54,则向接收队列2中依次存入一个空元素和序列号54,接收队列2对应的表项的接收值为
Figure PCTCN2016101287-appb-000016
向接收队列1中存入两个空元素,接收队列1对应的表项的接收值为
Figure PCTCN2016101287-appb-000017
在a维护的第三绑定表中更新接收队列1和接收队列2对应的表项的接收值,在此基础上,如图8(d)所示,a的a_master又接收到发送自b_master的原始发送方MAC地址为e_master_mac的链路状态报文并且此链路状态报文的序列号为55,则向接收队列1中存入序列号55,接收队列1对应的表项的接收值为
Figure PCTCN2016101287-appb-000018
向接收队列2中存入一个空元素,接收队列2对应的表项的接收值为
Figure PCTCN2016101287-appb-000019
根据预定时间段内根据与a_master与c_master、b_master的通信情况在通信装置a维护的第三绑定表中更新接收队列1和接收队列2对应的表项的接收值。
The receiving queue corresponding to the entry in the table 4 in which the destination MAC address is e_master_mac and the data forwarding sub-unit MAC address is a_master_mac and the candidate routing MAC address is b_master_mac is the receiving queue 1, and the destination MAC address in the table 4 is e_master_mac and the data is The receiving queue corresponding to the entry with the MAC address of a_master_mac and the candidate routing MAC address being c_master_mac is the receiving queue 2, and the destination MAC address of the entry corresponding to the receiving queue 1 and the MAC address of the data receiving and receiving sub-unit respectively correspond to the receiving queue 2 The destination MAC address and the data transceiver sub-unit MAC address are the same, and the elements of the receiving queue 1 and the receiving queue 2 are synchronized in the process of moving in and out, as shown in FIG. 8( a ), the serial numbers of the receiving queue 1 and the receiving queue 2 are The ratio of the quantity to the length of the receiving queue respectively represents the superimposed value of the corresponding item in Table 4, that is,
Figure PCTCN2016101287-appb-000013
On the basis of this, as shown in FIG. 8(b), the a_master of a receives the link state message of the original sender MAC address e_master_mac sent from the c_master, and the sequence number of the link state message is 52. Then, the sequence number 52 is moved into the receiving queue 2, and the receiving value of the entry corresponding to the receiving queue 2 is
Figure PCTCN2016101287-appb-000014
An empty element is added to the receiving queue 1, and the receiving value of the entry corresponding to the receiving queue 1 is
Figure PCTCN2016101287-appb-000015
The received value of the entry corresponding to the receiving queue 1 and the receiving queue 2 is updated in the third binding table maintained by a. On the basis of this, as shown in FIG. 8(c), the a_master of a receives the sending from c_master. If the original sender MAC address is the link state packet of the e_master_mac and the sequence number of the link state packet is 54, the empty queue element and the sequence number 54 are sequentially stored in the receive queue 2, and the entry corresponding to the queue 2 is received. Received value
Figure PCTCN2016101287-appb-000016
Two empty elements are stored in the receiving queue 1, and the receiving value of the entry corresponding to the receiving queue 1 is
Figure PCTCN2016101287-appb-000017
The received value of the entry corresponding to the receiving queue 1 and the receiving queue 2 is updated in the third binding table maintained by a. On the basis of this, as shown in FIG. 8(d), the a_master of a receives the sending from the b_master. If the original sender MAC address is the link state packet of the e_master_mac and the sequence number of the link state packet is 55, the sequence number 55 is stored in the receiving queue 1, and the receiving value of the entry corresponding to the queue 1 is received.
Figure PCTCN2016101287-appb-000018
An empty element is stored in the receiving queue 2, and the receiving value of the entry corresponding to the receiving queue 2 is
Figure PCTCN2016101287-appb-000019
The received value of the entry corresponding to the receive queue 1 and the receive queue 2 is updated in the third binding table maintained by the communication device a according to the communication with the a_master and the c_master and the b_master in the predetermined time period.
链路状态值是a在多跳数据传输的过程中从a的多个相邻一跳通信装置(包括b、c、d)中选择一个最优的相邻一跳通信装置作为下一跳来传输数据的重要依据,举例说明链路状态值的计算过程,a的a_master接收到发送自b_master的原始发送方MAC地址为e_master_mac的链路状态报文,上述链路状态报文的链路状态值为link_state,则a在a维护的第二绑定表中(表3)查找数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址MAC为b_master_mac的表项,上述表项的叠加值为multi1,a在a维护的第三绑定表(表4)中查找目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为b_master_mac的表项,上述表项的接收值为recv5,则计算后的链路状态值为:
Figure PCTCN2016101287-appb-000020
计算后的链路状态值表示a从a的a_master以e为目的通信装置发送数据并且以b为下一跳通信装置时的链路状态;a判读上述链路状态报文的传输距离,若上述链路状态报文的传输距离小于或者等于1,则将上述链路状态报文丢弃,a不转发上述链路状态报文;若上述链路状态报文的传输距离大于1,a需要将上述链路状态报文更新后再转发出去,具体的,将上述链路状态报文的链路状态值更新为计算后的链路状态值并将上述链路状态报文的传输距离减1,经过上述更新过程后,a将更新后的链路状态报文封装为转发路由数据帧通过a的a_master发送出去,上述构造的转发路由数据帧的接收方MAC地址为广播地址FF:FF:FF:FF:FF:FF,上述构造的转发路由数据帧的发送方MAC地址为a_master_mac,上述构造的转发路由数据帧的帧体为路由数据标记route_lable和上述更新后的链路状态报文。
The link state value is that a selects an optimal adjacent one-hop communication device from a plurality of adjacent one-hop communication devices (including b, c, d) of a as a next hop during multi-hop data transmission. An important basis for the transmission of data is an example of the calculation of the link state value. The a_master of a receives the link state packet of the original sender MAC address of the b_master, which is e_master_mac, and the link state value of the link state packet. For the link_state, a is found in the second binding table maintained by a (Table 3). The data forwarding sub-unit MAC address is a_master_mac and the candidate routing MAC address MAC is b_master_mac. The superimposed value of the above entry is multi1, a. In the third binding table maintained in a (Table 4), the entry with the destination MAC address being e_master_mac and the data forwarding sub-unit MAC address being a_master_mac and the candidate routing MAC address being b_master_mac is found. The receiving value of the above entry is recv5. The calculated link status value is:
Figure PCTCN2016101287-appb-000020
The calculated link state value indicates a link state when a a_master of a transmits data from e and the b is the next hop communication device; a determines the transmission distance of the link state message, if If the transmission distance of the link state packet is less than or equal to 1, the link state packet is discarded, and a does not forward the link state packet. If the transmission distance of the link state packet is greater than 1, the a The link state packet is updated and then forwarded. Specifically, the link state value of the link state packet is updated to the calculated link state value, and the transmission distance of the link state packet is decreased by 1. After the above update process, a encapsulates the updated link state message into a forwarding route data frame and sends it out through the a_master of a. The sender MAC address of the above-mentioned forwarding route data frame is the broadcast address FF: FF: FF: FF. : FF: FF, the sender MAC address of the above-mentioned forwarding routing data frame is a_master_mac, and the frame body of the above-mentioned forwarding routing data frame is the routing data label route_lable and the updated link shape. Message.
a通过计算a与目的通信装置(包括b、c、d、e)的最近几次链路状态的平均值来确定a与目的通信装置(包括b、c、d、e)之间的链路状态,a通过维护第四绑定表记录上述链路状态平均值的对应关系,举例说明上述第四绑定表的维护过程,假设a维护的第四绑定表如下表5所示(本发明需要解决的问题侧重于在多跳数据传输的过程中从本通信装置的多个相邻一跳通信装置中选择一个最优的相邻一跳通信装置作为下一跳来传输数据,当本通信装置以本通信装置的相邻一跳通信装置为目的通信装置时,不牵涉多跳数据传输的问题,因此,为使得本示例更有代表性,在a的相邻一跳通信装置中只选取b作为示例在表5中列出):a determining the link between a and the destination communication device (including b, c, d, e) by calculating the average of the last few link states of a and the destination communication device (including b, c, d, e) The state, a maintains the correspondence between the link state averages by maintaining the fourth binding table, and illustrates the maintenance process of the fourth binding table, and assumes that the fourth binding table maintained by a is as shown in Table 5 below. The problem to be solved focuses on selecting an optimal adjacent one-hop communication device from the plurality of adjacent one-hop communication devices of the communication device as the next hop to transmit data during the multi-hop data transmission. When the device is a communication device for the adjacent one-hop communication device of the communication device, the problem of multi-hop data transmission is not involved. Therefore, in order to make the example more representative, only the adjacent one-hop communication device of a is selected. b is listed as an example in Table 5):
表5通信装置a维护的第四绑定表示例 Table 5 shows a fourth binding example of maintenance of the communication device a
Figure PCTCN2016101287-appb-000021
Figure PCTCN2016101287-appb-000021
称在表5中目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为b_master_mac的表项对应的均值队列为均值队列1,如图9(a)所示,均值队列1中链路状态值的平均值即为对应表项的链路状态均值,即avg5=(a2+a3+a4)/3,在此基础上,如图9(b)所示,a的a_master接收到发送自b_master的原始发送方MAC地址为e_master_mac的链路状态报文并且计算后的链路状态值为a4,则在均值队列1中存入链路状态值a4,更新均值队列1对应的表项的链路状态均值为(a2+a3+a4)/3,在此基础上,如图9(c)所示,a的a_master接收到发送自b_master的原始发送方MAC地址为e_master_mac的链路状态报文并且计算后的链路状态值为a5,则在均值队列1中存入链路状态值a5,更新均值队列1对应的表项的链路状态均值为(a3+a4+a5)/3,在此基础上,如图9(d)所示,a的a_master接收到发送自b_master的原始发送方MAC地址为e_master_mac的链路状态报文并且计算后的链路状态值为a6,则在均值队列1中存入链路状态值a6,更新均值队列1对应的表项的链路状态均值为(a4+a5+a6)/3。The average queue corresponding to the entry in the table 5 whose destination MAC address is e_master_mac and whose data forwarding sub-unit MAC address is a_master_mac and whose candidate routing MAC address is b_master_mac is the average queue 1, as shown in Figure 9(a), the average queue 1 The average value of the link state value is the link state average of the corresponding entry, that is, avg5=(a 2 +a 3 +a 4 )/3. On this basis, as shown in Figure 9(b), a The a_master receives the link state message sent from the b_master whose original sender MAC address is e_master_mac and the calculated link state value is a 4 , then stores the link state value a 4 in the averaging queue 1 and updates the mean value. The link state of the entry corresponding to queue 1 is (a 2 + a 3 + a 4 ) / 3. On the basis of this, as shown in Figure 9 (c), the a_master of a receives the original transmission sent from b_master. side link state MAC address e_master_mac link state packets and calculates the value of a 5, then stored in a queue in the link state mean values a 5, a queue corresponding to the mean update the link state entries mean (a 3 + a 4 + a 5) / 3, on the basis of FIG. 9 (d) as shown, receives a's a_master Sent from the original sender MAC address is e_master_mac b_master link state and the link message state in the calculated value of a 6, the link state is stored in the mean value of a 6 1 queue, a queue corresponding to the updated average The link state average of the entry is (a 4 + a 5 + a 6 ) / 3.
a每次更新a维护的第四绑定表的表项后,都需要根据a维护的第四绑定表更新a维护的第五绑定表,举例说明上述第五绑定表的维护过程,假设a维护的第五绑定表如下表6所示(本发明需要解决的问题侧重于在多跳数据传输的过程中从本通信装置的多个相邻一跳通信装置中选择一个最优的相邻一跳通信装置作为下一跳来传输数据,当本通信装置以本通信装置的相邻一跳通信装置为目的通信装置时,不牵涉多跳数据传输的问题,因此,为使得本示例更有代表性,在a的相邻一跳通信装置中只选取b作为示例在表6中列出):a. After updating the table of the fourth binding table maintained by a, the fifth binding table maintained by a is updated according to the fourth binding table maintained by a, and the maintenance process of the fifth binding table is illustrated. It is assumed that the fifth binding table maintained by a is as shown in Table 6 (the problem to be solved by the present invention is to focus on selecting an optimal one of a plurality of adjacent one-hop communication devices of the communication device in the process of multi-hop data transmission. The adjacent one-hop communication device transmits data as the next hop. When the communication device is the communication device for the adjacent one-hop communication device of the communication device, the problem of multi-hop data transmission is not involved. Therefore, in order to make the example More representative, in the adjacent one-hop communication device of a, only b is selected as an example listed in Table 6):
表6通信装置a维护的第五绑定表示例Table 6 shows a fifth binding example of maintenance of the communication device a
Figure PCTCN2016101287-appb-000022
Figure PCTCN2016101287-appb-000022
Figure PCTCN2016101287-appb-000023
Figure PCTCN2016101287-appb-000023
a的a_master接收到发送自c_master的原始发送方MAC地址为e_master_mac的链路状态报文,a基于上述链路状态报文计算出并更新第四绑定表中目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为c_master_mac的表项的链路状态均值为avg21,a在第四绑定表中查找目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac的表项,在上述表项中选取链路状态均值最大的表项,假设上述选取的链路状态均值最大的表项即为之前更新的目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac并且候选路由MAC地址为c_master_mac的表项,则在第五绑定表中查找目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_master_mac的表项,将上述在第五绑定表中查找到的表项的候选路由MAC地址更新为c_master_mac,并将上述在第五绑定表中查找到的表项的链路状态均值更新为avg21。A_master of a receives the link state message of the original sender MAC address of e_master_mac sent from c_master, a calculates and updates the destination MAC address of the fourth binding table to e_master_mac based on the link state message, and the data transceiver The link state of the entry whose MAC address is a_master_mac and the candidate route MAC address is c_master_mac is avg21, and the entry in the fourth binding table is the entry of the destination MAC address e_master_mac and the data transceiver sub-unit MAC address is a_master_mac. The entry with the highest link state average is selected in the above-mentioned entry, and the entry with the highest link state is the e_master_mac and the MAC address of the data sub-unit is a_master_mac and the candidate route MAC address. If the entry is c_master_mac, the entry in the fifth binding table is the entry of the e_master_mac and the data forwarding sub-unit MAC address is a_master_mac, and the candidate of the entry found in the fifth binding table is selected. The routing MAC address is updated to c_master_mac, and the above-mentioned entries found in the fifth binding table are Road status update to mean avg21.
若a要向e发送IP数据包(a产生的IP数据包,不是a转发的其它通信装置产生的IP数据包),a根据ARP协议确定目的MAC地址为e_slave_mac,则在第五绑定表(表6)中查找目的MAC地址为e_slave_mac并且数据收发子单元MAC地址为a_master_mac的表项,上述查找到的表项的候选路由MAC地址为b_master_mac,设置上述表项的最新使用标记,取消其它的目的MAC地址为e_slave_mac的表项的最新使用标记,a构造负载数据帧并通过a_master发送,上述构造的负载数据帧的接收方MAC地址为b_master_mac,上述构造的负载数据帧的发送方MAC地址为a_master_mac,上述构造的负载数据帧的帧体为负载数据标记和上述IP数据包;若d要向e发送IP数据包,d选择a作为下一跳,a通过a_master接收到发送自d的IP数据包后,a根据ARP协议确定目的MAC地址为e_master_mac,则在第五绑定表(表6)中查找目的MAC地址为e_master_mac的表项,在上述查找到的表项中优先选取最新使用标记为空的表项,即目的MAC地址为e_master_mac并且数据收发子单元MAC地址为a_slave_mac并且候选路由MAC地址为c_master_mac,a选取c作为下一跳通信装置,上述表项的链路状态均值为avg18,设avg18大于链路可用值,则设置上述表项的最新使用标记,取消其它的目的MAC地址为e_master_mac的表项的最新使用标记,a构造负载数据帧并通过a_slave发送,上述构造的负载数据帧的接收方MAC地址为c_master_mac,上述构造的负载数据帧的发送方MAC地址为a_slave_mac,上述构造的负载数据帧的帧体为负载数据标记和上述IP数据包。从而通过本发明的这种方式为通信装置a选择了进行数据传输(发送自身产生的数据或者转发其它通信装置产生的数据)最优的下一跳通信装置以及最优的数据收发子单元,实现了基于动态变换的无线自组织网络的移动通信过程。If a wants to send an IP data packet to e (a IP data packet generated by a, not an IP data packet generated by another communication device forwarded by a), a determines the destination MAC address as e_slave_mac according to the ARP protocol, and then in the fifth binding table ( In Table 6), the entry with the destination MAC address being e_slave_mac and the MAC address of the data transceiving sub-unit is a_master_mac, and the candidate route MAC address of the above-mentioned entry is b_master_mac, and the latest usage flag of the above entry is set to cancel other purposes. The MAC address is the latest usage flag of the e_slave_mac entry. a constructs the payload data frame and sends it through a_master. The receiver MAC address of the payload data frame constructed above is b_master_mac. The sender MAC address of the payload data frame constructed above is a_master_mac. The frame body of the load data frame constructed above is the load data tag and the above IP data packet; if d is to send an IP data packet to e, d selects a as the next hop, and a receives the IP data packet sent from d through a_master. If the destination MAC address is e_master_mac according to the ARP protocol, look for the entry with the destination MAC address being e_master_mac in the fifth binding table (Table 6). If the entry with the latest tag is empty, the destination MAC address is e_master_mac and the MAC address of the data transceiver sub-unit is a_slave_mac and the candidate route MAC address is c_master_mac, and a is selected as the next-hop communication device. The link state of the above entry is avg18. If avg18 is greater than the link available value, set the latest usage flag of the above entry, cancel the latest usage tag of the other entry with the destination MAC address being e_master_mac, and construct a payload data frame. And sent by a_slave, the receiver MAC address of the above-mentioned load data frame is c_master_mac, and the sender MAC address of the above-mentioned load data frame is a_slave_mac, and the frame body of the above-mentioned load data frame is the load data flag and the above IP data. package. Therefore, the communication device a selects the optimal next hop communication device and the optimal data transceiver sub-unit for data transmission (transmitting data generated by itself or forwarding data generated by other communication devices) by the communication device a. The mobile communication process of wireless self-organizing network based on dynamic transformation.
以上仅是对本发明的优选实施方式进行了描述,并不将本发明的技术方案限制于此,本领域技术人员在本发明的主要技术构思的基础上所作的任何公知变形都属于本发明所要保护的技术范畴,本发明具体的保护范围以权利要求书的记载为准。The above is only a description of the preferred embodiments of the present invention, and the technical solutions of the present invention are not limited thereto. Any known modifications made by those skilled in the art based on the main technical idea of the present invention belong to the present invention. The specific scope of the invention is defined by the scope of the claims.
工业实用性Industrial applicability
本发明专利所述基于无线自组织网络的移动通信系统,能够适用于所有需要互联网通信的工业领域,尤其是需要布置无固定中心的、健壮性强、网络通信范围不受网络中心节点的限制、网络通信能力强的无线自组织网络系统的工业领域,具有很强的工业实用性。 The mobile communication system based on the wireless self-organizing network described in the patent of the present invention can be applied to all industrial fields that require Internet communication, in particular, it is required to arrange a fixed center without robustness, and the network communication range is not restricted by the network central node. The industrial field of wireless self-organizing network systems with strong network communication capabilities has strong industrial applicability.

Claims (28)

  1. 基于无线自组织网络的移动通信系统,其特征在于,包括若干通信装置,每个通信装置都包括路由单元和数据收发解析单元,所述路由单元中维护有路由分配表,所述路由分配表中包括有若干分配记录表项,每个分配记录表项中记录有目的地址和候选分配路由地址的对应关系,且分配记录表项中的候选分配路由地址为本通信装置向目的地址对应的目的通信装置发送数据时最优选择的下一跳通信装置的地址,所述数据收发解析单元发送数据前向所述路由单元发送路由查询请求,所述路由查询请求包括有接收目的地址,所述路由单元接收到所述路由查询请求后在路由分配表中查找目的地址与路由查询请求中的接收目的地址相同的分配记录表项,并根据查找到的分配记录表项向所述数据收发解析单元发送路由查询响应,所述路由查询响应包括查找到的分配记录表项中的候选分配路由地址,所述数据收发解析单元将路由查询响应中的候选分配路由地址作为发送数据的接收方地址。A mobile communication system based on a wireless ad hoc network, comprising: a plurality of communication devices, each communication device comprising a routing unit and a data transceiving and parsing unit, wherein the routing unit maintains a routing allocation table, wherein the routing allocation table is The method includes a plurality of allocation record entries, each of which records a correspondence between a destination address and a candidate allocation routing address, and the candidate allocation routing address in the allocation record entry is a destination communication corresponding to the destination address of the communication device. The address of the next-hop communication device that is optimally selected when the device transmits data, and the data transceiving and parsing unit sends a route query request to the routing unit before transmitting the data, where the route query request includes a receiving destination address, and the routing unit After receiving the route query request, the route allocation table searches for an allocation record entry whose destination address is the same as the destination address in the route query request, and sends a route to the data sending and receiving parsing unit according to the found allocation record entry. Query response, the route query response includes the found score Routing address assignment candidate record entry, the data parsing unit transceiver route query routing address candidate allocation response receiver address as a transmission data.
  2. 根据权利要求1所述的基于无线自组织网络的移动通信系统,其特征在于,对于路由分配表中的每一个分配记录表项,其中的候选分配路由地址为本通信装置向目的地址对应的目的通信装置发送数据时发送链路状态最佳的下一跳通信装置的地址,所述发送链路状态通过收发链路状态与接收链路状态确定,所述收发链路状态通过本通信装置发送的路由数据帧被本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率反映,所述接收链路状态通过目的通信装置发送的路由数据帧经本通信装置的相邻一跳通信装置转发后被本通信装置接收的接收概率反映。The wireless ad hoc network-based mobile communication system according to claim 1, wherein a record entry is allocated to each of the route allocation tables, wherein the candidate route address is the destination of the communication device corresponding to the destination address. Sending, by the communication device, the address of the next hop communication device with the best link state, the transmission link state being determined by the transceiver link state and the receiving link state, the transceiver link state being sent by the communication device The routing data frame is received by the adjacent one-hop communication device of the communication device, and is forwarded by the communication device, and then transmitted and received by the communication device, and the routing data frame transmitted by the destination communication device is transmitted through the communication device. The reception probability of the adjacent one-hop communication device after being forwarded by the communication device is reflected.
  3. 根据权利要求1所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由单元包括路由信息维护子单元(31)和原始路由数据帧产生子单元(32),所述原始路由数据帧产生子单元(32)按照一定的时间间隔周期性地构造原始路由数据帧并通过数据收发解析单元发送给其他通信装置,同时所述数据收发解析单元接收其他通信装置产生的路由数据帧,并将所述路由数据帧发送给所述路由信息维护子单元(31);所述路由数据帧包括接收方地址、发送方地址和路由帧体,所述路由帧体包括链路状态报文,所述链路状态报文包括原始发送方地址和链路状态值;所述路由信息维护子单元(31)接收、转发其他通信装置产生的路由数据帧,并在转发路由数据帧时更新路由数据帧中链路状态报文的链路状态值,更新后的链路状态值用于反应链路状态报文的原始发送方地址对应的通信装置和本通信装置之间的通信链路状态,所述路由信息维护子单元(31)基于路由数据帧维护路由分配表,所述路由分配表的每个分配记录表项中记录的目的地址为路由数据帧链路状态报文的原始发送方地址,记录的候选分配路由地址为使本通信装置到目的地址对应的通信装置的通信链路中链路状态稳定值最大的本通信装置的下一跳通信装置的地址。The wireless ad hoc network-based mobile communication system according to claim 1, wherein the routing unit comprises a routing information maintenance subunit (31) and an original routing data frame generation subunit (32), the original route The data frame generating sub-unit (32) periodically constructs the original routing data frame according to a certain time interval and transmits the data to the other communication device through the data transceiving and parsing unit, and the data transceiving and parsing unit receives the routing data frame generated by the other communication device. And sending the routing data frame to the routing information maintenance subunit (31); the routing data frame includes a receiver address, a sender address, and a routing frame body, where the routing frame body includes a link state packet, The link state message includes an original sender address and a link state value; the routing information maintenance subunit (31) receives and forwards a routing data frame generated by another communication device, and updates the routing data when forwarding the routing data frame. The link state value of the link state message in the frame, and the updated link state value is used to reflect the original sender of the link state message. Corresponding communication link state between the communication device and the communication device, the routing information maintenance subunit (31) maintains a route allocation table based on the route data frame, and records each record record entry in the route allocation table The destination address is the original sender address of the link state message of the routing data frame, and the recorded candidate routing address is the communication device with the highest link state stability value in the communication link of the communication device corresponding to the destination address of the communication device. The address of the next hop communication device.
  4. 根据权利要求3所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元(31)基于路由数据帧维护有叠加表、接收表、链路状态表和所述路由分配表;The wireless ad hoc network-based mobile communication system according to claim 3, wherein the routing information maintenance subunit (31) maintains an overlay table, a reception table, a link state table, and the Route allocation table;
    所述叠加表包括有若干条叠加记录表项,每条叠加记录表项中记录有候选路由地址和叠加值的对应关系,且在每条叠加记录表项的对应关系中,所述候选路由地址为本通信装置的相邻一跳通信装置的地址,所述叠加值为本通信装置发送的路由数据帧被候选路由地址对应的本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率;The overlay table includes a plurality of superimposed record entries, each of which records a correspondence between a candidate route address and a superimposed value, and in a correspondence relationship of each superimposed record entry, the candidate route address For the address of the adjacent one-hop communication device of the communication device, the superimposed value is that the routing data frame sent by the communication device is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address and is forwarded again by the communication device. The probability of receiving and receiving received by the communication device;
    所述接收表包括有若干条接收记录表项,每条接收记录表项中记录有目的地址、候选路由地址和接收值的对应关系,且在每条接收记录表项的对应关系中,所述目 的地址为目的通信装置的地址,所述候选路由地址为本通信装置的相邻一跳通信装置的地址,所述接收值为目的地址对应的目的通信装置发送的路由数据帧经由候选路由地址对应的本通信装置的相邻一跳通信装置转发后被本通信装置接收的接收概率;The receiving table includes a plurality of receiving record entries, each of which records a correspondence between a destination address, a candidate route address, and a received value, and in a correspondence relationship of each received record entry, Head The address is the address of the destination communication device, the candidate routing address is the address of the adjacent one-hop communication device of the communication device, and the received value is corresponding to the routing data frame sent by the destination communication device corresponding to the destination address via the candidate routing address. The probability of reception received by the adjacent one-hop communication device of the present communication device after being forwarded by the communication device;
    所述链路状态表包括有若干条链路状态记录表项,每条链路状态记录表项中记录有目的地址、候选路由地址和链路状态稳定值的对应关系,所述链路状态表基于所述叠加表和接收表构造,每条链路状态记录表项由具有相同候选路由地址的一条叠加记录表项和一条接收记录表项形成,所述链路状态记录表项中的目的地址为接收记录表项中的目的地址,所述链路状态记录表项中的候选路由地址为叠加记录表项和接收记录表项中含有的相同的候选路由地址,所述链路状态记录表项中的链路状态稳定值基于叠加记录表项中的叠加值和接收记录表项中的接收值计算得到;The link state table includes a plurality of link state record entries, and each link state record entry records a correspondence between a destination address, a candidate route address, and a link state stable value, and the link state table Based on the overlay table and the receiving table configuration, each link state record entry is formed by an overlay record entry having the same candidate route address and a received record entry, and the destination address in the link state record entry In order to receive the destination address in the record entry, the candidate route address in the link state record entry is the same candidate route address included in the overlay record entry and the receive record entry, and the link state record entry The link state stability value in the calculation is calculated based on the superimposed value in the superimposed record entry and the received value in the received record entry;
    所述路由分配表基于所述链路状态表来构造,在链路状态表中提取具有相同目的地址的链路状态记录表项集合,在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址和候选路由地址分别作为路由分配表的分配记录表项中的目的地址和候选分配路由地址。The route allocation table is configured based on the link state table, extracting a link state record entry set having the same destination address in the link state table, and selecting a link state in the link state record entry set The link state record entry with the highest stable value, and the destination address and the candidate route address in the link state record entry with the highest link state stability value as the destination address in the allocation record entry of the route allocation table, respectively. Candidate allocation routing address.
  5. 根据权利要求4所述的基于无线自组织网络的移动通信系统,其特征在于,本通信装置中的原始路由数据帧产生子单元(32)构造的原始路由数据帧的链路状态报文的原始发送方地址为本通信装置的地址,原始路由数据帧的链路状态报文的链路状态值取最大值,原始路由数据帧的链路状态报文的序列号在本通信装置产生的前一个链路状态报文的序列号的基础上按照固定步长递增变化;所述路由信息维护子单元(31)根据接收到的最新的路由数据帧更新所述叠加表和接收表,当路由数据帧的链路状态报文的原始发送方地址为本通信装置的地址时,所述路由信息维护子单元(31)更新所述叠加表,在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若能查询到所述叠加记录表项则更新所述叠加记录表项中的叠加值,若不能查询到所述叠加记录表项则在叠加表中新增一条叠加记录表项,新增的叠加记录表项中的候选路由地址为路由数据帧的发送方地址,新增的叠加记录表项中的叠加值的计算方法与叠加值的更新方法相同;当路由数据帧的链路状态报文的原始发送方地址不为本通信装置的地址时,所述路由信息维护子单元更新所述接收表,在接收表中查询目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项,若能查询到所述接收记录表项则更新所述接收记录表项中的接收值,若不能查询到所述接收记录表项则在接收表中新增一条接收记录表项,新增的接收记录表项中的目的地址为路由数据帧的链路状态报文的原始发送方地址,新增的接收记录表项中的候选路由地址为路由数据帧的发送方地址,新增的接收记录表项中的接收值的计算方法与所述接收值的更新方法相同。The wireless ad hoc network-based mobile communication system according to claim 4, wherein the original routing data frame in the communication device generates the original link state message of the original routing data frame constructed by the subunit (32) The sender address is the address of the communication device, the link state value of the link state message of the original route data frame takes the maximum value, and the sequence number of the link state message of the original route data frame is generated before the communication device The sequence number of the link state message is incrementally changed according to a fixed step size; the routing information maintenance subunit (31) updates the overlay table and the receiving table according to the received latest routing data frame, when the routing data frame When the original sender address of the link state message is the address of the communication device, the routing information maintenance subunit (31) updates the overlay table, and queries the candidate route address as the sender of the route data frame in the overlay table. An overlay record entry of the address, if the overlay record entry is queried, the overlay value in the overlay record entry is updated, if the overlay record cannot be queried The entry adds a superimposed record entry in the overlay table. The candidate route address in the newly added overlay record entry is the sender address of the route data frame, and the calculation method of the superimposed value in the newly added overlay record entry. The update method is the same as the update method of the superimposed value; when the original sender address of the link state message of the routing data frame is not the address of the communication device, the routing information maintenance subunit updates the receiving table, and queries in the receiving table. The destination address is the original sender address of the link state packet of the routing data frame and the candidate routing address is the receiving record entry of the sender address of the routing data frame. If the receiving record entry can be queried, the receiving is updated. The received value in the record entry. If the received record entry cannot be queried, a new receive record entry is added to the receive table. The destination address in the newly added receive record entry is the link state of the routed data frame. The original sender address of the packet, the candidate route address in the newly added record entry is the sender address of the route data frame, and the reception in the newly received record entry The method of updating the same calculation method with the received value.
  6. 根据权利要求5所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由 地址为路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据帧中的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的链路状态记录表项,若能查询到所述链路状态记录表项,则基于路由数据帧的链路状态报文的更新后的链路状态值更新该链路状态记录表项中的链路状态稳定值,若不能查询到所述链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的候选路由地址为路由数据帧的发送方地址,新增的链路状态记录表项的链路状态稳定值为路由数据帧中的链路状态报文的更新后的链路状态值。The wireless ad hoc network-based mobile communication system according to claim 5, wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: First, extract the link state value of the link state packet of the routing data frame, which is recorded as x; secondly, query the superimposed table to query the superimposed record entry of the sender address of the routing data frame in the overlay table, if not in the overlay table If the superimposed record entry is queried, the update of the link state table is ended. If the superimposed record entry is queried in the overlay table, the superimposed value in the superimposed record entry is extracted and recorded as y; And then extracting the original sender address of the link state message whose destination address is the route data frame in the receiving table and candidate route The received value in the receiving record entry of the sender address of the routing data frame is recorded as z; when (y/z) < 1, the link state value of the link state packet of the routing data frame is updated to x*(y/z), when (y/z) ≥ 1, update the link state value of the link state message of the routing data frame to the original value x; finally, query the destination address in the link state table as The link state record entry of the link state message in the route data frame and the candidate route address being the link state record entry of the sender address of the route data frame, if the link state record entry is queried, based on The updated link state value of the link state packet of the routing data frame updates the link state stable value in the link state record entry. If the link state record entry cannot be queried, the link state is in the link state. A link state record entry is added to the table. The destination address of the newly added link state record entry is the original sender address of the link state packet in the routing data frame. The newly added link state record entry. The candidate routing address is the sender address of the routing data frame, and the added link The link state stability value of the status record entry is the updated link state value of the link state message in the route data frame.
  7. 根据权利要求5或6所述的基于无线自组织网络的移动通信系统,其特征在于,所述链路状态表中为每一条链路状态记录表项都维护有一个均值队列,且每条链路状态记录表项对应的均值队列的长度相同,所述均值队列中存储有路由数据帧的链路状态报文的更新后的链路状态值,且所述均值队列中链路状态值的移入移出遵循先入先出的原则,所述链路状态记录表项中的链路状态稳定值为均值队列中存储的所有链路状态值的平均值;所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询候选路由地址为路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则向该链路状态记录表项对应的均值队列中移入路由数据帧的链路状态报文的更新后的链路状态值,并重新计算均值队列中所有链路状态值的平均值,将所述链路状态记录表项中的链路状态稳定值更新为所述平均值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据帧的链路状态报文的原始发送方地址,新增的链路状态记录表项的候选路由地址为路由数据帧的发送方地址,并向新增的链路状态记录表项对应的均值队列中移入路由数据帧的链路状态报文的更新后的链路状态值,新增的链路状态记录表项的链路状态稳定值为其对应的均值队列中链路状态值的平均值。The wireless ad hoc network-based mobile communication system according to claim 5 or 6, wherein each link state record entry maintains an average queue and each chain in the link state table. The mean value queue corresponding to the path state record entry has the same length, and the mean queue queue stores the updated link state value of the link state message of the route data frame, and the link state value of the average queue is moved in. The removal follows the principle of first-in first-out, and the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit is updated every time. After the receiving table is described, the link state table is updated in the following manner: first, the link state value of the link state packet of the routing data frame is extracted, and is recorded as x; secondly, the candidate routing address is queried as the routing data in the overlay table. The superimposed record entry of the sender address of the frame, if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, if it is in the overlay table Inquiring the above superimposed record entry, extracting the superimposed value in the superimposed record entry, denoted as y; and then extracting the original sender address of the link state message whose destination address is the route data frame in the receiving table and candidate route The received value in the receiving record entry of the sender address of the routing data frame is recorded as z; when (y/z) < 1, the link state value of the link state packet of the routing data frame is updated to x*(y/z), when (y/z) ≥ 1, update the link state value of the link state message of the routing data frame to the original value x; finally, query the destination address in the link state table as The original sender address of the link state packet of the routing data frame and the candidate routing address is the link state record entry of the sender address of the routing data frame. If the link state record entry is queried, the link is sent to the link. The updated link state value of the link state packet moved into the routing data frame in the averaging queue corresponding to the status record entry, and recalculating the average value of all link state values in the averaging queue, and recording the link state record The link state stability value in the entry is updated to If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the newly added link state record entry is the chain of the route data frame. The original sender address of the route status message, the candidate route address of the newly added link state record entry is the sender address of the route data frame, and the route is moved to the average queue corresponding to the newly added link state record entry. The updated link state value of the link state packet of the data frame. The link state stability value of the newly added link state record entry is the average of the link state values in the corresponding average queue.
  8. 根据权利要求6或7所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元每次更新完所述链路状态表后,按照以下方式同时更新所述路由分配表:首先在链路状态表中查询得到目的地址为路由数据帧的链路状态报文的原始发送方地址的链路状态记录表项集合;接着在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址和候选路由地址分别作为路由更新表项中的目的地址和候选路由地址;然后在路由分配表中查询目的地址为路由更新表项中的目的 地址的分配记录表项,若能查到所述分配记录表项则将所述分配记录表项中的候选分配路由地址更新为所述路由更新表项中的候选路由地址,若不能查到所述分配记录表项,则在路由分配表中新增一条分配记录表项,新增的分配记录表项的目的地址和候选分配路由地址分别为所述路由更新表项中的目的地址和候选路由地址。The wireless ad hoc network-based mobile communication system according to claim 6 or 7, wherein the routing information maintenance sub-unit updates the route at the same time each time after updating the link state table. The allocation table: first, in the link state table, the link state record entry of the original sender address of the link state packet whose destination address is the route data frame is obtained; and then in the link state record entry set The link state record entry with the highest link state stability value is selected, and the destination address and the candidate route address in the link state record entry with the highest link state stability value are respectively used as the destination address in the route update entry. Candidate routing address; then query the destination address in the routing allocation table for the purpose of the routing update entry An allocation record entry of the address, if the allocation record entry is found, the candidate allocation routing address in the allocation record entry is updated to the candidate routing address in the routing update entry, if the candidate routing address is not found, In the allocation record entry, a new allocation record entry is added to the routing allocation table, and the destination address and the candidate allocation routing address of the newly added allocation record entry are respectively the destination address and the candidate route in the routing update entry. address.
  9. 根据权利要求5-7任一项所述的基于无线自组织网络的移动通信系统,其特征在于,所述叠加表为每条叠加记录表项都维护有一个叠加队列,且各叠加记录表项对应的叠加队列长度相同,所述叠加队列中存储有路由数据帧的链路状态报文的序列号,且所述叠加队列中序列号的移入移出遵循先入先出的原则,每条叠加记录表项中的叠加值为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值,且所述叠加表中各叠加记录表项对应的叠加队列中序列号的移入移出过程保持同步,所述路由信息维护子单元(31)基于最新的路由数据帧更新所述叠加表时,按照以下方式更新叠加记录表项中的叠加值:将叠加表中候选路由地址为路由数据帧的发送方地址的叠加记录表项作为本叠加记录表项,向本叠加记录表项对应的叠加队列中移入路由数据帧的链路状态报文的序列号,同时向叠加表中除本叠加记录表项以外的其他叠加记录表项对应的叠加队列中移入一个空元素,然后将叠加表中的各叠加记录表项的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述接收表为每条接收记录表项都维护有一个接收队列,且各接收记录表项对应的接收队列长度相同,所述接收队列中存储有路由数据帧的链路状态报文的序列号,且所述接收队列中序列号的移入移出遵循先入先出的原则,每条接收记录表项中的接收值为其对应的接收队列中存储的序列号的数量与接收队列长度的比值,且所述接收表中目的地址相同的接收记录表项对应的接收队列中序列号的移入移出过程保持同步,所述路由信息维护子单元(31)基于最新的路由数据帧更新所述接收表时,按照以下方式更新接收记录表项中的接收值:将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据帧的发送方地址的接收记录表项作为本接收记录表项,向本接收记录表项对应的接收队列中移入路由数据帧的链路状态报文的序列号,同时向除本接收记录表项之外的接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的其他接收记录表项对应的接收队列中移入一个空元素,然后将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。The wireless ad hoc network-based mobile communication system according to any one of claims 5 to 7, wherein the superimposition table maintains one superimposition queue for each superimposed record entry, and each superimposed record entry The corresponding superimposed queues have the same length. The superimposed queue stores the sequence number of the link state message of the routing data frame, and the moving in and out of the serial number in the superimposed queue follows the principle of first in first out, and each superimposed recording table The superimposed value of the item is the ratio of the number of the serial number stored in the corresponding superimposed queue to the length of the superimposed queue, and the process of moving in and out of the serial number in the superimposed queue corresponding to each superimposed record item in the superimposed table is kept synchronized. When the routing information maintenance subunit (31) updates the overlay table based on the latest routing data frame, the superimposed value in the superimposed recording table item is updated in the following manner: the candidate routing address in the superimposition table is the sender of the routing data frame. The superimposed record entry of the address is used as the superimposed record entry, and the link state of the route data frame is moved to the superposition queue corresponding to the superimposed record entry. The serial number of the message is simultaneously shifted into an empty element in the superposition queue corresponding to the superimposed record entry other than the superimposed record entry in the superimposition table, and then the superimposed value of each superimposed record entry in the superimposition table is updated to The ratio of the number of the serial number stored in the corresponding superimposed queue to the length of the superimposed queue; the receiving table maintains one receiving queue for each receiving record entry, and the receiving queue length corresponding to each receiving record entry is the same. The receiving queue stores the sequence number of the link state packet of the routing data frame, and the moving in and out of the serial number in the receiving queue follows the principle of first in first out, and the receiving value in each receiving record entry is The ratio of the number of the serial number stored in the corresponding receiving queue to the length of the receiving queue, and the process of moving in and out of the serial number in the receiving queue corresponding to the receiving record entry having the same destination address in the receiving table is synchronized, and the routing information is synchronized. When the maintenance subunit (31) updates the receiving table based on the latest routing data frame, the receiving in the receiving record entry is updated as follows. The value is as follows: the receiving record entry of the sender address of the link state packet whose destination address is the route data frame of the routing data frame and the receiving route entry of the sender address of the routing data frame are received as the present receiving record entry. The sequence number of the link state packet of the routing data frame in the receiving queue corresponding to the record entry, and the original of the link state packet whose destination address is the routing data frame in the receiving table except the receiving record entry The receiving queue corresponding to the other receiving record entry of the sender address is moved into an empty element, and then the receiving value of each receiving record entry of the original sender address of the link state packet whose destination address is the routing data frame is received. Updates the ratio of the number of serial numbers stored in its corresponding receive queue to the length of the receive queue.
  10. 根据权利要求9所述的基于无线自组织网络的移动通信系统,其特征在于,所述叠加队列与所述接收队列的长度相同;新生成的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按固定步长递增,记为L;所述路由信息维护子单元每次更新所述叠加表时,按照以下方式更新叠加表中相关叠加记录表项的叠加值:提取叠加表中各叠加记录表项对应的叠加队列中序列号的最大值,记为a,提取路由数据帧的链路状态报文的序列号,记为b,向叠加表中除本叠加记录表项以外的其他叠加记录表项对应的叠加队列中依次移入((b-a)/L)个空元素,向本叠加记录表项对应的叠加队列中依次移入(((b-a)/L)-1)个空元素和序列号b,然后将叠加表中的各叠加记录表项中的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述路由信息维护子单元每次更新所述接收表时,按照以下方式更新接收表中相关接收记录表项的接收值:提取接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的接收记录表项对应的接收队列中序列号的最大值,记为m,提取路由数据帧的链路状态报文的序 列号,记为n,向接收表中除本接收记录表项以外的目的地址为路由数据帧的链路状态报文的原始发送方地址的接收记录表项对应的接收队列中依次移入((n-m)/L)个空元素,向本接收记录表项对应的接收队列中依次移入(((n-m)/L)-1)个空元素和序列号n,然后将接收表中目的地址为路由数据帧的链路状态报文的原始发送方地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。The wireless ad hoc network-based mobile communication system according to claim 9, wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same in the previous one. The sequence number of the link state message of the original sender address is incremented by a fixed step, denoted as L; and each time the routing information maintenance subunit updates the overlay table, the related table is updated in the following manner. Superimposing the superimposed value of the superimposed record item: extracting the maximum value of the serial number in the superimposed queue corresponding to each superimposed record entry in the superimposed table, and recording it as a, extracting the serial number of the link state message of the routing data frame, and recording it as b, Adding ((ba)/L) empty elements to the superposition queue corresponding to the superimposed record entries other than the superimposed record entries in the overlay table, and sequentially shifting them into the superposition queue corresponding to the superimposed record entries (( (ba)/L)-1) an empty element and a sequence number b, and then update the superimposed value in each superimposed record entry in the superimposed table to the number of serial numbers stored in the corresponding superimposed queue and the superimposed queue length The routing information maintenance sub-unit updates the received value of the relevant receiving record entry in the receiving table each time the receiving table is updated: extracting the link status report in the receiving table whose destination address is the routing data frame The maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the original sender address of the text is recorded as m, and the sequence of the link state message of the routed data frame is extracted. The column number, denoted as n, is sequentially shifted into the receiving queue corresponding to the receiving record entry of the original sender address of the link state message whose destination address is the routing data frame except the receiving record entry in the receiving table (( Nm) / L) empty elements, in turn into the receiving queue corresponding to the receiving record entry (((nm) / L) -1) empty elements and serial number n, and then the destination address in the receiving table is routed The received value of each received record entry of the original sender address of the link state message of the data frame is updated to the ratio of the number of sequence numbers stored in the corresponding receive queue to the length of the receive queue.
  11. 根据权利要求5-10任一项所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元(31)按照以下方式判定接收到的路由数据帧是否为最新的路由数据帧:所述路由信息维护子单元(31)中维护有预处理表,所述预处理表中包括有若干条预处理记录表项,每条预处理记录表项中记录有原始发送方地址和序列号的对应关系,所述路由信息维护子单元(31)接收到来自数据收发解析单元的路由数据帧时,在预处理表中查询原始发送方地址为路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,若没有查询到对应的预处理记录表项,则将数据收发解析单元提供的路由数据帧判定为最新的路由数据帧,并在预处理表中新增一项预处理记录表项,新增的预处理记录表项的原始发送方地址和序列号分别为路由数据帧的链路状态报文的原始发送方地址和序列号;若在预处理表中查询到原始发送方地址为路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,则比较所述预处理记录表项中的序列号与路由数据帧的链路状态报文的序列号的大小关系,若所述预处理记录表项中的序列号小于路由数据帧的链路状态报文的序列号,则将数据收发解析单元提供的路由数据帧判定为最新的路由数据帧,并将所述预处理记录表项中的序列号更新为路由数据帧的链路状态报文的序列号,若所述预处理记录表项中的序列号大于等于路由数据帧的链路状态报文的序列号,将所述路由数据帧丢弃。The wireless ad hoc network-based mobile communication system according to any one of claims 5 to 10, wherein the routing information maintenance subunit (31) determines whether the received routing data frame is up to date according to the following manner. Routing data frame: The routing information maintenance subunit (31) maintains a preprocessing table, where the preprocessing table includes a plurality of preprocessing record entries, and each preprocessing record entry records an original sender. Corresponding relationship between the address and the serial number, the routing information maintenance subunit (31), when receiving the routing data frame from the data transceiving and parsing unit, in the preprocessing table, querying the link status report that the original sender address is the routing data frame If the pre-processing record entry of the original sender address of the text is not queried, the routing data frame provided by the data transceiving and parsing unit is determined as the latest routing data frame, and is in the pre-processing table. A preprocessing record entry is added. The original sender address and sequence number of the newly added preprocessing record entry are the original link state packets of the routing data frame. The sender address and the sequence number are sent; if the pre-processing record entry of the original sender address of the link state message whose original sender address is the route data frame is queried in the pre-processing table, the pre-processing record table is compared. The relationship between the sequence number of the entry and the sequence number of the link state packet of the routing data frame. If the sequence number in the preprocessing record entry is smaller than the sequence number of the link state packet of the routing data frame, The routing data frame provided by the data transceiving and parsing unit is determined as the latest routing data frame, and the sequence number in the preprocessing record entry is updated to the sequence number of the link state message of the routing data frame, if the preprocessing The sequence number in the record entry is greater than or equal to the sequence number of the link state packet of the route data frame, and the route data frame is discarded.
  12. 一种基于无线自组织网络的移动通信系统,其特征在于,包括若干通信装置,每个通信装置都包括路由单元、数据解析单元和数据收发单元,所述数据收发单元包括至少一个数据收发子单元,所述数据收发单元向数据解析单元发送路由数据信息,所述数据解析单元将接收到的路由数据信息发送至所述路由单元,所述路由单元基于路由数据信息维护有路由分配表,所述路由分配表中包括有若干分配记录表项,每个分配记录表项中记录有目的地址、数据收发子单元地址和候选分配路由地址的对应关系,且在每个分配记录表项的对应关系中,所述目的地址为目的通信装置中的数据收发子单元的地址,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选分配路由地址为由数据收发子单元地址对应的本通信装置中的数据收发子单元向目的地址对应的目的通信装置中的数据收发子单元发送通信数据时最优选择的下一跳通信装置的数据收发子单元的地址;所述数据解析单元发送负载数据前向所述路由单元发送路由查询请求,所述路由查询请求包括有接收目的地址,所述路由单元接收到所述路由查询请求后在路由分配表中查找目的地址与路由查询请求中的接收目的地址相同的分配记录表项,并根据查找到的分配记录表项向所述数据解析单元发送路由查询响应,所述路由查询响应包括查找到的分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元将路由查询响应中的候选分配路由地址作为发送负载数据的接收方地址、将路由查询响应中的数据收发子单元地址作为发送负载数据的发送方地址。A mobile communication system based on a wireless ad hoc network, comprising: a plurality of communication devices, each communication device comprising a routing unit, a data parsing unit and a data transceiving unit, the data transceiving unit comprising at least one data transceiving subunit The data transceiving unit sends routing data information to the data parsing unit, the data parsing unit sends the received routing data information to the routing unit, and the routing unit maintains a routing allocation table based on the routing data information, The routing allocation table includes a plurality of allocation record entries, and each of the allocation record entries records a correspondence between a destination address, a data transceiving subunit address, and a candidate allocation routing address, and is in a correspondence relationship of each allocation record entry. The destination address is an address of a data transceiving subunit in the destination communication device, the data transceiving subunit address is an address of a data transceiving subunit in the communication device, and the candidate allocation routing address is a data transceiving subunit The data transceiving subunit in the communication device corresponding to the address Address of the data transceiving subunit of the next hop communication device that is optimally selected when the data transceiving subunit in the destination communication device corresponds to the destination communication device; the data parsing unit sends a route to the routing unit before transmitting the payload data Query request, the route query request includes a receiving destination address, and after receiving the route query request, the routing unit searches the route allocation table for an allocation record entry whose destination address is the same as the receiving destination address in the route query request. And sending a route query response to the data parsing unit according to the found allocation record entry, where the route query response includes the data transceiving subunit address and the candidate allocation routing address in the found allocation record entry, and the data parsing The unit uses the candidate allocation routing address in the routing query response as the receiver address of the transmission load data, and the data transceiver subunit address in the routing query response as the sender address of the transmission load data.
  13. 根据权利要求12所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由单元包括路由信息维护子单元(31)和原始路由数据帧产生子单元(32), 所述原始路由数据帧产生子单元(32)按照一定的时间间隔周期性地构造原始路由数据帧并通过数据收发单元发送给其他通信装置,同时所述数据收发单元接收其他通信装置产生的路由数据帧,并将其构造成路由数据信息后发送给数据解析单元,经数据解析单元将所述路由数据信息发送给路由信息维护子单元(31),所述路由数据信息包括路由数据帧和本通信装置中接收此路由数据帧的数据收发子单元地址,所述路由数据帧包括接收方地址、发送方地址和路由帧体,所述路由帧体包括链路状态报文,所述链路状态报文包括原始发送方地址、链路状态值和序列号,所述链路状态值用于反应链路状态报文的原始发送方地址对应的通信装置和路由数据帧的发送方地址对应的通信装置之间的通信链路状态;对于路由分配表中的每一个分配记录表项,其中由数据收发子单元地址、候选分配路由地址和目的地址组成发送链路状态处于最佳的通信路径,所述发送链路状态通过收发链路状态与接收链路状态确定,所述收发链路状态通过本通信装置的数据收发子单元发送的路由数据帧被本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率反映,所述接收链路状态通过目的通信装置发送的路由数据帧经本通信装置的相邻一跳通信装置转发后被本通信装置的数据收发子单元接收的接收概率反映。The wireless ad hoc network-based mobile communication system according to claim 12, wherein the routing unit comprises a routing information maintenance subunit (31) and an original routing data frame generation subunit (32), The original routing data frame generating sub-unit (32) periodically constructs the original routing data frame according to a certain time interval and transmits the data to the other communication device through the data transceiver unit, and the data transceiver unit receives the routing data generated by the other communication device. The frame is configured to be sent to the data parsing unit, and the routing data information is sent to the routing information maintenance subunit (31), where the routing data information includes the routing data frame and the communication. The device receives the data transceiving subunit address of the routing data frame, where the routing data frame includes a receiving address, a sender address, and a routing frame body, where the routing frame body includes a link state packet, and the link status report The text includes an original sender address, a link state value, and a sequence number, where the link state value is used to communicate with the communication device corresponding to the original sender address of the link state message and the sender address corresponding to the sender address of the route data frame Communication link status; for each of the routing allocation tables, a record entry is received by the data The sub-unit address, the candidate allocation routing address, and the destination address constitute a transmission link state in an optimal communication path, and the transmission link state is determined by a transceiving link state and a receiving link state, and the transceiving link state passes the communication The routing data frame sent by the data transceiver unit of the device is received by the adjacent one-hop communication device of the communication device, and is forwarded by the communication device, and the transmission and reception probability is reflected by the communication device, and the receiving link state is sent by the destination communication device. The routed data frame is forwarded by the adjacent one-hop communication device of the communication device and reflected by the reception probability received by the data transceiver subunit of the communication device.
  14. 根据权利要求13所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由单元基于路由数据信息维护叠加表、接收表、链路状态表和所述路由分配表;The wireless ad hoc network-based mobile communication system according to claim 13, wherein the routing unit maintains an overlay table, a reception table, a link state table, and the route allocation table based on the routing data information;
    所述叠加表包括有若干条叠加记录表项,每条叠加记录表项中记录有数据收发子单元地址、候选路由地址和叠加值的对应关系,且在每条叠加记录表项的对应关系中,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选路由地址为本通信装置的相邻一跳通信装置中的数据收发子单元的地址,所述叠加值为数据收发子单元地址对应的本通信装置中的数据收发子单元发送的路由数据帧被候选路由地址对应的本通信装置的相邻一跳通信装置接收并被其转发后再次被本通信装置接收的收发概率;The overlay table includes a plurality of superimposed record entries, and each superposition record entry records a correspondence between a data transceiving subunit address, a candidate route address, and a superimposed value, and is in a correspondence relationship of each superimposed record entry. The data transceiving subunit address is an address of a data transceiving subunit in the communication device, and the candidate routing address is an address of a data transceiving subunit in a neighboring one-hop communication device of the communication device, the superimposed value The routing data frame sent by the data transceiving subunit in the communication device corresponding to the data transceiving subunit address is received by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address and forwarded by the communication device, and then received by the communication device again. Transceiver probability
    所述接收表包括有若干条接收记录表项,每条接收记录表项中记录有目的地址、数据收发子单元地址、候选路由地址和接收值的对应关系,且在每条接收记录表项的对应关系中,所述目的地址为目的通信装置中的数据收发子单元的地址,所述数据收发子单元地址为本通信装置中的数据收发子单元的地址,所述候选路由地址为本通信装置的相邻一跳通信装置中的数据收发子单元的地址,所述接收值为目的地址对应的目的通信装置发送的路由数据帧经由候选路由地址对应的本通信装置的相邻一跳通信装置转发后被数据收发子单元地址对应的本通信装置中的数据收发子单元接收的接收概率;The receiving table includes a plurality of receiving record entries, and each of the received record entries records a correspondence between a destination address, a data transceiving subunit address, a candidate routing address, and a received value, and each of the received record entries In the correspondence, the destination address is an address of a data transceiving subunit in the destination communication device, the data transceiving subunit address is an address of a data transceiving subunit in the communication device, and the candidate routing address is a communication device. The address of the data transceiving subunit in the adjacent one-hop communication device, and the received value is the routing data frame sent by the destination communication device corresponding to the destination address, and is forwarded by the adjacent one-hop communication device of the communication device corresponding to the candidate routing address. a reception probability received by the data transceiving subunit in the communication device corresponding to the address of the data transceiving subunit;
    所述链路状态表包括有若干条链路状态记录表项,每条链路状态记录表项中记录有目的地址、数据收发子单元地址、候选路由地址和链路状态稳定值的对应关系,所述链路状态表基于所述叠加表和接收表构造,每条链路状态记录表项由具有相同数据收发子单元地址和相同候选路由地址的一条叠加记录表项和一条接收记录表项形成,所述链路状态记录表项中的目的地址为接收记录表项中的目的地址,所述链路状态记录表项中的数据收发子单元地址为叠加记录表项和接收记录表项中含有的相同的数据收发子单元地址,所述链路状态记录表项中的候选路由地址为叠加记录表项和接收记录表项中含有的相同的候选路由地址,所述链路状态记录表项中的链路状态稳定值基于叠加记录表项中的叠加值和接收记录表项中的接收值计算得到;The link state table includes a plurality of link state record entries, and each link state record entry records a correspondence between a destination address, a data transceiver subunit address, a candidate route address, and a link state stable value. The link state table is constructed based on the overlay table and the receiving table, and each link state record entry is formed by an overlay record entry and a receive record entry having the same data transceiving subunit address and the same candidate routing address. The destination address in the link state record entry is a destination address in the receive record entry, and the data transceiver sub-unit address in the link state record entry is included in the overlay record entry and the receive record entry. The same data transceiving subunit address, the candidate routing address in the link state record entry is the same candidate routing address contained in the superimposed record entry and the received record entry, in the link state record entry The link state stable value is calculated based on the superimposed value in the superimposed record entry and the received value in the received record entry;
    所述路由分配表基于所述链路状态表来构造,在链路状态表中提取具有相同目 的地址和相同数据收发子单元地址的链路状态记录表项集合,在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项,并将该链路状态稳定值最大的链路状态记录表项中的目的地址、数据收发子单元地址和候选路由地址分别作为路由分配表的对应分配记录表项中的目的地址、数据收发子单元地址和候选分配路由地址。The route allocation table is constructed based on the link state table, and extracts the same directory in the link state table a set of link state record entries of the address and the same data transceiving subunit address, and selecting a link state record entry having the largest link state stable value in the link state record entry set, and the link state The destination address, the data transceiving subunit address, and the candidate routing address in the link state record entry with the highest stable value are respectively used as the destination address, the data transceiving subunit address, and the candidate allocation routing address in the corresponding allocation record entry of the route allocation table. .
  15. 根据权利要求14所述的基于无线自组织网络的移动通信系统,其特征在于,所述原始路由数据帧产生子单元(32)构造的原始路由数据帧的链路状态报文的原始发送方地址为原始发送所述原始路由数据帧的数据收发子单元的地址,所述原始路由数据帧的链路状态报文的链路状态值取最大值,所述原始路由数据帧的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按照固定步长递增变化;所述路由信息维护子单元(31)根据接收到的最新的路由数据信息更新所述叠加表和接收表,当路由数据信息中路由数据帧的链路状态报文的原始发送方地址为本通信装置中的任一数据收发子单元的地址时,所述路由信息维护子单元(31)更新所述叠加表,在叠加表中查询数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若能查询到所述叠加记录表项则更新所述叠加记录表项中的叠加值,若不能查询到所述叠加记录表项则在叠加表中新增一条叠加记录表项,新增的叠加记录表项中的数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址,新增的叠加记录表项中的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增的叠加记录表项中的叠加值的计算方法与叠加值的更新方法相同;当路由数据信息中路由数据帧的链路状态报文的原始发送方地址不为本通信装置中的任一数据收发子单元的地址时,所述路由信息维护子单元更新所述接收表,在接收表中查询目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项,若能查询到所述接收记录表项则更新所述接收记录表项中的接收值,若不能查询到所述接收记录表项则在接收表中新增一条接收记录表项,新增的接收记录表项中的目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址,新增的接收记录表项中的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的接收记录表项中的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增的接收记录表项中的接收值的计算方法与所述接收值的更新方法相同。The wireless ad hoc network-based mobile communication system according to claim 14, wherein the original routed data frame generates an original sender address of a link state message of the original routed data frame constructed by the subunit (32) The link state value of the link state message of the original routed data frame is the maximum value, and the link state message of the original route data frame is the address of the data transmission and reception subunit of the original routed data frame. The sequence number is incremented by a fixed step size based on the sequence number of the link state message having the same original sender address; the routing information maintenance subunit (31) is based on the latest route data information received. Updating the overlay table and the receiving table, when the original sender address of the link state message of the routing data frame in the routing data information is the address of any data transceiving subunit in the communication device, the routing information defender The unit (31) updates the overlay table, and queries the data in the overlay table for the link state message of the routing data frame in the routing data information. The original sender address and the candidate route address is an overlay record entry of the sender address of the route data frame in the route data information, and if the overlay record entry is queried, the superimposed value in the superimposed record entry is updated. If the superimposed record entry cannot be queried, an overlay record entry is added to the overlay table, and the data transceiver subunit address in the newly added overlay record entry is a link state packet of the route data frame in the route data information. The original sender address, the candidate route address in the newly added overlay record entry is the sender address of the route data frame in the route data information, and the calculation method of the superimposed value in the newly added overlay record entry and the update of the superimposed value The method is the same; when the original sender address of the link state message of the routing data frame in the routing data information is not the address of any data transceiver subunit in the communication device, the routing information maintenance subunit updates the receiving In the receiving table, the original sender address, data transmission and reception of the link state packet of the routing data frame in the routing data information is queried in the receiving table. The sub-unit address is a data receiving sub-unit address of the routing data frame in the routing data information, and the candidate routing address is a receiving record entry of the sender address of the routing data frame in the routing data information, if the receiving record entry can be queried And updating the received value in the received record entry. If the received record entry cannot be queried, a new receive record entry is added to the receive table, and the destination address in the newly received receive record entry is route data. The original sender address of the link state packet of the routing data frame in the information, and the data transceiving subunit address in the newly received receiving record entry is the data transceiving subunit address of the routing data frame in the routing data information, newly added The candidate route address in the received record entry is the sender address of the route data frame in the route data information, and the calculation method of the received value in the newly received record entry is the same as the update method of the received value.
  16. 根据权利要求15所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据信息中路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据信息中 路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中的路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则基于更新后的所述链路状态值更新该链路状态记录表项中的链路状态稳定值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的链路状态记录表项的候选路由地址为路由数据信息中路由数据帧的发送方地址,新增的链路状态记录表项的链路状态稳定值为更新后的所述链路状态值。The wireless ad hoc network-based mobile communication system according to claim 15, wherein the routing information maintenance sub-unit simultaneously updates the link state table in the following manner after updating the receiving table: First, the link state value of the link state message of the route data frame in the route data information is extracted, and is recorded as x; secondly, the data transceiver sub-unit address is queried in the overlay table as the data transceiver sub-unit of the route data frame in the route data information. The address and the candidate routing address are superimposed records of the sender address of the routing data frame in the routing data information. If the superimposed recording entry cannot be queried in the overlay table, the link state table is updated, if Querying the superimposed record entry in the overlay table, extracting the superimposed value in the superimposed record entry, and recording it as y; and then extracting the link state message in the receiving table whose destination address is the routing data frame in the routing data information The original sender address and the data transceiving subunit address are the data transceiving subunit addresses of the routing data information in the routing data information. And the candidate routing address is the received value in the receiving record entry of the sender address of the routing data frame in the routing data information, and is recorded as z; when (y/z)<1, the routing data information is The link state value of the link state message of the routed data frame is updated to x*(y/z). When (y/z)≥1, the link state message is routed in the data frame. The path state value is updated to the original value x; finally, the query destination address is the original sender address of the link state message in the route data frame in the link data information, and the data transceiver subunit address is the route data information. Receiving the data transceiving subunit address of the routing data frame and the candidate routing address is a link state record entry of the sender address of the routing data frame in the routing data information, if the link state record entry can be queried, based on the update The link state value of the link state record is updated in the link state record entry. If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the newly added link state record entry is the original sender address of the link state packet in the route data frame in the route data information, and the data transceiver subunit address of the newly added link state record entry is The data receiving and sending sub-unit address of the routing data frame is received by the data information, and the candidate routing address of the newly added link state record entry is the sender address of the routing data frame in the routing data information, and the newly added link state record entry The link state stability value is the updated link state value.
  17. 根据权利要求15或16所述的基于无线自组织网络的移动通信系统,其特征在于,所述链路状态表中为每一条链路状态记录表项都维护有一个均值队列,且每条链路状态记录表项对应的均值队列的长度相同,所述均值队列中存储有路由数据信息中路由数据帧的链路状态报文的更新后的链路状态值,且所述均值队列中链路状态值的移入移出遵循先入先出的原则,所述链路状态记录表项中的链路状态稳定值为均值队列中存储的所有链路状态值的平均值;所述路由信息维护子单元每次更新完所述接收表后,按照以下方式同时更新所述链路状态表:首先提取路由数据信息中路由数据帧的链路状态报文的链路状态值,记为x;其次在叠加表中查询数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项,若不能在叠加表中查询到上述叠加记录表项,则结束所述链路状态表的更新,若能在叠加表中查询到上述叠加记录表项,则提取所述叠加记录表项中的叠加值,记为y;接着提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项中的接收值,记为z;当(y/z)<1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为x*(y/z),当(y/z)≥1时,将路由数据信息中路由数据帧的链路状态报文的链路状态值更新为原值x;最后在链路状态表中查询目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中的路由数据帧的发送方地址的链路状态记录表项,若能查询到该链路状态记录表项则向该链路状态记录表项对应的均值队列中移入更新后的上述链路状态报文的链路状态值,并重新计算均值队列中所有链路状态值的平均值,将所述链路状态记录表项中的链路状态稳定值更新为所述平均值,若不能查询到该链路状态记录表项则在链路状态表中新增一条链路状态记录表项,新增的链路状态记录表项的目的地址为路由数据信息中路由数据帧中的链路状态报文的原始发送方地址,新增的链路状态记录表项的数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址,新增的链路状态记录表项的候选路由地址为路由数据信息中路由数据帧的发送方地址,并向新增的链路状态记录表项对应的均值队列中移入更新后的链路状态报文的链路状态值,新增的链路状态记录表项的链路状态稳定值为其对应的均值队列中链路状态值的平均值。 The wireless ad hoc network-based mobile communication system according to claim 15 or 16, wherein each link state record entry maintains an average queue in the link state table, and each chain The mean value queue corresponding to the path state record entry has the same length, and the average queue has the updated link state value of the link state message of the route data frame in the route data information, and the link in the mean queue The shifting in and out of the state value follows the principle of first in first out, and the link state stability value in the link state record entry is an average value of all link state values stored in the average queue; the routing information maintenance subunit per After updating the receiving table, the link state table is updated in the following manner: first, the link state value of the link state packet of the routing data frame in the routing data information is extracted, which is recorded as x; secondly, in the overlay table The address of the query data transceiving subunit is the data transceiving subunit address of the routing data frame in the routing data information and the candidate routing address is the routing information in the routing data information. According to the superimposed record entry of the sender address of the frame, if the superimposed record entry cannot be queried in the overlay table, the update of the link state table is ended, and if the superimposed record entry is queried in the overlay table And extracting the superimposed value in the superimposed record entry, denoted as y; and then extracting the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information in the receiving table For receiving the data transceiving subunit address of the routing data frame in the routing data information and the candidate routing address is the receiving value in the receiving record entry of the sender address of the routing data frame in the routing data information, denoted as z; when (y/z When <1, the link state value of the link state message of the routing data frame in the routing data information is updated to x*(y/z), and when (y/z)≥1, the routing data information is routed. The link state value of the link state packet of the data frame is updated to the original value x; finally, the query destination address is the original sender address of the link state message in the route data frame in the route data information, Data transmission and reception The unit address is a link status record entry in the routing data information that receives the data transceiving subunit address of the routing data frame and the candidate routing address is the sender address of the routing data frame in the routing data information, and if the link status can be queried The record entry moves the updated link state value of the link state packet to the average queue corresponding to the link state record entry, and recalculates the average value of all link state values in the average queue. The link state stable value in the link state record entry is updated to the average value. If the link state record entry cannot be queried, a link state record entry is added to the link state table. The destination address of the added link state record entry is the original sender address of the link state packet in the route data frame in the route data information, and the data transceiver subunit address of the newly added link state record entry is the route data. The information receives the data transceiving subunit address of the routing data frame, and the candidate routing address of the newly added link state record entry is the routing data frame in the routing data information. The sender address is added to the link state value of the updated link state packet in the averaging queue corresponding to the newly added link state record entry, and the link state stable value of the newly added link state record entry The average of the link state values in its corresponding averaging queue.
  18. 根据权利要求16或17所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元每次更新完所述链路状态表后,按照以下方式同时更新所述路由分配表:首先在链路状态表中查询得到目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的链路状态记录表项集合;接着在所述链路状态记录表项集合中选取链路状态稳定值最大的链路状态记录表项作为路由更新表项;然后在路由分配表中查询目的地址为路由更新表项中的目的地址并且数据收发子单元地址为路由更新表项中的数据收发子单元地址的分配记录表项,若能查到所述分配记录表项则将所述分配记录表项中的候选分配路由地址更新为所述路由更新表项中的候选路由地址,若不能查到所述分配记录表项,则在路由分配表中新增一条分配记录表项,新增的分配记录表项的目的地址、数据收发子单元地址和候选分配路由地址分别为所述路由更新表项中的目的地址、数据收发子单元地址和候选路由地址。The wireless ad hoc network-based mobile communication system according to claim 16 or 17, wherein the routing information maintenance sub-unit updates the route at the same time each time after updating the link state table. The allocation table: firstly, in the link state table, the original sender address of the link state message whose destination address is the route data frame in the route data information is obtained, and the data transceiver subunit address is the data of the route data frame received in the route data information. Transmitting a link state record entry of the sub-unit address; and then selecting, in the link state record entry, a link state record entry with the link state stable value as the route update entry; and then routing the table The destination address of the query is the destination address in the routing update entry, and the data transceiving subunit address is the allocation record entry of the data transceiving subunit address in the routing update entry, and if the allocation record entry can be found, Updating the candidate allocation routing address in the allocation record entry to the candidate routing address in the routing update entry, if If the allocation record entry cannot be found, a new allocation record entry is added to the routing allocation table, and the destination address, the data transceiving subunit address, and the candidate allocation routing address of the newly added allocation record entry are respectively the route. Update the destination address, data transceiving subunit address, and candidate routing address in the entry.
  19. 根据权利要求15-18任一项所述的基于无线自组织网络的移动通信系统,其特征在于,所述叠加表为每条叠加记录表项都维护有一个叠加队列,且各叠加记录表项对应的叠加队列长度相同,所述叠加队列中存储有路由数据信息中路由数据帧的链路状态报文的序列号,且所述叠加队列中序列号的移入移出遵循先入先出的原则,每条叠加记录表项中的叠加值为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值,且所述叠加表中数据收发子单元地址相同的叠加记录表项对应的叠加队列中序列号的移入移出过程保持同步,所述路由信息维护子单元基于最新的路由数据信息更新所述叠加表时,按照以下方式更新叠加记录表项中的叠加值:将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的叠加记录表项作为本叠加记录表项,向本叠加记录表项对应的叠加队列中移入路由数据信息中路由数据帧的链路状态报文的序列号,同时向叠加表中除本叠加记录表项以外的数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的其他叠加记录表项对应的叠加队列中移入一个空元素,然后将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的各叠加记录表项的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述接收表为每条接收记录表项都维护有一个接收队列,且各接收记录表项对应的接收队列长度相同,所述接收队列中存储有路由数据信息中路由数据帧的链路状态报文的序列号,且所述接收队列中序列号的移入移出遵循先入先出的原则,每条接收记录表项中的接收值为其对应的接收队列中存储的序列号的数量与接收队列长度的比值,且所述接收表中数据收发子单元地址和目的地址均相同的接收记录表项对应的接收队列中序列号的移入移出过程保持同步,所述路由信息维护子单元基于最新的路由数据信息更新所述接收表时,按照以下方式更新接收记录表项中的接收值:将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址并且候选路由地址为路由数据信息中路由数据帧的发送方地址的接收记录表项作为本接收记录表项,向本接收记录表项对应的接收队列中移入路由数据信息中路由数据帧的链路状态报文的序列号,同时向除本接收记录表项之外的接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址 的其他接收记录表项对应的接收队列中移入一个空元素,然后将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。The wireless ad hoc network-based mobile communication system according to any one of claims 15 to 18, wherein the superimposition table maintains one superimposition queue for each superimposed recording entry, and each superimposed recording entry The corresponding superimposed queues have the same length, and the superposition queue stores the sequence number of the link state message of the routing data frame in the routing data information, and the moving in and out of the serial number in the superimposed queue follows the principle of first in first out, each The superimposed value in the superimposed record entry is a ratio of the number of serial numbers stored in the corresponding superimposed queue to the length of the superimposed queue, and the superimposed queue corresponding to the superimposed record entry with the same address of the data transceiving subunit in the superimposed table The process of moving in and out of the serial number is kept synchronized. When the routing information maintenance subunit updates the overlay table based on the latest routing data information, the superimposed value in the superimposed recording table is updated in the following manner: the data in the superimposed table is transmitted and received. The unit address is the original sender address of the link state message of the routing data frame in the routing data information and the candidate routing address The superimposed record entry of the sender address of the routing data frame in the routing data information is used as the superimposed record entry, and the link state message of the routing data frame is moved into the superimposed queue corresponding to the superimposed record entry. The serial number, and the data transceiving subunit address other than the superimposed recording entry in the superposition table is the superimposed queue corresponding to the other superimposed recording entry of the original sender address of the link state message of the routing data frame in the routing data information. Moves an empty element into the middle, and then updates the superposition value of each superimposed record entry of the original sender address of the link state message of the routing data frame in the routing data information to its corresponding superposition. The ratio of the number of the serial number stored in the queue to the length of the superimposed queue; the receiving table maintains one receiving queue for each receiving record entry, and the receiving queue corresponding to each receiving record entry has the same length, the receiving queue Storing a sequence number of a link state message of a routing data frame in the routing data information, and in the receiving queue The moving in and out of the serial number follows the principle of first-in first-out, and the received value in each receiving record entry is the ratio of the number of serial numbers stored in the corresponding receiving queue to the length of the receiving queue, and the data in the receiving table is transmitted and received. The process of moving in and out of the sequence number in the receiving queue corresponding to the receiving record entry having the same sub-unit address and the destination address is synchronized, and the routing information maintenance sub-unit updates the receiving table based on the latest routing data information, according to the following manner Update the received value in the received record entry: the original sender address and the data transceiver subunit address of the link state message whose destination address is the route data frame in the route data information are the received route data frame in the route data information. The data receiving and transmitting subunit address and the candidate routing address are the receiving record entries of the sender address of the routing data frame in the routing data information as the receiving record entry, and are moved into the routing data information in the receiving queue corresponding to the receiving record entry. The sequence number of the link state packet of the routing data frame, and the receiving record is received at the same time. Received link state table entry other than the destination address is the routing information in the routing data packets of the data frame of the original sender address, the address for the data transmission and reception sub-unit receives the routing information data transceiving data subunit address routing data frames The other receiving record entry corresponding to the receiving queue is moved into an empty element, and then the original sender address and the data transceiving subunit address of the link state message whose destination address is the routing data frame in the routing data information are received. The received value of each received record entry of the data transceiving subunit address of the received routing data frame in the data information is updated to the ratio of the number of serial numbers stored in the corresponding receiving queue to the length of the receiving queue.
  20. 根据权利要求19所述的基于无线自组织网络的移动通信系统,其特征在于,所述叠加队列与所述接收队列的长度相同;新生成的链路状态报文的序列号在前一个具有相同原始发送方地址的链路状态报文的序列号的基础上按固定步长递增,记为L;所述路由信息维护子单元每次更新所述叠加表时,按照以下方式更新叠加表中相关叠加记录表项的叠加值:提取叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的叠加记录表项对应的叠加队列中序列号的最大值,记为a,提取路由数据信息中路由数据帧的链路状态报文的序列号,记为b,向叠加表中除本叠加记录表项以外的数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的其他叠加记录表项对应的叠加队列中依次移入((b-a)/L)个空元素,向本叠加记录表项对应的叠加队列中依次移入(((b-a)/L)-1)个空元素和序列号b,然后将叠加表中数据收发子单元地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的各叠加记录表项中的叠加值更新为其对应的叠加队列中存储的序列号的数量与叠加队列长度的比值;所述路由信息维护子单元每次更新所述接收表时,按照以下方式更新接收表中相关接收记录表项的接收值:提取接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址并且数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的接收记录表项对应的接收队列中序列号的最大值,记为m,提取路由数据信息中路由数据帧的链路状态报文的序列号,记为n,向接收表中除本接收记录表项以外的目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的其他接收记录表项对应的接收队列中依次移入((n-m)/L)个空元素,向本接收记录表项对应的接收队列中依次移入(((n-m)/L)-1)个空元素和序列号n,然后将接收表中目的地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址、数据收发子单元地址为路由数据信息中接收路由数据帧的数据收发子单元地址的各接收记录表项的接收值更新为其对应的接收队列中存储的序列号的数量与接收队列长度的比值。The wireless ad hoc network-based mobile communication system according to claim 19, wherein the superimposed queue has the same length as the receiving queue; the sequence number of the newly generated link state message has the same in the previous one. The sequence number of the link state message of the original sender address is incremented by a fixed step, denoted as L; and each time the routing information maintenance subunit updates the overlay table, the related table is updated in the following manner. Superimposed value of the superimposed record entry: extracting the maximum number of the serial number in the superimposed queue corresponding to the superimposed record of the original sender address of the link state message of the route data frame in the route data information in the superimposition table The value, denoted as a, extracts the sequence number of the link state message of the routing data frame in the routing data information, and records it as b, and sends the data transceiving subunit address other than the superimposed recording entry to the routing data in the superimposition table. The superimposed queue corresponding to the other superimposed record entries of the original sender address of the link state message of the routing data frame is sequentially moved into ((ba)/L) null elements. And (((ba)/L)-1) empty elements and sequence number b are sequentially moved into the superposition queue corresponding to the superimposed record entry, and then the data transceiving subunit address in the superposition table is the routing data in the routing data information. The superimposed value in each superimposed record entry of the original sender address of the link state message of the frame is updated to the ratio of the number of sequence numbers stored in the corresponding superposition queue to the length of the superimposed queue; the routing information maintenance subunit Each time the receiving table is updated, the received value of the related receiving record entry in the receiving table is updated in the following manner: the original sender address of the link state message whose destination address is the routing data frame in the routing data information is extracted in the receiving table. And the data transceiver sub-unit address is the maximum value of the sequence number in the receiving queue corresponding to the receiving record entry of the data receiving sub-unit address of the routing data frame in the routing data information, and is recorded as m, and the routing data frame is extracted from the routing data information. The sequence number of the link state packet is recorded as n. The destination address other than the received record entry in the receiving table is the routing data in the routing data information. The original sender address and the data transceiving subunit address of the link state message are sequentially shifted into the receiving queue corresponding to the other receiving record entries of the data transceiving subunit address of the routing data frame in the routing data information ((nm)/ L) an empty element, sequentially shifting (((nm)/L)-1) empty elements and sequence number n into the receiving queue corresponding to the receiving record entry, and then taking the destination address in the receiving table as routing data information The original sender address and the data transceiving subunit address of the link state message of the routing data frame are the received values of the receiving record entries of the data transceiving subunit address of the routing data frame in the routing data information are updated to their corresponding receiving The ratio of the number of serial numbers stored in the queue to the length of the receive queue.
  21. 根据权利要求15-20任一项所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元按照以下方式判定接收到的路由数据信息是否为最新的路由数据信息:所述路由信息维护子单元中维护有预处理表,所述预处理表中包括有若干条预处理记录表项,每条预处理记录表项中记录有原始发送方地址和序列号的对应关系,所述路由信息维护子单元接收到来自数据解析单元的路由数据信息时,在预处理表中查询原始发送方地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,若没有查询到对应的预处理记录表项,则将数据解析单元提供的路由数据信息判定为最新的路由数据信息,并在预处理表中新增一项预处理记录表项,新增的预处理记录表项的原始发送方地址和序列号分别为路由数据信息中路由数据帧的链路状态报文的原始发送方地址和序列号;若在预处理表中查询到原始发送方地址为路由数据信息中路由数据帧的链路状态报文的原始发送方地址的预处理记录表项,则比较所述预处理记录表项中的序列号与路由数据信息中路由数据帧的链路状态报文的序列号的大小关系,若所述预处 理记录表项中的序列号小于路由数据信息中路由数据帧的链路状态报文的序列号,则将数据解析单元提供的路由数据信息判定为最新的路由数据信息,并将所述预处理记录表项中的序列号更新为路由数据信息中路由数据帧的链路状态报文的序列号,若所述预处理记录表项中的序列号大于等于路由数据信息中路由数据帧的链路状态报文的序列号,将所述路由数据信息丢弃。The wireless ad hoc network-based mobile communication system according to any one of claims 15 to 20, wherein the routing information maintenance subunit determines whether the received routing data information is the latest routing data information according to the following manner. The preprocessing table is maintained in the routing information maintenance subunit, and the preprocessing table includes a plurality of preprocessing record entries, and each preprocessing record entry records the correspondence between the original sender address and the serial number. Relationship, when the routing information maintenance subunit receives the routing data information from the data parsing unit, the original sender address of the link state message of the routing data frame in the routing data information is queried in the preprocessing table. If the pre-processing record entry is not queried, the routing data information provided by the data parsing unit is determined as the latest routing data information, and a pre-processing record is added to the pre-processing table. The original sender address and serial number of the newly added preprocessing record entry are routes in the routing data information. The original sender address and sequence number of the link state message according to the frame; if the original sender address is queried in the preprocessing table, the original sender address of the link state message of the route data frame in the route data information is pre- Processing the record entry, comparing the size relationship between the sequence number in the pre-processed record entry and the sequence number of the link state message of the route data frame in the route data information, if the pre-emption If the sequence number in the record entry is smaller than the sequence number of the link state packet of the route data frame in the route data information, the route data information provided by the data parsing unit is determined as the latest route data information, and the pre-processing is performed. The sequence number in the record entry is updated to the sequence number of the link state packet of the route data frame in the route data information, if the sequence number in the preprocess record entry is greater than or equal to the link of the route data frame in the route data information. The sequence number of the status packet discards the routing data information.
  22. 根据权利要求21所述的基于无线自组织网络的移动通信系统,其特征在于,当本通信装置的数据收发单元具有至少两个数据收发子单元时,所述路由信息维护子单元按照上述方式将数据解析单元提供的路由数据信息判定为最新的路由数据信息后,还进一步判断路由数据信息中路由数据帧的发送方地址是否为本通信装置中的任一数据收发子单元地址,若是则将所述路由数据信息丢弃,若否则基于所述最新的路由数据信息更新所述叠加表和接收表。The wireless ad hoc network-based mobile communication system according to claim 21, wherein when the data transceiving unit of the communication device has at least two data transceiving subunits, the routing information maintenance subunit is After the route data information provided by the data analysis unit is determined as the latest route data information, it is further determined whether the sender address of the route data frame in the route data information is any data transceiver sub-unit address in the communication device, and if so, The routing data information is discarded, if the overlay table and the receiving table are otherwise updated based on the latest routing data information.
  23. 根据权利要求12-22任一项所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由单元接收到所述路由查询请求时,在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则根据其中一条分配记录表项的记录内容向数据解析单元发送路由查询响应,所述路由查询响应包括所述分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址。The wireless ad hoc network-based mobile communication system according to any one of claims 12 to 22, wherein, when the routing unit receives the route query request, querying the destination address in the route allocation table as a route query If the allocation record entry of the destination address is received in the request, if the allocation record entry is not found, the route query response is not generated and the communication process is abandoned. If the allocation record entry is queried, the one is allocated according to one of the allocation records. Recording the record content of the entry to the data parsing unit, the route query response includes a data transceiving subunit address and a candidate allocation routing address in the allocation record entry, and the data parsing unit is configured based on the route query response The load data frame is used as the receiver address in the load data frame, and the data transceiver sub-unit address in the route query response is used as the sender address in the load data frame.
  24. 根据权利要求23所述的基于无线自组织网络的移动通信系统,其特征在于,所述数据收发单元中的第一个数据收发子单元作为主数据收发子单元,所述数据解析单元根据IP数据包来源构造所述路由查询请求,所述路由查询请求中包括接收目的地址和数据收发子单元地址,所述接收目的地址为最终接收所述IP数据包的通信装置的地址,当IP数据包为本通信装置产生时,所述路由查询请求中的数据收发子单元地址为空,当IP数据包为本通信装置转发的其他通信装置产生的IP数据包时,所述路由查询请求中的数据收发子单元地址为本通信装置中接收所述IP数据包的数据收发子单元的地址;所述路由单元接收到所述路由查询请求时,首先判定所述路由查询请求中的数据收发子单元地址是否为空,若为空则所述路由单元在路由分配表中查询目的地址为路由查询请求中接收目的地址并且数据收发子单元地址为本通信装置中的主数据收发子单元地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址,将所述IP数据包作为负载数据帧中的帧体;若路由查询请求中的数据收发子单元地址不为空,则在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若查询不到所述分配记录表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述分配记录表项,则根据其中一条分配记录表项的记录内容向数据解析单元发送路由查询响应,所述路由查询响应包括分配记录表项中的数据收发子单元地址和候选分配路由地址,所述数据解析单元基于路由查询响应构造负载数据帧,将路由查询响应中的候选分配路由地址作为负载数据帧中的接收方地址,将 路由查询响应中的数据收发子单元地址作为负载数据帧中的发送方地址,将所述IP数据包作为负载数据帧中的帧体。The wireless ad hoc network-based mobile communication system according to claim 23, wherein the first data transceiving subunit in the data transceiving unit is used as a main data transceiving subunit, and the data parsing unit is based on IP data. The packet source constructs the route query request, where the route query request includes a receiving destination address and a data transceiver subunit address, and the receiving destination address is an address of a communication device that finally receives the IP data packet, when the IP data packet is When the communication device is generated, the data transceiving subunit address in the route query request is empty, and when the IP data packet is an IP data packet generated by another communication device forwarded by the communication device, the data in the route query request is transmitted and received. The subunit address is an address of the data transceiving subunit that receives the IP data packet in the communication device; when receiving the routing query request, the routing unit first determines whether the data transceiving subunit address in the routing query request is If it is empty, the routing unit queries the destination address in the route allocation table as a route query. Receiving the destination address and the data transceiving subunit address is an allocation record entry of the primary data transceiving subunit address in the communication device. If the allocation record entry is not found, the route query response is not generated and the communication is abandoned. a process, if the allocation record entry is queried, sending a route query response to the data parsing unit, where the route query response includes a data transceiving subunit address and a candidate allocation routing address in the queried allocation record entry, The data parsing unit constructs a load data frame based on the route query response, and uses the candidate allocation route address in the route query response as the receiver address in the load data frame, and sends the data transceiving subunit address in the route query response as the transmission in the load data frame. The square address, the IP data packet is used as a frame body in the payload data frame; if the data transceiver sub-unit address in the route query request is not empty, the destination address is queried in the route allocation table as the destination address in the route query request. The allocation record entry does not generate if the allocation record entry is not queried. Responding to the query and discarding the communication process. If the allocation record entry is queried, the route query response is sent to the data parsing unit according to the record content of one of the allocation record entries, and the route query response includes the allocation record entry. a data transceiving subunit address and a candidate allocation routing address, the data parsing unit constructs a payload data frame based on the routing query response, and uses the candidate allocation routing address in the routing query response as the receiving address in the payload data frame, The data transceiving subunit address in the route query response is used as the sender address in the payload data frame, and the IP data packet is used as the frame body in the payload data frame.
  25. 根据权利要求24所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由分配表的每个分配记录表项中同时记录有链路状态稳定值和最新使用标记,所述链路状态稳定值为更新所述分配记录表项的对应链路状态记录表项中的链路状态稳定值,所述路由单元中预设有链路可用值,当本通信装置转发其他通信装置产生的IP数据包时,所述路由单元接收到所述数据解析单元发送的路由查询请求时,按照以下方式生成路由查询响应:首先在路由分配表中查询目的地址为路由查询请求中接收目的地址的分配记录表项,若无法查询到则不产生路由查询响应并放弃本次通信过程,若能够查询到则将所查询到的分配记录表项记为第一表项集合,若第一表项集合中的分配录表项的最新使用标记都为空,则在第一表项集合中选取链路状态稳定值大于链路可用值的表项称为第二表项集合,若第二表项集合为空,则在第一表项集合中查询数据收发子单元地址为路由查询请求中的数据收发子单元地址的表项,若查询不到所述表项,则不产生路由查询响应并放弃本次通信过程,若查询到所述表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的所述表项中的数据收发子单元地址和候选分配路由地址,并在查询到的所述表项中设置最新使用标记;若第二表项集合不为空,则选取第二表项集合中的第一个表项,向数据解析单元发送路由查询响应,所述路由查询响应包括该第一个表项中的数据收发子单元地址和候选分配路由地址,并设置该第一个表项的最新使用标记;若第一表项集合中存在最新使用标记不为空的表项,则在第一表项集合中选取最新使用标记为空的表项记为第三表项集合,若第三表项集合为空,则在第一表项集合中选取最新使用标记不为空的表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括最新使用标记不为空的表项中的数据收发子单元地址和候选分配路由地址;若第三表项集合不为空,则在第三表项集合中选取链路状态稳定值大于链路可用值的表项称为第四表项集合,若第四表项集合为空,则在第三表项集合中查询数据收发子单元地址为路由查询请求中数据收发子单元地址的表项,若查询不到所述表项,则不产生路由查询响应并放弃本次通信过程,若可以查询到所述表项,则向数据解析单元发送路由查询响应,所述路由查询响应包括查询到的表项中的数据收发子单元地址和候选分配路由地址,并设置上述表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记;若第四表项集合不为空,则选取第四表项集合中的第一个表项,向数据解析单元发送路由查询响应,所述路由查询响应包括第四表项集合中第一个表项中的数据收发子单元地址和候选分配路由地址,并设置该第一个表项的最新使用标记,取消第一表项集合中其余表项的最新使用标记。The wireless ad hoc network-based mobile communication system according to claim 24, wherein each of the allocation record entries of the route allocation table simultaneously records a link state stable value and a latest usage flag, the chain The path state stable value is a link state stable value in a corresponding link state record entry of the update record entry, and the route unit is pre-set with a link available value, when the communication device forwards another communication device. The IP data packet, when the routing unit receives the routing query request sent by the data parsing unit, generates a routing query response according to the following manner: first, in the routing allocation table, the query destination address is the destination address received in the routing query request. The record entry is allocated. If the query cannot be queried, the route query response is not generated and the communication process is abandoned. If the query is available, the queried allocation record entry is recorded as the first entry set, if the first entry is set. If the latest usage flag of the allocated record entry is empty, the link state stable value is greater than the link available value in the first entry set. The entry is called the second set of entries. If the second set of entries is empty, the first entry set is queried for the address of the data transceiving subunit address in the routing query request. If the entry is not queried, the route query response is not generated and the communication process is abandoned. If the entry is queried, the route query response is sent to the data parsing unit, where the route query response includes the queried query. The data transceiving subunit address and the candidate allocation routing address in the entry, and setting the latest usage flag in the queried entry; if the second entry set is not empty, selecting the second in the second entry set An entry, sending a route query response to the data parsing unit, where the route query response includes a data transceiving subunit address and a candidate allocation routing address in the first entry, and setting a latest use of the first entry If there is an entry in the first set of entries that is not empty, the entry in the first set of entries is selected as the third set of entries, if If the set of the entry is empty, the latest entry identifier is not empty, and the route query response is sent to the data parsing unit, where the route query response includes the latest use of the entry that is not empty. The data transceiving subunit address and the candidate allocation routing address; if the third set of entries is not empty, the entry in the third set of entries that has a link state stable value greater than the link available value is called a fourth table. If the fourth item set is empty, the third item set is queried for the data transceiving subunit address as an entry of the data transceiving subunit address in the routing query request, and if the entry is not found, The route query response is not generated and the communication process is abandoned. If the entry is queried, the route query response is sent to the data parsing unit, where the route query response includes the address of the data transceiving subunit in the queried entry. The candidate is assigned a routing address, and the latest usage flag of the foregoing entry is set, and the latest usage flag of the remaining entries in the first entry is canceled; if the fourth entry is not empty, Selecting a first entry in the fourth set of entries, and sending a route query response to the data parsing unit, where the route query response includes a data transceiving subunit address and candidate allocation in the first entry in the fourth set of entries Route the address and set the latest usage tag of the first entry to cancel the latest usage tag of the remaining entries in the first entry.
  26. 根据权利要求21所述的基于无线自组织网络的移动通信系统,其特征在于,所述预处理表的每条预处理记录表项中还记录有路由数据信息的最新接收时间,所述接收表的每条接收记录表项中还记录有路由数据信息的最新接收时间,所述路由信息维护子单元包括有定时更新模块,所述定时更新模块按照一定的时间间隔周期性地遍历所述预处理表,对于预处理表中的每一条预处理记录表项都判断其中的最新接收时间和当前时间的差值是否超出第一阈值,若超出则在预处理表中删除对应的预处理记录表项,并在接收表、链路状态表和路由分配表中同时删除目的地址为该预处理记录表项中原始发送方地址的对应表项;所述定时更新模块按照一定的时间间隔周期性地遍历所述接收表,对于接收表中的每一项接收记录表项都判断其中 的最新接收时间和当前时间的差值是否超出第二阈值,若超出则在接收表中删除对应的接收记录表项,设被删除的接收记录表项中的目的地址为dest_mac、数据收发子单元地址为sr_mac、候选路由地址为cand_mac,删除所述接收记录表项后同时在链路状态表中删除目的地址为dest_mac并且数据收发子单元地址为sr_mac并且候选路由地址为cand_mac的表项,然后在链路状态表中查询目的地址为dest_mac并且数据收发子单元地址为sr_mac的表项记为动态更新表项集合,在动态更新表项集合中选取链路状态稳定值最大的表项作为路由更新表项,并基于所述路由更新表项更新路由分配表。The wireless ad hoc network-based mobile communication system according to claim 21, wherein each of the pre-processing record entries of the pre-processing table further records the latest receiving time of the routing data information, the receiving table The latest receiving time of the routing data information is also recorded in each of the receiving record entries, and the routing information maintenance subunit includes a timing update module, and the timing update module periodically traverses the preprocessing according to a certain time interval. For each preprocessing record entry in the preprocessing table, it is determined whether the difference between the latest receiving time and the current time exceeds the first threshold, and if it is exceeded, the corresponding preprocessing record entry is deleted in the preprocessing table. And deleting, in the receiving table, the link state table, and the routing allocation table, the corresponding entry whose destination address is the original sender address in the pre-processing record entry; the timing update module periodically traverses according to a certain time interval. The receiving table determines, for each entry record entry in the receiving table Whether the difference between the latest receiving time and the current time exceeds the second threshold. If it is exceeded, the corresponding receiving record entry is deleted in the receiving table, and the destination address in the deleted receiving record entry is dest_mac, the data transceiver subunit The address is sr_mac, and the candidate routing address is cand_mac. After deleting the receiving record entry, delete the entry whose destination address is dest_mac and the data transceiving subunit address is sr_mac and the candidate routing address is cand_mac in the link state table, and then The entry in the link state table whose query destination address is dest_mac and whose data transceiving subunit address is sr_mac is recorded as a dynamic update entry set, and the entry with the highest link state stability value is selected as the route update table in the dynamic update entry set. And updating the route allocation table based on the routing update entry.
  27. 根据权利要求21、22或26所述的基于无线自组织网络的移动通信系统,其特征在于,所述路由信息维护子单元(31)包括预处理模块(51)、收发信息存储模块(52)、链路状态计算模块(53)、路由表模块(54)、转发模块(55)和定时更新模块(56),所述收发信息存储模块(52)中存储有所述预处理表,所述预处理模块(51)接收数据解析单元发送的路由数据信息,并借助收发信息存储模块(52)进行路由数据信息是否最新的判断,所述预处理模块(51)将经过收发信息存储模块(52)判定的最新的路由数据信息发送至链路状态计算模块(53),所述链路状态计算模块(53)基于接收到的最新的路由数据信息维护所述叠加表、接收表和链路状态表,并向所述路由表模块(54)发送路由更新表项,所述路由表模块(54)基于路由更新表项维护所述路由分配表,所述定时更新模块(56)按照一定的时间间隔周期性地遍历所述收发信息存储模块(52)中的预处理表和所述链路状态计算模块(53)中的接收表,所述链路状态计算模块(53)每次完成所述链路状态表的更新时,同时向所述转发模块(55)发送链路状态值更新后的链路状态报文,所述转发模块(55)基于更新的链路状态报文构造转发路由数据帧,并通过数据收发单元发送。The wireless ad hoc network-based mobile communication system according to claim 21, 22 or 26, wherein the routing information maintenance subunit (31) comprises a preprocessing module (51) and a transceiving information storage module (52) a link state calculation module (53), a routing table module (54), a forwarding module (55), and a timing update module (56), wherein the processing information storage module (52) stores the preprocessing table, The pre-processing module (51) receives the routing data information sent by the data parsing unit, and determines whether the routing data information is up-to-date by means of the transceiving information storage module (52), and the pre-processing module (51) passes through the transceiving information storage module (52). The determined latest routing data information is sent to the link state calculation module (53), which maintains the overlay table, the receiving table, and the link state based on the received latest routing data information. And sending a routing update entry to the routing table module (54), the routing table module (54) maintaining the routing allocation table based on a routing update entry, the timing update module (56) according to a certain time Interval week Traversing the preprocessing table in the transceiving information storage module (52) and the receiving table in the link state calculation module (53), the link state calculation module (53) completing the link each time When the state table is updated, the link state message with the link state value updated is sent to the forwarding module (55), and the forwarding module (55) constructs the forwarding route data frame based on the updated link state message. And sent through the data transceiver unit.
  28. 根据权利要求27所述的基于无线自组织网络的移动通信系统,其特征在于,所述数据解析单元(11)包括数据封装子单元(21)、ARP子单元(22)和类型判别子单元(23),所述类型判别子单元(23)将来自数据收发单元(13)的路由数据信息发送至所述预处理模块(51),将来自数据收发单元(13)的负载数据信息发送至所述数据封装子单元(21),所述数据封装子单元(21)根据负载数据信息构造路由查询请求,并将路由查询请求发送至所述路由表模块(54),所述数据封装子单元(21)根据路由查询响应构造负载数据帧,并将负载数据帧发送至对应的数据收发子单元。 The wireless ad hoc network-based mobile communication system according to claim 27, wherein the data parsing unit (11) comprises a data encapsulation subunit (21), an ARP subunit (22), and a type discriminating subunit ( 23), the type discriminating subunit (23) sends routing data information from the data transceiving unit (13) to the preprocessing module (51), and transmits load data information from the data transceiving unit (13) to the a data encapsulation subunit (21), the data encapsulation subunit (21) constructs a routing query request according to the load data information, and sends a routing query request to the routing table module (54), the data encapsulation subunit ( 21) Construct a load data frame according to the route query response, and send the load data frame to the corresponding data transceiver subunit.
PCT/CN2016/101287 2016-05-31 2016-09-30 Wireless ad-hoc network-based mobile communications system WO2017206409A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610376434.0A CN107454652B (en) 2016-05-31 2016-05-31 Mobile communication system based on wireless self-organizing network
CN201610376434.0 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206409A1 true WO2017206409A1 (en) 2017-12-07

Family

ID=60479671

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101287 WO2017206409A1 (en) 2016-05-31 2016-09-30 Wireless ad-hoc network-based mobile communications system

Country Status (2)

Country Link
CN (1) CN107454652B (en)
WO (1) WO2017206409A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132339A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Flow monitoring method and device and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233801B (en) * 2019-05-31 2021-08-17 北京星网锐捷网络技术有限公司 Route updating method and device
CN114786235A (en) * 2022-06-21 2022-07-22 广州慧睿思通科技股份有限公司 Mobile ad hoc network communication method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089315A1 (en) * 2006-10-16 2008-04-17 Nokia Corporation Adaptive route time-out for dynamic multi-hop networks
CN101820661A (en) * 2010-04-08 2010-09-01 无锡泛联物联网科技股份有限公司 Random walk routing method combining opportunistic forwarding in mobile wireless multi-hop network
CN103986648A (en) * 2014-05-06 2014-08-13 安徽理工大学 Internet-of-Things route repairing method based on link stability and energy sensing
CN105578558A (en) * 2014-10-16 2016-05-11 北京信威通信技术股份有限公司 Wireless ad-hoc network routing method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064687B (en) * 2007-02-07 2011-09-21 中兴通讯股份有限公司 Routing convergence method
CN101521895A (en) * 2009-04-03 2009-09-02 南京邮电大学 Forwarding method used for constructing multi-hop routing in wireless self-organizing network
US9084091B2 (en) * 2011-11-17 2015-07-14 Silver Spring Networks, Inc. Registration and data exchange using proxy gateway
CN102740394B (en) * 2012-07-19 2014-11-12 济南普赛通信技术有限公司 Center calculation wireless sensor network 2-node disjoint multipath routing algorithm
CN104125617B (en) * 2013-04-25 2018-05-11 北京信威通信技术股份有限公司 A kind of system and method for mobile terminal ad hoc network
CN103312547B (en) * 2013-06-18 2016-06-29 华为技术有限公司 Communication means, Apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080089315A1 (en) * 2006-10-16 2008-04-17 Nokia Corporation Adaptive route time-out for dynamic multi-hop networks
CN101820661A (en) * 2010-04-08 2010-09-01 无锡泛联物联网科技股份有限公司 Random walk routing method combining opportunistic forwarding in mobile wireless multi-hop network
CN103986648A (en) * 2014-05-06 2014-08-13 安徽理工大学 Internet-of-Things route repairing method based on link stability and energy sensing
CN105578558A (en) * 2014-10-16 2016-05-11 北京信威通信技术股份有限公司 Wireless ad-hoc network routing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132339A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Flow monitoring method and device and electronic equipment
CN113132339B (en) * 2020-01-15 2023-04-25 阿里巴巴集团控股有限公司 Flow monitoring method and device and electronic equipment

Also Published As

Publication number Publication date
CN107454652B (en) 2021-03-19
CN107454652A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
US8441958B2 (en) Directed acyclic graph discovery and network prefix information distribution relative to a clusterhead in an ad hoc mobile network
CN1926835B (en) Method, communication device and system for address resolution mapping in a wireless multihop self-organizing network
US7606176B2 (en) System and method to improve the performance of an on demand routing protocol in a wireless network
KR100789773B1 (en) A mesh networking auto configuration method, virtual link setting method, packet transmission method and terminal for its in multi hop wireless lan
JP4505454B2 (en) System and method for improving overall performance of a wireless communication network
CN102148756B (en) IPv6 over low power wireless personal area network (6LoWPAN) neighbor discovery-based tree routing method
JP4072917B2 (en) Packet relay method, communication path setting method, and communication path setting system
US20080317047A1 (en) Method for discovering a route to a peer node in a multi-hop wireless mesh network
US20050122955A1 (en) Method and system for route selection and method for route reconstruction
WO2003061220A1 (en) Routing method for mobile ad-hoc network
JP2005168020A (en) Communication path control method and communication terminal for radio multi-hop network
US20080240112A1 (en) Layer 2 routing protocol
CN108449271B (en) Routing method for monitoring path node energy and queue length
CN107071850A (en) A kind of improved AODV Routing Protocols for being suitable for different motion scene
CN105577547A (en) Multi-Qos based route selection method in mobile self-organizing network
WO2017206409A1 (en) Wireless ad-hoc network-based mobile communications system
JP2006314147A (en) Routing system in wireless personal communication network and method thereof
US20120163233A1 (en) Method for transmitting routing information and routing apparatus in wireless network
US20080008201A1 (en) Communication terminal, a method for communication, and a program strorage medium storing a program thereof
US20140198770A1 (en) Node device, communication method, and storage medium
WO2017206410A1 (en) Network sharing system and network sharing method
CN105072586A (en) Management method for forwarding of broadcast message in embedded wireless ad hoc network
US20190007299A1 (en) Network system, communication device, and communication method
KR100521139B1 (en) Method for processing packet of ad hoc network
KR101065063B1 (en) Path setting apparatus and method based on attributes of an ad-hoc network

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16903791

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC ( EPO FORM 1205A DATED 07/05/2019 )

122 Ep: pct application non-entry in european phase

Ref document number: 16903791

Country of ref document: EP

Kind code of ref document: A1