Disclosure of Invention
The embodiment of the invention aims to provide a big data communication scheduling method, electronic equipment and a computer readable storage medium, so that a wireless communication network improves data throughput on the premise of keeping low power consumption characteristics of peripheral equipment.
In order to solve the technical problems, the embodiment of the invention provides a big data communication scheduling method, which is applied to a central device, wherein the central device and a plurality of peripheral devices form a one-to-many network topology structure, in the network topology structure, scheduling time for interaction between the central device and the plurality of peripheral devices is divided into a plurality of time groups, each time group comprises at least two time slots, the method comprises the steps of sending a data link packet before the first time slot in each time group, respectively receiving a response packet which is returned by the corresponding peripheral device and is used for receiving the corresponding data link packet and sending a response confirmation packet to the corresponding peripheral device in each time slot in each time group.
The embodiment of the invention also provides a big data communication scheduling method which is applied to peripheral equipment, wherein the central equipment and a plurality of peripheral equipment form a one-to-many network topology structure, in the network topology structure, the scheduling time of the interaction between the central equipment and the plurality of peripheral equipment is divided into a plurality of time groups, each time group comprises at least two time slots, the method comprises the steps of receiving a data link packet sent by the central equipment, and sending a response packet for receiving the corresponding data link packet to the central equipment and receiving a response confirmation packet sent by the central equipment in the corresponding time slots.
The embodiment of the invention also provides electronic equipment, which comprises at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the big data communication scheduling method.
The embodiment of the invention also provides a computer readable storage medium storing a computer program which when executed by a processor realizes the big data communication scheduling method.
In the embodiment of the invention, the central equipment sends the data link packet before the first time slot in each time group, and the peripheral equipment only needs to interact with the response and the confirmation of the data link packet reception in the corresponding time slot after receiving the data link packet, so that the peripheral equipment can keep a low-power consumption state through the limitation of the time groups and the time slots, and meanwhile, the data is transmitted by utilizing the data link packet, so that the throughput of the data transmission of the central equipment and the communication network where the peripheral equipment is positioned can be improved.
In addition, before the data link packet is sent before the first time slot in each time group, the method further comprises the step of sending at least one synchronous data packet in each time group, wherein the synchronous data packet comprises configuration information of a plurality of time slots and configuration information of data, and the configuration information of the data is used for indicating the operation function of the current network and the transmitted data content.
In addition, the configuration information of the data includes an operation code field and a data content field, wherein the operation code field is used for indicating the operation function of the network where the current synchronous data packet is located, and the data content field includes the transmission start time and duration time of the data link packet.
In addition, the transmission start time of the data link packet is equal to the time starting point of the first synchronous data packet plus the preset data link packet transmission interval time.
In addition, the configuration information of the time slots comprises the number of the time slots of the current time group, the time of each time slot and the time starting point of the first time slot.
In addition, before transmitting at least one synchronous data packet in each time group, the method further comprises transmitting at least one source packet in each time group, wherein the source packet is used for indicating the address of the central equipment, the group number of the current time group and the time starting point of the first synchronous data packet.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
An embodiment of the invention relates to a big data communication scheduling method which can be applied to central equipment, wherein the central equipment and a plurality of peripheral equipment form a one-to-many network topology structure. In the network topology, the scheduled time for a hub device to interact with a plurality of peripheral devices is divided into a plurality of time groups, each time group comprising at least two time slots. In a wireless communication network, the central device is usually referred to as a core device or central control device in the network, and is responsible for managing and controlling the operation and data traffic of the entire network. For example, the central device may be a router, switch, or controller device. The peripheral device refers to an auxiliary device or a terminal device connected to the center device for implementing a specific function or providing a specific service. Such as a terminal device, such as a computer, a cell phone, a sensor, an executing device, or a storage device. In this embodiment, the data link packet is sent before the first time slot in each time group, and in each time slot in each time group, the response packet returned by the corresponding peripheral device and received the corresponding data link packet is received and the response acknowledgement packet is sent to the corresponding peripheral device. The central equipment and the peripheral equipment interact through time slots, the peripheral equipment can be kept in a low-power consumption state through the limitation of time groups and time slots, and meanwhile, data is transmitted by utilizing data link packets, so that the throughput of data transmission of the communication network where the central equipment and the peripheral equipment are located can be improved. The implementation details of the big data communication scheduling method of the present embodiment are specifically described below, and the following description is provided only for convenience of understanding, and is not necessary to implement the present embodiment.
As shown in fig. 1, in step 101, a data chain packet is transmitted before the first slot in each time group.
In a wireless communication network, the time group refers to dividing the scheduling time of the interaction between the central device and a plurality of peripheral devices into different intervals, wherein each interval is used for being allocated to a plurality of different peripheral devices to interact with the central device respectively. Typically each of said time groups comprises a plurality of time slots, each of said time slots referring to a smaller time period comprised in the corresponding time group, typically one time slot for allocation to a specific peripheral device for interaction with said central device. By utilizing the time group and the time slot, different peripheral devices can perform interactive communication with the central device in specific time slots in different time groups, so that communication resources of a wireless communication network can be effectively allocated, and interference and collision between other peripheral devices and the communication of the central device are avoided.
In order to improve the data throughput of the wireless communication network, the big data sent to each peripheral device by the central device can be split into a plurality of data link packets for transmission, each data link packet comprises the total number of data links, the serial number of the current data link packet and the data content, and each peripheral device, after receiving the plurality of data link packets, re-forms the data content in the plurality of data link packets into complete data.
In one example, the scheduling time is divided into a plurality of time groups in advance, wherein one time group is used for a corresponding plurality of peripheral devices. For example, time group 1 is assigned to peripheral 1, peripheral 2 and peripheral 3 for interaction with the central device, and time group 2 is assigned to peripheral 4, peripheral 5 for interaction with the central device. At least one synchronization packet (as shown in fig. 2) for informing the peripheral device of the time group being polled by the current network, the time slot information, and the operational function of the current network is transmitted in each time group. Specifically, the synchronous data packet includes configuration information of a plurality of time slots and configuration information of data, each time slot is respectively used for corresponding to one peripheral device, information is respectively transmitted with the corresponding peripheral device in each time slot, and the configuration information of the time slots includes the number of time slots of the current time group, time of each time slot and time starting point of the first time slot. The configuration information of the data is used for indicating the operation function of the current network and the transmitted data content.
In one example, the configuration information of the data includes an opcode field, a data content field, and a target slot field. The opcode field is used to indicate an operation function of the network where the current synchronous data packet is located, for example, the opcode field is a data link type, that is, indicates that the current network is used to perform data link transmission. The data content field comprises the transmission start time and duration of the data link packet. The target time slot field is used for indicating the peripheral equipment corresponding to the specific time slot to receive the specific data link packet.
In an example, the transmission start time of the data link packet is equal to the time start of the first synchronization data packet plus a preset data link packet transmission interval time, where the transmission start time of the data link packet cannot be earlier than the time of the first time slot in the corresponding time group (as shown in fig. 2), and the preset data link packet transmission interval time may be set according to circumstances.
In a specific example, in a wireless communication network, synchronization data packets transmitted multiple times in a time group support a frequency hopping function, that is, different synchronization data packets may be switched on different broadcast channels according to the frequency hopping step number, so that interference resistance of each synchronization data packet may be enhanced.
In one example, at least one source packet (as shown in fig. 2) is transmitted in each time group before at least one synchronization packet is transmitted in each time group, the source packet including the address of the center device, the group number of the current time group, and the time start of the first synchronization packet. The source packet is used to inform the peripheral device that the network is currently scheduling the polled time group. Typically, the central device maintains a polling mode for each time group schedule, i.e., each time group is polled in turn according to its group number.
In step 102, in each time slot in each time group, a response packet returned by the corresponding peripheral device and receiving the corresponding data link packet is received, and a response acknowledgement packet is sent to the corresponding peripheral device.
The central device receives a response packet sent by a specific peripheral device to the central device in a time slot allocated to the specific peripheral device. The response packet includes an address of the peripheral device, a current time slot number, and response information. The response information comprises an operation code and data content. In this embodiment, the operation code in the response information is a response data chain type, and the data content in the response information includes a receiving state of the peripheral device for receiving the data chain packet, for example, a receiving state such as a receiving completion or a receiving abnormality.
The central device checks whether the time slot number of the corresponding peripheral device is correct or not and whether the receiving of the corresponding data link packet is finished according to the response packet returned by each peripheral device, and sends a response confirmation packet to the corresponding peripheral device in the time slot corresponding to each peripheral device to finish the interaction with the corresponding peripheral device (as shown in fig. 2). Typically, the response acknowledgement packet includes a center device address and a peripheral device address.
In the implementation of the invention, the central equipment sends the data link packet before the first time slot in each time group, and the peripheral equipment only needs to interact with the response and the confirmation of the data link packet received by the central equipment in the corresponding time slot after receiving the data link packet, so that the peripheral equipment can keep a low-power consumption state through the limitation of the time groups and the time slots, and meanwhile, the data is transmitted by utilizing the data link packet, so that the throughput of the data transmission of the central equipment and the communication network where the peripheral equipment is positioned can be improved.
Another embodiment of the present invention relates to a big data communication scheduling method, which can be applied to a network topology structure in which a peripheral device, a central device and a plurality of peripheral devices form one-to-many. In the network topology, the scheduling time for the central device to interact with the plurality of peripheral devices is divided into a plurality of time groups, each time group comprising at least two time slots, each time slot corresponding to a respective peripheral device. In the embodiment, the data link packet sent by the central equipment is received, and the response packet for receiving the corresponding data link packet and the response confirmation packet sent by the central equipment are sent to the central equipment in the corresponding time slot. The network position of each peripheral device is determined by a time group and a time slot, and each peripheral device only needs to maintain the polling scheduling of a certain time slot in the time group and the corresponding time group, so that each peripheral device can keep the low power consumption characteristic according to the scheduling mode, and meanwhile, the throughput of data transmission of the communication network where each peripheral device and the central device are located can be improved by transmitting data by utilizing a data link packet. The implementation details of the big data communication scheduling method of the present embodiment are specifically described below, and the following description is provided only for convenience of understanding, and is not necessary to implement the present embodiment.
As shown in fig. 3, in step 201, a data link packet transmitted by the center device is received.
Based on the embodiment of the big data communication scheduling method applied to the central device, in one example, after each peripheral device receives any one of the source packets, the central device address and the time group information polled by the current network scheduling are obtained from the source packets, and the synchronous data packets are prepared to be received according to the time starting point information of the first synchronous data packet in the source packets. After each peripheral device receives any one of the synchronous data packets, time group and time slot information polled by the current network are obtained from the synchronous data packets, the time slot allocated to the peripheral device is defined, the peripheral device prepares to receive the data link packet according to the transmission starting time and duration of the data link packet in the synchronous data packet, and selects to receive the data link packet with the target time slot field consistent with the time slot of the peripheral device according to the target time slot field in the synchronous data packet.
In step 202, in the corresponding time slot, a response packet for receiving the corresponding data link packet and a response acknowledgement packet sent by the central device are sent to the central device.
In one example, each of the peripheral devices transmits a response packet for receiving a corresponding data link packet to the central device and receives a response acknowledgement packet (as shown in fig. 2) sent by the central device in a specific time slot belonging to the peripheral device, and interaction with the central device is completed in the specific time slot.
In another embodiment of the present invention, the timer and the radio frequency transceiver are used to control the central device and the peripheral device to form a wireless communication network, so as to implement the big data communication scheduling method. The timer is used for managing the next starting time of the radio frequency transceiver, and the radio frequency transceiver is used for being responsible for data transmission and reception of the central equipment and the peripheral equipment. It should be noted that the timer and the radio frequency transceiver are only examples, and other devices or programs with timing functions may be used instead in practical applications. Similarly, the rf transceiver may be replaced with other devices or programs having data transceiving capabilities. The description is not intended to be limiting.
In one example, the timer and the radio frequency transceiver are used to control the scheduling process of the central device, specifically, the radio frequency transceiver is started to transmit a plurality of source packets in the current time group, and the timer is used to set the first time interval between the current time and the first synchronous data packet. And when the first time interval arrives, starting the radio frequency transceiver to transmit a plurality of data synchronization packets, and setting the current time and a second time interval of the first data link packet by using the timer. And when the second time interval arrives, starting the radio frequency transceiver to transmit a plurality of data link packets, and setting a third time interval between the current time and the first time slot by using the timer. And when the third time interval arrives, starting the radio frequency transceiver to respectively receive a response packet returned by the corresponding peripheral equipment and receiving a corresponding data link packet and send a response confirmation packet to the corresponding peripheral equipment in each time slot in the current time group. And after all the time slots are finished, setting the sending time of the first source packet of the next time group by using the timer. The scheduling process of the central device in each time group is the same, and will not be described in detail here.
In one example, the timer and the radio frequency transceiver are used to control the scheduling process of each peripheral device, specifically, the radio frequency transceiver is started to receive the source packet in the current time group, and the timer is used to set the fourth time interval between the current time and the first synchronous data packet. And when the fourth time interval arrives, starting the radio frequency transceiver to receive the data synchronization packet, and setting the current time and the fifth time interval of the first data link packet by using the timer. And when the fifth time interval is reached, starting the radio frequency transceiver to receive the data link packet, and setting a sixth time interval of a specific time slot corresponding to the peripheral equipment at the current time by utilizing the timer. And when the sixth time interval arrives, starting the radio frequency transceiver to send a response packet for receiving a corresponding data chain packet to the central equipment and receive a response confirmation packet sent by the central equipment in the specific time slot. And setting a seventh time interval between the current time and the first source packet of the next time group to which the peripheral device belongs by using the timer. When the seventh time interval arrives, the next time group is entered for receiving and transmitting, and the scheduling process of the peripheral device in each time group is the same, which is not described herein.
In this embodiment, the scheduling processes of the central device and the peripheral device are controlled by using the timer and the radio frequency transceiver, so that the node of the central device sending the data link packet and the rhythm of the peripheral device receiving the data link packet can be efficiently measured, and the central device and the peripheral device can perform efficient and smooth interaction based on the time group and the time slot.
The steps of the above method are divided, for clarity of description, and can be combined into one step or split into multiple steps when implemented, so long as the steps comprise the same logic relationship, all the steps are within the protection scope of the patent, and the addition of insignificant modification or introduction of insignificant design to the algorithm or the process, but the core design without changing the algorithm and the process, all the steps are within the protection scope of the patent.
Another embodiment of the invention relates to an electronic device 1, as shown in fig. 4, comprising at least one processor 10, and a memory 11 communicatively coupled to the at least one processor, wherein the memory 11 stores instructions executable by the at least one processor 10, the instructions being executable by the at least one processor 10 to enable the at least one processor 10 to perform a big data communication scheduling method as described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.